/* ==========================================================================
   ალტერმედ + — main stylesheet
   Concept: the yin-yang from the logo. Light "porcelain" = traditional,
   deep "pine" = alternative. Brass comes from the gold stripes of the cup.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --porcelain: #EEF2EE;
  --paper: #F8FAF7;
  --white: #FFFFFF;
  --pine: #007000;
  --pine-deep: #007000;
  --jade: #3E7D5A;
  --brass: #C9A75A;
  --brass-ink: #846827;
  --brass-light: #FFF4D6; /* gold text on the green backgrounds */
  --ink: #17211C;
  --muted: #55625A;
  --line: rgba(23, 58, 44, 0.14);
  --line-strong: rgba(23, 58, 44, 0.28);
  --on-dark: #F4F8F5;
  --on-dark-muted: rgba(255, 255, 255, 0.96);
  --line-dark: rgba(234, 240, 235, 0.16);
  --danger: #A33A2C;
  --danger-bg: #FBEDEA;
  --ok-bg: #E6F1EA;

  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --header-h: 76px;
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 136px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Type scale (perfect fourth-ish) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.25rem;     /* 20 */
  --fs-lg: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-2xl: clamp(2.375rem, 1.6rem + 3vw, 4rem);
  --fs-hero: clamp(2.5rem, 1rem + 3.9vw, 4.75rem);
}

html[lang="ka"] {
  --font-display: "Noto Serif Georgian", Georgia, serif;
  --font-body: "Noto Sans Georgian", system-ui, sans-serif;
  --display-weight: 400;
  --lh-body: 1.75;
  --tracking-display: 0;
}
html[lang="en"],
html[lang="ru"] {
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --display-weight: 300;
  --lh-body: 1.65;
  --tracking-display: -0.015em;
}

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

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

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--pine :focus-visible,
.doctor--dark :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.hero__dark :focus-visible { outline-color: var(--brass); }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--pine); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--radius-md);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

.yy { width: 14px; height: 14px; flex: none; color: var(--brass-ink); }
.yy--lg { width: 28px; height: 28px; }

/* ---------- 3. Buttons & links ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 var(--fs-sm)/1.2 var(--font-body);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 8px 20px; }
.btn--wide { width: 100%; }

.btn--primary { --btn-bg: var(--pine); --btn-fg: var(--on-dark); }
.btn--primary:hover { --btn-bg: var(--jade); }

.btn--outline { --btn-border: var(--line-strong); --btn-fg: var(--pine); }
.btn--outline:hover { --btn-bg: var(--pine); --btn-fg: var(--on-dark); --btn-border: var(--pine); }

.btn--brass { --btn-bg: var(--brass); --btn-fg: var(--ink); }
.btn--brass:hover { --btn-bg: #DABB72; }

.btn--ghost-light { --btn-border: var(--line-dark); --btn-fg: var(--on-dark); }
.btn--ghost-light:hover { --btn-bg: var(--on-dark); --btn-fg: var(--pine-deep); --btn-border: var(--on-dark); }

.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrowless,
.link-quiet {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--pine);
  font-weight: 500; font-size: var(--fs-sm);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.link-arrowless:hover,
.link-quiet:hover { color: var(--jade); text-decoration-color: var(--jade); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500;
  color: var(--pine);
  white-space: nowrap;
}
.brand__type { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 2px; }
.main-nav__list a {
  display: block; padding: 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.main-nav__list a:hover { background: rgba(23, 58, 44, 0.07); }
.main-nav__list a[aria-current="page"] { color: var(--pine); box-shadow: inset 0 -1.5px 0 var(--brass); border-radius: 0; }
.main-nav__extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch.lang-switch--header a { padding-inline: 8px; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.lang-switch a {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch a:hover { color: var(--pine); }
.lang-switch a[aria-current="true"] { background: var(--pine); color: var(--on-dark); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--pine);
  cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 6px; width: 18px; margin: auto; }
.menu-toggle__bars span { height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Six menu items in Georgian are long: the header is kept compact, and the
   page column (--container) is wide enough for it. Below 1310px it becomes
   a menu button — keep that number in sync with main.js. */
@media (max-width: 1360px) {
  .brand__type { display: none; }
}

