/* ==========================================================================
   SamClinic Dental Studio — Stylesheet
   A calm, premium, static landing site.
   Palette, type, spacing and components follow the project design spec.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------------------------- */
:root {
  /* Colour palette — Deep Emerald + Chartreuse Lime */
  --bg-main:      #064735;  /* main background */
  --bg-dark:      #003F2F;  /* darker background / alternating sections */
  --bg-soft:      #0B523A;  /* elevated surfaces: cards, tiles, inputs */
  --accent:       #C3E650;  /* lime — CTAs, active states, key numbers */
  --accent-hover: #ACCA46;  /* accent, pressed/hover */
  --accent-muted: #BFD95A;  /* softer lime — icons, labels, links */
  --text-main:    #DDF5D7;  /* primary light text */
  --text-muted:   #AFC888;  /* secondary / muted text */
  --border:       rgba(221, 245, 215, 0.14);  /* hairline borders on dark surfaces */
  --border-soft:  rgba(221, 245, 215, 0.08);
  --sand:        #F7C873;
  --sand-soft:   #FCEBC6;

  /* Typography */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale (min, fluid, max) */
  --fs-hero:  clamp(2.25rem, 1rem + 5vw, 4.25rem);   /* 36 -> 68 */
  --fs-h2:    clamp(1.875rem, 1.1rem + 2.6vw, 3rem);  /* 30 -> 48 */
  --fs-h3:    clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem); /* 22 -> 26 */
  --fs-body:  clamp(1rem, 0.96rem + 0.22vw, 1.1875rem);  /* 16 -> 19 */
  --fs-small: 0.9375rem; /* 15 */
  --fs-tiny:  0.8125rem; /* 13 */

  /* Spacing */
  --container: 1220px;
  --container-wide: 1440px;
  --pad-x: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);      /* 20 -> 40 */
  --section-y: clamp(3.5rem, 2rem + 6vw, 8rem);        /* 56 -> 128 */
  --gap: clamp(1.5rem, 1rem + 1vw, 2rem);              /* 24 -> 32 */

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-card: 24px;
  --r-hero: 32px;
  --r-pill: 999px;

  /* Shadows — black-based so elevation still reads on a dark surface */
  --shadow-card:  0 16px 40px rgba(0, 0, 0, 0.34);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.42);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.46);
  --shadow-soft:  0 6px 20px rgba(0, 0, 0, 0.26);
  --ring-focus:   0 0 0 4px rgba(195, 230, 80, 0.35);

  /* Motion */
  --ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-mid: 240ms;
  --t-slow: 320ms;

  /* Header */
  --header-h: 72px;
}

/* ---------------------------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
picture { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-main);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p { color: var(--text-main); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-muted);
  color: var(--bg-dark);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--bg-dark);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--r-md);
  transition: top var(--t-mid) var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

.section { padding-block: var(--section-y); }

.section--mint { background: var(--bg-dark); }
.section--white { background: var(--bg-main); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-muted);
  border-radius: var(--r-pill);
}
.section-head.center .eyebrow { justify-content: center; }

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}

.section-head .lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-muted);
}

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--bg-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 16px 26px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }

/* Button-in-button trailing icon */
.btn .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: rgba(0, 63, 47, 0.16);
  transition: transform var(--t-mid) var(--ease-premium),
              background var(--t-fast) var(--ease-out);
}
.btn:hover .btn-ico {
  transform: translateX(3px) translateY(-1px) scale(1.05);
  background: rgba(0, 63, 47, 0.26);
}
.btn .btn-ico svg { width: 15px; height: 15px; stroke: currentColor; }

.btn--secondary {
  --btn-bg: var(--bg-soft);
  --btn-fg: var(--text-main);
  border: 1px solid var(--border);
}
.btn--secondary:hover { background: var(--bg-dark); border-color: var(--border); }
.btn--secondary .btn-ico { background: var(--bg-dark); }
.btn--secondary:hover .btn-ico { background: var(--border); }

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

