/* ==========================================================================
   VetPetCare v09 «Tiles» — палитра бренда VetPetCare.
   Правки Артёма 28.09.2026: оранжевый #C1521E, серый #757575,
   белый #EFECE3, чёрный. Рукописные штрихи (подчёркивание, обводка,
   стрелка) — фирменный приём, используется точечно.
   Грамматика: листы на тёплом холсте, плитки, пилюли, круглая стрелка ↘,
   нумерованные строки врачей, квиз «с чего начать», карточка записи.
   ========================================================================== */

/* Onest (OFL) — свой хостинг: сайт может жить за CSP с font-src 'self' */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/onest-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; }

/* ---------- Токены ---------- */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-xs: 10px; --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 36px;
  --wrap: 1320px;
  --gut: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Onest", system-ui, sans-serif;

  /* бренд */
  --brand-orange: #c1521e;
  --brand-grey: #757575;
  --brand-white: #efece3;
  --brand-black: #161616;
  --graphite: #45423e;             /* тёплый графит — мягче чёрного: плитки направлений, «Мне только спросить» */

  --bg: var(--brand-white);        /* холст страницы */
  --page: var(--brand-white);
  --card: #f8f6f0;                 /* поверхности поверх холста: формы, карточки */
  --sheet: #e5e0d3;                /* листы-секции */
  --ink: var(--brand-black);
  --ink-2: #595959;                /* вторичный текст: #757575 темнее на ступень ради AA на #EFECE3 */
  --grey: var(--brand-grey);       /* линии, иконки, декор */
  --line: #d7d1c2;
  --accent: var(--brand-orange);
  --accent-ink: #ffffff;
  --accent-deep: #a2410f;
  --accent-soft: #f2d8ca;
  --mark: var(--brand-orange);     /* рукописные штрихи */
  --mark-dark: #ec7a44;            /* штрихи на тёмном фото */
  --shade: 22 18 14;               /* тёплый чёрный для затемнений */
  --shadow: 0 18px 40px -18px rgb(40 26 14 / .28), 0 2px 6px rgb(40 26 14 / .07);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--accent) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

