/* Стоматология «Ак Чоку» — демо-сайт. Вымышленная клиника.
   Токены: porcelain / mist / juniper / ink / glacier / apricot.
   Шрифты: Geologica (текст), Unbounded (только цифры: время и цены). */

@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Geologica Fallback"; src: local("Arial"); size-adjust: 125.62%; ascent-override: 77.61%; descent-override: 21.89%; line-gap-override: 0%; }

:root {
  --porcelain: #F2F4F1;
  --mist: #E4EBE6;
  --white: #FFFFFF;
  --line: #CAD5CE;
  --ink: #10241F;
  --muted: #4F5D57;
  --juniper: #1D4A3E;
  --juniper-2: #2E6B5A;
  --juniper-deep: #163A31;
  --glacier: #A8D0CB;
  --glacier-soft: #CFE5E2;
  --apricot: #EFA35C;
  --apricot-tint: #FBEBDA;
  --apricot-ink: #7A4A12;
  --wa: #25D366;
  --wa-teal: #008069;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(72px, 9vw, 128px);

  --font: "Geologica", "Geologica Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --num: "Unbounded", "Geologica", system-ui, sans-serif;
  --focus: var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--num); font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.num-sm { font-family: var(--num); font-weight: 500; font-size: 0.85em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--light { background: var(--porcelain); color: var(--juniper-deep); }
.btn--light:hover { background: var(--white); }
.btn--primary { background: var(--juniper); color: var(--white); }
.btn--primary:hover { background: var(--juniper-deep); }
.btn--ghost { background: transparent; color: var(--juniper); box-shadow: inset 0 0 0 1.5px var(--juniper); }
.btn--ghost:hover { background: var(--mist); }
.btn--wa { background: var(--wa); color: var(--ink); }
.btn--wa:hover { background: #3ee07a; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Demo bar ---------- */
.demo-bar { background: var(--ink); color: #DDE6E1; font-size: 0.8125rem; line-height: 1.4; --focus: var(--apricot); }
.demo-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-block: 8px; }
.demo-bar a { color: var(--white); white-space: nowrap; font-weight: 600; }

/* ---------- Header + hero (juniper zone) ---------- */
.site-header, .hero { background: var(--juniper); color: var(--porcelain); --focus: var(--apricot); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; border-radius: 8px; }
.brand__mark { width: 36px; height: 36px; color: var(--glacier); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand__kind { font-size: 0.8125rem; color: var(--glacier); }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.9375rem; color: #DCE8E3; }
.site-nav a:hover { color: var(--white); text-decoration: underline; }

.hero { position: relative; padding-top: clamp(28px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14em;
}
.hero__lead { margin-top: 22px; max-width: 34em; color: #D3E3DD; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero__actions .btn { width: 100%; }
.link-quiet { color: var(--porcelain); font-weight: 600; padding: 6px 2px; }
.link-quiet:hover { color: var(--white); text-decoration-thickness: 2px; }
.hero__where { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--glacier); font-size: 0.9375rem; }
.hero__where svg { width: 18px; height: 18px; flex: none; }
.nowrap { white-space: nowrap; }

/* The board: today's free time, the hero's centrepiece */
.board {
  background: var(--juniper-deep);
  border: 1px solid rgba(168, 208, 203, .22);
  border-radius: var(--r-l);
  padding: 22px 18px 18px;
}
.board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 6px; }
.board__title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.board__date { color: var(--glacier); font-size: 0.875rem; text-align: right; }
.board__list { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.board__slot {
  width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 14px 14px 16px;
  background: rgba(242, 244, 241, .04);
  border: 1px solid rgba(168, 208, 203, .16);
  border-radius: var(--r-m);
  color: var(--porcelain); text-align: left; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.board__slot:hover { background: rgba(242, 244, 241, .1); border-color: rgba(168, 208, 203, .45); }
.board__time { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1; color: var(--white); }
.board__who { display: flex; flex-direction: column; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.board__who span { font-weight: 400; color: var(--glacier); font-size: 0.8125rem; }
.board__go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--juniper-deep); background: var(--porcelain); border-radius: 999px; padding: 7px 13px; }
.board__note { margin-top: 14px; padding-inline: 6px; color: #BCD6D0; font-size: 0.8125rem; line-height: 1.45; }
.board__empty { padding: 18px 16px; color: #D3E3DD; border: 1px dashed rgba(168, 208, 203, .35); border-radius: var(--r-m); }

.ridge { margin-top: clamp(32px, 4vw, 48px); height: clamp(72px, 10vw, 150px); }
.ridge svg { width: 100%; height: 100%; }
.ridge__back { fill: rgba(168, 208, 203, .14); }
.ridge__snow { fill: rgba(242, 244, 241, .75); }
.ridge__line { fill: none; stroke: var(--glacier); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ridge__front { fill: var(--porcelain); }

/* One orchestrated entrance */
@media (prefers-reduced-motion: no-preference) {
  .ridge__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6, .05, .25, 1) .15s forwards; }
  .ridge__snow { opacity: 0; animation: fade .8s ease 1.5s forwards; }
  .hero h1, .hero__lead, .hero__actions, .hero__where { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__lead { animation-delay: .08s; }
  .hero__actions { animation-delay: .16s; }
  .hero__where { animation-delay: .24s; }
  .board__list > li { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .board__list > li:nth-child(1) { animation-delay: .45s; }
  .board__list > li:nth-child(2) { animation-delay: .55s; }
  .board__list > li:nth-child(3) { animation-delay: .65s; }
  .board__list > li:nth-child(4) { animation-delay: .75s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Promise ---------- */
.promise { padding-block: clamp(40px, 6vw, 80px) var(--space); }
.promise__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.promise__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -0.03em; }
.promise__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.promise__list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.promise__list h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.promise__list p { color: var(--muted); max-width: 36em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--mist { background: var(--mist); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 44rem; }
.section__head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); letter-spacing: -0.035em; font-weight: 480; }
.section__head p { color: var(--muted); font-size: 1.0625rem; max-width: 38em; }

.demo-tag { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; margin-bottom: 20px; }
.demo-tag__mark { flex: none; font-size: 0.75rem; font-weight: 700; color: var(--apricot-ink); background: var(--apricot-tint); border: 1px dashed #C98A4B; border-radius: 6px; padding: 2px 8px; transform: translateY(-1px); }

/* ---------- Services / prices ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: -4px -4px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--juniper-2); }
.chip[aria-pressed="true"] { background: var(--juniper); border-color: var(--juniper); color: var(--white); }

.prices { border-top: 1px solid var(--line); }
.price {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.price[hidden] { display: none; }
.price__info { grid-column: 1 / -1; }
.price__info h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.price__info p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; max-width: 40em; }
.price__sum { font-size: 0.9375rem; color: var(--muted); white-space: nowrap; }
.price__sum .num { font-size: 1.125rem; color: var(--ink); }
.price__book { justify-self: end; color: var(--juniper); font-weight: 600; font-size: 0.9375rem; padding: 8px 2px; }
.price__book:hover { color: var(--juniper-deep); text-decoration-thickness: 2px; }

/* ---------- Doctors ---------- */
.doctors { display: grid; gap: 0; border-top: 1px solid var(--line); }
.doctor { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 64px; height: 64px; clip-path: circle(50%); }
.avatar__bg { fill: var(--white); }
.avatar__body { fill: var(--juniper); }
.avatar__collar { fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
.avatar__head { fill: #E9CDB4; }
.avatar__hair { fill: var(--ink); }
.avatar--a .avatar__bg { fill: var(--glacier-soft); }
.avatar--b .avatar__bg { fill: var(--apricot-tint); }
.avatar--b .avatar__body { fill: var(--juniper-2); }
.avatar--b .avatar__head { fill: #D9B392; }
.avatar--c .avatar__bg { fill: #E1E6F2; }
.avatar--c .avatar__body { fill: #34506B; }
.avatar--c .avatar__hair { fill: #6B4A2E; }
.avatar--d .avatar__bg { fill: #EAF0DA; }
.avatar--d .avatar__head { fill: #DDBA9C; }
.doctor__text h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.doctor__role { color: var(--juniper-2); font-weight: 500; font-size: 0.9375rem; margin-top: 2px; }
.doctor__text p:not(.doctor__role) { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; max-width: 30em; }
.doctor__text .doctor__days { margin-top: 6px; font-size: 0.875rem; }
.doctor__book { grid-column: 2; justify-self: start; color: var(--juniper); font-weight: 600; font-size: 0.9375rem; padding: 6px 0; }

/* ---------- Booking ---------- */
.booker {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  background: var(--white);
  border-radius: var(--r-l);
  box-shadow: 0 1px 0 rgba(16, 36, 31, .04), 0 40px 80px -40px rgba(16, 36, 31, .35);
  overflow: hidden;
}
.booker__main { padding: 20px 16px 24px; min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 22px; }
.steps li { display: grid; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--mist); }
.steps li.is-done::before { background: var(--juniper-2); }
.steps li.is-current::before { background: var(--juniper); }
.steps li.is-current { color: var(--ink); font-weight: 600; }
.steps__n { display: none; }
.steps button { all: unset; cursor: pointer; color: var(--juniper); text-decoration: underline; text-underline-offset: 0.2em; }
.steps button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.booker__panel { min-height: 320px; }
.booker.is-done .summary { display: none; }
.booker__fallback { color: var(--muted); }
.step-title { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); letter-spacing: -0.025em; font-weight: 500; outline: none; }
.step-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.step-sub { color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }
.step-body { margin-top: 20px; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 4px; color: var(--juniper); font-weight: 600; font-size: 0.9375rem; border-radius: 8px; }
.back svg { width: 18px; height: 18px; }
.back:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.opt {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px;
  padding: 14px 16px; text-align: left;
  background: var(--porcelain); border: 1.5px solid transparent; border-radius: var(--r-m);
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--juniper-2); background: var(--white); }
.opt[aria-pressed="true"] { border-color: var(--juniper); background: var(--white); box-shadow: inset 0 0 0 1px var(--juniper); }
.opt__name { font-weight: 600; line-height: 1.3; }
.opt__meta { grid-column: 1; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.opt__side { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.opt__side .num { font-size: 0.9375rem; color: var(--ink); margin-right: 4px; }
.opt--doc { grid-template-columns: 48px 1fr; }
.opt--doc .avatar { width: 48px; height: 48px; grid-row: 1 / span 2; }
.opt--doc .opt__meta { grid-column: 2; }
.opt__soon { display: inline-block; margin-top: 4px; color: var(--juniper-2); font-weight: 500; }
.opt__any { width: 48px; height: 48px; grid-row: 1 / span 2; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--juniper); }
.opt__any svg { width: 24px; height: 24px; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { text-align: center; font-size: 0.75rem; color: var(--muted); padding-bottom: 2px; }
.cal__day {
  position: relative; aspect-ratio: 1 / 1.08; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--porcelain); border: 1.5px solid transparent; border-radius: 12px; padding: 0;
  font-weight: 600; font-size: 1rem; line-height: 1;
}
.cal__day:hover:not([disabled]) { border-color: var(--juniper-2); background: var(--white); }
.cal__day[aria-pressed="true"] { background: var(--juniper); color: var(--white); border-color: var(--juniper); }
.cal__day small { font-size: 0.625rem; font-weight: 500; color: var(--muted); line-height: 1; }
.cal__day[aria-pressed="true"] small { color: var(--glacier-soft); }
.cal__day[disabled] { background: transparent; color: #8E9B95; cursor: not-allowed; font-weight: 400; background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(16, 36, 31, .06) 5px 6px); }
.cal__day[disabled] small { color: #5F6D67; }
.cal__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--juniper-2); }
.cal__dot--few { background: var(--apricot); }
.cal__day[aria-pressed="true"] .cal__dot { background: var(--glacier); }
.cal__today { position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.cal__day[aria-pressed="true"] .cal__today { background: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--juniper-2); }
.legend i.few { background: var(--apricot); }
.legend i.off { border-radius: 2px; background: repeating-linear-gradient(135deg, transparent 0 2px, rgba(16, 36, 31, .35) 2px 3px); border: 1px solid #A9B5AF; }

/* Time slots */
.slot-group + .slot-group { margin-top: 18px; }
.slot-group h4 { margin: 0 0 8px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.slot {
  min-height: 48px; padding: 0 4px;
  background: var(--porcelain); border: 1.5px solid transparent; border-radius: 12px;
  font-family: var(--num); font-weight: 500; font-size: 0.9375rem;
}
.slot:hover:not([disabled]) { border-color: var(--juniper-2); background: var(--white); }
.slot[aria-pressed="true"] { background: var(--juniper); color: var(--white); }
.slot[disabled] { background: transparent; color: #7B8882; text-decoration: line-through; text-decoration-color: rgba(16, 36, 31, .4); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--mist); }
.slots__none { color: var(--muted); font-size: 0.9375rem; }

/* Form */
.form { display: grid; gap: 18px; max-width: 30rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input {
  min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  font-size: 1.0625rem;
}
.field input:hover { border-color: #9DB0A7; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.phone-field { position: relative; }
.phone-field__cc { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.0625rem; color: var(--muted); pointer-events: none; }
.phone-field input { width: 100%; padding-left: 64px; letter-spacing: 0.02em; }
.field > input { width: 100%; }
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.field__err { font-size: 0.875rem; color: #A3201A; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--juniper); flex: none; }
.form .btn { width: 100%; }
.form__demo { font-size: 0.8125rem; color: var(--muted); }

/* Done */
.done__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--juniper); color: var(--white); display: grid; place-items: center; margin-bottom: 16px; }
.done__mark svg { width: 26px; height: 26px; }
.done__grid { display: grid; gap: 22px; margin-top: 20px; }
.done__list { display: grid; gap: 0; border-top: 1px solid var(--mist); }
.done__list div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mist); font-size: 0.9375rem; }
.done__list dt { color: var(--muted); }
.done__list dd { margin: 0; font-weight: 500; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.done__actions .btn { flex: 1 1 14rem; }

/* WhatsApp reminder preview */
.remind { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--mist); }
.remind__cap { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--wa-teal); color: var(--white); font-size: 0.875rem; font-weight: 600; }
.remind__cap svg { width: 18px; height: 18px; flex: none; }
.remind__body { padding: 16px 14px 18px; background-color: #EFEAE2; background-image: radial-gradient(rgba(16, 36, 31, .05) 1px, transparent 1.4px); background-size: 14px 14px; }

/* Summary aside */
.summary { background: var(--porcelain); padding: 16px; border-top: 1px solid var(--mist); }
.summary__title { font-size: 1rem; font-weight: 600; }
.summary__list { margin: 10px 0 0; display: grid; gap: 0; }
.summary__list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--mist); font-size: 0.875rem; }
.summary__list dt { color: var(--muted); }
.summary__list dd { margin: 0; font-weight: 500; }
.summary__list dd.is-empty { color: var(--muted); font-weight: 400; }
.summary__remind { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.875rem; color: var(--juniper); font-weight: 500; line-height: 1.4; }
.summary__remind svg { width: 20px; height: 20px; flex: none; }

/* ---------- Chat (WhatsApp mock) ---------- */
.chat__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.chat__copy h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); letter-spacing: -0.035em; font-weight: 480; }
.chat__copy > p:first-of-type { margin-top: 16px; color: var(--muted); max-width: 34em; }
.ticks { display: grid; gap: 10px; margin: 24px 0 28px; }
.ticks li { position: relative; padding-left: 30px; max-width: 32em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 16px; height: 9px; border-left: 2px solid var(--juniper-2); border-bottom: 2px solid var(--juniper-2); transform: rotate(-45deg); }

.phone { width: 100%; max-width: 400px; justify-self: center; background: var(--ink); border-radius: 40px; padding: 10px; box-shadow: 0 40px 80px -40px rgba(16, 36, 31, .5); }
.wa { display: flex; flex-direction: column; height: 600px; max-height: 78vh; min-height: 480px; border-radius: 31px; overflow: hidden; background: #EFEAE2; font-size: 0.9375rem; line-height: 1.4; color: #111B21; }
.wa__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: var(--wa-teal); color: var(--white); flex: none; }
.wa__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--juniper); color: var(--glacier); display: grid; place-items: center; flex: none; }
.wa__avatar svg { width: 24px; height: 24px; }
.wa__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wa__name { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__status { font-size: 0.75rem; color: #FFFFFF; }
.wa__demo { font-size: 0.6875rem; font-weight: 700; color: var(--apricot-ink); background: var(--apricot-tint); border-radius: 6px; padding: 2px 7px; }
.wa__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 12px 8px;
  background-color: #EFEAE2;
  background-image: radial-gradient(rgba(16, 36, 31, .05) 1px, transparent 1.4px);
  background-size: 14px 14px;
  display: flex; flex-direction: column; gap: 6px;
  scroll-behavior: smooth;
}
.wa__log:focus-visible { outline-offset: -3px; }
.wa__day { align-self: center; background: #FFFFFF; color: #54656F; font-size: 0.75rem; padding: 4px 10px; border-radius: 8px; margin: 2px 0 6px; box-shadow: 0 1px 0 rgba(11, 20, 26, .08); }
.msg { max-width: 86%; padding: 7px 9px 6px 10px; border-radius: 10px; box-shadow: 0 1px 0 rgba(11, 20, 26, .1); white-space: pre-line; overflow-wrap: anywhere; }
.msg--in { align-self: flex-start; background: #FFFFFF; border-top-left-radius: 3px; }
.msg--out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.msg__time { display: block; text-align: right; font-size: 0.6875rem; color: #54656F; margin-top: 2px; line-height: 1; }
.msg--out .msg__time { color: #4A5B52; }
.msg__time svg { display: inline-block; width: 16px; height: 11px; vertical-align: -1px; margin-left: 3px; color: #027EB5; }
.msg strong { font-weight: 600; }
.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; }
@media (prefers-reduced-motion: no-preference) {
  .msg--typing i { animation: blink 1s infinite ease-in-out; }
  .msg--typing i:nth-child(2) { animation-delay: .15s; }
  .msg--typing i:nth-child(3) { animation-delay: .3s; }
}
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.quick { align-self: flex-start; max-width: 86%; display: grid; gap: 4px; margin-bottom: 4px; }
.quick button {
  min-height: 40px; padding: 8px 14px;
  background: #FFFFFF; border: 0; border-radius: 10px; box-shadow: 0 1px 0 rgba(11, 20, 26, .1);
  color: #00745F; font-weight: 600; font-size: 0.9375rem; text-align: center;
}
.quick button:hover { background: #F5F6F6; }
.quick button:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.wa__form { display: flex; gap: 8px; align-items: center; padding: 8px 10px 12px; background: #F0F2F5; flex: none; }
.wa__input { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 22px; padding: 0 16px; background: #FFFFFF; font-size: 1rem; }
.wa__input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.wa__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--wa-teal); color: var(--white); display: grid; place-items: center; flex: none; }
.wa__send svg { width: 20px; height: 20px; }
.wa__noscript { align-self: center; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Clinic admin ---------- */
.admin { border-radius: var(--r-l); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.admin__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--mist); border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.admin__app { font-weight: 600; }
.admin__badge { font-size: 0.75rem; font-weight: 700; color: var(--apricot-ink); background: var(--apricot-tint); border: 1px dashed #C98A4B; border-radius: 6px; padding: 2px 8px; }
.admin__grid { display: grid; grid-template-columns: minmax(0, 1fr); }

.night { background: var(--ink); color: var(--porcelain); padding: 24px 20px; --focus: var(--apricot); display: flex; flex-direction: column; }
.night__morning { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(168, 208, 203, .2); color: var(--white); font-size: 1.0625rem; line-height: 1.45; max-width: 22em; }
.night__label { color: #BCD6D0; font-size: 0.9375rem; }
.night__count { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.night__count .num { font-size: clamp(3.5rem, 2.8rem + 3vw, 5rem); line-height: 1; color: var(--white); }
.night__unit { font-size: 1.125rem; color: var(--glacier); }
.night__chart { margin-top: 22px; }
.night__chart svg { width: 100%; height: auto; overflow: visible; }
.night__axis { stroke: rgba(168, 208, 203, .35); stroke-width: 1; }
.night__tick { fill: #9DB8B1; font-family: var(--font); font-size: 11px; }
.night__dot--book { fill: var(--glacier); }
.night__dot--info { fill: rgba(242, 244, 241, .55); }
.night__dot--hand { fill: var(--apricot); }
.night__legend { display: grid; gap: 6px; margin-top: 18px; font-size: 0.875rem; color: #D3E3DD; }
.night__legend li { display: flex; align-items: center; gap: 8px; }
.night__legend .num-sm { color: var(--white); min-width: 1.6em; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--book { background: var(--glacier); }
.dot--info { background: rgba(242, 244, 241, .55); }
.dot--hand { background: var(--apricot); }

.today { padding: 22px 16px 16px; min-width: 0; }
.today__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-inline: 4px; }
.today__head h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.today__date { color: var(--muted); font-size: 0.875rem; }
.today__list { margin-top: 12px; display: grid; gap: 0; }
.row {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: 2px 12px; align-items: start;
  padding: 12px 4px; border-top: 1px solid var(--mist);
}
.row__time { font-family: var(--num); font-weight: 500; font-size: 0.9375rem; padding-top: 1px; }
.row__who { font-weight: 600; font-size: 0.9375rem; }
.row__what { grid-column: 2; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.row__tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 0.75rem; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--mist); color: var(--ink); white-space: nowrap; }
.tag--site { background: #E1E6F2; color: #26384F; }
.tag--bot { background: #D9F5E4; color: #0B5A39; }
.tag--call { background: #EFEBE3; color: #5A4A2E; }
.tag--ok { background: transparent; color: var(--juniper-2); padding-inline: 0; }
.tag--wait { background: transparent; color: var(--apricot-ink); padding-inline: 0; }
.tag--done { background: transparent; color: var(--muted); padding-inline: 0; }
.row--new { background: var(--apricot-tint); border-radius: 12px; border-top-color: transparent; padding-inline: 10px; margin-bottom: 4px; }
.row--new + .row { border-top-color: transparent; }
.row__new { font-size: 0.75rem; font-weight: 700; color: var(--apricot-ink); }
@media (prefers-reduced-motion: no-preference) {
  .row--new { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
}
.today__empty { color: var(--muted); padding: 12px 4px; }
.today__more { margin-top: 8px; background: none; border: 0; color: var(--juniper); font-weight: 600; padding: 8px 4px; border-radius: 8px; font-size: 0.9375rem; }
.today__more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.prices__more { margin-top: 16px; }
@media (max-width: 899px) {
  .prices.is-collapsed .price[data-extra] { display: none; }
}

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.contacts__text h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); letter-spacing: -0.035em; font-weight: 480; }
.facts { margin: 24px 0 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: var(--r-l); }
.map__bg { fill: #DCE4DE; }
.map__park { fill: #C5D9C4; }
.map__river { fill: none; stroke: #A9CFD6; stroke-width: 14; stroke-linecap: round; }
.map__street path { fill: none; stroke: var(--white); stroke-width: 12; }
.map__lane path { fill: none; stroke: #F4F6F3; stroke-width: 5; }
.map__halo { fill: rgba(29, 74, 62, .14); }
.map__pin { fill: var(--juniper); }
.map__pin-dot { fill: var(--porcelain); }
.map__label { fill: var(--ink); font-family: var(--font); font-weight: 600; font-size: 22px; }
.map__park-label { fill: #3F5A44; font-family: var(--font); font-size: 18px; }
.map figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Aziz CTA ---------- */
.aziz { background: var(--ink); color: var(--porcelain); padding-block: clamp(64px, 8vw, 112px); --focus: var(--apricot); }
.aziz__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; }
.aziz h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); letter-spacing: -0.035em; font-weight: 480; max-width: 18em; }
.aziz__text p { margin-top: 18px; color: #C8D8D2; max-width: 38em; }
.aziz__cta { display: grid; gap: 18px; justify-items: start; }
.aziz__cta .btn { width: 100%; }
.aziz__sign a { color: var(--glacier); font-size: 0.9375rem; }
.aziz__sign a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B4C5BF; border-top: 1px solid rgba(168, 208, 203, .15); padding: 28px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 0.875rem; --focus: var(--apricot); }
.site-footer__in { display: grid; gap: 8px; }
.site-footer__brand { color: var(--porcelain); font-weight: 600; }
.site-footer__note { color: var(--porcelain); }
.site-footer__small { font-size: 0.8125rem; }
.site-footer a { color: var(--glacier); }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(242, 244, 241, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.dock[hidden] { display: none; }
.dock.is-on { transform: none; visibility: visible; transition: transform .3s ease; }
.dock .btn { min-height: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa__log { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  .hero__actions .btn { width: auto; }
  .price { grid-template-columns: 1fr auto auto; }
  .price__info { grid-column: 1; }
  .price__sum, .price__book { align-self: center; }
  .price__book { padding-left: 12px; }
  .cal { gap: 8px; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .aziz__cta .btn { width: auto; }
  .done__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  .site-nav { display: block; }
  .prices__more { display: none; }
  .night__legend { margin-bottom: 22px; }
  .night__morning { margin-top: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 56px; }
  .board { padding: 26px 22px 22px; }
  .promise__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; }
  .promise__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .doctors { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .booker { grid-template-columns: minmax(0, 1fr) 320px; }
  .booker.is-done { grid-template-columns: minmax(0, 1fr); }
  .booker__main { padding: 32px 36px 36px; }
  .summary { border-top: 0; border-left: 1px solid var(--mist); padding: 32px 26px; }
  .opts--services { grid-template-columns: 1fr 1fr; }
  .chat__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; }
  .admin__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
  .night { padding: 32px 30px; }
  .today { padding: 28px 28px 22px; }
  .row { grid-template-columns: 4rem minmax(0, 1fr) auto; }
  .row__tags { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; justify-content: flex-end; align-self: center; }
  .contacts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
  .aziz__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
  .aziz__cta { justify-items: end; text-align: right; }
  .dock { display: none !important; }
}

@media (min-width: 1100px) {
  .prices { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .price { grid-template-columns: 1fr auto; }
  .price__info { grid-column: 1 / -1; }
  .price__book { justify-self: end; }
}

@media (min-width: 1200px) {
  .hero__grid { gap: 96px; }
}

/* ---------- Narrow phones (must come last to override base rules) ---------- */
@media (max-width: 359px) {
  .board { padding-inline: 12px; }
  .board__slot { gap: 10px; padding: 12px 10px 12px 12px; }
  .board__go { padding: 6px 10px; }
  .site-header__in { gap: 12px; }
  .brand__kind { display: none; }
}
@media (max-width: 379px) {
  .opt { grid-template-columns: minmax(0, 1fr); }
  .opt__side { grid-row: auto; grid-column: 1; text-align: left; }
  .opt--doc { grid-template-columns: 48px minmax(0, 1fr); }
}
