:root {
  --color-main: #3e4159;
  --color-accent: #f2cd5e;
  --color-soft: #f2d888;
  --color-secondary: #848fd9;
  --color-text-warm: #59503e;
  --color-bg: #fffef8;
  --color-card: #ffffff;
  --color-border: #d9d9d9;

  --font-heading: catalpa, "Times New Roman", serif;
  --font-body: roboto, "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 8px 24px rgb(62 65 89 / 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-main);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-main);
}

a:hover {
  color: #2d3042;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-style: normal;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background-color: #fff9e8;
}

.lead {
  font-size: 1.1rem;
  max-width: 65ch;
}

.eyebrow {
  font-weight: 500;
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}

.small-text {
  font-size: 0.92rem;
  color: var(--color-text-warm);
}

.text-link {
  font-weight: 500;
  font-style: italic;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--color-main);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  isolation: isolate;
  background: #3e4159;
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
}

.site-header .container {
  width: min(1440px, calc(100% - 1.5rem));
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
  padding: 0;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

@media (min-width: 901px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 0.35rem;
    min-height: 100px;
  }

  .brand {
    justify-self: start;
  }

  .site-nav {
    position: static;
    transform: none;
    justify-self: center;
  }

  .header-social--desktop {
    justify-self: end;
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 1.18rem;
    line-height: 1;
  }

  .header-auth-link {
    font-size: 1.18rem;
    padding: 0.2rem 0.65rem;
    margin-left: 0.15rem;
    line-height: 1;
  }

  .header-social {
    gap: 0.75rem;
  }

  .header-social--desktop {
    gap: 0.6rem;
  }

  .header-social .social-link img,
  .header-social svg {
    width: 30px;
    height: 30px;
  }
}

.brand-logo {
  display: block;
  height: 90px;
  width: auto;
}

.desktop-logo {
  height: 75px;
  max-width: none;
}

.mobile-logo {
  display: none;
  height: 66px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: #ffffff;
  font-size: 1.05rem;
}

.site-nav a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

.header-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.header-social--desktop {
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.header-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
}

.header-social .social-link img,
.footer-social .social-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.header-social .social-link:hover {
  color: var(--color-accent);
}

.header-social svg {
  width: 30px;
  height: 30px;
  fill: currentcolor;
  stroke: currentcolor;
  stroke-width: 1.5;
}

.header-auth-link {
  display: inline-block;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.header-social .header-auth-link {
  margin-left: 0.55rem;
}

.header-auth-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-drawer-footer {
  display: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.hero-background {
  position: relative;
  isolation: isolate;
  background-image: url('../Images/pexels-shvets-production-7176305.jpg');
  background-size: cover;
  background-position: center top;
  color: #ffffff;
}

.hero-background-about {
  position: relative;
  isolation: isolate;
  background-image: url('../Images/pexels-mayflower-fertility-2158668390-36035002.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-background::before,
.hero-background-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(62 65 89 / 0.15), rgb(62 65 89 / 0.01));
  z-index: -1;
}

.hero-content {
  min-height: clamp(480px, 90vh, 950px);
  display: flex;
  align-items: center;
}

.hero-background .eyebrow,
.hero-background-about .eyebrow {
  color: var(--color-soft);
}

.hero-background .lead,
.hero-background-about .lead {
  color: #ffffff;
}

.hero-background .button-primary,
.hero-background-about .button-primary {
  background-color: var(--color-accent);
  color: #2d3042;
}

.hero-background .button-primary:hover,
.hero-background-about .button-primary:hover {
  background-color: #f0c54a;
  color: #2d3042;
}

.hero-background .button-secondary,
.hero-background-about .button-secondary {
  background-color: rgb(255 255 255 / 0.18);
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 0.4);
}

.hero-background .button-secondary:hover,
.hero-background-about .button-secondary:hover {
  background-color: rgb(255 255 255 / 0.3);
  color: #ffffff;
}

.button {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.home-test-promo-section {
  padding-top: 1.25rem;
}

.home-test-promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid rgb(242 205 94 / 0.4);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at top left, rgb(242 205 94 / 0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgb(132 143 217 / 0.2), transparent 28%),
    linear-gradient(135deg, #fffdf5 0%, #ffffff 60%, #f7f8ff 100%);
  box-shadow: 0 20px 42px rgb(62 65 89 / 0.12);
}

.home-test-promo::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, var(--color-accent) 0%, #efb94a 100%);
}

.home-test-promo__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.home-test-promo__copy .lead {
  margin-bottom: 0;
}

.home-test-promo__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.home-test-promo__pill {
  min-width: 180px;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(62 65 89 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  color: var(--color-main);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 20px rgb(62 65 89 / 0.08);
}

.home-test-promo__actions {
  margin-top: 1.15rem;
}

.button-primary {
  background-color: var(--color-main);
  color: #fff;
}

.button-primary:hover {
  background-color: #2d3042;
  color: #fff;
}

.button-secondary {
  background-color: var(--color-soft);
  color: #2d3042;
}

.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin-inline: auto;
}

.video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.approach-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 901px) {
  .approach-layout--image-left > :first-child {
    order: 2;
  }

  .approach-layout--image-left > :last-child {
    order: 1;
  }
}