/* Mobile / tablet menu */
@media (max-width: 1310px) {
  .menu-toggle { display: grid; }
  .brand__type { display: block; }
  .site-header__actions { margin-left: auto; }
  .site-header__book { display: none; }
  .lang-switch--header { display: none; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    margin: 0;
    padding: 28px var(--gutter) 40px;
    background: var(--porcelain);
    display: flex; flex-direction: column; gap: 32px;
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .main-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list li { border-bottom: 1px solid var(--line); }
  .main-nav__list a {
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: var(--display-weight);
    border-radius: 0;
  }
  .main-nav__list a:hover { background: none; color: var(--jade); }
  .main-nav__list a[aria-current="page"] { box-shadow: none; color: var(--jade); }
  .main-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .main-nav__phone { font-size: var(--fs-md); color: var(--pine); text-decoration: none; font-weight: 500; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 420px) {
  .brand__type { display: none; }
  .brand__name { font-size: 1.15rem; }
  .brand__mark { width: 40px; }
}

/* ---------- 5. Hero (home) ---------- */
/* Three rows that can never overlap, whatever the screen or the text:
     1) the light word        (left)
     2) intro  +  medallion   (left / centre)
     3) the dark word         (right half)
   The S-shaped seam is anchored to the medallion, so the logo always sits
   exactly on it. Type and medallion also shrink on short screens (vh). */
.hero {
  --med: clamp(190px, min(22vw, 34vh), 320px);
  --hero-fs: clamp(2.5rem, min(5.8vw - 6px, 8.4vh), 4.1rem);
  position: relative;
  min-height: clamp(520px, calc(100svh - var(--header-h)), 860px);
  display: flex;
  /* beyond the seam drawing (very wide screens): light left, dark right */
  background: linear-gradient(90deg, var(--porcelain) 50%, var(--pine-deep) 50%);
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--med) minmax(0, 1fr);
  grid-template-rows: auto minmax(var(--med), 1fr) auto;
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: clamp(10px, 2vh, 24px);
  padding-block: clamp(28px, 5vh, 64px);
}

.hero__word {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--hero-fs);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.hero__word--light {
  grid-area: 1 / 1 / 2 / -1;
  justify-self: start;
  max-width: 50%;
  color: var(--pine);
}

.hero__intro { grid-area: 2 / 1 / 3 / 2; align-self: start; }
.hero__lede {
  max-width: 26rem;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 34px); }

.hero__center {
  grid-area: 2 / 2 / 3 / 3;
  align-self: center;
  position: relative;
  width: var(--med);
  aspect-ratio: 1;
}

/* Centre of this drawing = centre of the medallion. */
.hero__seam {
  position: absolute; z-index: -1;
  left: 50%; top: 50%;
  width: min(100vw, 1440px); height: 1800px;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__seam-light { fill: var(--porcelain); }
.hero__seam-dark { fill: var(--pine-deep); }

.hero__medallion {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 10px rgba(238, 242, 238, 0.06), 0 30px 80px -30px rgba(10, 30, 22, 0.55);
  display: grid; place-items: center;
}
.hero__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: ring-spin 90s linear infinite;
}
.hero__ring-line { fill: none; stroke: var(--brass); stroke-width: 0.75; opacity: .7; }
.hero__ring text {
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 500;
  fill: var(--brass-ink);
}
.hero__logo { width: 52%; position: relative; }

.hero__dark {
  grid-area: 3 / 1 / 4 / -1;
  justify-self: end;
  max-width: 50%;            /* stays on the dark half */
  text-align: right;
  color: var(--on-dark);
}
.hero__dark .hero__word { color: var(--on-dark); }
.hero__meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(12px, 2.4vh, 22px);
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  text-align: left;
}
.hero__meta .icon { color: var(--brass-light); flex: none; }

@keyframes ring-spin { to { transform: rotate(360deg); } }

/* One orchestrated entrance: the two halves meet, then the medallion settles. */
@media (prefers-reduced-motion: no-preference) {
  .hero__word--light, .hero__intro { animation: from-left .9s var(--ease) both; }
  .hero__dark { animation: from-right .9s var(--ease) .12s both; }
  .hero__medallion { animation: settle 1.1s var(--ease) .25s both; }
  .hero__seam { animation: fade-in 1s var(--ease) both; }
}
@keyframes from-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes settle { from { opacity: 0; transform: scale(.86) rotate(-25deg); } }
@keyframes fade-in { from { opacity: 0; } }

/* Tablet and phone: one column — light part, medallion on the seam, dark part. */
@media (max-width: 1100px) {
  .hero {
    --med: clamp(180px, 52vw, 220px);
    --hero-fs: clamp(1.9rem, 10vw, 3.75rem);
    min-height: 0; display: block;
    background: var(--porcelain);
  }
  .hero__seam { display: none; }
  .hero__grid {
    display: flex; flex-direction: column;
    padding: 0;
    max-width: none;
  }
  .hero__word--light { max-width: none; padding: 44px var(--gutter) 0; }
  .hero__intro { align-self: stretch; padding: 20px var(--gutter) calc(var(--med) / 2 + 40px); }
  .hero__actions { margin-top: 28px; }
  .hero__center { align-self: center; margin: calc(var(--med) / -2) 0; z-index: 2; }
  .hero__dark {
    align-self: stretch;
    max-width: none;
    text-align: left;
    background: var(--pine-deep);
    padding: calc(var(--med) / 2 + 36px) var(--gutter) 52px;
    border-radius: 48% 52% 0 0 / 56px 56px 0 0;
  }
  .hero__meta { margin-top: 20px; align-items: flex-start; }
  .hero__meta .icon { margin-top: 2px; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--section-y); }
