/* ==========================================================================
   Julia Kitanna — coaching site
   Brand tokens from the client's style guide (images/example/image6–7)
   ========================================================================== */

:root {
  /* Palette */
  --color-primary:   #3A5E7A; /* deep blue — headings, accents */
  --color-secondary: #8299B2; /* soft blue — calm, space */
  --color-neutral:   #B8B8B8; /* grey — balance */
  --color-accent:    #9AAB89; /* sage green — buttons, growth */
  --color-accent-dk: #84976f; /* darker sage for hover */
  --color-bg:        #F5F3EF; /* warm off-white */
  --color-surface:   #FBFAF7; /* slightly lighter cards */
  --color-text:      #2F3336; /* near-black, readable */
  --color-muted:     #6c757a; /* secondary text */
  --color-line:      #e3dfd7; /* hairline dividers */

  /* Typography */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --band-h: clamp(110px, 30vw, 150px); /* mobile bottom bands: strips + quote */
  --hero-intro-size: clamp(1.5rem, 2.5vw, 2.15rem); /* hero intro; reused by mobile quote */
}

/* --- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-secondary); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { margin: 0 0 1.1rem; }

/* --- Layout helpers -------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--color-surface); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 1rem;
}

.divider { width: 56px; height: 2px; background: var(--color-accent); border: 0; margin: 1.5rem 0; }
.divider--center { margin-inline: auto; }

.lead { font-size: 1.18rem; color: var(--color-text); }
.muted { color: var(--color-muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .95rem 2.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dk); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* --- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 239, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.brand { line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-size: 1.7rem; color: var(--color-primary); font-weight: 600; }
.brand__role { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-secondary); }
/* The Latin name ("Julia" / "Julija") has a "j" descender that the Cyrillic
   "Юлия" lacks, so it nearly grazes the role line below. Give the name a touch
   more breathing room in LT/EN only — RU stays untouched. */
:is(html[lang="lt"], html[lang="en"]) .brand__name { display: block; margin-bottom: .14rem; }

.site-header__actions { display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: .9rem; font-weight: 500; color: var(--color-text);
  position: relative; padding-block: .3rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--color-accent); transition: width .25s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-primary); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

/* Language switcher — quiet segmented pill on every screen. Slash separators
   hidden; active language is the filled sage-blue chip. Gentle entrance on load
   and tactile press feedback. */
.lang {
  display: flex; align-items: center; gap: .15rem;
  padding: .2rem; font-size: .8rem;
  border: 1px solid var(--color-line); border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  animation: lang-in .6s ease both .15s;
}
.lang span { display: none; }
.lang a {
  color: var(--color-muted); font-weight: 600; letter-spacing: .04em;
  padding: .28rem .55rem; border-radius: 999px; line-height: 1;
  transition: color .25s ease, background-color .25s ease, transform .2s ease;
}
.lang a:hover { color: var(--color-primary); }
.lang a[aria-current="true"], .lang a[aria-current="true"]:hover { color: #fff; background: var(--color-primary); }
.lang a:active { transform: scale(.9); }

@keyframes lang-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile menu toggle */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  width: 44px; height: 44px; position: relative;
}
/* Soft sage halo that breathes in on hover / when the menu is open. */
.nav-toggle::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent);
  opacity: 0; transform: translate(-50%, -50%) scale(.5); pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.4, .5, 1);
}
.nav-toggle:hover::before { opacity: .12; transform: translate(-50%, -50%) scale(1); }
.nav-toggle[aria-expanded="true"]::before { opacity: .16; transform: translate(-50%, -50%) scale(1); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--color-primary);
  border-radius: 2px; position: relative; transform-origin: center;
  transition: transform .35s cubic-bezier(.5, .12, .2, 1), opacity .25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Quote bar (pinned to the bottom of the screen) ----------------------- */
.quotebar { background: var(--color-primary); color: rgba(255, 255, 255, .92); }
.quotebar__inner { display: flex; align-items: flex-start; gap: .9rem; padding-block: .95rem; }
/* The quote bar is always on screen (pinned at the bottom on desktop), so it
   fades in gently on load instead of on scroll — opacity only, no transform,
   to avoid any overflow in the single-screen home layout. */
.quotebar__inner { animation: quote-in 1.1s cubic-bezier(.22, .61, .36, 1) .4s both; }
@keyframes quote-in { from { opacity: 0; } to { opacity: 1; } }
.quotebar__mark {
  font-family: var(--font-head); font-size: 2.4rem; line-height: .8;
  color: var(--color-secondary); flex: none;
}
.quotebar__quote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(.98rem, 1.4vw, 1.18rem); line-height: 1.4; margin: 0;
}
.quotebar__quote cite { font-style: normal; white-space: nowrap; }

/* --- Mobile quick-link strips (under the quote bar; hidden on desktop) ----- */
.strip-nav { display: none; }

/* --- Single-screen homepage (header → hero fills → quote, no page scroll) -- */
.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.home main { flex: 1 1 auto; display: flex; min-height: 0; }
.home .hero { flex: 1 1 auto; min-height: 0; }