/* Solid lime button — for use over photos (e.g. offer tiles) */
.btn--light {
  --btn-bg: var(--accent);
  --btn-fg: var(--bg-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.btn--light:hover { background: var(--accent-hover); }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 30px; }

/* Text link button */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--accent-muted);
  transition: gap var(--t-fast) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; stroke: currentColor; transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover { gap: 11px; }
.link-arrow:hover .link-text { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------------
   5. Badges & chips
   --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-tiny);
  padding: 8px 13px;
  border-radius: var(--r-pill);
}
.badge svg { width: 15px; height: 15px; stroke: var(--accent-muted); }
.badge--sand { background: var(--sand-soft); color: #7a571b; }
.badge--sand svg { stroke: #b9821f; }

/* Icon tile */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-dark);
  flex-shrink: 0;
  transition: background var(--t-mid) var(--ease-out);
}
.icon-tile svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-muted);
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------------------
   6. Header & navigation
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(3, 39, 29, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.brand small { display: block; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.brand-logo { display: block; height: 44px; width: auto; }
.site-footer .brand-logo { height: 50px; }

.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.nav-desktop a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-main);
  padding: 6px 2px;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-premium);
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--accent-muted); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--t-mid) var(--ease-premium),
              opacity var(--t-fast) var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 39, 29, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: calc(var(--header-h) + 32px) var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-premium),
              visibility var(--t-slow);
  overflow-y: auto;
}
body.menu-open .nav-mobile { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-mobile a.m-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-main);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-premium);
}
body.menu-open .nav-mobile a.m-link { opacity: 1; transform: translateY(0); }
body.menu-open .nav-mobile a.m-link:nth-child(1) { transition-delay: 80ms; }
body.menu-open .nav-mobile a.m-link:nth-child(2) { transition-delay: 130ms; }
body.menu-open .nav-mobile a.m-link:nth-child(3) { transition-delay: 180ms; }
body.menu-open .nav-mobile a.m-link:nth-child(4) { transition-delay: 230ms; }
body.menu-open .nav-mobile a.m-link:nth-child(5) { transition-delay: 280ms; }
body.menu-open .nav-mobile a.m-link:nth-child(6) { transition-delay: 330ms; }
.nav-mobile .btn { margin-top: 24px; }

/* ---------------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(165deg, var(--bg-main) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(195,230,80,0.12), transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.hero-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(195,230,80,0.32); }

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  color: var(--text-muted);
  max-width: 30em;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--text-main);
  font-weight: 500;
}
.hero-trust svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Hero media + floating cards */
.hero-media { position: relative; }
.hero-media .hero-img {
  width: 100%;
  border-radius: var(--r-hero);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 6 / 7;
}

.float-card {
  position: absolute;
  background: rgba(3, 39, 29, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.float-card .icon-tile svg { width: 20px; height: 20px; }
.float-card .fc-title { font-family: var(--font-head); font-weight: 700; color: var(--text-main); font-size: 1rem; line-height: 1.1; }
.float-card .fc-sub { font-size: var(--fs-tiny); color: var(--text-muted); }
.float-card .stars { color: var(--sand); letter-spacing: 1px; font-size: 0.85rem; }

.float-card.fc-1 { top: 24px; left: -22px; }
.float-card.fc-2 { bottom: 96px; right: -26px; }
.float-card.fc-3 { bottom: 18px; left: 18px; }

/* ---------------------------------------------------------------------------
   8. Trust numbers
   --------------------------------------------------------------------------- */
/* Plain wrapper (no background) so the card floats over hero + body backgrounds.
   display:flow-root contains the negative-margin lift without margin-collapse bleed. */
.trust-section {
  display: flow-root;
  padding-bottom: var(--section-y);
}
.trust-band { margin-top: calc(-1 * clamp(2.5rem, 5vw, 4.5rem)); position: relative; z-index: 5; }
.trust-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  display: grid;
  /* auto-fit + потолок 260px, а не repeat(4, 1fr): часть плиток может быть
     скрыта в <template> до подтверждения цифр. Без потолка две оставшиеся
     плитки растягивались бы на всю ширину карточки. При возврате всех четырёх
     раскладка сама становится четырёхколоночной. */
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 260px));
  justify-content: center;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.trust-item { text-align: center; padding-inline: 8px; position: relative; }