.section--porcelain { background: var(--porcelain); }
.section--paper { background: var(--paper); }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  color: var(--pine);
  text-wrap: balance;
}
.section-lede { color: var(--muted); max-width: 60ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 80px);
}
.split__main { display: grid; gap: 36px; justify-items: start; }

.statement {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
}
.prose { gap: 24px; }
.prose p:not(.statement) { color: var(--muted); max-width: 66ch; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* Facts */
.facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts__item { padding: 22px 22px 0 0; display: grid; gap: 6px; align-content: start; }
.facts__item + .facts__item { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--pine);
  line-height: 1.2;
}
.facts dd { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts__item, .facts__item + .facts__item { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- 7. Services (home + page) ---------- */
.service-columns {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: 48px;
}
.service-group {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.service-group--diagnostics { background: var(--pine); border-color: var(--pine); color: var(--on-dark); }
.service-group__title {
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--brass-ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.service-group--diagnostics .service-group__title { color: var(--brass-light); border-color: var(--line-dark); }

.service-list li { border-bottom: 1px solid var(--line); }
.service-group--diagnostics .service-list li { border-color: var(--line-dark); }
.service-group__more { margin-top: auto; padding-top: 24px; }
.service-group--diagnostics .link-arrowless { color: var(--on-dark); }
.service-group--diagnostics .link-arrowless:hover { color: var(--brass-light); }
.service-list li:last-child { border-bottom: 0; }
.service-list a,
.service-list span {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.4;
  text-decoration: none;
}
.service-list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.service-list a:hover { text-decoration-color: var(--brass); color: var(--white); }

@media (max-width: 820px) {
  .service-columns { grid-template-columns: 1fr; }
}

/* Services page */
.service-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(28px, 5vw, 80px); }
.service-block + .service-block { margin-top: clamp(56px, 7vw, 96px); }
.service-block__title {
  grid-row: span 2;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--fs-xl); color: var(--pine); line-height: 1.15;
}
.service-rows { border-top: 1px solid var(--line-strong); }
.service-rows__item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-rows__item h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-lg);
  line-height: 1.35;
  color: var(--ink);
}
.service-block .link-arrowless { grid-column: 2; margin-top: 24px; justify-self: start; }
@media (max-width: 820px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block__title { grid-row: auto; margin-bottom: 20px; }
  .service-block .link-arrowless { grid-column: 1; }
}

.feature-link {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .25s var(--ease);
}
.feature-link:hover { border-color: var(--pine); }
.feature-link__text { display: grid; gap: 10px; max-width: 60ch; }
.feature-link__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--display-weight); color: var(--pine); line-height: 1.15; }
.feature-link__body { color: var(--muted); }
.feature-link .btn { flex: none; }
@media (max-width: 720px) {
  .feature-link { flex-direction: column; align-items: flex-start; }
}

/* ---------- 8. Doctor feature ---------- */
.doctor { padding-block: var(--section-y); }
.doctor--dark { background: var(--pine-deep); color: var(--on-dark); }

.doctor__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.doctor__photo {
  justify-self: center;
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  padding: 10px;
  border: 1px solid rgba(201, 167, 90, 0.55);
  border-radius: 999px 999px 24px 24px;
}
.doctor__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 25%;
  border-radius: 999px 999px 16px 16px;
}

.doctor__text { display: grid; gap: 10px; justify-items: start; }
.doctor__role { color: var(--brass-light); font-size: var(--fs-sm); font-weight: 500; }
.doctor__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
}
.doctor__degree { font-family: var(--font-display); font-size: var(--fs-md); color: var(--on-dark-muted); margin-bottom: 18px; }
.doctor__list { display: grid; gap: 0; margin-bottom: 30px; width: 100%; max-width: 620px; border-top: 1px solid var(--line-dark); }
.doctor__list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.doctor__list .yy { color: var(--brass); transform: translateY(2px); }

@media (max-width: 820px) {
  .doctor__inner { grid-template-columns: 1fr; }
  .doctor__photo { width: min(100%, 240px); }
}