/* --- Hero (full-bleed photo background, text overlay on the left) ---------- */
.hero {
  position: relative;
  min-height: clamp(440px, 56vw, 720px);
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
}
/* Photo on its own layer so it can fade in gently on load without
   touching the overlaid text. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background-image: url('../images/optimized/hero.jpg');
  background-image: image-set(url('../images/optimized/hero.webp') type('image/webp'),
                              url('../images/optimized/hero.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.035);
  animation: hero-photo-in 1.8s cubic-bezier(.22, .61, .36, 1) .15s forwards;
}
/* Soft scrim over the empty left zone so the intro text stays legible. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(245, 243, 239, .85) 0%,
    rgba(245, 243, 239, .55) 26%,
    rgba(245, 243, 239, 0) 50%);
}
@keyframes hero-photo-in {
  to { opacity: 1; transform: scale(1); }
}
.hero__inner { position: relative; z-index: 2; max-width: 34ch; }
.hero__intro {
  font-family: var(--font-head);
  font-size: var(--hero-intro-size);
  line-height: 1.35;
  color: #3A5E7A;
  margin: 0 0 2rem;
}

/* --- Feature band (image background) -------------------------------------- */
.band {
  position: relative;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(47, 60, 70, .5); }
.band > .container { position: relative; }
.band h2 { color: #fff; }
.band .eyebrow { color: rgba(255,255,255,.85); }
.band p { color: rgba(255,255,255,.95); }

/* --- About teaser ---------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: 0 18px 48px rgba(58,94,122,.16); }

/* --- Interior page hero (title over the soft mountains photo) -------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
}
/* Photo on its own layer so it fades + settles in gently on load, like the home hero. */
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: image-set(url('../images/optimized/zaprosy-bg.webp') type('image/webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.035);
  animation: hero-photo-in 1.8s cubic-bezier(.22, .61, .36, 1) .15s forwards;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(245, 243, 239, .92) 0%,
    rgba(245, 243, 239, .72) 42%,
    rgba(245, 243, 239, .42) 100%);
}
.page-hero > .container { position: relative; z-index: 2; padding-block: clamp(2.75rem, 7vw, 5rem); }
.page-hero h1 { margin: 0 0 .35em; }
.page-hero__intro {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.4;
  color: var(--color-primary);
  max-width: 42ch;
  margin: 0;
}

/* --- Editorial query rows (Coaching page) --------------------------------- */
.qrows { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.qrow {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.qrow + .qrow { border-top: 1px solid var(--color-line); }
.qrow__lead { color: var(--color-muted); margin: 0; max-width: 26ch; }

/* Left column = a soft photo panel with the section TITLE laid over the top of
   the picture (pinned to the TOP of the panel, in its normal reading position).
   The photo is a vertical slice of one image (top / middle / bottom third per
   row), so the three panels read as one picture stretched down the column. A
   light airy wash keeps the dark title legible without gloom. On scroll each
   panel develops in top→bottom through a soft gradient mask (see reveal). */
.qrow__head {
  position: relative;
  isolation: isolate;
  align-self: start;
  display: flex;
  align-items: flex-start;
  min-height: clamp(200px, 21vw, 290px);
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  border-radius: 18px;
  overflow: hidden;
}
.qrow__head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.25;
}
.qrow__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: image-set(url('../images/1.jpg') type('image/jpeg'));
  background-size: 100% 300%;
  background-position-x: center;
  background-repeat: no-repeat;
}
/* Light wash for legibility — quiet, never gloomy */
.qrow__head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(245, 243, 239, .58) 0%, rgba(245, 243, 239, .72) 100%);
}
.qrows .qrow:nth-child(1) .qrow__photo { background-position-y: 0%; }
.qrows .qrow:nth-child(2) .qrow__photo { background-position-y: 50%; }
.qrows .qrow:nth-child(3) .qrow__photo { background-position-y: 100%; }

/* Checklist: a single calm column of short items with a sage marker */
.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  gap: .55rem;
  max-width: 44ch;
}
.checklist li { position: relative; padding-left: 1.6rem; line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--color-accent);
}

/* Process steps: 01 / 02 / 03 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.step__num {
  display: block; margin-bottom: .5rem;
  font-family: var(--font-head); font-size: 2.4rem; line-height: 1;
  color: var(--color-accent);
}
.step h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.step p { margin: 0; color: var(--color-muted); }

/* --- Services page (entry band + two offering tracks) --------------------- */
.page-hero--services::after {
  background-image: image-set(url('../images/optimized/services-bg.webp') type('image/webp'));
}
.page-hero .btn { margin-top: 1.5rem; }

/* CTA + format note as one centred stack, so the note sits centred under the
   button (small-caps sage type, matching the button). */
