/* ============================================================
   Dr. Seth Healing — the home template.
   Sections unique to the front page. Shared chrome lives in
   02-base.css; every value here resolves through 01-tokens.css.
   ============================================================ */

/* ---------- shared type ---------- */
.sec-head{text-align:center}
.sec-head h2{
  font-family:var(--serif);font-weight:500;color:var(--green);
  font-size:52.9px;line-height:1.06;letter-spacing:.015em;text-transform:uppercase;margin:0;
}
/* ---------- hero ---------- */
.hero{position:relative;height:922px;overflow:hidden;isolation:isolate}
.hero__picture{display:contents}
.hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 50%;z-index:-2}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,rgba(38,22,10,.46) 0%,rgba(45,28,14,.28) 32%,rgba(50,32,16,.05) 60%,rgba(50,32,16,0) 78%);
}
.hero__inner{position:relative;padding-top:107px;z-index:2}
.hero h1{
  font-family:var(--serif);font-weight:400;color:var(--lamp);
  max-width:15ch;font-size:clamp(48px,4.5vw,64px);line-height:1.04;letter-spacing:.004em;margin:0;
  text-wrap:balance;
  text-shadow:0 2px 30px rgba(30,16,6,.4);
}
.hero p{
  max-width:638px;margin:16px 0 0;font-size:17.6px;line-height:20.3px;
  color:var(--lamp-hero);text-shadow:0 1px 16px rgba(30,16,6,.55);
}
.hero p + p{margin-top:18px}
.hero .btn{margin-top:34px}
/* ---------- trust strip ---------- */
/* The card used to be pulled 138px up over the hero photograph. It now sits
   below it as its own section, so the six pillars read as the page's first
   statement rather than an object stapled to the picture. */
.trust{margin-top:72px}
/* Four across, one row. Each column spans a 3-row subgrid so icon, title
   and body sit on the same lines across all four, whatever the translated
   string length. Four columns give each ~300px, so the copy breathes. */
.trust__card{
  background:var(--card);border-radius:var(--r-xl);
  display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,auto);
  align-content:start;padding:44px 8px 48px;
  box-shadow:var(--sh-float);
}
.trust__col{
  display:grid;grid-row:span 3;grid-template-rows:subgrid;
  justify-items:center;text-align:center;padding:0 30px;position:relative;
}
.trust__col + .trust__col::before{
  content:"";position:absolute;left:0;top:26px;bottom:4px;width:1.5px;background:var(--hairline);
}
.trust__col img{width:auto;height:110px;object-fit:contain;align-self:end}
.trust__col h3{
  font-family:var(--serif);font-weight:500;color:var(--green);
  font-size:23.3px;line-height:1.1;margin:14px 0 0;letter-spacing:.005em;
  align-self:start;text-wrap:balance;
}
.trust__col p{
  margin:11px 0 0;font-size:18.1px;line-height:22px;color:var(--ink);
  align-self:start;max-width:28ch;
}
/* ---------- programs ---------- */
.programs{padding:89px 0 99px}
.programs .rail{
  margin-top:25px;overflow:hidden;cursor:grab;
  touch-action:pan-y;-webkit-user-select:none;user-select:none;
}
.programs .rail.is-dragging{cursor:grabbing}
.programs .rail.is-dragging .rail__track{transition:none}
.programs .rail:focus-visible{outline:2px solid var(--focus-ring);outline-offset:6px;border-radius:var(--r-md)}
.programs .rail img{pointer-events:none}  /* the drag must not become an image drag */
.rail__track{display:flex;gap:20px;transition:transform .6s cubic-bezier(.4,0,.2,1);will-change:transform}
.prog{
  position:relative;flex:0 0 286px;height:407px;border-radius:10px;overflow:hidden;
  box-shadow:0 18px 36px -24px rgba(50,30,12,.6);
}
/* Card images come from post heroes now, so the scrim that used to be
   baked into the comp's exports has to be drawn here. */
.prog::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(20,13,6,0) 34%,rgba(20,13,6,.55) 68%,rgba(20,13,6,.88) 100%);
}
.prog h3{z-index:2}