/* :last-of-type, а не :last-child — последним ребёнком .trust-card может быть
   <template> со скрытой плиткой, и тогда у последней видимой плитки появлялся
   лишний разделитель справа. */
.trust-item:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: 0; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--border);
}
.trust-item .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.02em;
}
.trust-item .num span { color: var(--accent); }
.trust-item .label { color: var(--text-muted); font-size: var(--fs-small); margin-top: 8px; }

/* ---------------------------------------------------------------------------
   9. About
   --------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.about-media { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; gap: 18px; }
.about-media img { border-radius: var(--r-card); box-shadow: var(--shadow-card); width: 100%; object-fit: cover; }
.about-media .am-tall { grid-row: span 2; aspect-ratio: 4/5; }
.about-media .am-short { aspect-ratio: 1/1; align-self: start; }
.about-quote {
  background: var(--bg-dark);
  color: var(--text-main);
  border-radius: var(--r-md);
  padding: 20px 22px;
  align-self: end;
}
.about-quote p { color: var(--text-main); font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.about-quote .q-mark { color: var(--sand); font-size: 1.6rem; font-weight: 800; line-height: 0.6; }

.about-points { display: grid; gap: 16px; margin: 26px 0 30px; }
.about-points li { display: flex; gap: 13px; align-items: flex-start; }
.about-points .tick {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.about-points .tick svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.about-points strong { color: var(--text-main); font-family: var(--font-head); }
/* About sits on a darker band — keep the tick circles readable */
.section--mint .about-points .tick { background: var(--bg-soft); }
.about-points span.txt { color: var(--text-muted); }

/* ---------------------------------------------------------------------------
   10. Generic card
   --------------------------------------------------------------------------- */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 1rem + 1vw, 2.1rem);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease-premium),
              box-shadow var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out);
}

/* ---------------------------------------------------------------------------
   11. Patient goals
   --------------------------------------------------------------------------- */
.goals-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text-main);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}
.goal-reco {
  max-width: 760px;
  margin-inline: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 1rem + 1.5vw, 2.4rem);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.goal-reco .icon-tile { background: var(--bg-dark); }
.goal-reco h3 { font-size: 1.25rem; margin-bottom: 8px; }
.goal-reco p { color: var(--text-muted); margin-bottom: 18px; }
.goal-reco .reco-body { transition: opacity var(--t-mid) var(--ease-out); }

/* ---------------------------------------------------------------------------
   12. Why choose us
   --------------------------------------------------------------------------- */
.why-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.why-card h3 { font-size: 1.2rem; }
.why-card p { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------------------------------------------------------------------------
   13. Prices
   --------------------------------------------------------------------------- */
.offer-card {
  margin-top: var(--gap);
  background: linear-gradient(120deg, var(--bg-dark) 0%, var(--bg-main) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.offer-card h3 { font-size: var(--fs-h3); margin-top: 14px; margin-bottom: 12px; }
.offer-card ul { display: grid; gap: 10px; margin-top: 4px; }
.offer-card li { display: flex; gap: 10px; align-items: center; color: var(--text-main); font-size: var(--fs-small); }
.offer-card li svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2.2; flex-shrink: 0; }
.offer-card .offer-action { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.offer-card .offer-action .offer-fineprint { color: var(--text-muted); font-size: var(--fs-tiny); }

/* ---------------------------------------------------------------------------
   14. Doctors
   --------------------------------------------------------------------------- */
.doctor-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.doctor-card .portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--bg-dark);
}
.doctor-card .dc-body { padding: 22px clamp(1.2rem, 1rem + 0.6vw, 1.6rem) 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doctor-card .dc-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text-main); }
.doctor-card .dc-role { color: var(--accent-muted); font-weight: 600; font-family: var(--font-head); font-size: var(--fs-small); }
.doctor-card .dc-meta { color: var(--text-muted); font-size: var(--fs-small); }
.doctor-card .dc-focus { color: var(--text-main); font-size: var(--fs-small); margin-top: 6px; }
.doctor-card .dc-quote { color: var(--text-muted); font-style: italic; font-size: var(--fs-small); margin-top: 10px; }
.doctor-card .link-arrow { margin-top: 16px; }