.page-hero__cta { display: inline-flex; flex-direction: column; align-items: center; }
.page-hero__note {
  margin: .9rem 0 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Entry: the first meeting, as a distinct band above the offerings */
.svc-entry {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  background: linear-gradient(180deg, #fff, var(--color-surface));
  border: 1px solid rgba(227, 223, 215, .7);
  border-radius: 20px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 18px 40px -28px rgba(58, 94, 122, .28);
}
/* Left cell: a softly veiled sea photo with the title laid over it.
   The right edge fades into the card surface so the photo melts in. */
.svc-entry__head {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 200px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background-image: url('../images/optimized/meeting.jpg');
  background-size: cover;
  background-position: center;
}
.svc-entry__head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(47, 51, 54, .22) 0%,
    rgba(47, 51, 54, .14) 50%,
    rgba(47, 51, 54, .05) 72%,
    var(--color-surface) 100%);
}
.svc-entry__head > * { position: relative; z-index: 1; }
.svc-entry__head h2 { color: #fff; text-shadow: 0 1px 14px rgba(47, 51, 54, .5); }
.svc-entry__head .svc-meta {
  margin-bottom: 0; color: #fff;
  text-shadow: 0 1px 10px rgba(47, 51, 54, .5);
}
.svc-entry h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 0 0 .3rem; }

.svc-entry__body { padding: clamp(1.75rem, 3.5vw, 2.75rem); }

/* Two offering tracks: individual work / couples */
.svc-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); }
.track > h2 {
  position: relative;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0 0 1.25rem; padding-bottom: .8rem;
}
.track > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(154, 171, 137, .75), rgba(154, 171, 137, 0));
}
.track__item + .track__item {
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--color-line), transparent) 1;
}
.track__item h3 { font-size: 1.25rem; margin: 0 0 .3rem; }

/* Shared bits (meta line, package list) */
.svc-meta { margin: 0 0 .8rem; color: var(--color-secondary); font-size: .9rem; }
.svc-entry p, .track__item p { margin: 0 0 .9rem; color: var(--color-muted); line-height: 1.8; }
.svc-entry p:last-child, .track__item p:last-child { margin-bottom: 0; }
.svc-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.svc-list li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; color: var(--color-muted); line-height: 1.4; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--color-accent);
}

/* Ongoing support: full-width band of packages below the two tracks */
.svc-support {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--color-line), transparent) 1;
}
.svc-support > h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 0 0 .2rem; }
.svc-packages {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 1.25rem 0;
}
.pkg {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--color-surface));
  border: 1px solid rgba(227, 223, 215, .7);
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.85rem;
  box-shadow: 0 14px 34px -26px rgba(58, 94, 122, .25);
  transition: transform .35s ease, box-shadow .35s ease;
}
.pkg:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px rgba(58, 94, 122, .32);
}
.pkg__name {
  font-family: var(--font-head); font-weight: 500; font-size: 1.5rem;
  color: var(--color-primary); margin: 0 0 .75rem;
}
/* Sea strip under each name; the three strips line up into one continuous
   panorama across the row (left third / middle / right third). The strip
   fades into the card surface top and bottom, so it melts in softly. */
.pkg__photo {
  display: flex;
  align-items: center;
  position: relative;
  min-height: clamp(104px, 12vw, 136px);
  margin: -1.75rem -1.75rem 1.15rem;
  padding: 1rem 1.75rem;
  background-image: image-set(url('../images/optimized/services-bg.webp') type('image/webp'));
  background-size: 300% 100%;
  background-position-y: center;
  background-repeat: no-repeat;
}
/* Light, airy scrim — just enough for white text; fades into the card below */
.pkg__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(47, 51, 54, .10) 0%,
    rgba(47, 51, 54, .18) 58%,
    rgba(251, 250, 247, .5) 90%,
    var(--color-surface) 100%);
}
/* Title sits over the photo in white with a single soft shadow */
.pkg__photo .pkg__name {
  position: relative; z-index: 1;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 10px rgba(47, 51, 54, .4);
}
.svc-packages .pkg:nth-child(1) .pkg__photo { background-position-x: 0%; }
.svc-packages .pkg:nth-child(2) .pkg__photo { background-position-x: 50%; }
.svc-packages .pkg:nth-child(3) .pkg__photo { background-position-x: 100%; }
.pkg__desc { margin: 0; color: var(--color-muted); line-height: 1.55; }
/* Closing notes laid out in three columns aligned under the packages */
.svc-support__tail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.svc-support__tail p {
  position: relative;
  margin: 0; padding-top: 1.1rem;
  color: var(--color-muted); line-height: 1.7;
}
.svc-support__tail p::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), rgba(154, 171, 137, 0));
}
/* The closing "Каждый формат" note is centred under the two right-hand packages. */
.svc-support__tail p:last-child {
  grid-column: 2 / 4;
  text-align: left;
}
.svc-support__tail p:last-child::before {
  left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(154, 171, 137, 0), var(--color-accent), rgba(154, 171, 137, 0));
}

/* --- Reveal on scroll (gentle entrance) ----------------------------------- */
/* Hidden state applies only once JS marks the document ready, so content
   stays visible if JS is unavailable. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1),
              transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Coaching rows: the row is the scroll trigger but stays put. As it enters view
   the photo head — image, wash and title together — is unveiled top→bottom
   through a soft gradient mask plus a gentle fade, so it "develops in" rather
   than hard-wiping. The section text fades up alongside it, so words and photo
   arrive as one calm movement. */
