/* Swiss layout and readability pass — loaded last on every public page. */
:root {
  --swiss-control-height: 52px;
}

body:not(.admin-page-v2) :is(h1, h2, h3, p, li, label, a, button, span) {
  min-width: 0;
}

body:not(.admin-page-v2) :is(h1, h2, h3) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

body:not(.admin-page-v2) :is(p, li) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: pretty;
}

body:not(.admin-page-v2) :is(.gold-button, .ghost-button, .outline-button, .mini-button) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--swiss-control-height);
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

body:not(.admin-page-v2) :is(.page-hero, .hero-copy, .hero-side-card, .grid-2, .grid-3, .grid-4, .entry-grid, .products-grid) > * {
  min-width: 0;
}

.page-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 8px 13px;
  border: 1px solid rgba(240, 166, 25, 0.32);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(240, 166, 25, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 10px 32px rgba(0, 0, 0, 0.16);
  color: #f5bd55;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.page-badge::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0a619;
  box-shadow: 0 0 0 4px rgba(240, 166, 25, 0.12), 0 0 18px rgba(240, 166, 25, 0.7);
}

.page-hero > div > .lead,
.page-home .hero-lead {
  max-width: 760px;
}

.hero-flow {
  max-width: 100%;
}

.hero-flow span {
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.p-card,
.entry-card,
.info-card,
.hero-side-card > div {
  overflow-wrap: normal;
  word-break: normal;
}

.p-card > :is(.gold-button, .ghost-button, .outline-button) {
  margin-top: auto;
  align-self: stretch;
}

/* The floating cart remains available without covering the middle of page content. */
@media (min-width: 561px) {
  .floating-cart {
    top: auto !important;
    right: 22px !important;
    bottom: 22px !important;
    transform: none !important;
  }

  .floating-cart > span:not(.cart-count) {
    display: none;
  }
}

@media (min-width: 1181px) {
  /* Quiz typography: give the answers real space and never cut a word in half. */
  .page-home .quiz-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .82fr);
    gap: clamp(24px, 3vw, 46px);
    padding: clamp(28px, 3vw, 46px);
    align-items: center;
  }

  .page-home .quiz-main,
  .page-home .quiz-side {
    min-width: 0;
  }

  .page-home .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .quiz-options button {
    min-width: 0;
    min-height: 84px;
    gap: 13px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .page-home .quiz-options button .icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .page-home .quiz-options button span {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .page-home .quiz-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-content: center;
  }

  .page-home .quiz-side .compact-stage,
  .page-home .quiz-side .quiz-col {
    grid-column: 1;
  }

  .page-home .quiz-side .compact-stage {
    min-height: 255px;
  }

  .page-home .quiz-side .quiz-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
  }

  .page-home .quiz-side .quiz-col ul {
    grid-column: 1;
    gap: 12px;
    max-width: none;
    margin: 0;
  }

  .page-home .quiz-side .quiz-col li {
    gap: 11px;
    font-size: 13.5px;
  }

  .page-home .quiz-side .quiz-col li .icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .page-home .quiz-side .quiz-quality-card {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    padding: 9px 12px;
  }

  .page-home .quiz-side .quiz-quality-card img {
    width: 48px;
    height: 48px;
  }

  .page-home .hero-actions,
  .page-hero .hero-actions {
    display: grid;
    width: min(100%, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .hero-actions > *,
  .page-hero .hero-actions > * {
    width: 100%;
    min-width: 0;
    padding-inline: 16px;
  }

  .page-hero h1 {
    max-width: 16ch;
  }

  .page-hero.single h1 {
    max-width: 19ch;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .header {
    padding-inline: 24px;
    gap: 14px;
  }

  .desktop-nav {
    gap: 3px;
  }

  .desktop-nav a {
    padding-inline: 9px;
    font-size: 12px;
  }

  .brand-text small {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Keep the complete seven-vial hero composition inside the narrow desktop. */
  .page-home .hero-stage {
    translate: -9.2vw 0;
  }

  .page-home .hero-stage .stage-bottle {
    margin-inline: -3%;
  }

  .page-home .hero-stage .stage-bottle.small {
    width: auto;
    height: 240px;
  }

  .page-home .hero-actions {
    margin-top: 40px;
  }
}

@media (min-width: 561px) and (max-width: 1180px) {
  .page-home .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(42px, 6.2vw, 72px);
    line-height: .98;
  }

  .page-home .hero h1 :is(span, em) {
    display: block;
    max-width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(42px, 7vw, 68px);
    line-height: 0.98;
  }

  .page-hero .hero-actions {
    display: grid;
    width: min(100%, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero .hero-actions > * {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --swiss-control-height: 48px;
  }

  .page-badge,
  .hero .page-badge {
    display: inline-flex;
    order: 0;
    margin: 0 0 10px;
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .page-home .hero {
    padding-top: 16px;
  }

  .page-home .hero-copy h1 {
    margin-bottom: 9px;
    font-size: clamp(27px, 9vw, 34px);
    line-height: 0.98;
  }

  .page-home .hero-lead {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .page-home .hero-actions {
    order: 3;
    display: grid;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-home .hero-actions > * {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding: 8px 6px;
    font-size: 10px;
    letter-spacing: 0.01em;
  }

  .page-home .hero-actions .ghost-button {
    display: inline-flex;
  }

  .page-home .hero-showcase {
    order: 4;
    min-height: clamp(285px, 80vw, 325px);
  }

  .page-home .hero-benefits {
    order: 5;
  }

  .page-home .hero-person {
    height: clamp(238px, 69vw, 285px);
  }

  .page-home .hero-stage {
    bottom: 14px;
  }

  .page-hero {
    gap: 24px;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 11.5vw, 48px);
    line-height: 1;
  }

  .page-hero .lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-hero .hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-hero .hero-actions > * {
    width: 100%;
  }

  .hero-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
  }

  .hero-flow span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
  }

  .hero-flow i:nth-of-type(2),
  .hero-flow span:nth-of-type(n + 3) {
    margin-top: 2px;
  }

  body.page-home .header .header-tools .cart-header-button,
  body.inner-page .header .header-tools .cart-header-button {
    display: inline-flex !important;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    gap: 2px;
    padding: 0 5px;
    border-radius: 12px;
  }

  .header-tools .cart-header-button .cta-label {
    display: none;
  }

  .header-tools .cart-header-button .cart-icon {
    width: 21px;
    height: 21px;
  }

  .header-tools .cart-header-button .cart-count {
    min-width: 15px;
    padding: 0;
    font-size: 9px;
  }

  .floating-cart {
    display: none !important;
  }

  .page-home .hero-stage .stage-bottle {
    margin-inline: -4.3%;
  }

  /* Four goals in one row forced Russian words to split. Two columns stay readable. */
  .page-home .mquiz-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .mquiz-count-4 button {
    flex-direction: row;
    min-height: 58px;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .page-home .mquiz-options button {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .page-home .mquiz-options button span,
  .page-home .mquiz-head strong,
  .page-home .mquiz-feats span {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 370px) {
  .page-home .hero-actions > * {
    min-height: 44px;
    font-size: 9.5px;
  }

  .page-home .hero-showcase {
    min-height: 280px;
  }
}

/* Two columns become visually cramped just above the old 820px breakpoint:
   each horizontal card leaves too little room for the title, price and cart.
   Keep one generous column through compact-tablet widths. */
@media (min-width: 821px) and (max-width: 1100px) {
  .page-home .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 561px) and (max-width: 1180px) {
  @container product-card-body (max-width: 280px) {
    .page-home .product-card h3 {
      font-size: min(34px, 12.5cqi);
    }
  }
}

/* Homepage desktop hero — one composition contract, loaded after the legacy
   desktop layers. Copy owns its column; people frame the product instead of
   competing with it; the seven-vial line sits lower and has visible rhythm. */
@media (min-width: 1181px) {
  .page-home .hero {
    width: min(1840px, calc(100% - 48px));
    min-height: clamp(760px, calc(100svh - 76px), 840px);
    grid-template-columns: minmax(480px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(20px, 2vw, 36px);
    padding: 28px 0;
    overflow: clip;
  }

  .page-home .hero-copy {
    z-index: 10;
    width: 100%;
    padding: 0 clamp(10px, 1.2vw, 20px) 0 clamp(24px, 2.6vw, 48px);
  }

  .page-home .hero .page-badge {
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 12px;
    font-size: clamp(9.5px, .68vw, 11px);
    white-space: nowrap;
  }

  .page-home .hero h1 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(40px, 3vw, 58px);
    line-height: .96;
    letter-spacing: -.025em;
  }

  .page-home .hero h1 > * {
    width: 100%;
    white-space: nowrap;
  }

  .page-home .hero h1 em {
    margin-top: 7px;
  }

  .page-home .hero-lead {
    max-width: 520px;
    margin-bottom: 22px;
    font-size: clamp(16px, 1.05vw, 19px);
    line-height: 1.52;
  }

  .page-home .hero-benefits {
    max-width: 520px;
    gap: 12px;
    margin-bottom: 24px;
  }

  .page-home .hero-benefits li {
    gap: 14px;
    font-size: clamp(14px, .95vw, 16px);
    line-height: 1.32;
  }

  .page-home .hero-actions {
    width: min(100%, 500px);
    margin-top: 28px;
    gap: 12px;
  }

  .page-home .hero-showcase {
    align-self: stretch;
    min-height: clamp(700px, calc(100svh - 130px), 780px);
    overflow: visible;
  }

  .page-home .hero-girl {
    left: -3%;
    bottom: 32px;
    height: clamp(640px, 45vw, 780px);
  }

  .page-home .hero-man {
    right: -8%;
    bottom: 22px;
    height: clamp(660px, 46vw, 800px);
  }

  .page-home .quality-seal {
    left: 46%;
    top: 7%;
    width: clamp(102px, 7vw, 124px);
    height: clamp(102px, 7vw, 124px);
  }

  .page-home .hero-stage {
    align-self: end;
    min-height: 650px;
    padding: 0 3%;
    transform: none;
    translate: 0 0;
  }

  .page-home .hero-stage .stage-bottle {
    bottom: 116px;
    margin-inline: -.55%;
  }

  .page-home .hero-stage .stage-bottle.main {
    width: auto;
    height: clamp(372px, 24vw, 430px);
  }

  .page-home .hero-stage .stage-bottle.mid {
    width: auto;
    height: clamp(270px, 17vw, 310px);
  }

  .page-home .hero-stage .stage-bottle.small {
    width: auto;
    height: clamp(222px, 14.3vw, 266px);
  }

  .page-home .hero-stage::before {
    bottom: 96px;
  }

  .page-home .hero-stage::after {
    bottom: 26px;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .page-home .hero {
    grid-template-columns: minmax(480px, .78fr) minmax(0, 1.22fr);
    gap: 16px;
  }

  .page-home .hero-copy {
    padding-left: clamp(24px, 2.2vw, 32px);
    padding-right: 8px;
  }

  .page-home .hero h1 {
    font-size: clamp(40px, 3.15vw, 44px);
  }

  .page-home .hero-girl {
    left: 0;
    height: 610px;
  }

  .page-home .hero-man {
    right: -13%;
    height: 630px;
  }

  .page-home .hero-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 0;
  }

  .page-home .hero-stage .stage-bottle {
    margin-inline: -1.15%;
  }

  .page-home .hero-stage .stage-bottle.main {
    height: 330px;
  }

  .page-home .hero-stage .stage-bottle.mid {
    height: 238px;
  }

  .page-home .hero-stage .stage-bottle.small {
    height: 198px;
  }
}

@media (min-width: 1181px) and (max-width: 1240px) {
  .page-home .hero-stage .stage-bottle {
    margin-inline: -1.35%;
  }

  .page-home .hero-stage .stage-bottle.main {
    height: 320px;
  }

  .page-home .hero-stage .stage-bottle.mid {
    height: 230px;
  }

  .page-home .hero-stage .stage-bottle.small {
    height: 190px;
  }
}

/* Homepage refinement — one black/gold system for decor and controls.
   Kept in the final cascade layer so legacy responsive files no longer fight
   over the same visible components. */
body.page-home {
  --home-bg: #020201;
  --home-panel: rgba(7, 6, 4, .94);
  --home-gold-hi: #f8cf68;
  --home-gold: #d89b22;
  --home-gold-lo: #99600c;
  --home-gold-text: #f2c45c;
  --home-line: rgba(226, 168, 52, .34);
  --home-line-hover: rgba(246, 198, 93, .62);
  --home-focus: #ffe39a;
  --home-control-height: 52px;
  --home-control-radius: 10px;
  background:
    radial-gradient(circle at 78% 8%, rgba(216, 155, 34, .11), transparent 28rem),
    radial-gradient(circle at 16% 76%, rgba(134, 84, 14, .06), transparent 24rem),
    var(--home-bg);
}

body.page-home .site-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--home-bg);
}

body.page-home .site-shell::before {
  opacity: .1;
}

body.page-home .site-shell::after {
  background:
    radial-gradient(circle at 86% 18%, rgba(216, 154, 30, .1), transparent 25rem),
    radial-gradient(circle at 16% 82%, rgba(128, 78, 10, .055), transparent 21rem),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 58%, #000 100%);
}

body.page-home main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.page-home :is(.hero, .section, .final-cta, .footer) {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

body.page-home .hero-showcase::before {
  background:
    radial-gradient(circle at 55% 54%, rgba(216, 154, 30, .2), transparent 34%),
    linear-gradient(120deg, transparent 20%, rgba(216, 154, 30, .11) 20.5%, transparent 21% 52%, rgba(216, 154, 30, .07) 52.5%, transparent 53%),
    radial-gradient(circle at 76% 24%, rgba(255, 196, 58, .34) 0 2px, transparent 3px),
    radial-gradient(circle at 43% 23%, rgba(255, 196, 58, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 72%, rgba(255, 196, 58, .18) 0 1px, transparent 3px);
  opacity: .72;
}

/* Decorative artwork: raster edges dissolve into black and never pulse over copy. */
body.page-home .fx {
  animation: none;
  opacity: .22;
  filter: brightness(1.08) saturate(.92);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 45%, rgba(0, 0, 0, .82) 66%, transparent 93%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 45%, rgba(0, 0, 0, .82) 66%, transparent 93%);
}

body.page-home .fx-hero-dna {
  top: 4%;
  right: 1%;
  width: clamp(112px, 9vw, 160px);
  opacity: .28;
}

body.page-home :is(.fx-hero-molecules, .fx-hero-hex) {
  display: none;
}

body.page-home .fx-hero-stage-particles {
  right: 10%;
  bottom: 5%;
  width: min(20vw, 320px);
  opacity: .24;
}

body.page-home .fx-paths-molecules {
  display: block;
  left: -18px;
  top: 4px;
  width: min(11vw, 138px);
  opacity: .16;
}

body.page-home .fx-paths-hex {
  display: none;
}

body.page-home .fx-catalog-molecules {
  left: -12px;
  top: -24px;
  width: min(11vw, 150px);
  opacity: .18;
}

body.page-home .fx-catalog-hex {
  right: -8px;
  top: -34px;
  width: min(13vw, 176px);
  opacity: .3;
}

body.page-home .catalog .section-head::after {
  display: none !important;
  content: none !important;
}

body.page-home .fx-science-dna {
  right: -8px;
  top: 96px;
  width: min(8vw, 118px);
  opacity: .24;
}

body.page-home .fx-science-molecules {
  left: -12px;
  top: -14px;
  width: min(10vw, 146px);
  opacity: .16;
}

body.page-home .fx-quiz-molecules {
  right: -10px;
  top: -18px;
  width: min(10vw, 144px);
  opacity: .18;
}

body.page-home .fx-quiz-particles {
  left: 2%;
  bottom: -16px;
  width: min(20vw, 290px);
  opacity: .16;
}

body.page-home :is(.fx-videos-molecules, .fx-videos-particles) {
  display: none;
}

body.page-home .fx-videos-dna {
  right: -6px;
  top: -16px;
  width: min(9vw, 124px);
  opacity: .24;
}

body.page-home .fx-consult-molecules {
  right: -12px;
  top: -14px;
  width: min(10vw, 138px);
  opacity: .17;
}

body.page-home .fx-cta-molecules {
  left: -8px;
  width: min(8vw, 106px);
  opacity: .16;
}

body.page-home .fx-cta-dna {
  right: -4px;
  width: min(6vw, 84px);
  opacity: .26;
}

body.page-home .fx-footer-hex {
  right: -10px;
  bottom: -12px;
  width: min(10vw, 146px);
  opacity: .15;
}

/* One button language: restrained gold primary, quiet black secondary. */
body.page-home :is(.gold-button, .ghost-button, .outline-button) {
  min-width: 0 !important;
  min-height: var(--home-control-height);
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--home-control-radius);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.15;
  white-space: normal;
  transform: none;
  transition: transform .18s cubic-bezier(.2, .75, .3, 1), border-color .18s ease, box-shadow .18s ease, color .18s ease, background-color .18s ease;
}

body.page-home .gold-button {
  border: 1px solid rgba(255, 224, 119, .78);
  color: #160e03;
  background: linear-gradient(180deg, var(--home-gold-hi) 0%, #dda52f 50%, var(--home-gold-lo) 100%);
  box-shadow:
    inset 0 1px rgba(255, 244, 186, .5),
    inset 0 -1px rgba(89, 48, 2, .52),
    0 8px 20px rgba(0, 0, 0, .48),
    0 0 14px rgba(216, 155, 34, .16);
}

body.page-home :is(.ghost-button, .outline-button) {
  border: 1px solid var(--home-line);
  color: var(--home-gold-text);
  background: rgba(7, 5, 2, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 7px 18px rgba(0, 0, 0, .3);
}

body.page-home :is(.gold-button, .ghost-button, .outline-button)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 8%;
  bottom: 8%;
  left: 0;
  width: 22%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, .06) 34%, rgba(255, 255, 255, .54) 50%, rgba(255, 255, 255, .08) 66%, transparent 82%);
  transform: translate3d(-180%, 0, 0) skewX(-16deg);
  transition: none;
}

body.page-home :is(.gold-button, .ghost-button, .outline-button)::after {
  display: none !important;
  content: none !important;
}

body.page-home :is(.gold-button, .ghost-button, .outline-button) > span[aria-hidden] {
  display: inline-grid !important;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
  place-items: center;
  transform: none;
}

body.page-home :is(.gold-button, .ghost-button, .outline-button) > span[aria-hidden]::before {
  width: 12px;
  height: 12px;
}

body.page-home .product-card .outline-button {
  width: 100%;
  min-height: 48px;
  gap: 6px;
  padding-inline: 14px;
  font-size: 11.5px;
}

body.page-home .product-add-button {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px !important;
  min-height: 52px;
  padding: 0;
  border-radius: var(--home-control-radius);
}

body.page-home .product-add-button .product-add-label {
  display: none;
}

body.page-home .header .cart-header-button::before {
  display: none;
}

body.page-home :is(a, button, select, input, textarea):focus-visible {
  outline: 2px solid var(--home-focus) !important;
  outline-offset: 3px !important;
}

body.page-home .language-switcher:focus-within {
  border-color: var(--home-focus);
  box-shadow: 0 0 0 3px rgba(255, 227, 154, .12);
}

body.page-home :is(.gold-button, .ghost-button, .outline-button):active {
  transform: scale(.98);
}

body.page-home :is(.gold-button, .ghost-button, .outline-button):disabled,
body.page-home :is(.gold-button, .ghost-button, .outline-button)[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

body.page-home :is(.language-switcher, .header .cart-header-button, .burger, .round-button) {
  min-width: 44px;
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home .gold-button:hover {
    border-color: rgba(255, 235, 158, .92);
    background: linear-gradient(180deg, #ffdc7d 0%, #e2aa33 50%, #a96c0e 100%);
    box-shadow:
      inset 0 1px rgba(255, 248, 205, .62),
      inset 0 -1px rgba(89, 48, 2, .46),
      0 10px 24px rgba(0, 0, 0, .5),
      0 0 17px rgba(216, 155, 34, .22);
    transform: translateY(-1px);
  }

  body.page-home :is(.ghost-button, .outline-button):hover {
    border-color: var(--home-line-hover);
    color: #ffd978;
    background: rgba(19, 13, 5, .88);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 9px 20px rgba(0, 0, 0, .34);
    transform: translateY(-1px);
  }
}

@media (min-width: 1181px) {
  body.page-home .header .header-tools .cart-header-button {
    display: inline-flex !important;
    width: 44px;
    min-width: 44px !important;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }

  body.page-home .header .header-tools .cart-header-button .cta-label {
    display: none;
  }
}

/* Tablet: copy and CTA precede a bounded product scene; cards keep one row. */
@media (min-width: 561px) and (max-width: 1180px) {
  body.page-home .hero {
    display: grid !important;
    width: min(1080px, calc(100% - 48px));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-inline: auto;
    padding: 38px 28px 30px;
    overflow: clip;
  }

  body.page-home .hero-copy {
    display: block !important;
    position: relative;
    z-index: 3;
    order: 1;
    width: 100%;
    max-width: 720px;
    padding: 0;
    text-align: left;
  }

  body.page-home .hero h1 {
    width: 100%;
    max-width: 12ch;
    margin-bottom: 18px;
    font-size: clamp(46px, 7.4vw, 64px);
    line-height: .96;
  }

  body.page-home .hero-lead {
    max-width: 590px;
    margin-bottom: 0;
    font-size: clamp(18px, 2.55vw, 21px);
    line-height: 1.46;
  }

  body.page-home .hero-benefits {
    display: none;
  }

  body.page-home .hero-actions {
    display: grid;
    width: min(100%, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 0;
  }

  body.page-home .hero-actions > * {
    width: 100%;
    min-height: 52px;
    padding-inline: 16px;
    font-size: 13px;
  }

  body.page-home .hero-actions .ghost-button {
    display: inline-flex !important;
  }

  body.page-home .fx-hero-dna {
    display: none;
  }

  body.page-home .hero-showcase {
    display: grid;
    position: relative;
    order: 2;
    width: 100%;
    max-width: 100%;
    height: clamp(430px, 58vw, 520px);
    min-height: 0 !important;
    margin: 0 !important;
    overflow: clip !important;
    background:
      url("../assets/decor/dna-tall.webp") right 5% top 7% / 118px auto no-repeat,
      radial-gradient(circle at 52% 72%, rgba(216, 155, 34, .18), transparent 36%),
      #020201;
    background-blend-mode: screen, normal, normal;
  }

  body.page-home .hero-person {
    height: clamp(350px, 52vw, 440px);
  }

  body.page-home .hero-girl {
    left: 2%;
    bottom: 10px;
  }

  body.page-home .hero-man {
    right: 1%;
    bottom: 10px;
  }

  body.page-home .quality-seal {
    left: 55%;
    top: 6%;
    width: 64px;
    height: 64px;
  }

  body.page-home .hero-stage {
    width: min(100%, 760px);
    max-width: 100%;
    min-height: clamp(320px, 43vw, 390px);
    margin-inline: auto;
    padding-inline: 4%;
    bottom: 0;
    translate: none;
  }

  body.page-home .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-home .product-card,
  body.page-home .catalog-grid .product-card:last-child {
    grid-template-columns: minmax(180px, .4fr) minmax(0, .6fr);
    grid-template-rows: minmax(310px, 1fr);
    min-height: 310px;
    align-items: stretch;
  }

  body.page-home .product-image {
    height: auto;
    min-height: 310px;
  }

  body.page-home .product-image img {
    width: auto;
    max-height: 286px;
  }

  body.page-home .product-card-body {
    min-height: 310px;
    align-content: center;
  }

  body.page-home .fx-catalog-molecules {
    width: 112px;
    opacity: .15;
  }

  body.page-home .fx-catalog-hex {
    width: 142px;
    opacity: .27;
  }

  body.page-home .header .header-tools .cart-header-button {
    display: inline-flex !important;
    width: 44px;
    min-width: 44px !important;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }

  body.page-home .header .header-tools .cart-header-button .cta-label {
    display: none;
  }
}

/* Phone: full-width controls, restrained section art, no clipped 320px layout. */
@media (max-width: 560px) {
  body.page-home {
    --home-control-height: 48px;
  }

  body.page-home main,
  body.page-home .site-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  body.page-home :is(.hero, .section, .final-cta, .footer) {
    min-width: 0;
    overflow: clip;
  }

  body.page-home .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-home .hero-actions > * {
    min-width: 0 !important;
    min-height: 50px;
    padding-inline: 9px;
    font-size: 12.5px;
    letter-spacing: .02em;
  }

  body.page-home .fx-hero-dna {
    display: none;
  }

  body.page-home .hero-showcase {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin-inline: calc(50% - 50vw) !important;
    overflow: clip !important;
    background:
      url("../assets/decor/dna-tall.webp") right 7px top 12px / 116px auto no-repeat,
      radial-gradient(circle at 52% 72%, rgba(216, 155, 34, .17), transparent 38%),
      #020201;
    background-blend-mode: screen, normal, normal;
  }

  body.page-home .fx-hero-stage-particles {
    right: 0;
    top: 49%;
    bottom: auto;
    width: 58%;
    opacity: .18;
  }

  body.page-home .fx-paths-molecules {
    left: -18px;
    top: 6px;
    width: 108px;
    opacity: .2;
  }

  body.page-home .fx-catalog-molecules {
    display: block;
    left: -16px;
    top: 10px;
    width: 96px;
    opacity: .2;
  }

  body.page-home .fx-catalog-hex {
    right: -8px;
    top: 48px;
    width: 142px;
    opacity: .38;
  }

  body.page-home .catalog .section-head {
    min-height: 158px;
    padding-right: 104px;
  }

  body.page-home .catalog .section-head :is(h2, p) {
    position: relative;
    z-index: 2;
  }

  body.page-home .fx-science-dna {
    display: none;
  }

  body.page-home .fx-science-molecules {
    left: -18px;
    top: 2px;
    width: 108px;
    opacity: .19;
  }

  body.page-home .fx-quiz-molecules {
    right: -16px;
    top: 4px;
    width: 112px;
    opacity: .22;
  }

  body.page-home :is(.fx-quiz-particles, .fx-videos-molecules, .fx-videos-particles) {
    display: none;
  }

  body.page-home .fx-videos-dna {
    right: -10px;
    top: 4px;
    width: 104px;
    opacity: .24;
  }

  body.page-home .fx-consult-molecules {
    right: -14px;
    top: 6px;
    width: 102px;
    opacity: .18;
  }

  body.page-home .fx-cta-molecules {
    display: none;
  }

  body.page-home .fx-cta-dna {
    right: -8px;
    width: 82px;
    opacity: .24;
  }

  body.page-home .fx-footer-hex {
    width: 112px;
    opacity: .13;
  }

  body.page-home :is(.gold-button, .ghost-button, .outline-button) {
    min-height: var(--home-control-height);
    gap: 6px;
    padding-inline: 14px;
    border-radius: 10px;
    font-size: 12px;
  }

  body.page-home .product-add-button {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px !important;
    min-height: 44px;
  }

  body.page-home .product-card .outline-button {
    min-height: 44px;
    gap: 5px;
    padding-inline: 10px;
    font-size: 10.5px;
  }

  body.page-home :is(.info-filters button, .video-filters button, .quiz-options button, .round-button) {
    min-width: 44px;
    min-height: 44px;
  }

  body.page-home .header .header-tools {
    gap: 8px;
  }

  body.page-home .header .header-tools .language-switcher,
  body.page-home .header .header-tools .cart-header-button,
  body.page-home .header .header-tools .burger {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 10px;
  }
}

@media (max-width: 370px) {
  body.page-home .header .header-tools {
    gap: 5px;
  }

  body.page-home .header .header-tools .language-switcher,
  body.page-home .header .header-tools .cart-header-button,
  body.page-home .header .header-tools .burger {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
  }

  body.page-home .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-home .hero-actions > * {
    min-height: 48px;
    font-size: 14px;
  }

  body.page-home .fx-catalog-molecules {
    display: none;
  }

  body.page-home .fx-catalog-hex {
    top: 54px;
    width: 118px;
    opacity: .31;
  }

  body.page-home .catalog .section-head {
    min-height: 166px;
    padding-right: 78px;
  }

  body.page-home .catalog-grid {
    gap: 10px;
  }

  body.page-home .product-card .outline-button {
    gap: 4px;
    padding-inline: 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home :is(.fx, .stage-bottle, .quality-seal, .product-image img),
  body.page-home :is(.gold-button, .ghost-button, .outline-button),
  body.page-home :is(.gold-button, .ghost-button, .outline-button)::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Homepage editorial actions keep a full touch target without becoming heavy buttons. */
body.page-home .product-info-grid .info-card > button {
  min-height: 44px;
  margin: -6px 0 -8px;
  padding: 8px 0;
  justify-content: flex-start;
}

body.page-home .header .cart-header-button {
  border-color: rgba(218, 155, 34, .52);
  background: rgba(8, 7, 4, .88);
  box-shadow: inset 0 0 18px rgba(218, 155, 34, .035);
  color: var(--home-gold-bright);
}

body.page-home .header .cart-header-button:hover {
  border-color: rgba(246, 196, 83, .78);
  background: rgba(218, 155, 34, .09);
  box-shadow: 0 0 18px rgba(218, 155, 34, .11);
}

@media (max-width: 560px) {
  body.page-home .hero-actions > * {
    font-size: 14px;
  }
}