.section-heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.section-heading-with-icon h2 {
  margin: 0;
}

.section-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.approach-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.doctor-subheading {
  margin: -0.55rem 0 1rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-main);
}

.gallery-slider {
  margin-top: 1rem;
}

.gallery-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}

.gallery-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.5);
  background: rgb(62 65 89 / 0.58);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 0.8rem;
}

.gallery-nav.next {
  right: 0.8rem;
}

.gallery-nav:hover {
  background: rgb(62 65 89 / 0.78);
}

.gallery-caption {
  margin: 0.8rem 0 0;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.thumb {
  width: auto;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.thumb img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgb(62 65 89 / 0.15);
}

.cards-grid,
.reviews-grid,
.pricing-grid,
.product-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid,
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid img,
.portrait {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card-thumb {
  width: calc(100% + 2.4rem);
  margin: -1.2rem -1.2rem 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.support-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.support-card .card-thumb {
  width: 100%;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  flex-shrink: 0;
}

.support-card .card-body {
  padding: 1.2rem;
  flex: 1;
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .card-thumb,
.product-card-media {
  width: 100%;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #efe7d6 0%, #e2d5b8 100%);
}

.product-card .card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgb(255 255 255 / 0.55), transparent 35%),
    linear-gradient(145deg, #efe7d6 0%, #dcc8a4 100%);
  color: #655235;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-image--placeholder span {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgb(101 82 53 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.4);
}

.product-card .button {
  margin-top: auto;
}

.owned-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #eef4f0 0%, #d8ebdf 100%);
  border: 1px solid #b5d3c0;
  color: #25633a;
  font-weight: 700;
  text-align: center;
}

.product-detail-link {
  color: inherit;
  text-decoration: none;
}

.product-detail-link:hover {
  color: inherit;
}

.product-card-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

.product-detail-media,
.product-detail-card {
  min-width: 0;
}

.product-detail-image,
.product-detail-placeholder,
.product-embed-shell {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgb(62 65 89 / 0.12);
  box-shadow: var(--shadow);
  background: #fff;
}

.product-detail-image,
.product-detail-placeholder {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #efe7d6 0%, #dcc8a4 100%);
  color: #655235;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-embed-shell {
  aspect-ratio: 16 / 9;
  background: #17192a;
}

.product-embed-shell--document {
  aspect-ratio: 4 / 3;
  background: #fffef9;
}

.product-embed-shell--audio {
  aspect-ratio: auto;
  padding: 1rem;
  background: linear-gradient(180deg, #fffef9 0%, #f5eedc 100%);
}

.product-stream-player,
.product-document-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.product-audio-player {
  width: 100%;
  margin-top: 1rem;
}

.product-detail-card {
  padding: 1.5rem;
}

.product-detail-type {
  margin: 0 0 0.45rem;
  color: var(--color-text-warm);
  text-transform: capitalize;
}

.product-detail-price {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-main);
}

.product-detail-copy {
  margin-top: 1rem;
  color: var(--color-text-warm);
}

.product-detail-meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 16px;
  background: #faf8f1;
  border: 1px solid rgb(62 65 89 / 0.08);
}

.product-detail-actions {
  margin-top: 1.2rem;
}

.product-detail-session-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgb(62 65 89 / 0.08);
}