/* ---------- 9. Treatment areas (home links) ---------- */
.area-links { border-top: 1px solid var(--line-strong); }
.area-links li { border-bottom: 1px solid var(--line); }
.area-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  text-decoration: none;
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.area-links__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-xl);
  line-height: 1.15;
  color: var(--pine);
}
.area-links__count { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
@media (max-width: 420px) {
  .area-links a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .area-links__name { font-size: 1.6rem; min-width: 0; }
}
.area-links a:hover { padding-left: 14px; }
.area-links a:hover .area-links__name { color: var(--jade); }
@media (prefers-reduced-motion: reduce) { .area-links a:hover { padding-left: 0; } }

/* ---------- 10. Branches ---------- */
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.branch {
  display: grid; gap: 14px; align-content: start; justify-items: start;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.section--porcelain .branch { background: var(--paper); }
.branch__city {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-xl);
  color: var(--pine);
  line-height: 1.1;
  margin-bottom: 6px;
}
.branch__row { display: flex; gap: 12px; align-items: flex-start; }
.branch__row > .icon { color: var(--jade); margin-top: 3px; }
.branch__label { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.tel { color: var(--pine); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.tel:hover { color: var(--jade); }
.hours { display: grid; gap: 6px; }
.hours div { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
@media (max-width: 480px) {
  /* day on one line, time under it — the same for every row */
  .hours { gap: 10px; }
  .hours div { grid-template-columns: 1fr; }
}
.hours dt { color: var(--muted); }
.hours dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.hours small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.branch .link-quiet { margin-top: 6px; }
@media (max-width: 720px) {
  .branches { grid-template-columns: 1fr; }
}

/* ---------- 11. CTA ---------- */
.cta { padding-block: 0 var(--section-y); background: var(--porcelain); }
.section--paper + .cta { background: var(--paper); }
.cta__panel {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--pine);
  color: var(--on-dark);
}
.cta__panel::after {
  /* echo of the yin-yang seam */
  content: "";
  position: absolute; right: -120px; top: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(201, 167, 90, 0.35);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-xl);
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
}
.cta__text { margin-top: 12px; color: var(--on-dark-muted); max-width: 48ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; flex: none; }
@media (max-width: 820px) {
  .cta__panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- 12. Inner page head ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px);
  background: var(--porcelain);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; }
.crumbs { display: flex; gap: 10px; font-size: var(--fs-xs); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.page-head__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-2xl);
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  color: var(--pine);
  max-width: 18ch;
  text-wrap: balance;
}
.page-head__lede { max-width: 56ch; font-size: var(--fs-md); line-height: 1.6; color: var(--muted); }
.page-head__seam {
  position: absolute;
  right: clamp(-40px, 6vw, 120px); top: 0;
  width: 160px; height: 100%;
  overflow: visible;
}
.page-head__seam path { stroke: var(--brass); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: .8; }
@media (max-width: 820px) { .page-head__seam { right: -60px; opacity: .5; } }

/* ---------- 13. About ---------- */
.values {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.values__item {
  display: grid; gap: 12px; align-content: start;
  padding: clamp(24px, 3vw, 40px) clamp(0px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.values__item:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.values__item h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); color: var(--pine); line-height: 1.35; }
.values__item p { color: var(--muted); max-width: 46ch; }
@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; }
  .values__item:nth-child(even) { padding-left: 0; border-left: 0; }
}

.section-title + .branches { margin-top: clamp(32px, 4vw, 56px); }

.anchor-target { position: relative; top: calc(-1 * var(--header-h)); }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.team__member {
  display: flex; align-items: center; gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.monogram {
  flex: none;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brass-ink);
}
.team__name { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--pine); line-height: 1.3; }
.team__role { display: block; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }

/* ---------- 14. Methods ---------- */
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.method {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
}
.method--voll { background: var(--pine); color: var(--on-dark); border-color: var(--pine); }
.method__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  color: var(--pine);
}
.method--voll .method__name { color: var(--on-dark); }
.method__title { font-size: var(--fs-base); font-weight: 500; color: var(--muted); }
.method--voll .method__title { color: var(--on-dark-muted); }
.method__facts { margin-top: 18px; border-top: 1px solid var(--line); }
.method--voll .method__facts { border-color: var(--line-dark); }
.method__facts li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.method--voll .method__facts li { border-color: var(--line-dark); }
.method--voll .yy { color: var(--brass); }
.method__facts .yy { transform: translateY(2px); }
@media (max-width: 820px) { .methods { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .method { padding: 24px 20px; border-radius: var(--radius-lg); }
  .specialist { padding: 16px; gap: 14px; }
}

.specialist {
  display: flex; align-items: center; gap: 20px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 20px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  max-width: 760px;
}
.specialist img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.specialist__label { display: block; font-size: var(--fs-xs); color: var(--brass-ink); font-weight: 600; }
@media (max-width: 560px) { .specialist { border-radius: var(--radius-lg); align-items: flex-start; } }

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(32px, 4vw, 56px);
  counter-reset: step;
}
.steps__item { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-strong); position: relative; }
.steps__num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--brass-ink);
  font-weight: 300;
}
.steps__item h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; color: var(--pine); line-height: 1.35; }
.steps__item p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 15. Directions page ---------- */
.directions__layout {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.directions__nav {
  position: sticky; top: calc(var(--header-h) + 32px);
}
.directions__nav ul { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.directions__nav a {
  display: block;
  padding: 10px 0 10px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.directions__nav a:hover { color: var(--pine); }
.directions__nav a.is-active { color: var(--pine); border-left-color: var(--brass); font-weight: 500; }

.directions__content { display: grid; gap: clamp(56px, 7vw, 96px); }
.area__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-xl);
  color: var(--pine);
  line-height: 1.15;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.area__list li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-bottom: 1px solid var(--line);
  max-width: 78ch;
}
.area__list li::before {
  content: "";
  position: absolute; left: 4px; top: calc(18px + 0.75em);
  width: 10px; height: 1px;
  background: var(--brass-ink);
}
.area__systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.area__systems > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.area__systems dt { font-family: var(--font-display); font-size: var(--fs-md); color: var(--pine); font-weight: 500; line-height: 1.35; margin-bottom: 8px; }
.area__systems dd { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }

@media (max-width: 960px) {
  .directions__layout { grid-template-columns: 1fr; }
  .directions__nav {
    top: var(--header-h);
    z-index: 5;
    margin-inline: calc(-1 * var(--gutter));
    padding: 10px var(--gutter);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .directions__nav::-webkit-scrollbar { display: none; }
  .directions__nav ul { display: flex; gap: 8px; border: 0; width: max-content; }
  .directions__nav a {
    padding: 8px 16px; margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    background: var(--white);
  }
  .directions__nav a.is-active { border-color: var(--pine); background: var(--pine); color: var(--on-dark); }
}
@media (max-width: 720px) {
  .area__systems { grid-template-columns: 1fr; }
}

/* ---------- 15b. Preparations page ---------- */
.feature-link--spaced { margin-top: clamp(40px, 5vw, 72px); }

.prep-features { align-self: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.prep-features li { display: grid; gap: 10px; align-content: start; padding: 24px 24px 0 0; line-height: 1.5; }
.prep-features li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.prep-features__num { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1; color: var(--brass-ink); }
@media (max-width: 720px) {
  .prep-features { grid-template-columns: 1fr; }
  .prep-features li,
  .prep-features li + li { grid-template-columns: 2rem 1fr; align-items: baseline; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.prep-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.prep-search {
  flex: 1 1 320px; max-width: 520px;
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 20px;
  background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  color: var(--muted);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.prep-search:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(62, 125, 90, 0.18); }
.prep-search .icon { flex: none; }
.prep-search input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  font: inherit; font-size: var(--fs-base); color: var(--ink);
}
.prep-search input::placeholder { color: var(--muted); opacity: 1; }
.prep-count { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
.prep-count b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-lg); color: var(--pine); margin-right: 4px; }

.prep-list { columns: 2; column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line-strong); }
.prep { break-inside: avoid; display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.prep__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-lg);
  line-height: 1.25;
  color: var(--pine);
}
.prep__text { color: var(--muted); line-height: 1.65; }
@media (max-width: 860px) { .prep-list { columns: 1; } }

.prep-empty { padding: 28px 0; color: var(--muted); }
.prep-notice {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 760px; margin-top: clamp(32px, 4vw, 48px);
  padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper);
  font-size: var(--fs-sm); line-height: 1.6; color: var(--ink);
}
.prep-notice .yy { color: var(--brass-ink); flex: none; margin-top: 3px; }

.prep-closing { display: grid; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); width: 100%; }
.prose p.prep-closing { max-width: none; }
.prep-closing__wish { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-lg); line-height: 1.35; color: var(--pine); }
.prep-closing__sign { font-size: var(--fs-sm); color: var(--brass-ink); font-weight: 500; }