.reveal-ready .qrow[data-reveal] { opacity: 1; transform: none; transition: none; }
.reveal-ready .qrow[data-reveal] .qrow__head {
  opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 32%, rgba(0,0,0,0) 56%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 32%, rgba(0,0,0,0) 56%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 300%;
          mask-size: 100% 300%;
  -webkit-mask-position: 0 100%;
          mask-position: 0 100%;
  transition: -webkit-mask-position 1.5s cubic-bezier(.22, .61, .36, 1),
                      mask-position 1.5s cubic-bezier(.22, .61, .36, 1),
                      opacity 1s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: mask-position, opacity;
}
.reveal-ready .qrow[data-reveal].is-visible .qrow__head {
  opacity: 1;
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
}
/* Section text rises in alongside the photo */
.reveal-ready .qrow[data-reveal] :is(.checklist, .steps) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready .qrow[data-reveal].is-visible :is(.checklist, .steps) {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  /* Skip the hero entrance for users who prefer no motion. */
  .hero::after,
  .page-hero::after { opacity: 1; transform: none; animation: none; }
  .quotebar__inner { opacity: 1; animation: none; }
  .lang { animation: none; }
  .reveal-ready .qrow[data-reveal] .qrow__head {
    opacity: 1; transition: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .reveal-ready .qrow[data-reveal] :is(.checklist, .steps) {
    opacity: 1; transform: none; transition: none;
  }
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--color-primary); color: #e9eef2; padding-block: 3.5rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__role { color: rgba(255,255,255,.6); }
.site-footer__contact p { margin: 0 0 .35rem; color: rgba(255,255,255,.85); }
.site-footer__contact strong { color: #fff; font-weight: 600; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  /* Phones scroll normally — drop the single-screen layout. */
  .home { display: block; min-height: 0; }
  .home main, .home .hero { display: block; flex: none; }
  /* Hero: a tall photo, zoomed so she reads large and panned to the right; the
     intro sits on the empty wall to the left over a soft off-white wash (never
     dark), so the text never crosses her. Loads the lighter hero-sm.
     Tunable: --min-height (vertical stretch), background-position-x (pan),
     the veil stops, and .hero__inner max-width (how far the text spreads). */
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100dvh - 78px);
    padding-block: 2.5rem;
  }
  /* Lighter, panned photo on the ::after layer (keeps the gentle fade-in). */
  .hero::after {
    background-image: image-set(url('../images/optimized/hero-sm.webp') type('image/webp'),
                                url('../images/optimized/hero-sm.jpg') type('image/jpeg'));
    background-position: 30% center;
    background-size: cover;
    /* A touch shorter + softer on phones so the entrance never feels heavy. */
    animation-duration: 1.4s;
  }
  /* Reveals travel less and settle a touch quicker on phones — keeps the
     scroll feeling light rather than laggy on small, touch-driven screens. */
  .reveal-ready [data-reveal] {
    transform: translateY(16px);
    transition-duration: .7s, .7s;
  }
  /* Horizontal veil: densest on the left behind the text, clear over her. */
  .hero::before {
    display: block;
    background: linear-gradient(90deg,
      rgba(245, 243, 239, .95) 0%,
      rgba(245, 243, 239, .85) 30%,
      rgba(245, 243, 239, .38) 54%,
      rgba(245, 243, 239, 0)   74%);
  }
  .hero__inner { max-width: 17ch; }
  /* Hero CTA on mobile only: slim white outline (desktop keeps the sage fill).
     Keep the full "Book a Session" label on one line — nowrap + a slightly
     smaller font/tracking so it never breaks into two rows. */
  .hero .btn {
    background: transparent; color: #fff; border-color: #fff;
    font-size: .68rem; letter-spacing: .14em; padding: .8rem 1.7rem;
    white-space: nowrap; max-width: 100%;
  }
  .hero .btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  /* Services hero on mobile: outline CTA (like home), tighter title→button gap,
     and the format note centred under the button in small-caps button type. */
  .page-hero__cta { width: fit-content; }
  .page-hero .btn {
    margin-top: .55rem;
    background: transparent; color: #fff; border-color: #fff;
    font-size: .68rem; letter-spacing: .14em; padding: .8rem 1.7rem;
    white-space: nowrap; max-width: 100%;
  }
  .page-hero .btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .page-hero__note {
    margin-top: .45rem;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: var(--font-body);
    font-style: normal;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .quotebar__quote cite { white-space: normal; }
  /* Quote bar matches the strip bands in height for an even bottom rhythm */
  .quotebar__inner { min-height: var(--band-h); align-items: center; }
  /* Quote text on mobile: a touch smaller than the hero intro so it lands in ~2 lines */
  .quotebar__quote { font-size: calc(var(--hero-intro-size) * .85); line-height: 1.4; }
  .quotebar__mark { font-size: 1.8rem; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 460px; margin-inline: auto; }

  /* Coaching page: photo head becomes a full-width band, section text below it */
  .qrow { grid-template-columns: 1fr; gap: 1.1rem; padding-block: 1.75rem; }
  .qrow__head { min-height: clamp(130px, 38vw, 200px); border-radius: 14px; }
  .qrow__head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  /* Steps become a calm vertical list (no carousel cards) */
  .steps {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .step {
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
  }

  /* Services: entry band, tracks and packages stack vertically */
  .svc-entry { grid-template-columns: 1fr; gap: 0; }
  /* Photo becomes a band across the top; fade points downward into the card */
  .svc-entry__head { min-height: 150px; }
  .svc-entry__head::before {
    background: linear-gradient(180deg,
      rgba(47, 51, 54, .22) 0%,
      rgba(47, 51, 54, .14) 55%,
      rgba(47, 51, 54, .05) 78%,
      var(--color-surface) 100%);
  }
  .svc-tracks { grid-template-columns: 1fr; gap: 2.25rem; }
  /* Packages become a swipeable carousel (like the process steps) */
  .svc-packages {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .svc-packages::-webkit-scrollbar { display: none; }
  .pkg { scroll-snap-align: center; }
  /* Closing notes stack into one calm left-aligned column on mobile. */
  .svc-support__tail { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-support__tail p,
  .svc-support__tail p:last-child { grid-column: 1 / -1; text-align: left; }
  .svc-support__tail p::before,
  .svc-support__tail p:last-child::before {
    left: 0; transform: none;
    background: linear-gradient(90deg, var(--color-accent), rgba(154, 171, 137, 0));
  }

  .nav-toggle { display: block; }
  /* Right cluster on mobile: language pill sits to the LEFT of the hamburger. */
  .site-header__actions { gap: .8rem; }
  /* Panel unfurls downward from under the header edge (clip-path reveal),
     so it never slides over the header itself. */
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--color-bg); border-bottom: 1px solid var(--color-line);
    box-shadow: 0 22px 44px -30px rgba(58, 94, 122, .45);
    padding: .25rem var(--gutter) 1.25rem;
    opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path .42s cubic-bezier(.4, .15, .2, 1), opacity .3s ease, visibility .42s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); }
  .nav__list { flex-direction: column; gap: 0; width: 100%; }
  /* Quiet, modern rows: hairline dividers + a soft sage chevron that leans in. */
  .nav__list li {
    border-top: 1px solid var(--color-line);
    opacity: 0; transform: translateY(-8px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.4, .15, .2, 1);
  }
  .nav__list li:first-child { border-top: 0; }
  .nav__link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding-block: .95rem;
    font-size: 1.12rem; font-weight: 500; color: var(--color-primary);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { font-weight: 600; }
  .nav[data-open="true"] .nav__list li { opacity: 1; transform: none; }
  .nav[data-open="true"] .nav__list li:nth-child(1) { transition-delay: .08s; }
  .nav[data-open="true"] .nav__list li:nth-child(2) { transition-delay: .13s; }
  .nav[data-open="true"] .nav__list li:nth-child(3) { transition-delay: .18s; }
  .nav[data-open="true"] .nav__list li:nth-child(4) { transition-delay: .23s; }
  .nav[data-open="true"] .nav__list li:nth-child(5) { transition-delay: .28s; }
  /* On mobile the language pill sits in the header bar, to the LEFT of the
     hamburger (its segmented-pill styling is shared from the base rules). */

  /* Quick-link strips: taller photo bands, one airy pale image per section, the
     serif label in brand deep-blue (white would vanish on these light photos).
     Legibility comes from a soft off-white wash on the left only — no dark scrim,
     so it stays quiet. A whisper-thin sage chevron is the single accent. */
  .strip-nav { display: block; }
  .strip-nav__item {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--band-h);
    padding: 1.25rem var(--gutter);
    font-family: var(--font-body); font-weight: 600;
    font-size: .82rem; line-height: 1.2; letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--color-primary);
    background-repeat: no-repeat; background-size: cover; background-position: center;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--color-line), transparent 88%) 1;
    transition: color .25s ease;
  }
  .strip-nav__item:last-child {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--color-line), transparent 88%) 1;
  }
  .strip-nav__item::after {
    content: "\203A"; /* › slim chevron */
    font-family: var(--font-body); font-weight: 400; font-size: 1.15rem;
    color: var(--color-primary); opacity: .55;
    transition: transform .25s ease, opacity .25s ease;
  }
  /* One pale photo per section, with a soft left-anchored off-white wash layered
     on top (first background layer) so the deep-blue label stays legible without a
     dark scrim. Запросы→1, Услуги→2, Обо мне→3, Отзывы→4, Контакты→5 */
  .strip-nav__item:nth-child(1) { background-image:
    linear-gradient(90deg, rgba(245,243,239,.80), rgba(245,243,239,.42) 38%, rgba(245,243,239,0) 72%),
    image-set(url('../images/optimized/strip1.webp') type('image/webp'), url('../images/optimized/strip1.jpg') type('image/jpeg')); }
  .strip-nav__item:nth-child(2) { background-image:
    linear-gradient(90deg, rgba(245,243,239,.80), rgba(245,243,239,.42) 38%, rgba(245,243,239,0) 72%),
    image-set(url('../images/optimized/strip2.webp') type('image/webp'), url('../images/optimized/strip2.jpg') type('image/jpeg')); background-position: center 30%; }
  .strip-nav__item:nth-child(3) { background-image:
    linear-gradient(90deg, rgba(245,243,239,.80), rgba(245,243,239,.42) 38%, rgba(245,243,239,0) 72%),
    image-set(url('../images/optimized/strip3.webp') type('image/webp'), url('../images/optimized/strip3.jpg') type('image/jpeg')); background-position: center 35%; }
  .strip-nav__item:nth-child(4) { background-image:
    linear-gradient(90deg, rgba(245,243,239,.80), rgba(245,243,239,.42) 38%, rgba(245,243,239,0) 72%),
    image-set(url('../images/optimized/strip4.webp') type('image/webp'), url('../images/optimized/strip4.jpg') type('image/jpeg')); background-position: center 40%; }
  .strip-nav__item:nth-child(5) { background-image:
    linear-gradient(90deg, rgba(245,243,239,.80), rgba(245,243,239,.42) 38%, rgba(245,243,239,0) 72%),
    image-set(url('../images/optimized/strip5.webp') type('image/webp'), url('../images/optimized/strip5.jpg') type('image/jpeg')); background-position: center 22%; }
  .strip-nav__item:active { color: var(--color-secondary); }
  .strip-nav__item:active::after { transform: translateX(4px); opacity: .85; }
}