h1, h2 { font-weight: 400; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.5rem); line-height: 1.02; }
h3, h4 { font-weight: 500; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
.prose a, .lead a { color: var(--accent); }

/* ---------- Рукописные штрихи ---------- */
.scribbled { position: relative; white-space: nowrap; }
.scribble { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .3em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--mark); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 0; }
.circled { position: relative; white-space: nowrap; display: inline-block; }
.circled { margin-left: .12em; }
.circled-mark { position: absolute; left: -7%; top: -14%; width: 114%; height: 134%; overflow: visible; pointer-events: none; }
.circled-mark path { fill: none; stroke: var(--mark); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 0; }
.hint-arrow { display: block; width: 54px; fill: none; stroke: var(--grey); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Страница ---------- */
main {
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto; padding: 0 var(--gut) var(--s8);
}
.sec { padding-block: clamp(64px, 9vw, 120px) 0; }
.sheet-sec {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--sheet); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 64px);
}
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lead { margin-top: var(--s4); }
.sec-head-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s5) var(--s7); align-items: end; }
.sec-head-split .lead { margin-top: 0; }
.sec-head-nav { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); }
.h-sub { display: block; font-size: .5em; letter-spacing: -0.01em; color: var(--ink-2); font-weight: 400; margin-top: .35em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-deep); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--page); }
.round {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 0; background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s, opacity .2s;
}
.round:hover { background: var(--ink); color: var(--page); box-shadow: none; }
.round:disabled { opacity: .35; pointer-events: none; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 10px; z-index: 50; padding: 10px var(--gut) 0; }
.header-in {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: var(--s4);
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s;
}
.header[data-stuck="true"] .header-in { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--sheet); color: var(--ink); }
.header-act { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.nav + .header-act { margin-left: 0; }
.header-phone { font-weight: 600; font-size: 15px; text-decoration: none; padding: 0 6px; }
.burger { display: none; }

.sheet {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  padding: 20px var(--gut) 32px; background: var(--ink); color: var(--brand-white);
  transform: translateY(-102%); transition: transform .5s var(--ease); visibility: hidden;
}
.sheet[data-open="true"] { transform: none; visibility: visible; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet-close { background: none; border: 0; color: inherit; width: 48px; height: 48px; display: grid; place-items: center; }
.sheet-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: auto 0; }
.sheet-nav a { font-size: clamp(1.5rem, 6.6vw, 2.1rem); text-decoration: none; padding: 6px 12px; font-weight: 500; letter-spacing: -0.02em; }
.sheet-phone { align-self: center; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }

/* ---------- Герой: интерьер фоном, надписи поверх ---------- */
.hero { padding-top: clamp(12px, 2.4svh, 24px); }
.hero-panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  background: rgb(var(--shade)); color: #fff;
  /* первый экран целиком: высота окна минус шапка и отступы */
  height: clamp(500px, calc(100svh - 112px), 820px);
  padding: clamp(24px, min(4vw, 5svh), 56px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--shade) / .84) 0%, rgb(var(--shade) / .66) 32%, rgb(var(--shade) / .14) 56%, transparent 68%),
    linear-gradient(0deg, rgb(var(--shade) / .4) 0%, transparent 42%);
}
.hero-copy { max-width: min(640px, 54%); }
.hero h1 { font-size: clamp(2.1rem, min(4.6vw, 7.4svh), 4.3rem); line-height: 1; color: #fff; }
.hero .scribble path { stroke: var(--mark-dark); }
.hero-lead { margin-top: clamp(12px, 2.6svh, 24px); font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgb(255 255 255 / .9); max-width: 44ch; text-wrap: pretty; }
.hero-acts { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: clamp(16px, 3.6svh, 36px); }
.hero-act {
  display: flex; align-items: center; gap: 16px; padding: 6px 6px 6px 24px; min-height: 60px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .3s var(--ease), background-color .25s, box-shadow .25s;
}
.hero-act i { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; transition: transform .35s var(--ease); }
.hero-act:hover { transform: translateY(-2px); }
.hero-act:hover i { transform: rotate(-45deg); }
.hero-act-main { background: var(--accent); color: #fff; }
.hero-act-main i { background: #fff; color: var(--accent); }
.hero-act-main:hover { background: var(--accent-deep); }
.hero-act:not(.hero-act-main) { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); background: rgb(var(--shade) / .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-act:not(.hero-act-main) i { background: var(--brand-white); color: var(--ink); }
.hero-act:not(.hero-act-main):hover { background: rgb(255 255 255 / .14); }

.hero-chat {
  /* внизу, на уровне плеч Милы — не закрывает лицо */
  position: absolute; z-index: 2; left: 50%; bottom: clamp(20px, 6svh, 56px); width: min(300px, 26%);
  padding: 14px; border-radius: var(--r-md);
  background: rgb(248 246 240 / .92); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); display: grid; gap: 8px;
}
.hero-chat-meta { font-size: 12.5px; color: var(--ink-2); padding-left: 4px; }
.bubble { font-size: 14px; line-height: 1.4; padding: 9px 13px; border-radius: 16px; max-width: 92%; }
.bubble-out { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble-in { background: var(--sheet); border-bottom-left-radius: 5px; }

/* Цифры под героем */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s6); padding: clamp(32px, 4vw, 52px) 4px 0; }
.stat { min-width: 0; }
.stat dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: var(--s4); border-bottom: 1.5px solid var(--ink); font-size: 17px; font-weight: 600; }
.stat dt b { font-size: clamp(2.3rem, 3.6vw, 3.3rem); line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.stat:first-child dt b, .stat:nth-child(2) dt b { color: var(--accent); }
.stat dd { padding-top: var(--s4); color: var(--ink-2); font-size: 15px; line-height: 1.45; max-width: 28ch; }

/* ---------- С чего начать: квиз, минимальный ----------
   Ситуации — пилюли; ответ — две строки фактов и три шага; затем заявка. */
.quiz { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--s5) clamp(32px, 5vw, 72px); align-items: start; }
.quiz-head .lead { margin-top: var(--s4); max-width: 34ch; }
.quiz-card { background: var(--card); border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 30px); scroll-margin-top: 96px; }
.quiz-card:focus { outline: none; }
.quiz-bar { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); min-height: 28px; }
.quiz-count { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.quiz-count b { color: var(--ink); font-weight: 600; }
.quiz-track { flex: 1; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
/* доля пройденного: --p задаёт скрипт (шаг / число шагов) */
.quiz-track i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform: scaleX(var(--p, .167)); transform-origin: left; transition: transform .6s var(--ease); }
.quiz-back { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 6px 4px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.quiz-back:hover { color: var(--accent); }
.quiz-step { display: none; }
.quiz-card[data-step="1"] .quiz-step[data-step="1"],
.quiz-card[data-step="2"] .quiz-step[data-step="2"],
.quiz-card[data-step="3"] .quiz-step[data-step="3"],
.quiz-card[data-step="4"] .quiz-step[data-step="4"],
.quiz-card[data-step="5"] .quiz-step[data-step="5"],
.quiz-card[data-step="6"] .quiz-step[data-step="6"] { display: block; }
.quiz-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-form legend { padding: 0; }
.quiz-form .field { margin-bottom: var(--s3); }
.quiz-form .consent { margin: var(--s2) 0 var(--s4); }
.quiz-form .form-hint { margin-top: var(--s3); }
.quiz-next { margin-top: var(--s2); min-height: 48px; }
label.quiz-q { display: block; }
.quiz-pet { position: relative; cursor: pointer; }
.quiz-pet input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-pet:has(input:checked) { background: var(--accent); color: #fff; box-shadow: none; }
.quiz-pet:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.quiz-card .form-done { display: none; }
.quiz-card[data-sent="true"][data-step] .quiz-step,
.quiz-card[data-sent="true"] .quiz-picked,
.quiz-card[data-sent="true"] .quiz-bar { display: none; }
.quiz-card[data-sent="true"] .form-done { display: grid; place-items: center; gap: var(--s4); text-align: center; min-height: 280px; animation: pop .6s var(--ease) both; }
.quiz-card[data-sent="true"] .done-path { animation: draw .6s var(--ease) .25s forwards; }
.book .quiz-card { align-self: start; }
.quiz-q { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; margin-bottom: var(--s4); text-wrap: balance; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opt {
  border: 0; border-radius: 999px; padding: 12px 18px; font-size: 15.5px; line-height: 1.25; text-align: left;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s, background-color .2s, color .2s, transform .25s var(--ease);
}
.quiz-opt:hover { background: var(--accent); color: #fff; box-shadow: none; transform: translateY(-2px); }
.quiz-opt-other { background: transparent; box-shadow: inset 0 0 0 1.5px var(--grey); }
.quiz-out { margin-top: var(--s5); font-size: 14.5px; color: var(--ink-2); }
.link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--accent-deep); }
.quiz-sign, .quiz-dir { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.quiz-sign { padding-top: 0; }
.quiz-sign i, .quiz-dir i { font-style: normal; font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.quiz-dir b { font-weight: 600; }
.quiz-sub { margin: var(--s5) 0 var(--s3); font-size: 13px; color: var(--ink-2); }
.quiz-warn { margin-bottom: var(--s3); padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: 14px; line-height: 1.45; }
.quiz-algo { display: grid; gap: 10px; counter-reset: a; }
.quiz-algo li { counter-increment: a; position: relative; padding-left: 40px; min-height: 28px; font-size: 15.5px; line-height: 1.45; text-wrap: pretty; }
.quiz-algo li::before {
  content: counter(a); position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
  display: grid; place-items: center; font-weight: 600; font-size: 13.5px; color: var(--accent);
  /* номер в рукописном кружке */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M20 4C9 2 3 10 3.6 18c.6 8 7.4 13 14.6 12.6C26 30 31 24 30.6 16.4 30.2 9 24.6 4.2 16 4.6' fill='none' stroke='%23c1521e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quiz-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }
.quiz-acts .btn { min-height: 48px; font-size: 15px; }
.quiz-mts { margin-top: var(--s4); font-size: 14px; color: var(--ink-2); }
.quiz-mts a { color: var(--accent); font-weight: 600; }
.quiz-picked { margin: calc(-1 * var(--s2)) 0 var(--s2); font-size: 14px; color: var(--ink-2); }
.quiz-picked b { color: var(--ink); font-weight: 600; }
.form-lite .form-body { gap: var(--s4); }
.form-lite .quiz-q { margin-bottom: var(--s2); }

/* ---------- Основатель: превью видео и подпись ---------- */
.founder-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6) clamp(32px, 5vw, 72px); align-items: center; margin: 0; }
.founder-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: var(--brand-white); }
.founder-side { position: absolute; inset: 0 50% 0 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: clamp(18px, 2.4vw, 32px); }
.founder-video img { position: absolute; inset: 0 0 0 50%; width: 50%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.play { flex: none; display: grid; place-items: center; width: clamp(56px, 6vw, 76px); height: clamp(56px, 6vw, 76px); border-radius: 50%; background: var(--accent); color: #fff; padding-left: 4px; box-shadow: 0 0 0 10px rgb(193 82 30 / .18); }
.founder-open { display: grid; gap: 2px; }
.founder-open b { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; }
.founder-open small { font-size: 13px; color: rgb(239 236 227 / .7); }
.founder-h { font-size: clamp(1.6rem, 2.9vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 400; }
.founder-role { margin-top: var(--s4); color: var(--ink-2); font-size: 16px; max-width: 42ch; }

/* ---------- Направления: плитки одного вида ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  --tb: var(--sheet); --ti: var(--ink);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5);
  min-height: clamp(170px, 15vw, 210px); padding: clamp(18px, 2vw, 26px); border-radius: var(--r-lg);
  background: var(--tb); color: var(--ti); text-decoration: none;
  transition: transform .45s var(--ease);
}
.tile-name { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.tile-count {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 14px 10px 18px; border-radius: 999px; background: rgb(255 255 255 / .9); color: var(--ink); font-size: 14.5px; font-weight: 500;
  transition: background-color .25s, color .25s;
}
.tile:hover { transform: translateY(-5px); }
.tile:hover .tile-count { background: var(--ink); color: #fff; }
.t1 { --tb: var(--accent); --ti: #fff; }
.t2 { --tb: var(--graphite); --ti: var(--brand-white); }
.t3 { --tb: #e2dccd; }
.t4 { --tb: #e8b69b; }
.t5 { --tb: #cfcbc2; }
.t6 { --tb: var(--accent-soft); }

/* ---------- Врачи: нумерованные строки ---------- */
.rows { display: grid; gap: 10px; }
.row { position: relative; isolation: isolate; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); transition: color .35s, box-shadow .35s; }
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  clip-path: circle(0% at calc(100% - 43px) 43px); transition: clip-path .7s var(--ease);
}
.row[data-open="true"]::before { clip-path: circle(150% at calc(100% - 43px) 43px); }
.row-h { font: inherit; }
.row-head {
  width: 100%; display: grid; grid-template-columns: 72px 1fr auto 46px; align-items: center; gap: var(--s4);
  padding: 20px 20px 20px 24px; border: 0; background: none; text-align: left; color: inherit;
}
.row-n { font-size: 15px; color: var(--ink-2); align-self: start; padding-top: .55em; transition: color .3s; }
.row-title { font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; }
.row-count { font-size: 15px; color: var(--ink-2); transition: color .3s; }
.row-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.ri-close { display: none; }
.row-head:hover .row-icon { box-shadow: inset 0 0 0 1.5px var(--ink); transform: rotate(-45deg); }
.row[data-open="true"] { color: #fff; box-shadow: none; }
.row[data-open="true"] .row-n, .row[data-open="true"] .row-count { color: rgb(255 255 255 / .95); }
.row[data-open="true"] .row-icon { background: #fff; color: var(--ink); box-shadow: none; transform: none; }
.row[data-open="true"] .ri-open { display: none; }
.row[data-open="true"] .ri-close { display: block; }
.row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.row[data-open="true"] .row-panel { grid-template-rows: 1fr; }
.row.instant, .row.instant::before, .row.instant .row-panel { transition: none !important; }
.row-clip { overflow: hidden; min-height: 0; }
.row-body { padding: 0 20px 20px calc(24px + 72px + var(--s4)); }
.row-copy { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s7); font-size: 16px; line-height: 1.55; }
.row-copy p { max-width: 52ch; text-wrap: pretty; }
.row-copy ul { display: grid; gap: 6px; }
.row-copy li { position: relative; padding-left: 20px; }
.row-copy li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: var(--s6); }
.doc { background: var(--card); color: var(--ink); border-radius: 18px; padding: 10px 10px 16px; display: flex; flex-direction: column; }
.doc-photo { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sheet); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.doc:hover .doc-photo img { transform: scale(1.04); }
.doc h4 { font-size: 16px; line-height: 1.25; margin: 14px 6px 4px; font-weight: 600; }
.doc-spec { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); margin: 0 6px; }
.doc-badge { align-self: flex-start; margin: 10px 6px 0; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.doc-price { margin: auto 6px 0; padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.doc-price b { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.doc-book { margin: 12px 6px 0; min-height: 42px; padding: 0 16px; font-size: 14.5px; gap: 6px; background: var(--accent); color: #fff; }
.doc-book:hover { background: var(--accent-deep); }
.doc-book-wait { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.doc-book-wait:hover { background: var(--ink); color: #fff; }

/* Стрелки для горизонтальных лент: колесо мыши их не листает */
.scroll-nav { display: flex; gap: 8px; }
.row-body .scroll-nav { justify-content: flex-end; margin-top: var(--s3); }
.row[data-open="true"] .scroll-nav .round { background: #fff; box-shadow: none; color: var(--ink); }
.row[data-open="true"] .scroll-nav .round:hover { background: var(--ink); color: #fff; }

/* ---------- Как проходит консультация ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--sheet); border-radius: var(--r-lg); padding: 10px 10px 26px; }
.step-img { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.step-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.step-n { display: inline-block; margin: 18px 10px 6px; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.step h3 { font-size: 19px; line-height: 1.25; margin: 0 10px 8px; }
.step p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 10px; text-wrap: pretty; }

/* ---------- Почему мы: иконки ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.why-item { background: var(--card); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); }
.why-badge { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s5); color: var(--accent); }
.why-badge::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  /* рукописный кружок под иконкой */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M38 6C18 3 5 17 6 33c1 15 13 26 28 25 15-1 25-13 24-27C57 17 46 7 30 8' fill='%23f2d8ca' stroke='%23c1521e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.why-ico { position: relative; z-index: 1; }
.why-item h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.3; margin-bottom: var(--s3); }
.why-item p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.why-item a { color: var(--accent); font-weight: 600; }

/* ---------- С чем к нам приходят: кот, лапа и облако ----------
   Версия «Cat Play» (28.09): рыжий кот сидит в правом нижнем углу сцены,
   край сцены срезает его по грудь; лапа растёт из плеча и в покое касается
   пилюли «постоянное вылизывание». Позиции кота и лапы считает app.js. */
.cat-stage {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 16% 54px 8%; min-height: 340px;
  border-radius: var(--r-xl); background: var(--card);
}
.cat-chest {
  position: absolute; right: -22px; top: 0; z-index: 1;
  width: clamp(260px, 25vw, 330px); max-width: 65%; height: auto; pointer-events: none;
  mask-image: linear-gradient(to bottom, black 56%, transparent 63%);
  -webkit-mask-image: linear-gradient(to bottom, black 56%, transparent 63%);
}
.cat-paw {
  position: absolute; z-index: 0; width: 134px; max-width: none; height: auto; pointer-events: none;
  transform-origin: 63.888889% 80.357143%; transform: rotate(-38deg);
}
.pills {
  position: relative; z-index: 2; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center;
  gap: 10px 11px; max-width: 820px; min-height: 240px; margin-inline: auto;
}
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; white-space: nowrap; line-height: 1.3; font-weight: 600;
  border: 1px solid rgb(40 26 14 / .1); border-radius: 999px; box-shadow: 0 2px 6px rgb(40 26 14 / .08);
}
.pill-sm { font-size: 12px; padding: 6px 10px; }
.pill-md { font-size: 14px; padding: 7px 12px; }
.pill-lg { font-size: 16px; padding: 8px 14px; }
.pill-xl { font-size: 18px; padding: 9.5px 15px; }
/* палитра бренда: оранжевый — акцент, остальное светлое */
.pill { background: #fff; color: var(--ink); }
.pc1 { background: var(--accent-soft); color: var(--accent-deep); }
.pc3 { background: var(--sheet); }
.pill-xl.pc0, .pill-lg.pc0, .pill-xl.pc2, .pill-lg.pc4 { background: var(--accent); color: #fff; border-color: transparent; }

/* ---------- Мне только спросить ---------- */
.mts {
  margin-top: clamp(64px, 9vw, 120px); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px);
  background: var(--graphite); color: var(--brand-white);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s6) clamp(32px, 6vw, 96px); align-items: end;
}
.mts h2 { color: #fff; }
.mts-desc { margin-top: var(--s5); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 36ch; text-wrap: pretty; }
.mts-note { margin-top: var(--s5); display: inline-block; padding: 12px 18px; border-radius: var(--r-sm); background: rgb(255 255 255 / .08); font-size: 15px; }
.mts-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mts-price b { font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: .9; letter-spacing: -0.04em; font-weight: 400; color: var(--mark-dark); }
.mts-price span { font-size: 18px; color: rgb(239 236 227 / .85); }
.btn-mts { margin-top: var(--s5); background: var(--accent); color: #fff; white-space: normal; text-align: left; min-height: 60px; }
.btn-mts:hover { background: var(--accent-deep); }
.mts-range { margin-top: var(--s4); font-size: 14.5px; line-height: 1.5; color: rgb(239 236 227 / .85); max-width: 44ch; }

/* ---------- Вопросы ---------- */
.qa-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s6) clamp(32px, 6vw, 96px); align-items: start; }
.qa-grid .sec-head { position: sticky; top: 110px; }
.qa-ask { margin-top: var(--s5); }
.qa-list { border-top: 1px solid var(--line); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-h { font: inherit; }
.qa-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 22px 0; border: 0; background: none; text-align: left; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 500; line-height: 1.35; }
.qa-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sheet); transition: transform .4s var(--ease), background-color .25s, color .25s; }
.qa-q:hover .qa-icon { background: var(--ink); color: var(--page); }
.qa-item[data-open="true"] .qa-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa-item[data-open="true"] .qa-a { grid-template-rows: 1fr; }
.qa-clip { overflow: hidden; min-height: 0; }
.qa-inner { padding: 0 56px 26px 0; color: var(--ink-2); display: grid; gap: var(--s3); }
.qa-steps { display: grid; gap: var(--s3); counter-reset: s; }
.qa-steps li { counter-increment: s; position: relative; padding-left: 44px; }
.qa-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--accent); color: #fff; }
.qa-steps strong { display: block; color: var(--ink); font-weight: 600; }
.qa-warn { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-warn li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }

/* ---------- Отзывы: автор сверху, врач снизу ---------- */
.reviews-side { display: grid; gap: var(--s4); justify-items: start; }
.track-nav { display: flex; gap: 8px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 24px) / 3)); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin;
}
.track:focus-visible { outline-offset: 2px; }
.quote {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--s4);
  padding: 24px; border-radius: var(--r-md); background: var(--card);
}
.quote-top { display: flex; align-items: center; gap: 12px; }
.quote-who { font-weight: 600; font-size: 16px; line-height: 1.3; min-width: 0; }
.quote-who small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.quote-score { margin-left: auto; align-self: flex-end; padding-bottom: 2px; }
.stars { display: flex; gap: 1px; color: var(--accent); }
.stars svg { width: 13px; height: 13px; }
.quote blockquote { font-size: 15.5px; line-height: 1.55; flex: 1; text-wrap: pretty; }
.quote-doc { display: flex; align-items: center; gap: 10px; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.3; }
.quote-doc img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-doc small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }

/* ---------- Запись и формы ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-copy { background: var(--sheet); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.book-copy .lead { margin-top: var(--s5); }
.book-alt { margin-top: auto; padding-top: var(--s7); display: grid; }
.book-alt li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.book-alt span { font-weight: 500; }
.book-tel { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.book-alt small { flex-basis: 100%; color: var(--ink-2); font-size: 14px; }
.form { position: relative; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); background: var(--card); }
.form-h { font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--s5); }
.form-body { display: grid; gap: var(--s4); }
.field { display: grid; gap: 7px; }
.field label, .pet-pick legend { font-size: 14px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--r-sm); background: #fff;
  border: 1.5px solid var(--line); outline: 0; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-err { display: none; font-size: 13.5px; color: #b3261e; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #b3261e; }
.field[data-invalid="true"] .field-err { display: block; }
.pet-pick { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pet-pick legend { padding: 0; margin-bottom: 7px; }
.pet-opt { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 14px 12px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pet-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pet-opt span { font-weight: 600; }
.pet-opt i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--grey); color: transparent; transition: background-color .2s, color .2s; }
.pet-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pet-opt:has(input:checked) i { background: var(--accent); color: #fff; box-shadow: none; }
.pet-opt:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--ink); }
.consent[data-invalid="true"] span { color: #b3261e; }
.form-send { width: 100%; min-height: 58px; font-size: 17px; }
.form-hint { font-size: 13px; color: var(--ink-2); text-align: center; }
.form-done { display: none; }
[data-sent="true"] > .form-body { display: none; }
[data-sent="true"] > .form-done { display: grid; place-items: center; gap: var(--s4); text-align: center; min-height: 360px; }
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; }
.form-done p { max-width: 36ch; color: var(--ink-2); }
.form-done b { display: block; color: var(--ink); font-size: 20px; }
.form-done:focus { outline: none; }


/* ---------- Виджет «Связаться с нами» ---------- */
.cw { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.cw[data-open="true"] { visibility: visible; pointer-events: auto; }
.cw-back { position: absolute; inset: 0; background: rgb(var(--shade) / .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.cw[data-open="true"] .cw-back { opacity: 1; }
.cw-box {
  position: absolute; right: 20px; bottom: 20px; width: min(420px, calc(100% - 24px));
  padding: 28px 22px 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(18px) scale(.97); transform-origin: 100% 100%;
  transition: opacity .3s, transform .45s var(--ease);
}
.cw[data-open="true"] .cw-box { opacity: 1; transform: none; }
.cw-box:focus { outline: none; }
.cw-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; }
.cw-h { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; padding-right: 52px; }
.cw-sub { margin-top: var(--s3); color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.cw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s5); }
.cw-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); min-height: 128px;
  padding: 16px; border-radius: var(--r-md); background: var(--sheet); text-decoration: none;
  font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .3s var(--ease), box-shadow .2s;
}
.cw-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cw-logo { display: block; }
.cw-call { width: 100%; margin-top: 10px; min-height: 56px; gap: 8px; }
.cw-call .num { font-weight: 500; opacity: .9; }
.cw-note { margin-top: var(--s3); font-size: 13px; color: var(--ink-2); text-align: center; }
.dock-btn { gap: 8px; }
.cw-on .dock { transform: translateY(160%) !important; }