/* ---------- 16. Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact__info { display: grid; gap: 20px; }
.contact__email {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 20px clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.contact__email .icon { color: var(--jade); margin-top: 3px; }
.contact__email a { color: var(--pine); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact__panel {
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -60px rgba(15, 39, 29, 0.35);
}
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .contact__panel { order: -1; }
}

.notice { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: var(--fs-sm); }
.notice--error { background: var(--danger-bg); color: var(--danger); }
.notice--success { background: var(--ok-bg); color: var(--pine); }

.form { display: grid; }
.form > * + * { margin-top: 22px; }
.form__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-xl);
  line-height: 1.15;
  color: var(--pine);
}
.form__status { padding: 12px 16px; border-radius: var(--radius-md); background: var(--danger-bg); color: var(--danger); font-size: var(--fs-sm); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); padding: 0; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input::placeholder { color: #8C968F; }
.field__input:hover { border-color: var(--pine); }
.field__input:focus { outline: none; border-color: var(--pine); background: var(--white); box-shadow: 0 0 0 4px rgba(62, 125, 90, 0.16); }
.field__input--area { min-height: 132px; resize: vertical; line-height: 1.6; }
.field__input--date { max-width: 260px; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-xs); color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.has-error .field__input { border-color: var(--danger); background: var(--danger-bg); }

/* Question / consultation picker */
.kind-picker legend { margin-bottom: 10px; }
.kind-picker__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kind-picker__option { position: relative; cursor: pointer; }
.kind-picker__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-picker__box {
  display: grid; gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.kind-picker__title { font-family: var(--font-display); font-size: var(--fs-md); color: var(--pine); line-height: 1.3; }
.kind-picker__hint { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.kind-picker__option:hover .kind-picker__box { border-color: var(--pine); }
.kind-picker__option input:checked + .kind-picker__box { background: var(--pine); border-color: var(--pine); }
.kind-picker__option input:checked + .kind-picker__box .kind-picker__title { color: var(--on-dark); }
.kind-picker__option input:checked + .kind-picker__box .kind-picker__hint { color: var(--on-dark-muted); }
.kind-picker__option input:focus-visible + .kind-picker__box { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
@media (max-width: 420px) { .kind-picker__options { grid-template-columns: 1fr; } }

/* Consultation-only fields slide open */
/* spacing lives inside the clipped box, so a closed panel takes no room */
.form > .reveal { margin-top: 0; }
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ease), opacity .3s var(--ease); }
.reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
.reveal__inner { overflow: hidden; display: grid; gap: 22px; min-height: 0; }
.reveal__inner > :first-child { margin-top: 22px; }
.reveal:not(.is-open) .reveal__inner { visibility: hidden; }
.reveal.is-open .reveal__inner { padding: 0 3px 3px; margin: 0 -3px -3px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover span { border-color: var(--pine); }
.pill input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--on-dark); }
.pill input:focus-visible + span { outline: 2px solid var(--brass-ink); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; line-height: 1.55; }
.check input {
  appearance: none; -webkit-appearance: none;
  flex: none;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.check input::after {
  content: "";
  width: 6px; height: 11px;
  border: solid var(--on-dark); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px) scale(0);
  transition: transform .2s var(--ease);
}
.check input:checked { background: var(--pine); border-color: var(--pine); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.has-error .check input { border-color: var(--danger); }

.form__footer { display: grid; gap: 12px; margin-top: 6px; }
.form__privacy { font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.form-done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 0; }
.form-done:focus { outline: none; }
.form-done__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pine); color: var(--brass-light);
}
.form-done__icon .icon { width: 32px; height: 32px; }
.form-done__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--display-weight); color: var(--pine); }
.form-done__text { color: var(--muted); max-width: 40ch; margin-bottom: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) .form-done__icon { animation: pop .5s var(--ease) both; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- 17. Error pages ---------- */
.error-page { padding-block: clamp(72px, 12vw, 160px); background: var(--porcelain); }
.error-page__inner { display: grid; justify-items: center; text-align: center; gap: 16px; }
.error-page__mark { width: 110px; margin-bottom: 12px; }
.error-page__code { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--brass-ink); line-height: 1; }
.error-page__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-2xl); color: var(--pine); line-height: 1.1; }
.error-page__text { color: var(--muted); max-width: 46ch; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: var(--on-dark-muted);
  padding-top: clamp(56px, 7vw, 96px);
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.site-footer a[aria-current="true"] { color: var(--brass-light); }
.site-footer .muted { color: var(--on-dark-muted); }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.site-footer__brand { display: grid; gap: 10px; justify-items: start; align-content: start; }
.badge-mark {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  margin-bottom: 8px;
}
.badge-mark img { width: 54px; }
.site-footer__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--on-dark); line-height: 1.2; }
.site-footer__tagline { max-width: 32ch; }
.site-footer__title { font-size: var(--fs-xs); font-weight: 600; color: var(--brass-light); margin-bottom: 14px; }
.site-footer__col ul { display: grid; gap: 10px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px 32px;
  background: linear-gradient(var(--line-dark), var(--line-dark)) no-repeat top / 100% 1px content-box;
  font-size: var(--fs-xs);
}
.site-footer__bottom p:first-child { max-width: 70ch; }

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Small phones ---------- */
@media (max-width: 420px) {
  body { overflow-wrap: anywhere; }
}