/* --- About page ----------------------------------------------------------- */
/* Reuses .split, .section, .section--tint, .eyebrow, .divider, .btn. */

.about-prose { max-width: 60ch; }
.about-prose p { margin: 0 0 1.1rem; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose h2 { margin: 0 0 .25em; }
.about-prose h2.about-intro__exp-title { margin-top: 3.5rem; }

/* Intro: portrait left, warm opening right. The portrait sits in a rounded
   frame and breathes a touch on hover; on scroll it eases in with a gentle
   settle (slight scale + rise) rather than a hard wipe. */
.split--about { align-items: center; }
.split--about .split__media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(58, 94, 122, .16);
}
.split--about .split__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(.22, .61, .36, 1);
}
.split--about .split__media:hover img { transform: scale(1.035); }
.about-intro h1 { margin: .1em 0 .6em; }

.reveal-ready .split--about .split__media[data-reveal] {
  transform: translateY(24px) scale(1.025);
}
.reveal-ready .split--about .split__media[data-reveal].is-visible {
  transform: none;
}

/* Beliefs: soft cards over the tinted band, cascading in as a group. */
.about-beliefs-sec__title { margin: 0 0 clamp(1.5rem, 4vw, 2.25rem); }
.about-beliefs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}
.belief {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(58, 94, 122, .06);
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), box-shadow .7s ease;
}
.belief:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(58, 94, 122, .12); }
.belief p { margin: 0; padding: clamp(1.25rem, 2.8vw, 1.85rem); color: var(--color-primary); }