/* ---------- Онлайн-запись: форма YClients во всплывающем окне ----------
   На компьютере — окно по центру, на телефоне — на весь экран. */
.bk { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; visibility: hidden; pointer-events: none; }
.bk[data-open="true"] { visibility: visible; pointer-events: auto; }
.bk-back { position: absolute; inset: 0; background: rgb(var(--shade) / .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.bk[data-open="true"] .bk-back { opacity: 1; }
.bk-box {
  position: relative; display: flex; flex-direction: column;
  width: min(520px, 100%); height: min(780px, 100%);
  border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s, transform .45s var(--ease);
}
.bk[data-open="true"] .bk-box { opacity: 1; transform: none; }
.bk-box:focus { outline: none; }
.bk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.bk-h { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.bk-x { width: 44px; height: 44px; flex: none; }
.bk-frame { position: relative; flex: 1; background: #fff; }
.bk-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bk-load { position: absolute; inset: 0; display: none; place-items: center; grid-auto-flow: column; place-content: center; gap: 6px; color: var(--ink-2); }
.bk-load i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: dot 1.1s infinite; }
.bk-load i:nth-child(2) { animation-delay: .15s; }
.bk-load i:nth-child(3) { animation-delay: .3s; }
.bk[data-loading="true"] .bk-load { display: grid; }
@media (max-width: 640px) {
  .bk { padding: 0; }
  .bk-box { width: 100%; height: 100%; border-radius: 0; transform: translateY(24px); }
  .bk-top { padding-top: max(12px, env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) { .bk-box, .bk-back { transition: none; } }

/* ---------- Подвал ---------- */
.footer { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: var(--s8) var(--gut) 120px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
.footer-brand p { margin-top: var(--s4); max-width: 46ch; color: var(--ink-2); font-size: 15px; }
.footer h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: var(--s3); }
.footer ul { display: grid; gap: 8px; font-size: 15px; }
.nowrap { white-space: nowrap; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Кнопка «Онлайн-запись» ---------- */
.dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; gap: 8px; padding: 6px;
  border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.dock[data-show="true"] { transform: none; }
.dock .btn { min-height: 48px; }

/* ---------- Согласие на аналитические cookie (metrika.js) ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 50; width: min(440px, calc(100% - 32px));
  padding: 18px 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow);
  font-size: 14.5px; line-height: 1.45;
  transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
}
.cookie[data-show="true"] { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.cookie-act { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cookie-act .btn { flex: 1 1 auto; min-height: 44px; }
.cookie-link { font-weight: 400; color: inherit; margin-right: var(--s4); }
@media (max-width: 640px) { .cookie { left: 16px; bottom: 16px; } }

/* ==========================================================================
   Движение. Фокус — первый экран: панель раскрывается, фото «наводится»,
   строки заголовка поднимаются из масок, подчёркивание дорисовывается,
   в переписке врач «печатает» и отвечает, выезжает карточка про выписку.
   Остальное — пояснение состояний: шаги квиза, раскрытие строк врачей,
   лапа кота в облаке запросов, отправка формы, одно появление блоков.
   Без JS и при reduced motion всё видно сразу.
   ========================================================================== */
.hero h1 .ln { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.reply { display: grid; }
.reply > * { grid-area: 1 / 1; }
.typing { display: inline-flex; gap: 4px; align-items: center; justify-self: start; opacity: 0; width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.motion .hero-panel { animation: panelIn 1s var(--ease) both; }
.motion .hero-bg { animation: focusIn 1.4s var(--ease) .1s both; }
.motion .hero h1 .ln > span { animation: lineUp .9s var(--ease) both; }
.motion .hero h1 .ln:nth-child(1) > span { animation-delay: .2s; }
.motion .hero h1 .ln:nth-child(2) > span { animation-delay: .3s; }
.motion .hero h1 .ln:nth-child(3) > span { animation-delay: .4s; }
.motion .hero-lead { animation: rise .8s var(--ease) .55s both; }
.motion .hero-act { animation: rise .8s var(--ease) both; }
.motion .hero-act:nth-child(1) { animation-delay: .65s; } .motion .hero-act:nth-child(2) { animation-delay: .73s; }
.motion .scribble path { stroke-dashoffset: 400; animation: draw 1s var(--ease) 1s forwards; }
.motion .scribble path + path { animation-delay: 1.25s; }
.motion .hero-chat { animation: pop .6s var(--ease) 1s both; }
.motion .hero-chat-meta { animation: fadeIn .4s ease 1.2s both; }
.motion .bubble-out { animation: pop .5s var(--ease) 1.35s both; transform-origin: bottom right; }
.motion .typing { animation: pop .35s var(--ease) 1.9s forwards, fadeOut .2s ease 2.9s forwards; transform-origin: bottom left; }
.motion .answer { animation: pop .5s var(--ease) 3s both; transform-origin: bottom left; }
/* штрихи вне героя дорисовываются, когда блок появился */
.motion .rv:not(.in) .scribble path, .motion .why:not(.in) .scribble path { animation: none; }
.motion .rv.in .scribble path, .motion .why.in .scribble path { animation: draw 1s var(--ease) .35s forwards; }
.motion .rv.in .scribble path + path, .motion .why.in .scribble path + path { animation-delay: .6s; }
.motion .circled-mark path { stroke-dashoffset: 700; }
.motion .rv.in .circled-mark path { animation: draw 1.2s var(--ease) .4s forwards; }

@keyframes panelIn { from { clip-path: inset(3% 2% 3% 2% round 48px); opacity: .6; } to { clip-path: inset(0 0 0 0 round var(--r-xl)); opacity: 1; } }
@keyframes focusIn { from { transform: scale(1.1); filter: blur(10px) saturate(.6); } to { transform: none; filter: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: scale(.9); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* Появление блоков при прокрутке — один раз, с каскадом внутри списков */
.motion .rv:not(.in) { opacity: 0; transform: translateY(24px); }
.motion .rv { transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .rv-group:not(.in) > * { opacity: 0; transform: translateY(20px) scale(.97); }
.motion .rv-group > * { transition: opacity .7s var(--ease), transform .8s var(--ease), background-color .25s, color .25s; transition-delay: min(calc(var(--i, 0) * 45ms), 700ms); }
.motion .rv-group.settled > * { transition: transform .45s var(--ease), background-color .25s, color .25s; transition-delay: 0s; }

/* Квиз: шаг въезжает, варианты — каскадом */
.motion .quiz-card .quiz-step { animation: stepIn .5s var(--ease) both; }
.motion .quiz-card[data-step="1"] .quiz-opt { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.motion .quiz-res:not([hidden]) .quiz-algo li { animation: rise .55s var(--ease) both; }
.motion .quiz-res:not([hidden]) .quiz-algo li:nth-child(2) { animation-delay: .08s; }
.motion .quiz-res:not([hidden]) .quiz-algo li:nth-child(3) { animation-delay: .16s; }

/* Карточки врачей каскадом при раскрытии строки */
.motion .row[data-open="true"] .doc { animation: docIn .6s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * 55ms); }
.motion .row[data-open="true"] .row-copy { animation: rise .6s var(--ease) .08s both; }
@keyframes docIn { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }

/* Форма: отправка и подтверждение */
.form-send { position: relative; }
.send-busy { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 6px; }
.send-busy i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1s infinite ease-in-out; }
.send-busy i:nth-child(2) { animation-delay: .15s; } .send-busy i:nth-child(3) { animation-delay: .3s; }
.form-send[aria-busy="true"] .send-label { visibility: hidden; }
.form-send[aria-busy="true"] .send-busy { display: flex; }
[data-sent="true"] > .form-done { animation: pop .6s var(--ease) both; }
.done-path { stroke-dasharray: 20; stroke-dashoffset: 20; }
[data-sent="true"] .done-path { animation: draw .6s var(--ease) .25s forwards; }
.field[data-invalid="true"] { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .typing { display: none; }
}

/* ---------- Адаптив ---------- */
/* облако запросов: от 1024 px — пилюли прототипа v09 в их размерах,
   уже — 12 основных из «Cat Play» */
@media (min-width: 1024px) {
  .pill-narrow { display: none; }
  .pill-sm { font-size: 13px; padding: 7px 12px; }
  .pill-md { font-size: 15px; padding: 8px 14px; }
  .pill-lg { font-size: 17px; padding: 9px 16px; }
  .pill-xl { font-size: 19px; padding: 11px 19px; }
}
@media (max-width: 1023px) { .pill-wide { display: none; } }
@media (max-width: 1180px) {
  .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { display: none; }
  .burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sheet); color: var(--ink); }
  .header-act { margin-left: auto; }
  .hero-chat { left: 56%; width: min(280px, 30%); }
}
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); scrollbar-width: thin; }
  .step { scroll-snap-align: start; }
  .quiz { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-card { grid-template-columns: 1fr; }
  .founder-video { max-width: 760px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-phone { display: none; }
  .hero-panel {
    height: auto; min-height: clamp(540px, calc(100svh - 96px), 780px);
    padding: 16px 18px 22px; border-radius: var(--r-lg);
  }
  /* Смартфон целиком по ширине: левый край экрана (x 852 из 1400) остаётся на 26% ширины,
     правая рамка (x 1335) — на 96%; масштаб 0.70W / 483 px снимка. Низ снимка тает в тёмном фоне. */
  .hero-bg {
    inset: 0 auto auto calc(26% - 852 * 70% / 483);
    width: calc(1400 * 70% / 483); max-width: none; height: auto; object-fit: fill;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .hero-shade {
    background: linear-gradient(0deg, rgb(var(--shade) / .93) 0%, rgb(var(--shade) / .8) 42%, rgb(var(--shade) / .18) 70%, rgb(var(--shade) / .05) 100%);
  }
  .hero-copy { max-width: 560px; }
  .hero-chat { left: 14px; top: 14px; width: min(260px, 70%); padding: 10px; gap: 6px; }
  .bubble { font-size: 13px; padding: 7px 11px; }
  .hero-act { width: 100%; justify-content: space-between; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat dt { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sec-head-split, .qa-grid, .book-grid, .mts { grid-template-columns: 1fr; }
  .qa-grid .sec-head { position: static; }
  .row-head { grid-template-columns: 40px 1fr 42px; gap: var(--s3); padding: 16px 14px 16px 16px; }
  .row-count { display: none; }
  .row-icon { width: 42px; height: 42px; }
  .row-body { padding: 0 14px 14px; }
  .row-copy { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: 86%; }
  .qa-inner { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dock { left: 12px; right: 12px; bottom: 12px; transform: translateY(140%); }
  .dock .btn { flex: 1; }
  .cw-box { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .dock[data-show="true"] { transform: none; }
}
@media (max-width: 560px) {
  /* герой */
  .hero-panel { padding: 12px 14px 18px; }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; }
  .hero h1 .ln { display: inline; overflow: visible; }
  .hero h1 .ln > span { display: inline; }
  .motion .hero h1 .ln > span { animation: none; }
  .motion .hero h1 { animation: rise .9s var(--ease) .2s both; }
  .hero-lead { font-size: 15.5px; margin-top: var(--s4); }
  .hero-acts { gap: 8px; margin-top: var(--s5); }
  .hero-act { min-height: 54px; padding: 5px 5px 5px 20px; font-size: 15px; line-height: 1.25; }
  .hero-act i { width: 44px; height: 44px; }
  .hero-chat { left: 10px; top: 10px; width: min(236px, 68%); }
  .hero-chat-meta { font-size: 11.5px; }

  /* цифры: компактная сетка 2×2 */
  .stats { gap: var(--s5) var(--s4); padding-top: var(--s6); }
  .stat dt { padding-bottom: var(--s3); font-size: 15px; gap: 2px; }
  .stat dt b { font-size: 2rem; }
  .stat dd { padding-top: var(--s3); font-size: 13.5px; }

  /* ритм секций и заголовков */
  .sec { padding-top: 56px; }
  .sheet-sec { margin-top: 48px; padding: 24px 14px 14px; border-radius: var(--r-lg); }
  .sec-head { margin-bottom: var(--s5); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.1rem); }
  .lead { font-size: 15.5px; }

  /* квиз */
  .quiz { gap: var(--s5); }
  .quiz-head { padding: 0 4px; }
  .quiz-card { padding: 18px 14px; border-radius: var(--r-md); }
  .quiz-opt { padding: 11px 15px; font-size: 15px; }
  .quiz-sign, .quiz-dir { grid-template-columns: 1fr; gap: 2px; }
  .quiz-acts .btn { width: 100%; justify-content: space-between; }

  /* основатель */
  .founder-video { border-radius: var(--r-lg); }
  .founder-h { font-size: 1.5rem; }

  /* направления */
  .tiles { gap: 8px; }
  .tile { min-height: 150px; padding: 16px; border-radius: var(--r-md); }
  .tile-name { font-size: 1.05rem; hyphens: auto; -webkit-hyphens: auto; }
  .tile-count { padding: 8px 12px; font-size: 13px; gap: 4px; }
  .tile-count svg { display: none; }

  /* врачи и шаги: ленты */
  .doc-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -14px; padding: 0 14px 6px; scroll-padding-inline: 14px; scrollbar-width: none; }
  .doc { scroll-snap-align: start; }
  .doc h4 { font-size: 15px; }
  .steps { grid-auto-columns: 78%; }
  .step-img { aspect-ratio: 1; }
  .sec-head-nav { align-items: flex-end; }
  .sec-head-nav .round { width: 42px; height: 42px; }

  /* почему мы */
  .why-grid { grid-template-columns: 1fr; gap: 8px; }
  .why-item { padding: 18px; border-radius: var(--r-md); display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .why-badge { width: 52px; height: 52px; margin: 0; grid-row: 1 / 3; }
  .why-badge svg { width: 26px; height: 26px; }
  .why-item h3 { margin-bottom: 6px; align-self: center; }

  /* облако запросов */
  .cat-stage { border-radius: var(--r-lg); padding: 44px 5% 42px; min-height: 0; }
  .cat-chest { width: 240px; max-width: none; }
  .pills { gap: 9px 10px; }

  /* МТС, вопросы, отзывы, запись */
  .mts { margin-top: 56px; padding: 24px 18px; border-radius: var(--r-lg); }
  .mts-price b { font-size: 3rem; }
  .btn-mts { width: 100%; justify-content: space-between; }
  .qa-q { font-size: 16px; padding: 18px 0; }
  .qa-icon { width: 36px; height: 36px; }
  .qa-ask { width: 100%; }
  .quote { padding: 18px; }
  .book-copy, .form { padding: 24px 18px; border-radius: var(--r-lg); }
  .book-alt { padding-top: var(--s6); }
  .book-alt .btn { width: 100%; justify-content: space-between; }
  .footer { padding-top: var(--s7); }
}

.mts-range .num, .doc-price b, .book-tel { white-space: nowrap; }

/* Низкие экраны: первый экран тоже целиком */
@media (max-width: 860px) and (max-height: 720px) {
  .hero-panel { min-height: calc(100svh - 88px); }
  .hero h1 { font-size: 1.8rem; }
  .hero-lead { font-size: 14.5px; margin-top: 10px; }
  .hero-acts { margin-top: 14px; }
  .hero-act { min-height: 48px; }
  .hero-act i { width: 40px; height: 40px; }
  .hero-chat-meta { display: none; }
  .hero-chat { width: min(220px, 64%); }
}

/* Телефоны: плашки переписки нет — экран смартфона с Милой ничем не закрыт */
@media (max-width: 860px) {
  .hero-chat { display: none; }
}

/* Как проходит консультация: прокрутка вниз уводит ленту шагов влево (механика «Cat Play»).
   Лента стоит у левого края (первый шаг виден целиком) и уходит влево до последнего.
   Класс .steps-scroll ставит app.js, если движение не отключено; без него — обычная
   лента/сетка со стрелками. --steps-travel — путь ленты, вертикальный ход в 2,5 раза длиннее. */
.steps-scroll .steps-rail { height: calc(100svh - 84px + var(--steps-travel, 0px) * 2.5); }
.steps-scroll .steps-sticky {
  position: sticky; top: 84px; height: calc(100svh - 84px);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.steps-scroll .steps {
  display: flex; gap: 12px; overflow: visible; scroll-snap-type: none; padding-bottom: 0;
  will-change: transform;
}
.steps-scroll .step { flex: 0 0 clamp(260px, min(30vw, 42svh), 340px); }
.steps-scroll .step-img { aspect-ratio: 5 / 4; }        /* ниже, чтобы шаг целиком влезал в экран */
.steps-scroll .sec-head { margin-bottom: var(--s5); }
.steps-scroll [data-scroll-nav] { display: none !important; }
@media (max-width: 560px) {
  .steps-scroll .step { flex-basis: min(72vw, 36svh); }
  /* телефоны: заголовок мельче и в одну строку, шаги прижаты к верху —
     чтобы низ карточек не уходил под кнопку «Связаться с нами» */
  .steps-scroll .steps-sticky { justify-content: flex-start; padding-top: 16px; }
  .steps-scroll #steps-h { font-size: 1.5rem; line-height: 1.1; }
  .steps-scroll .sec-head { margin-bottom: var(--s4); }
}
@media (max-width: 560px) and (max-height: 760px) {
  /* низкие телефоны: карточка шире, картинка ниже — текст в меньше строк */
  .steps-scroll .step { flex-basis: 80vw; }
  .steps-scroll .step-img { aspect-ratio: 16 / 9; }
  .steps-scroll .step h3 { font-size: 17px; }
  .steps-scroll .step p { font-size: 14px; }
}