/* ---------- 19. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Admin shortcut (only visible when logged in to /admin) ---------- */
.admin-bar {
  position: fixed; z-index: 90; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: var(--pine-deep, #007000); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 39, 29, 0.28);
  font-family: "Noto Sans Georgian", system-ui, sans-serif; font-size: 15px; line-height: 1;
}
.admin-bar a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  border-radius: 999px; color: rgba(255, 255, 255, 0.85); text-decoration: none; white-space: nowrap;
}
.admin-bar a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.admin-bar .admin-bar__edit { background: #C9A75A; color: #0F271D; font-weight: 600; }
.admin-bar .admin-bar__edit:hover { background: #d8b86c; color: #0F271D; }
@media print { .admin-bar { display: none; } }


/* =====================================================================
   20. Clarity pass — denser layout, larger type, simpler shapes.
       Written for readers who are not at home with technology:
       bigger text, less empty space, fewer decorative frames,
       clear arrows for moving down the page.
   ===================================================================== */
:root {
  --fs-xs: 0.875rem;    /* 14 */
  --fs-sm: 1rem;        /* 16 */
  --fs-base: 1.125rem;  /* 18 */
  --muted: #47534B;
  --section-y: clamp(40px, 5vw, 76px);
  --container: 1440px;
  --header-h: 80px;
}

/* --- Section rhythm --- */
.section-head { gap: 8px; max-width: 880px; margin-bottom: clamp(20px, 3vw, 36px); }
.section-title--gap { margin-bottom: clamp(16px, 2.4vw, 28px); }
.section > .container > .section-title:not(.section-title--gap) { margin-bottom: clamp(16px, 2.4vw, 28px); }

/* Two columns that both carry text (no empty side column) */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.duo .statement { max-width: none; }
.duo__side {
  display: grid; gap: 20px; justify-items: start;
  padding-left: clamp(20px, 2.6vw, 40px);
  border-left: 2px solid var(--brass);
  color: var(--muted);
}
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo__side { padding: 0 0 0 18px; }
}

/* --- Header: more air between menu items on screens that have room --- */
.site-header__inner { gap: 16px; }
@media (min-width: 1311px) {
  /* The menu takes all the room between the logo and the buttons and
     spreads its items evenly — as much air as the screen allows. */
  .brand__type { display: none; }
  .main-nav { flex: 1 1 auto; min-width: 0; margin-left: 0; }
  .main-nav__list { justify-content: space-between; gap: 0; max-width: 1000px; margin-inline: auto; padding-inline: 10px; }
  html[lang="en"] .main-nav__list, html[lang="ru"] .main-nav__list { max-width: 780px; }
  .main-nav__list a { padding: 10px 8px; font-size: 0.9375rem; }
}
@media (min-width: 1440px) {
  .main-nav__list a { font-size: 1rem; }
  .lang-switch a { font-size: 0.9375rem; padding: 6px 11px; }
}

/* --- Hero: three facts fill the lower-left corner --- */
.hero__facts {
  grid-area: 3 / 1 / 4 / 2;
  align-self: end;
  display: grid; gap: 10px;
  max-width: 31rem;
  font-size: var(--fs-sm); line-height: 1.5; color: var(--muted);
}
.hero__facts div { padding-left: 14px; border-left: 2px solid var(--brass); }
.hero__facts dt { display: inline; margin-right: 6px; font-family: var(--font-display); font-size: var(--fs-md); color: var(--pine); }
.hero__facts dd { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .hero__facts { animation: from-left .9s var(--ease) .2s both; }
}
@media (max-width: 1100px) {
  .hero { --med: clamp(150px, 42vw, 200px); }
  .hero__word--light { padding-top: 28px; }
  .hero__intro { padding: 14px var(--gutter) calc(var(--med) / 2 + 28px); }
  .hero__actions { margin-top: 20px; }
  .hero__dark { padding: calc(var(--med) / 2 + 24px) var(--gutter) 24px; }
  .hero__facts {
    order: 5; max-width: none;
    padding: 4px var(--gutter) 36px;
    background: var(--pine-deep); color: var(--on-dark-muted);
  }
  .hero__facts div { border-left-color: var(--brass-light); }
  .hero__facts dt { color: var(--on-dark); }
}

/* --- Services --- */
.service-columns { gap: clamp(16px, 2.4vw, 32px); margin-bottom: 24px; }
.service-list a, .service-list span { padding: 14px 0; }
.feature-link { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); }
.feature-link--spaced { margin-top: clamp(16px, 2.4vw, 28px); }
.feature-link__title { font-size: var(--fs-lg); line-height: 1.25; }

/* --- Head of the center: plain photo, no window frame --- */
.doctor { padding-block: clamp(36px, 5vw, 72px); }
.doctor__inner {
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  grid-template-areas: "photo head" "photo body";
  gap: 18px clamp(28px, 5vw, 72px);
  align-items: start;
}
.doctor__photo {
  grid-area: photo; justify-self: stretch;
  width: 100%; aspect-ratio: 4 / 5;
  padding: 0; border: 0; border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.5);
}
.doctor__photo img { border-radius: 0; object-position: 50% 20%; }
.doctor__head { grid-area: head; display: grid; gap: 6px; }
.doctor__body { grid-area: body; display: grid; gap: 22px; justify-items: start; }
.doctor__name { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
.doctor__degree { margin-bottom: 0; }
.doctor__list {
  grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px);
  max-width: none; margin-bottom: 0; border-top: 0;
}
.doctor__list li { padding: 12px 0; border-bottom: 0; border-top: 1px solid var(--line-dark); }
@media (max-width: 1000px) { .doctor__list { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .doctor__inner {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-areas: "photo head" "body body";
    gap: 20px 16px; align-items: center;
  }
  .doctor__photo { width: 108px; aspect-ratio: 1; border-radius: 16px; }
  .doctor__name { font-size: 1.7rem; line-height: 1.12; }
  .doctor__degree { font-size: var(--fs-sm); }
}

/* --- Treatment areas: cards in a row instead of five full-width rows --- */
.area-links { border-top: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.area-links li { border-bottom: 0; }
.area-links a {
  height: 100%;
  flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.area-links a:hover { padding-left: 20px; border-color: var(--pine); transform: translateY(-3px); }
.area-links__name { font-size: var(--fs-lg); line-height: 1.2; }
@media (max-width: 1100px) { .area-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .area-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .area-links a { padding: 16px; } }
@media (max-width: 420px) { .area-links__name { font-size: 1.2rem; } }

/* --- About: four values in one row --- */
.values { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.values__item, .values__item:nth-child(even) { padding: 22px 22px 22px 0; border-bottom: 0; border-left: 0; }
.values__item + .values__item { padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 1000px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values__item { border-bottom: 1px solid var(--line); }
  .values__item:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; }
  .values__item, .values__item + .values__item, .values__item:nth-child(even) { padding: 18px 0; border-left: 0; }
}

/* --- Inner page head: shorter --- */
.page-head { padding-block: clamp(22px, 3.2vw, 44px) clamp(22px, 3vw, 40px); }
.page-head__inner { gap: 10px; }
.page-head__title { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); max-width: 26ch; }
.page-head__lede { max-width: 68ch; }

/* --- Preparations --- */
.prep-features li { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; padding: 18px 22px 0 0; }
.prep-features__num { font-size: var(--fs-lg); }
.prep { padding: 16px 0; }
.prep__text { color: var(--ink); }
.prose-cols { columns: 2; column-gap: clamp(32px, 5vw, 72px); }
.prose-cols p { margin: 0 0 1em; line-height: 1.7; }
.prose-cols p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .prose-cols { columns: 1; } }
.prep-closing { margin-top: 24px; padding-top: 20px; }

/* --- Contact: "wait for our call" note for consultations --- */
.form-notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid #E6D08F; border-radius: var(--radius-md);
  background: #FFF6DC; color: #4A3A0C;
  font-size: var(--fs-sm); line-height: 1.55;
}
.form-notice .icon { flex: none; margin-top: 3px; color: var(--brass-ink); }