/* Photo strip sits on top of each card. One photo (2.jpg) is mapped across the
   whole 2-col x 3-row block, so every card reveals its own unique tile of the
   image — left/right column x top/middle/bottom row — never repeating. The
   strip fades softly into the white card surface below. */
.belief__photo {
  position: relative;
  min-height: clamp(120px, 13vw, 168px);
  background-image: image-set(url('../images/optimized/beliefs-bg.webp') type('image/webp'));
  background-size: 200% 300%;
  background-repeat: no-repeat;
}
.belief__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(47, 51, 54, .06) 0%,
    rgba(47, 51, 54, .12) 55%,
    rgba(255, 255, 255, .55) 88%,
    #fff 100%);
}
/* columns → left / right half of the photo */
.about-beliefs .belief:nth-child(odd)  .belief__photo { background-position-x: 0%; }
.about-beliefs .belief:nth-child(even) .belief__photo { background-position-x: 100%; }
/* rows → top / middle / bottom third of the photo */
.about-beliefs .belief:nth-child(1) .belief__photo,
.about-beliefs .belief:nth-child(2) .belief__photo { background-position-y: 0%; }
.about-beliefs .belief:nth-child(3) .belief__photo,
.about-beliefs .belief:nth-child(4) .belief__photo { background-position-y: 50%; }
/* Fifth belief spans the row and shows the whole bottom band of the photo. */
.belief--wide { grid-column: 1 / -1; }
.about-beliefs .belief--wide .belief__photo { background-size: 100% 300%; background-position-y: 100%; }

/* Credentials: quiet rounded badges with the sage accent. */
.about-creds__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 0 1.4rem;
}
.cred-badge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: .5rem 1.05rem;
}
/* ICF badge is interactive: hover reveals a floating tooltip on desktop;
   on phones a tap unfolds the detail inline (see the mobile block below). */