/* Single featured doctor (image left, bio right) */
.doctor-feature {
  max-width: 900px;
  margin: var(--gap) auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
}
.doctor-feature .df-photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--bg-dark);
}
.doctor-feature .df-body {
  padding: clamp(1.6rem, 1rem + 2.4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.doctor-feature .dc-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--text-main); }
.doctor-feature .dc-role { color: var(--accent-muted); font-weight: 600; font-family: var(--font-head); font-size: var(--fs-small); }
.doctor-feature .dc-meta { color: var(--text-muted); font-size: var(--fs-small); }
.doctor-feature .df-bio { color: var(--text-main); font-size: var(--fs-small); line-height: 1.65; margin-top: 14px; }
.doctor-feature .dc-quote { color: var(--text-muted); font-style: italic; font-size: var(--fs-small); margin: 14px 0 22px; }
.doctor-feature .btn { align-self: flex-start; }

/* ---------------------------------------------------------------------------
   15. Special offers
   --------------------------------------------------------------------------- */
/* Empty state — shown while there are no active offers */
.offers-empty {
  margin-top: var(--gap);
  text-align: center;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-main) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(2.5rem, 1.6rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offers-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--accent-muted);
  margin-bottom: 18px;
}
.offers-empty-ico svg { width: 34px; height: 34px; stroke: currentColor; fill: none; }
.offers-empty h3 { font-family: var(--font-head); font-size: var(--fs-h3); color: var(--text-main); margin-bottom: 8px; }
.offers-empty p { color: var(--text-muted); max-width: 48ch; line-height: 1.6; }
.offers-empty .btn { margin-top: 22px; }

/* Active-offers grid (image-led overlay tiles) */
.offers-grid {
  margin-top: var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.offer-tile {
  position: relative;
  display: flex;
  min-height: 300px;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.offer-tile--wide { grid-column: 1 / -1; min-height: 260px; }
.offer-tile-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-premium);
}
.offer-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 63, 47, 0) 30%, rgba(0, 63, 47, 0.86) 100%);
}
.offer-tile:hover .offer-tile-img { transform: scale(1.04); }
.offer-tile-body {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
}
.offer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-tiny);
  color: #fff;
  background: rgba(0, 63, 47, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.offer-tag--soft { background: rgba(255, 255, 255, 0.16); }
.offer-tile-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.15rem);
  line-height: 1.08;
  color: #fff;
  max-width: 20ch;
}

/* ---------------------------------------------------------------------------
   16. Reviews
   --------------------------------------------------------------------------- */
.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 12px 22px;
  box-shadow: var(--shadow-soft);
  margin-top: 18px;
}
.reviews-summary .big { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--text-main); }
.reviews-summary .stars { color: var(--sand); letter-spacing: 2px; }
.reviews-summary .src { display: block; color: var(--text-muted); font-size: var(--fs-small); }

/* Live Yandex reviews widget — the iframe's own content is third-party and
   keeps its native (light) chrome; only the surrounding frame is themed. */
.reviews-widget {
  max-width: 760px;        /* widget card has a fixed ~760px width — match it so no iframe background shows */
  margin: 12px auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.reviews-widget iframe { width: 100%; height: 720px; border: 0; display: block; }
.reviews-widget-link {
  display: block;
  padding: 12px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-tiny);
  border-top: 1px solid var(--border);
}
.reviews-widget-link:hover { color: var(--accent-muted); text-decoration: underline; }