.shop-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 500;
}

.shop-status--success {
  background: #e7f6ec;
  border-color: #b9e3c4;
  color: #25633a;
}

.shop-status--warning {
  background: #fff4df;
  border-color: #f1d29a;
  color: #8a5b00;
}

body.modal-open {
  overflow: hidden;
}

.shop-modal[hidden] {
  display: none;
}

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.shop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(29 31 44 / 0.54);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.shop-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 2rem));
  margin: min(10vh, 5rem) auto 0;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffef9 0%, #fff8e8 100%);
  border: 1px solid rgb(62 65 89 / 0.12);
  box-shadow: 0 24px 60px rgb(29 31 44 / 0.25);
  text-align: center;
}

.shop-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgb(62 65 89 / 0.08);
  color: var(--color-main);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.shop-modal__logo {
  width: min(220px, 65%);
  height: auto;
  margin: 0 auto 1rem;
}

.shop-modal__text {
  margin: 0 auto;
  max-width: 38ch;
  color: var(--color-text-warm);
}

.shop-modal__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .shop-modal__dialog {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .shop-modal__actions {
    flex-direction: column;
  }
}

/* Billing form inside shop modal */
.billing-form {
  text-align: left;
  margin-top: 1rem;
}

.billing-form__row {
  margin-bottom: 0.75rem;
}

.billing-form__row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text-warm);
}

.billing-form__row input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #d0cfc8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text-warm);
  transition: border-color 0.2s;
}

.billing-form__row input:focus {
  outline: none;
  border-color: var(--color-accent, #f2cd5e);
  box-shadow: 0 0 0 2px rgb(242 205 94 / 0.25);
}

.billing-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.billing-form__actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .billing-form__row--split {
    grid-template-columns: 1fr;
  }
  .billing-form__actions {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

.featured-product-section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background-image: url('../Images/pexels-shvets-production-7176305.jpg');
  background-size: cover;
  background-position: center top;
  color: #ffffff;
  min-height: 720px;
  padding: 8rem 0;
}

.featured-product-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgb(30 33 46 / 0.3), rgb(30 33 46 / 0.78));
  z-index: -1;
}

.featured-product-section .container {
  position: relative;
  z-index: 1;
}

.featured-product-section h2 {
  color: #ffffff;
}

.featured-product {
  max-width: 640px;
  color: var(--color-main);
}

.featured-product h3,
.featured-product p {
  color: var(--color-main);
}

.price {
  font-size: 1.25rem;
  font-weight: 500;
}

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

blockquote {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--color-accent);
  background: #fff;
  border-radius: 0 12px 12px 0;
}

.testimonials-section .eyebrow {
  color: var(--color-main);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-card {
  background: linear-gradient(160deg, #ffffff 0%, #fff6de 100%);
  border: 1px solid rgb(62 65 89 / 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.testimonial-stars {
  margin: 0 0 0.55rem;
  color: #f0b429;
  letter-spacing: 0.08rem;
  font-size: 1.05rem;
}

.testimonial-quote {
  margin: 0;
  font-size: 1rem;
  color: #2f3347;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgb(62 65 89 / 0.12);
}

.testimonial-meta p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-warm);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main);
  color: #fff;
  font-weight: 500;
  flex-shrink: 0;
}

.testimonials-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  color: #2f3347;
}