.prog picture{display:block;width:100%;height:100%}
.prog img{width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,0,.2,1)}
.prog:hover img{transform:scale(1.05)}
/* The card is a fixed 286px at every width, so the title's measure is fixed
   too — and at 29.7px the longest words in the catalogue did not fit it:
   АЮРВЕДИЧЕСКАЯ rendered at 271px and DLOUHOVĚKOSTI at 249px against a 239px
   box. `overflow-wrap:anywhere` then cut them mid-word, stranding "АЯ" and
   "I" on a line of their own. Tighter insets widen the box to 248px and 26px
   brings the worst word to 238px — 10px of slack, enough to survive font
   loading and rounding. Measured, not guessed; if a longer title is ever
   added, re-measure rather than trusting the margin.

   Word breaking is then switched off outright, the same way .about-hero h1
   opts out of the global overflow-wrap:break-word in 09-about.css. Sizing
   alone was not enough: WEBKIT still split MANAGEMENT — a word that needs
   183px of the 248px box — because `text-wrap:balance` is allowed to break
   inside a word while break-word is in force, and Blink's balancer does not.
   With breaking forbidden, no engine has that option. Every title in all
   three languages fits; a longer one must be re-measured, not left to the
   line breaker. */
.prog h3{
  position:absolute;left:20px;right:18px;bottom:39px;margin:0;
  font-family:var(--serif);font-weight:400;color:var(--lamp-warm);
  font-size:26px;line-height:32.5px;text-transform:uppercase;letter-spacing:.012em;
  overflow-wrap:normal;word-break:normal;hyphens:manual;text-wrap:balance;
}
/* Card width is deliberately fixed, while the longest unbroken word differs
   sharply by language. These two language steps keep every CMS title inside
   the 248px measure without breaking words; the remaining languages retain
   the original 26px display size. */