/* Full categorized price list — collapsible accordion */
.price-list { max-width: 820px; margin: 6px auto 0; display: grid; gap: 14px; }
.price-group {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.price-group.is-open { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.pg-head-wrap { margin: 0; }
.pg-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
}
.price-group.is-open .pg-head { border-bottom: 1px solid var(--border); }
.pg-title {
  flex: 1 1 auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}
.pg-head .icon-tile { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.pg-head .icon-tile svg { width: 19px; height: 19px; }
.pg-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--t-fast) var(--ease-out);
}
.pg-icon::before, .pg-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-muted);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-premium), opacity var(--t-fast) var(--ease-out);
}
.pg-icon::before { width: 11px; height: 2px; }
.pg-icon::after { width: 2px; height: 11px; }
.price-group.is-open .pg-icon { background: var(--accent); }
.price-group.is-open .pg-icon::before,
.price-group.is-open .pg-icon::after { background: var(--bg-dark); }
.price-group.is-open .pg-icon::after { transform: scaleY(0); opacity: 0; }
.pg-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease-premium); }
.pg-rows { list-style: none; margin: 0; padding: 6px 20px 16px; }
.pg-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.pg-row:first-child { border-top: 0; }
.pg-name { color: var(--text-main); font-size: var(--fs-small); line-height: 1.4; }
.pg-price {
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.price-note { max-width: 820px; margin: 16px auto 0; text-align: center; color: var(--text-muted); font-size: var(--fs-tiny); }

/* ---------------------------------------------------------------------------
   17. Location
   --------------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: stretch;
}
.location-info { display: flex; flex-direction: column; }
.location-info .info-list { display: grid; gap: 18px; margin: 4px 0 26px; }
.location-info .info-row { display: flex; gap: 14px; align-items: flex-start; }
.location-info .info-row .icon-tile { width: 46px; height: 46px; border-radius: 12px; }
.location-info .info-row .icon-tile svg { width: 20px; height: 20px; }
.location-info .ir-label { font-family: var(--font-head); font-weight: 700; color: var(--text-main); font-size: var(--fs-small); }
.location-info .ir-value { color: var(--text-muted); font-size: var(--fs-small); }
.location-info .ir-value a:hover { color: var(--accent-muted); text-decoration: underline; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.map-wrap { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); min-height: 380px; border: 1px solid var(--border); }
.map-wrap iframe,
.map-wrap img { width: 100%; height: 100%; border: 0; display: block; min-height: 380px; object-fit: cover; }

/* ---------------------------------------------------------------------------
   18. FAQ
   --------------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.faq-item.is-open { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-main);
}
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--t-fast) var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-muted);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-premium), opacity var(--t-fast) var(--ease-out);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item.is-open .faq-icon { background: var(--accent); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--bg-dark); }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-premium);
}
.faq-a-inner { padding: 0 22px 22px; color: var(--text-muted); font-size: var(--fs-small); }

/* ---------------------------------------------------------------------------
   19. Contact
   --------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  align-items: start;
}
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-aside .ca-img { border-radius: var(--r-card); box-shadow: var(--shadow-card); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.contact-points { display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 12px; align-items: center; font-size: var(--fs-small); color: var(--text-main); }
.contact-points svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }

.contact-form-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 1rem + 2vw, 2.75rem);
}
/* Карточка «запись по телефону» — стоит на месте формы, пока онлайн-запись
   отключена (см. HIDDEN.md). Ничего не собирает: пациент сам выбирает канал. */
.contact-call { text-align: center; }
.contact-call .cc-ico { width: 62px; height: 62px; border-radius: var(--r-pill); margin-bottom: 18px; }
.contact-call .cc-ico svg { width: 28px; height: 28px; }
.cc-title { font-family: var(--font-head); font-size: var(--fs-h3); color: var(--text-main); margin-bottom: 10px; }
.cc-lead { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; max-width: 44ch; margin: 0 auto 26px; }

/* .btn — это inline-flex с white-space: nowrap, поэтому длинная надпись с
   номером телефона не переносилась ни по словам, ни по flex-строкам:
   min-content кнопки (343px) распирал карточку на узких экранах.
   Разрешаем перенос и текста, и flex-строки; сам номер не разрываем. */
.cc-cta { white-space: normal; flex-wrap: wrap; line-height: 1.3; }
.cc-num { white-space: nowrap; }

.cc-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cc-channels .btn { justify-content: center; gap: 8px; }
.cc-channels svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.cc-facts { display: grid; gap: 12px; margin-top: 26px; text-align: left; }
.cc-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5; }
.cc-facts svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; }