.cred-badge--info {
  position: relative; cursor: help;
  -webkit-appearance: none; appearance: none;
}
.cred-badge__tip {
  position: absolute; left: 50%; bottom: calc(100% + 11px);
  transform: translate(-50%, 6px);
  width: max-content; max-width: 15rem;
  padding: .62rem .9rem; border-radius: 12px;
  background: var(--color-primary); color: #F5F3EF;
  font-family: var(--font-body); font-weight: 500; font-size: .76rem;
  letter-spacing: .02em; line-height: 1.5; text-align: center; white-space: normal;
  box-shadow: 0 16px 34px -18px rgba(58, 94, 122, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .28s cubic-bezier(.4, .15, .2, 1);
  z-index: 5;
}
.cred-badge__tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--color-primary);
}
.cred-badge--info:hover .cred-badge__tip,
.cred-badge--info:focus-visible .cred-badge__tip { opacity: 1; transform: translate(-50%, 0); }

/* Phones: no hover — a tap shows the same floating tooltip, but left-anchored
   to the capsule so it never runs off the screen edge. */
@media (max-width: 860px) {
  .cred-badge--info { cursor: pointer; }
  .cred-badge__label { display: inline-flex; align-items: center; gap: .4rem; }
  .cred-badge__label::after {
    content: "\25BE"; color: var(--color-accent); font-size: .72em;
    transition: transform .28s ease;
  }
  .cred-badge--info[aria-expanded="true"] .cred-badge__label::after { transform: rotate(180deg); }
  .cred-badge__tip {
    left: 0; right: auto; transform: translateY(6px);
    max-width: min(16rem, calc(100vw - 2.5rem));
  }
  .cred-badge__tip::after { left: 1.7rem; transform: none; }
  /* Touch has no real hover: ignore hover/focus, the tooltip is purely tap-toggled. */
  .cred-badge--info:hover .cred-badge__tip,
  .cred-badge--info:focus-visible .cred-badge__tip { opacity: 0; transform: translateY(6px); }
  .cred-badge--info[aria-expanded="true"] .cred-badge__tip {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

/* A bit about me — large gentle statement, quiet note below */
.about-personal__inner {
  max-width: 60ch;
}
.about-personal__inner .eyebrow { margin-bottom: 1.4rem; }
.about-personal__lead,
.about-personal__note {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  color: var(--color-primary);
  margin: 0 0 1.2rem;
}
.about-personal__note { margin-bottom: 0; }

/* Closing CTA — soft photo (3.jpg) fills the whole section */
.about-cta {
  text-align: center;
  background-image:
    linear-gradient(rgba(245, 243, 239, .62), rgba(245, 243, 239, .68)),
    image-set(
      url('../images/optimized/cta-bg.webp') type('image/webp'),
      url('../images/optimized/cta-bg.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center;
}
.about-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.about-cta__lead {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--color-primary);
  max-width: 38ch;
  margin: 0;
}

@media (max-width: 860px) {
  .split--about { grid-template-columns: 1fr; }
  .split--about .split__media { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .about-beliefs { grid-template-columns: 1fr; }
  .about-beliefs .belief__photo,
  .about-beliefs .belief--wide .belief__photo { background-size: cover; background-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  .split--about .split__media img { transition: none; }
  .reveal-ready .split--about .split__media[data-reveal] { transform: none; }
}

/* --- Contacts page --------------------------------------------------------- */
.contacts { padding-block: clamp(3rem, 7vw, 5.5rem); }
.split--contacts { grid-template-columns: .82fr 1.18fr; align-items: start; }

.contacts__intro h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin-bottom: .5em; }
.contacts__lead {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--color-primary);
  max-width: 32ch;
}

.contact-channels {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.channel { display: flex; align-items: center; }
.channel__btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.channel__btn:hover { border-color: var(--color-accent); }
.channel__btn svg { width: 22px; height: 22px; }
.channel[data-open="true"] .channel__btn {
  color: #fff; background: var(--color-accent); border-color: var(--color-accent);
}
.channel__value {
  font-size: 1.05rem; color: var(--color-primary); white-space: nowrap;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .35s ease, opacity .25s ease, margin .35s ease, padding .35s ease;
}
.channel[data-open="true"] .channel__value {
  max-width: 16rem; opacity: 1;
  margin-left: .85rem; padding-right: .35rem;
}
.channel__value:hover { color: var(--color-accent-dk); }

.contacts__note {
  margin-top: 1.75rem; font-size: .92rem; color: var(--color-muted);
  letter-spacing: .01em;
}

/* Form card */
.contacts__form-wrap { position: relative; }
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 18px 48px rgba(58,94,122,.08);
}
.contact-form__title {
  font-family: var(--font-head); font-weight: 500;
  font-size: 1.5rem; color: var(--color-primary);
  margin: 0 0 1.6rem;
}

.field { margin-bottom: 1.5rem; }
.field__label {
  display: block;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--color-muted); margin-bottom: .5rem;
}
.field__opt { font-weight: 400; color: var(--color-neutral); }
.field__input {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem; color: var(--color-text);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--color-line);
  padding: .55rem .1rem;
  transition: border-color .2s ease;
}
textarea.field__input { resize: vertical; line-height: 1.6; }
.field__input::placeholder { color: var(--color-neutral); }
.field__input:focus {
  outline: none; border-bottom-color: var(--color-accent);
}

/* Pill radios */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block;
  font-size: .9rem; color: var(--color-muted);
  padding: .45rem 1.1rem;
  border: 1px solid var(--color-line); border-radius: 999px;
  transition: all .2s ease;
}
.pill input:checked + span {
  color: #fff; background: var(--color-accent); border-color: var(--color-accent);
}
.pill input:focus-visible + span { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

.contact-form__submit { width: 100%; margin-top: .5rem; }
.contact-form__note {
  margin: 1rem 0 0; font-size: .82rem; color: var(--color-muted);
  text-align: center; line-height: 1.5;
}
.contact-form.is-sent {
  display: flex; align-items: center; justify-content: center;
}
.contact-form__status {
  margin: 0; padding: 1.4rem 0;
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4;
  color: var(--color-primary); text-align: center;
}
.contact-form__status.is-error {
  font-family: var(--font-body); font-style: normal;
  font-size: .9rem; color: #9a5b4f;
}

@media (max-width: 860px) {
  .split--contacts { grid-template-columns: 1fr; }
  .contacts__lead { max-width: none; text-align: center; }
  .contacts__note { text-align: center; }
  .contact-channels { justify-content: center; }
}

/* --- Reviews page ---------------------------------------------------------- */
.reviews { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* Even grid — each card independent, so folding one never shifts the others. */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.9rem);
  align-items: start;
}