.testimonials-footer p {
  flex: 1 1 140px;
}

/* testimonials-footer p already defined above */

.shop-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.shop-field {
  display: grid;
  gap: 0.3rem;
}

.shop-field label {
  margin-bottom: 0;
}

.pagination {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-main);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
}

.pagination-btn:hover {
  border-color: var(--color-main);
  background: #f8f8fc;
}

.pagination-btn.is-active {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}

.pagination-dots {
  color: var(--color-text-warm);
  padding: 0 0.2rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  color: var(--color-main);
  background-color: #fff;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.form-feedback,
.questionnaire-feedback {
  min-height: 1.5rem;
  font-weight: 500;
  color: #2f7d32;
}

.form-feedback.success {
  color: #2f7d32;
}

.form-feedback.error {
  color: #b11f2a;
}

.auth-page .section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 540px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.auth-card form {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.auth-message {
  min-height: 1.5rem;
  font-weight: 500;
  color: #2f7d32;
}

.auth-message.is-error {
  color: #b11f2a;
}

.member-page {
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.member-page #main-content {
  flex: 1;
}

.member-page #footer-include {
  margin-top: auto;
}

.contact-form .button,
.auth-card .button {
  justify-self: start;
}

.member-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.member-page .back-link:hover {
  color: var(--color-main);
}

.member-page .empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-warm);
}

.member-page .item-meta {
  font-size: 0.92rem;
  color: var(--color-text-warm);
  margin: 0.15rem 0;
}

.questionnaire-page .hero-background::before {
  background: linear-gradient(90deg, rgb(62 65 89 / 0.72), rgb(62 65 89 / 0.28));
}

.questionnaire-hero {
  background-image: url('../Images/pexels-tima-miroshnichenko-5711176.jpg');
  background-position: center;
}

.questionnaire-hero__copy {
  max-width: 760px;
}

.questionnaire-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.questionnaire-intro__main {
  max-width: 70ch;
}

.questionnaire-intro__aside {
  display: grid;
  gap: 1rem;
}