/* --- Up / down arrows: one press moves to the next part of the page --- */
.pager {
  position: fixed; z-index: 40;
  right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid; gap: 8px; justify-items: end;
}
.pager[hidden] { display: none; }
.pager__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; min-width: 52px; padding: 0 18px 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--white); color: var(--pine);
  font: 600 var(--fs-sm)/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(10, 30, 22, 0.4);
  transition: transform .2s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
}
.pager__btn--down { background: var(--pine); border-color: var(--pine); color: var(--white); }
.pager__btn:hover { transform: translateY(-2px); }
.pager__btn.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
body.menu-open .pager { display: none; }
@media (max-width: 720px) {
  .pager__btn { width: 50px; height: 50px; min-width: 0; padding: 0; }
  .pager__btn span { display: none; }
  .site-footer { padding-bottom: 68px; }
}
@media print { .pager { display: none; } }

/* --- Blocks ease in as they come into view (phones too) --- */
.anim {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--anim-delay, 0ms);
}
.anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  /* "Reduce motion" is on: nothing slides, things only fade in softly. */
  .anim { transform: none; transition: opacity .5s ease !important; transition-duration: .5s !important; }
  .hero__word--light, .hero__intro, .hero__facts, .hero__dark, .hero__medallion {
    animation: fade-in .7s ease both !important; animation-duration: .7s !important;
  }
}

/* --- Phones: tighter blocks --- */
@media (max-width: 640px) {
  .cta__panel { padding: 26px 22px; }
  .branch { padding: 22px 20px; }
  .statement { font-size: 1.25rem; line-height: 1.6; }
}

/* --- Arrows stay visible on green; hero text keeps clear of them --- */
.pager__btn--down { border: 2px solid var(--white); }
@media (min-width: 1101px) { .hero__meta { margin-bottom: 58px; } }
@media (max-width: 1100px) { .hero__meta { max-width: calc(100% - 64px); } }

/* --- Phones: shorter pages --- */
@media (max-width: 860px) {
  /* home: the second paragraph lives on the "about" page */
  .duo__side--brief { padding-left: 0; border-left: 0; }
  .duo__side--brief p { display: none; }
}
@media (max-width: 520px) {
  .area-links__name { font-size: 1.05rem; }
  .site-footer { padding-top: 40px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; padding-bottom: 28px; }
  .site-footer__brand { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .site-footer__brand .badge-mark { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .site-footer__brand .badge-mark img { width: 42px; }
  .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__col:last-child ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .site-footer__col ul { gap: 8px; }
}
/* Wide monitors: a wider page column — less empty margin at the sides and
   noticeably more air in the Georgian menu. */
@media (min-width: 1700px) { :root { --container: 1600px; } }

/* Hero fits one laptop screen more often */
@media (min-width: 1101px) {
  .hero__grid { padding-block: clamp(20px, 3.4vh, 56px); row-gap: clamp(8px, 1.4vh, 20px); }
  .hero__actions { margin-top: clamp(14px, 2.6vh, 30px); }
}

/* Search box never wider than a small phone */
.prep-search { flex: 1 1 min(320px, 100%); min-width: 0; }

/* Note under a branch's opening hours (e.g. Senaki: doctors visit periodically) */
.branch__note {
  margin: -4px 0 4px; padding: 10px 14px;
  border-left: 2px solid var(--brass); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--paper);
  font-size: var(--fs-sm); line-height: 1.55; color: var(--ink);
}