/* One calm surface for every card — a soft sage wash; only the silhouette varies. */
.review {
  --review-bg: #EFF3E8;
  position: relative;
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--review-bg);
  border: 1px solid #D8E2CB;
  box-shadow:
    0 1px 2px rgba(80, 102, 64, .05),
    0 16px 44px rgba(80, 102, 64, .09);
  transition: box-shadow .4s ease, transform .4s ease;
}
.review:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(58, 94, 122, .05),
    0 26px 62px rgba(58, 94, 122, .12);
}

/* Soft, organic silhouettes — one corner kept sharp, rotating card to card. */
.review:nth-child(4n+1) { border-radius: 28px 28px 28px 6px; }
.review:nth-child(4n+2) { border-radius: 28px 6px 28px 28px; }
.review:nth-child(4n+3) { border-radius: 6px 28px 28px 28px; }
.review:nth-child(4n+4) { border-radius: 28px 28px 6px 28px; }

.review__mark {
  display: block;
  font-family: var(--font-head); font-size: 2.8rem; line-height: .5;
  color: var(--color-accent); opacity: .65; margin-bottom: .7rem;
}

/* Collapsible body — folds to a three-line teaser, unfolds smoothly on tap. */
.review__text {
  position: relative; margin: 0; line-height: 1.7;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(.4, 0, .2, 1);
}
.review__text p { margin: 0 0 .9rem; }
.review__text p:last-child { margin-bottom: 0; }

/* Gentle fade where the teaser is cut. */
.review.is-collapsible:not(.is-open) .review__text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--review-bg));
  pointer-events: none;
}

/* The name is part of the reveal — hidden while the card is folded. */
.review.is-collapsible:not(.is-open) .review__author { display: none; }

/* Toggle is wordless: three softly bobbing dots that hint at more below. */
.review__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .36rem;
  width: 100%; margin-top: 1rem; padding: .35rem 0;
  background: none; border: 0; cursor: pointer;
  color: var(--color-accent);
  transition: color .25s ease;
}
.review__toggle:hover { color: var(--color-primary); }
.review__toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 8px; }
.review__toggle .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: review-dot 1.5s ease-in-out infinite;
}
.review__toggle .dot:nth-child(2) { animation-delay: .18s; }
.review__toggle .dot:nth-child(3) { animation-delay: .36s; }
@keyframes review-dot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}
/* Once open, the dots give way to a quiet upward chevron to fold back. */
.review.is-open .review__toggle .dot { display: none; }
.review.is-open .review__toggle::after { content: "\2191"; font-size: .95rem; line-height: 1; }

.review__author {
  display: block; margin-top: 1.25rem;
  font-family: var(--font-head); font-style: italic; font-size: 1.3rem;
  color: var(--color-accent);
}
.review__author::before { content: "— "; color: var(--color-accent); }

/* --- Leave a review ------------------------------------------------------- */
.review-invite {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}
.review-invite__lead {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35;
  color: var(--color-primary); max-width: none; white-space: nowrap;
  margin: 0 auto 1.4rem;
}
.review-form {
  max-width: 540px; margin: 1.6rem auto 0; text-align: left;
  animation: review-form-in .5s ease both;
}
.review-form[hidden] { display: none; }
@keyframes review-form-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-invite__lead { white-space: normal; max-width: 28ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .review__toggle .dot { animation: none !important; opacity: .7; }
}