.questionnaire-note-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.questionnaire-note-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.questionnaire-note-card--accent {
  background: linear-gradient(180deg, #fff7da 0%, #fff 100%);
  border-color: #ead79d;
}

.questionnaire-shell {
  display: grid;
  gap: 1.5rem;
}

.questionnaire-form {
  gap: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.questionnaire-form__header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.questionnaire-form__summary {
  max-width: 28ch;
  text-align: right;
}

.questionnaire-questions {
  display: grid;
  gap: 1rem;
}

.question-card {
  background: linear-gradient(180deg, #fff 0%, #fffdf5 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.question-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgb(62 65 89 / 0.08);
}

.question-card.has-error {
  border-color: #b11f2a;
  box-shadow: 0 0 0 1px rgb(177 31 42 / 0.18);
}

.question-card fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.question-card legend {
  width: 100%;
  margin-bottom: 1rem;
}

.question-card__number {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.question-card__prompt {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.25;
}

.question-card__answers {
  display: grid;
  gap: 0.75rem;
}

.answer-option {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.answer-option:hover {
  border-color: var(--color-secondary);
  background: #fcfbff;
}

.answer-option:focus-within {
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgb(132 143 217 / 0.18);
}

.answer-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  flex: 0 0 auto;
  accent-color: var(--color-main);
}

.questionnaire-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.questionnaire-result[hidden] {
  display: none;
}

.questionnaire-result__panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.questionnaire-result__score-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-warm);
}

.questionnaire-result__score {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1;
}

.questionnaire-result__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.questionnaire-result__panel[data-state='low'] {
  border-color: #d6dcc4;
  background: linear-gradient(180deg, #fff 0%, #f8fced 100%);
}

.questionnaire-result__panel[data-state='medium'] {
  border-color: #ead79d;
  background: linear-gradient(180deg, #fff 0%, #fff8e5 100%);
}

.questionnaire-result__panel[data-state='high'] {
  border-color: #d8b8be;
  background: linear-gradient(180deg, #fff 0%, #fff0f2 100%);
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
}

.legal-content {
  max-width: 75ch;
}

.site-footer {
  margin-top: 2rem;
  background: var(--color-main);
  color: #fff;
  padding-top: 2.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer .small-text {
  color: var(--color-soft);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
}

.footer-social .social-link img,
.footer-social svg {
  width: 30px;
  height: 30px;
}

.footer-social .social-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.25);
  margin-top: 1.6rem;
  padding: 1rem 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero-content {
    min-height: clamp(420px, 80vh, 680px);
    padding: 2rem 0;
  }

  .approach-image-wrap {
    max-height: 320px;
    overflow: hidden;
    order: 2;
  }

  .approach-image-wrap img {
    max-height: 320px;
    object-fit: cover;
    object-position: center top;
  }

  .testimonials-footer {
    flex-direction: column;
    gap: 0.4rem;
  }

  .testimonials-footer p {
    flex: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    justify-self: end;
  }

  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: center;
  }

  .site-nav {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: #3e4159;
    border-bottom: 1px solid rgb(255 255 255 / 0.18);
    display: none;
    padding: 1rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .header-social--desktop {
    display: none;
  }

  .nav-drawer-footer {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgb(255 255 255 / 0.18);
  }

  .header-social {
    justify-self: end;
  }

  .nav-drawer-footer .header-social {
    justify-self: center;
  }

  .hero-grid,
  .two-col,
  .approach-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }

  .gallery-thumbs {
    gap: 0.5rem;
    justify-content: center;
  }

  .thumb {
    width: 80px;
    height: 64px;
  }

  .lead {
    max-width: 100%;
  }

  h2 {
    margin-bottom: 0.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .home-test-promo {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .home-test-promo__meta {
    justify-items: start;
  }

  .home-test-promo__pill {
    min-width: 0;
  }

  .questionnaire-intro {
    grid-template-columns: 1fr;
  }

  .questionnaire-form__header {
    align-items: start;
    flex-direction: column;
  }

  .questionnaire-form__summary {
    max-width: none;
    text-align: left;
  }

  .questionnaire-form,
  .questionnaire-result__panel,
  .questionnaire-note-card,
  .question-card {
    padding: 1rem;
  }

  .question-card__prompt {
    font-size: 1.25rem;
  }

  .questionnaire-actions,
  .questionnaire-result__actions {
    flex-direction: column;
  }

  .questionnaire-actions .button,
  .questionnaire-result__actions .button {
    width: 100%;
    text-align: center;
  }

  .home-test-promo__actions .button {
    width: 100%;
    text-align: center;
  }
}

/* ── Category Carousel ──────────────────────────────────────────────────── */
.category-carousel-wrap {
  position: relative;
  padding: 0 52px;
}

.category-carousel {
  overflow: hidden;
}

.category-carousel__track {
  display: flex;
  gap: 1rem;
}

.category-carousel__slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
  display: flex;
}

/* Equal-height cards inside carousel (product categories & testimonials) */
.category-carousel__slide > * {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-carousel__slide .testimonial-quote {
  flex: 1;
}

.category-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-main);
  background: #fff;
  color: var(--color-main);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow);
}

.category-carousel__nav:hover,
.category-carousel__nav:focus-visible {
  background: var(--color-main);
  color: #fff;
  outline: none;
}

.category-carousel__nav.prev { left: 0; }
.category-carousel__nav.next { right: 0; }

@media (max-width: 700px) {
  .category-carousel-wrap {
    padding: 0 36px;
  }

  .category-carousel__slide {
    flex: 0 0 100%;
  }

  .category-carousel__nav {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .category-carousel__nav.prev { left: 0; }
  .category-carousel__nav.next { right: 0; }
}

@media (min-width: 701px) and (max-width: 960px) {
  .category-carousel__slide {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}