html:lang(ru) .prog h3{font-size:24px;line-height:1.22;letter-spacing:.008em}
html:lang(de) .prog h3{font-size:20.7px;line-height:1.15;letter-spacing:0}
.programs__foot{display:flex;align-items:center;justify-content:space-between;margin-top:35px}
.arrows{display:flex;gap:9px}
.arrow{
  width:43px;height:43px;border-radius:50%;border:1px solid var(--gold-line);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease,opacity .25s ease;
}
.arrow svg{width:15px;height:15px;stroke:var(--arrow-stroke);stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.arrow:hover{background:rgba(199,146,72,.14)}
.arrow[disabled]{opacity:.32;cursor:default}
.arrow[disabled]:hover{background:transparent}
/* ---------- tan band 1 ---------- */
.band{position:relative;background:var(--tan);overflow:hidden}
.band1{height:490px;padding-top:74px}
.band1 .watermark{position:absolute;left:6.2%;top:3px;width:368px;height:auto;opacity:.6;pointer-events:none}
.band1 .wrap{position:relative;z-index:1}
/* Three figures, so the row is either three across or one down — never the
   two-plus-orphan that `flex-wrap` produced on phones. Between those two
   states the items shrink and their labels wrap, which the 3-row grid below
   keeps aligned: figure, label and label's second line sit on the same
   baselines across all three. */
.stats{
  display:grid;grid-template-columns:repeat(3,auto);grid-template-rows:repeat(2,auto);
  justify-content:center;align-items:start;gap:0 126px;margin-top:59px;padding-right:60px;
}
.stats--2{grid-template-columns:repeat(2,auto);padding-right:0}
.stat{display:grid;grid-row:span 2;grid-template-rows:subgrid;text-align:center;min-width:0}
.stat b{display:block;font-weight:300;font-size:49.5px;line-height:1;color:var(--gold-stat)}
.stat span{display:block;margin-top:15px;font-size:20.9px;line-height:1.2;color:var(--ink)}
/* ---------- treatments ---------- */
.treatments{padding:89px 0 93px}
.treat-list{max-width:1104px;margin:23px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.treat{
  --thumb-h:210px;
  position:relative;display:grid;grid-template-rows:var(--thumb-h) auto auto;min-height:0;padding:0;
  overflow:hidden;background:var(--card);border-radius:var(--r-md);
  transition:box-shadow .3s ease,transform .3s ease;
}
.treat:hover{box-shadow:0 16px 34px -24px rgba(60,38,16,.55);transform:translateY(-1px)}
/* The height is the row's own value, never `100%`. A percentage height on a
   grid item resolves against the grid AREA in Blink but against the grid
   CONTAINER in WebKit, so on iOS the photograph rendered at the full card
   height, overflowed its row, and painted underneath the title and the
   "Узнать больше" link — the overlap reported on phones. A definite length
   resolves the same way in every engine. */
.treat__thumb{
  grid-row:1;width:100%;height:var(--thumb-h);min-height:0;
  border-radius:0;object-fit:cover;opacity:1;transition:transform var(--t-settle);
}
.treat:hover .treat__thumb{transform:scale(1.05)}
/* Explicit rows keep the title and action aligned across every card. */
.treat__body{grid-row:2;padding:20px 20px 6px}
.treat__more{grid-row:3}
.treat__body h3{
  font-family:var(--serif);font-weight:500;color:var(--green);
  font-size:30.4px;line-height:1.05;margin:0;letter-spacing:.004em;
}
.treat__body p{display:none}
.treat__more{display:inline-flex;align-items:center;gap:9px;padding:8px 20px 20px;color:var(--brass-ink);font-size:var(--fs-label)}
/* A drawn arrow with a shaft and a head, not the skewed two-border mark that
   used to sit here — that read as a stray slash rather than "go". Same glyph
   vocabulary as the carousel arrows: 24 viewBox, 1.4 stroke, round caps. */
.treat__more svg{
  width:18px;height:18px;flex:0 0 auto;
  fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
  transition:transform var(--t-state);
}
/* Part of the card's existing hover, not a second effect of its own. */
.treat:hover .treat__more svg{transform:translateX(4px)}
@media (prefers-reduced-motion:reduce){
  .treat__more svg{transition:none}
  .treat:hover .treat__more svg{transform:none}
}
/* ---------- guide band ---------- */
.band2{min-height:758px;padding:63px 0 90px}
.band2 .mandala{position:absolute;left:50%;top:0;width:750px;height:auto;transform:translateX(-50%);pointer-events:none}
.band2 .wrap{position:relative;z-index:1}
.band2 .sec-head h2{
  white-space:normal;text-wrap:balance;
  max-width:min(50ch,100%);margin-inline:auto;
  line-height:1.02;letter-spacing:.012em;
}
.guide{display:grid;grid-template-columns:655px minmax(0,1fr);margin-top:34px}
.guide > *{min-width:0}
.guide__art{display:grid;place-items:center;align-self:center;padding:0}
.dosha-balance-art{display:block;width:min(100%,650px);height:auto;object-fit:contain}
.guide__lead{margin:0;font-size:31.4px;line-height:37.1px;color:var(--ink);max-width:600px}
.guide__take{margin:51px 0 0;font-size:20.7px;line-height:24.8px;font-weight:700;color:var(--ink)}
.guide__list{margin:20px 0 0;padding-left:23px;list-style:disc}
.guide__list li{font-size:18.4px;line-height:24.8px;color:var(--ink)}
.guide__list li::marker{font-size:.85em}
.guide__note{margin:44px 0 0;font-size:21px;line-height:24.8px;color:var(--ink);max-width:580px}
.guide .btn{margin-top:47px}
/* ---------- consultation choice ---------- */
.consult-choice{
  position:relative;isolation:isolate;overflow:hidden;padding:104px 0 112px;background:var(--brown-deep);
}
.treat picture{display:block;grid-row:1;width:100%;height:var(--thumb-h);overflow:hidden}
.consult-choice::before{
  content:"";position:absolute;inset:0 0 auto;height:930px;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,
    color-mix(in srgb,var(--brown-deep) 66%,transparent) 0%,
    color-mix(in srgb,var(--brown-deep) 34%,transparent) 25%,
    color-mix(in srgb,var(--brown-deep) 8%,transparent) 50%,
    color-mix(in srgb,var(--brown-deep) 72%,transparent) 74%,
    var(--brown-deep) 100%);
}
.consult-choice__picture{position:absolute;inset:0 0 auto;height:930px;z-index:0;display:block}
.consult-choice__photo{width:100%;height:100%;object-fit:cover;object-position:80% 45%}
@media (min-width:861px){
  /* Hands meet at 61% of the source width. Create enough horizontal crop
     to place that focal point at the centre, including wide desktop screens. */
  .consult-choice__picture{overflow:hidden}
  .consult-choice__photo{
    position:relative;left:50%;width:max(129%,1395px);max-width:none;
    transform:translateX(-61%);object-position:center 45%;
  }
}
.consult-choice__inner{position:relative;z-index:2}
.consult-choice__header{text-align:center}
.consult-choice__header h2{
  max-width:none;margin:0 auto;color:var(--lamp-warm);
  font:500 clamp(42.8px,4.5vw,60.8px)/1.04 var(--serif);white-space:nowrap;
}
.consult-choice__header .divider{margin-top:14px}
.consult-choice__header p{
  max-width:900px;margin:430px auto 0;color:var(--lamp-dim);
  font-size:var(--fs-lead);line-height:1.55;text-wrap:pretty;
  text-shadow:0 1px 18px color-mix(in srgb,var(--night) 75%,transparent);
}
.consult-choice__cards{
  max-width:1104px;margin:56px auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;
}
.consult-card{
  position:relative;display:flex;min-width:0;min-height:660px;flex-direction:column;
  padding:42px 42px 38px;background:var(--card);border-radius:var(--r-lg);color:var(--ink);
}
.consult-card::before{
  content:"";width:46px;height:1px;margin-bottom:28px;background:var(--gold-line);
}
.consult-card--online{background:var(--tan)}
.consult-card__body{display:flex;flex:1;flex-direction:column}
.consult-card h3{
  margin:0;color:var(--green);font:500 var(--fs-title)/1.08 var(--serif);letter-spacing:.004em;text-wrap:balance;
}
.consult-card__description{margin:22px 0 0;font-size:var(--fs-body);line-height:1.48;color:var(--ink)}
.consult-card h4{margin:30px 0 0;font-size:var(--fs-body);line-height:1.3;font-weight:600;color:var(--green)}
.consult-card ul{display:grid;gap:13px;margin:18px 0 0;padding:0;list-style:none}
.consult-card li{position:relative;padding-left:22px;font-size:var(--fs-label);line-height:1.45}
.consult-card li::before{
  content:"";position:absolute;left:1px;top:.72em;width:7px;height:7px;
  border:1px solid var(--gold-line);transform:translateY(-50%) rotate(45deg);
}
.consult-card__footer{margin-top:34px;padding-top:26px;border-top:1px solid var(--rule-on-cream)}
.consult-card__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0}
.consult-card__meta div{min-width:0}
.consult-card__meta dt{
  margin:0;color:var(--brass-ink);font-size:var(--fs-mobile-meta);line-height:1.3;text-transform:uppercase;letter-spacing:.065em;
}
.consult-card__meta dd{margin:6px 0 0;color:var(--green);font-size:var(--fs-lead);line-height:1.25;font-weight:600}
.consult-card .btn{width:100%;min-height:64px;margin-top:28px;padding:0 24px;text-align:center}
/* ---------- responsive ---------- */
@media (max-width:1340px){
  .guide{grid-template-columns:1fr 1fr}
}
@media (max-width:1120px){
  .sec-head h2{font-size:42.8px}
  .hero h1{font-size:48px;line-height:1.05}
  .hero{height:800px}
  /* Two rows of items, so the 3-row subgrid stops earning its keep: one
     row-gap value has to serve both the space between an icon and its own
     title and the space between two items, which inverted the rhythm — 58px
     inside an item against 44px between them. Each item becomes its own block
     with its own internal spacing; the fixed icon height keeps the titles
     level across the pair. */
  .trust__card{grid-template-columns:repeat(2,1fr);grid-template-rows:auto;row-gap:52px}
  .trust__col{display:block;grid-row:auto}
  .trust__col img{display:block;margin:0 auto}
  .trust__col h3{margin-top:16px}
  .trust__col p{margin:9px auto 0;font-size:18.1px;line-height:22px;max-width:32ch}
  .trust__col:nth-child(2n+1)::before{display:none}
  .guide{grid-template-columns:1fr;gap:48px}
  .guide__art{padding:0}
  .band1{height:auto;padding-bottom:90px}
  .stats{gap:0 64px;padding-right:0}
  .treat__body p{max-width:none}
  .guide__lead,.guide__note{max-width:none}
}
@media (max-width:860px){
  .trust__col{padding:0 20px}
  .stats{gap:0 40px}
  .treat-list{grid-template-columns:1fr}
  .treat__body h3{font-size:27px;line-height:1.15}
  .consult-choice{padding:72px 0 80px}
  .consult-choice::before,.consult-choice__picture{height:840px}
  .consult-choice__photo{object-position:80% 44%}
  .consult-choice__header h2{font-size:var(--fs-mobile-h2);line-height:1.02;white-space:normal;text-wrap:balance}
  .consult-choice__header p{max-width:62ch;margin-top:390px;font-size:var(--fs-mobile-lead);line-height:1.45}
  .consult-choice__cards{grid-template-columns:1fr;gap:18px;margin-top:48px}
  .consult-card{min-height:0}
  .hero{
    --hero-photo-h:min(128vw,520px);
    height:auto;min-height:0;background:var(--night);
  }
  .hero__picture{
    display:block;height:var(--hero-photo-h);margin-top:74px;
  }
  .hero__bg{
    top:74px;bottom:auto;height:var(--hero-photo-h);
    object-position:58% 32%;
  }
  .hero::after{
    top:74px;bottom:auto;height:var(--hero-photo-h);
    background:linear-gradient(180deg,rgba(25,17,8,.18) 0%,rgba(25,17,8,.03) 56%,rgba(25,17,8,.25) 100%);
  }
  .hero__inner{width:100%;padding:34px 24px 48px}
  .hero h1{
    position:static;
    font-size:var(--fs-mobile-h1);line-height:1.02;max-width:18ch;
    letter-spacing:0;text-wrap:balance;
    text-shadow:none;
  }
  .hero p{
    max-width:62ch;margin-top:24px;font-size:var(--fs-mobile-body);
    line-height:1.4;letter-spacing:.006em;text-shadow:none;
  }
  .hero p + p{margin-top:18px}
  .sec-head h2{
    font-size:var(--fs-mobile-h2);line-height:1.02;
    letter-spacing:.01em;text-wrap:balance;
  }
  .treat__body h3,.trust__col h3{
    font-size:var(--fs-mobile-h3);line-height:1.08;
  }
  .sec-lead,.guide__take,.guide__note{
    font-size:var(--fs-mobile-lead);line-height:1.32;
  }
  .guide__lead{
    font-size:var(--fs-mobile-lead);line-height:1.32;
    font-weight:500;max-width:34ch;
  }
  .guide__list li,.testi p{
    font-size:var(--fs-mobile-body);line-height:1.45;
  }
  .treat__more,.testi__who b{
    font-size:var(--fs-mobile-meta);line-height:1.35;
  }
}
@media (max-width:520px){
  /* Balanced wrapping can strand a short conjunction on its own line in long
     programme names (for example the Russian "И"). On a phone the card has a
     fixed 248px text measure, so use the browser's paragraph-quality wrapping
     and a slightly quieter responsive size: it preserves whole words while
     producing a natural, compact title block across every language. */
  .prog h3{
    bottom:30px;font-size:clamp(22px,6vw,24px);line-height:1.18;
    letter-spacing:.006em;text-wrap:pretty;
  }
  /* German catalogue titles are materially longer than their translations.
     Keep the complete CMS title inside the same fixed-height card without
     clipping; 20.7px is also the design system's lower bound for Lora. */
  html:lang(de) .prog h3{
    bottom:24px;font-size:20.7px;line-height:1.15;letter-spacing:0;
  }
  /* The Russian and German treatment headings contain single words that are
     wider than a phone at the shared mobile H2 size. Keep whole words and
     scale this one catalogue heading to the available viewport instead of
     letting it paint outside the container. */
  .treatments .sec-head h2{
    max-width:100%;font-size:clamp(28px,7.6vw,34px);line-height:1.04;
    overflow-wrap:normal;word-break:normal;hyphens:none;
  }
  /* The source is a wide consultation scene. A tall cover box cropped both
     people out on phones; this shorter frame preserves both faces and hands. */
  .consult-choice{padding-top:28px;scroll-margin-top:74px}
  .consult-choice::before,.consult-choice__picture{height:520px}
  .consult-choice__photo{object-position:80% 50%}
  .consult-choice__header p{margin-top:384px}
  .consult-card{padding:32px 24px 28px}
  .consult-card h3{font-size:var(--fs-mobile-h3)}
  .consult-card__meta{grid-template-columns:1fr;gap:14px}
  .consult-card .btn{padding-inline:18px;font-size:var(--fs-body)}
  /* One column: the caption sizes were drawn for a six-across strip and read
     as fine print once each item owns the full width, so both steps go up. */
  .trust__card{grid-template-columns:1fr;grid-template-rows:auto;row-gap:38px;padding:34px 20px 38px}
  .trust__col{padding:0}
  /* nth-child(n) only to outrank the 1120 rules above; one column has no rules */
  .trust__col:nth-child(n)::before{display:none}
  .trust__col img{height:92px}
  .trust__col h3{margin-top:14px;font-size:var(--fs-mobile-h3);line-height:1.08}
  .trust__col p{
    margin:8px auto 0;font-size:18.1px;
    line-height:1.4;max-width:34ch;
  }
  /* Below this width three figures cannot hold one row without cramping the
     labels, so they become one centred column rather than two-plus-orphan.
     One stat per row, so the subgrid that aligned them across columns has
     nothing left to align — the label's own margin carries the spacing. */
  .stats{grid-template-columns:auto;grid-template-rows:repeat(3,auto);gap:34px 0}
  .stat{display:block;grid-row:auto}
  .dosha-balance-art{width:min(100%,537.5px)}
}