.cc-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-tiny);
  line-height: 1.55;
}
.cc-note a { color: var(--accent-muted); text-decoration: underline; }

@media (max-width: 480px) {
  .cc-channels { grid-template-columns: 1fr; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-main); }
.field label .req { color: var(--accent-muted); }
.field input,
.field select,
.field textarea {
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  padding: 0 16px;
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring-focus);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AFC888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #c0492f; box-shadow: 0 0 0 4px rgba(192,73,47,0.12); }
.field .err-msg { font-size: var(--fs-tiny); color: #FFA294; font-weight: 600; display: none; align-items: center; gap: 6px; }
.field.invalid .err-msg { display: flex; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 11px 18px;
  font-size: var(--fs-small);
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.radio-pill input:checked + span { background: var(--bg-dark); border-color: var(--accent); color: var(--text-main); }
.radio-pill input:focus-visible + span { box-shadow: var(--ring-focus); }

.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.consent label { font-size: var(--fs-tiny); color: var(--text-muted); font-weight: 500; }
.consent a { color: var(--accent-muted); text-decoration: underline; }
.consent .err-msg { margin-top: 4px; }

.form-status { border-radius: 14px; padding: 14px 16px; font-size: var(--fs-small); font-weight: 600; display: none; gap: 10px; align-items: center; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Colour only — visibility is controlled by JS (inline display) so both stay
   hidden until a submit actually succeeds or fails. */
.form-status.success { background: var(--bg-dark); color: var(--text-main); }
.form-status.success svg { stroke: var(--accent); }
.form-status.error { background: #fbeae6; color: #9a3318; }
.form-status.error svg { stroke: #c0492f; }

/* ---------------------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(130% 90% at 50% -25%, rgba(221, 245, 215, 0.05), transparent 62%),
    var(--bg-dark);
  color: #fff;
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 1rem + 2vw, 3rem);
  padding-bottom: clamp(1.5rem, 1.1rem + 1vw, 2.25rem);
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--text-muted); }
.footer-about p { color: #C9DAD8; font-size: var(--fs-small); margin-top: 16px; max-width: 32ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.8; }
.footer-col h4 { color: #fff; font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { color: #C9DAD8; font-size: var(--fs-small); transition: color var(--t-fast) var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--accent-muted); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  position: relative;
  margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  padding: 24px 0 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.footer-bottom p, .footer-bottom a { color: #C9DAD8; font-size: var(--fs-tiny); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom--bare::before { display: none; }

/* ---------------------------------------------------------------------------
   21. Floating mobile booking button
   --------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  height: 56px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: translateY(140%);
  transition: transform var(--t-slow) var(--ease-premium);
}
.mobile-cta.show { transform: translateY(0); }

/* ---------------------------------------------------------------------------
   22. Scroll reveal
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 700ms var(--ease-out),
              transform 800ms var(--ease-premium),
              filter 700ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

/* ---------------------------------------------------------------------------
   23. Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-desktop { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; }
  /* Spec: on mobile, text first, image second. Keep DOM order, just centre + cap width. */
  .hero-media { max-width: 460px; margin-inline: auto; }
  .hero-trust { margin-top: 4px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }

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

  .trust-card { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .trust-item:nth-child(2)::after { display: none; }
  .trust-item::after { display: none; }

  .offer-card { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { order: 2; }

  .doctor-feature { grid-template-columns: 260px 1fr; }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .trust-card { grid-template-columns: 1fr 1fr; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .float-card.fc-1 { top: 14px; left: 8px; }
  .float-card.fc-2 { bottom: 14px; right: 8px; }
  .float-card.fc-3 { display: none; }

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

  /* Горизонтальный скролл на телефонах.
     .btn — inline-flex с white-space: nowrap, поэтому длинная подпись
     («Записаться на первичный приём») не переносится ни по словам, ни по
     flex-строкам. Её min-content распирал flex- и grid-контейнеры вокруг
     (.reco-body, .offer-action), а вместе с ними — всю страницу: документ
     прокручивался вбок на 43px при ширине окна 375px.
     На телефонах разрешаем кнопкам переносить подпись; тогда min-content
     схлопывается до самого длинного слова, и контейнеры снова умещаются.
     flex-wrap здесь НЕ нужен — он сбрасывал бы стрелку .btn-ico на отдельную
     строку. Достаточно, чтобы переносился сам текст. */
  .btn { white-space: normal; line-height: 1.25; text-align: center; }

  /* min-width у flex/grid-элемента по умолчанию auto, т.е. не меньше
     min-content. Разрешаем сжиматься, иначе перенос текста ничего не даст. */
  .goal-reco { flex-direction: column; }
  .goal-reco .reco-body { align-self: stretch; min-width: 0; }
  .offer-card .offer-action { min-width: 0; align-self: stretch; }
  .offer-card .offer-action .btn { width: 100%; justify-content: center; }

  .offers-grid { grid-template-columns: 1fr; }
  .doctor-feature { grid-template-columns: 1fr; max-width: 460px; }
  .doctor-feature .df-photo { aspect-ratio: 4 / 5; height: auto; min-height: 0; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------------
   23b. Legal pages (privacy / terms)
   --------------------------------------------------------------------------- */
.legal-hero {
  background: linear-gradient(165deg, var(--bg-main) 0%, var(--bg-dark) 100%);
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
}
.legal-hero h1 { font-size: var(--fs-h2); margin-top: 16px; margin-bottom: 10px; }
.legal-hero p { color: var(--text-muted); }
.legal-body { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.legal-body .prose { max-width: 760px; }
.legal-body .prose h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}
.legal-body .prose h2:first-child { margin-top: 0; }
.legal-body .prose p,
.legal-body .prose li { color: var(--text-main); font-size: 1.0625rem; }
.legal-body .prose p { margin-bottom: 14px; }
.legal-body .prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; display: grid; gap: 8px; }
.legal-body .prose a { color: var(--accent-muted); text-decoration: underline; }
.legal-body .updated {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-tiny);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--accent-muted);
}
.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.disclaimer-note {
  background: var(--sand-soft);
  border: 1px solid #f0d99a;
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: #6b4e16;
  font-size: var(--fs-small);
  margin-bottom: 28px;
}

/* ---------------------------------------------------------------------------
   23c. Legal helpers: fill-ins, requisites, medical disclaimer, cookie notice
   --------------------------------------------------------------------------- */
/* extra prose primitives used by the legal documents */
.legal-body .prose h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--text-main); margin: 22px 0 10px; }
.legal-body .prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 14px; display: grid; gap: 8px; }
.legal-body .prose ol li { color: var(--text-main); font-size: 1.0625rem; }
.legal-body .prose .muted-note { color: var(--text-muted); font-size: var(--fs-small); }
.legal-body .prose .med-note {
  background: var(--bg-dark);
  border: 1px solid var(--accent-muted);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--text-main);
}

/* fields the owner must fill before publishing — visibly highlighted */
.fillin {
  background: #FFF3CD;
  color: #6b4e16;
  border-bottom: 1px dashed #d9a441;
  padding: 0 5px;
  border-radius: 4px;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}
.fill-summary {
  background: var(--bg-dark);
  border: 1px solid var(--accent-muted);
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--text-main);
  font-size: var(--fs-small);
  margin-bottom: 28px;
}
.fill-summary strong { color: var(--accent-muted); }
.fill-summary ul { list-style: disc; padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }

/* Уведомление о текущем режиме работы Сайта — в отличие от .fill-summary
   предназначено посетителю, а не владельцу. Спокойный, не тревожный тон. */
.status-notice {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.status-notice strong { color: var(--text-main); }
.status-notice a { color: var(--accent-muted); text-decoration: underline; }
.status-notice .muted-note { display: block; margin-top: 8px; font-size: var(--fs-tiny); }

/* table of contents for long documents */
.legal-toc {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px 18px;
  margin-bottom: 30px;
}
.legal-toc strong { font-family: var(--font-head); color: var(--text-main); font-size: var(--fs-small); }
.legal-toc ol { list-style: decimal; margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { color: var(--accent-muted); font-size: var(--fs-small); }

/* footer requisites + mandatory medical-services disclaimer */
.footer-legal {
  margin-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  padding: clamp(1.35rem, 1.1rem + 1.4vw, 2rem) clamp(1.35rem, 1.1rem + 1.4vw, 2.25rem);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 14px;
}
.footer-legal .req { color: rgba(255, 255, 255, 0.62); font-size: var(--fs-tiny); line-height: 1.75; max-width: 92ch; }
.footer-legal .req strong { color: rgba(255, 255, 255, 0.92); font-weight: 600; }

/* footer fill-ins: keep the owner TODO obvious, but elegant on dark green */
.footer-legal .fillin {
  background: rgba(247, 200, 115, 0.12);
  color: var(--sand);
  border: none;
  border-bottom: 1px dashed rgba(247, 200, 115, 0.55);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.med-disclaimer {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin-top: 2px;
  padding: 9px 16px;
  background: rgba(247, 200, 115, 0.10);
  border: 1px solid rgba(247, 200, 115, 0.28);
  border-radius: 12px;
  color: var(--sand-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-tiny);
}
.med-disclaimer svg { width: 17px; height: 17px; stroke: var(--sand); fill: none; stroke-width: 2; flex-shrink: 0; }

/* cookie consent notice */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 95;
  max-width: 760px;
  margin-inline: auto;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  transform: translateY(180%);
  transition: transform var(--t-slow) var(--ease-premium);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; margin: 0; color: rgba(255, 255, 255, 0.86); font-size: var(--fs-small); line-height: 1.55; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
/* flex-shrink: 0 не давал блоку сузиться, и две кнопки в одну строку (347px)
   вылезали за баннер (303px) на экране 375px. Разрешаем сжатие — внутренний
   flex-wrap сам перенесёт кнопку на вторую строку. */
.cookie-actions { display: flex; gap: 10px; flex-shrink: 1; min-width: 0; flex-wrap: wrap; }
.cookie-banner .btn { padding: 12px 22px; font-size: var(--fs-small); }

@media (max-width: 600px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 140px; justify-content: center; }
}

/* Сторонние встраивания (Яндекс.Карты, виджет отзывов).
   До согласия на сторонние cookie вместо iframe показывается заглушка:
   реальный адрес хранится в data-src и подставляется скриптом. */
.consent-embed { position: relative; width: 100%; }
.consent-embed iframe[hidden] { display: none; }
.map-wrap .consent-embed { height: 100%; min-height: 380px; }
.map-wrap .consent-embed-ph { height: 100%; }
.consent-embed-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 380px;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-soft);
}
.consent-embed-ph p { margin: 0; max-width: 46ch; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; }
.consent-embed-ph p strong { color: var(--text-main); }
.consent-embed-ph .btn { margin-top: 8px; }
.consent-embed-ph .reviews-widget-link { border-top: 0; padding: 4px 0 0; }

/* ---------------------------------------------------------------------------
   24. Reduced motion
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
