/* DentaCare. Токени: ink #0D3B3F, enamel #F3F8F7, mint #BDE8DA, gum #C93F49, porcelain #D5E4E1 */
:root {
  --ink: #0D3B3F;
  --ink-2: #0A2E31;
  --enamel: #F3F8F7;
  --white: #FFFFFF;
  --mint: #BDE8DA;
  --mint-2: #DDF3EB;
  --gum: #C93F49;
  --gum-dark: #A92F39;
  --line: #D5E4E1;
  --muted: #476466;
  --sky: #C9DDF2;
  --sun: #F6E3B8;
  --rose: #F3C9CC;
  --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1160px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--enamel); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 500; }
p { margin: 0; }
.lead { font-size: 1.1875rem; max-width: 56ch; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--gum); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mint { background: var(--mint-2); }
.section--ink { background: var(--ink); color: var(--enamel); }
.section--ink .muted { color: #A9C7C4; }
.section__head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 62ch; }
.section__head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--gum); color: #fff; }
.btn--primary:hover { background: var(--gum-dark); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--ink .btn--ghost:hover { background: var(--enamel); color: var(--ink); border-color: var(--enamel); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 40; background: rgba(243, 248, 247, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 1.25rem var(--font-display); text-decoration: none; margin-right: auto; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--mint-2); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; cursor: pointer; font: 600 1rem var(--font-body);
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--mint); color: var(--ink); font-size: .875rem; }
.menu-btn { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* Герой */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding: 0; list-style: none; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts b { font: 500 1.5rem var(--font-display); }
.hero__facts span { color: var(--muted); font-size: .9375rem; }
.hero__art { position: relative; aspect-ratio: 1; background: var(--mint); border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%; display: grid; place-items: center; }
.hero__art svg { width: 78%; }

/* Три напрямки */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: var(--r-l); text-decoration: none; min-height: 280px; transition: transform .2s; }
.path:hover { transform: translateY(-4px); }
.path h3 { font-size: 1.375rem; }
.path p { flex: 1; }
.path__cta { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.path--a { background: var(--mint); }
.path--b { background: var(--sky); }
.path--c { background: var(--sun); }

/* Послуги */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; padding: 0; margin: 0; list-style: none; }
.service { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.service h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 600; }
.service__price { font-weight: 600; white-space: nowrap; }
.service p { grid-column: 1 / -1; color: var(--muted); font-size: .9688rem; }
.section--ink .service { border-color: #25585C; }
.section--ink .service p { color: #A9C7C4; }

/* Магазин */
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 500 .9688rem var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.field { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: inherit; color: inherit; width: 100%; }
.field:focus-visible { outline-offset: 0; }
textarea.field { padding-block: 12px; min-height: 96px; }
.tools-search { width: min(280px, 100%); }
.tools-sort { width: auto; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 0; margin: 0; list-style: none; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.card__img { position: relative; display: block; aspect-ratio: 1; }
.card__img svg { width: 100%; height: 100%; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: .8125rem; font-weight: 600; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__title { font: 600 1rem/1.35 var(--font-body); }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__short { color: var(--muted); font-size: .9375rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font: 500 1.125rem var(--font-display); white-space: nowrap; }
.empty { padding: 56px 0; text-align: center; color: var(--muted); }

/* Сторінка товару */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0; margin: 0; list-style: none; font-size: .9375rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 72px; }
.product__img { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; }
.product__img svg { width: 100%; height: 100%; }
.product__info { display: grid; gap: 20px; align-content: start; }
.product__price { font: 500 2rem var(--font-display); }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; border-radius: 99px; }
.qty button:hover { background: var(--mint-2); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.note { font-size: .9375rem; color: var(--muted); }
.note--ok { color: #1F6B4F; font-weight: 600; }

/* Кошик (бокова панель) */
.drawer-shade { position: fixed; inset: 0; background: rgba(10, 46, 49, .5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white); z-index: 61; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s; visibility: hidden; }
body.cart-open .drawer-shade { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__list { flex: 1; overflow: auto; padding: 8px 22px; margin: 0; list-style: none; }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 99px; cursor: pointer; }
.icon-btn:hover { background: var(--mint-2); }
.icon-btn svg { width: 22px; height: 22px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.line__info { display: grid; gap: 6px; }
.line__name { font-weight: 600; line-height: 1.3; text-decoration: none; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line__rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; min-height: 44px; padding: 0 6px; }
.sum { display: flex; justify-content: space-between; font-weight: 600; }
.sum--big { font: 500 1.25rem var(--font-display); }

/* Оформлення */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; padding-bottom: 80px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.form legend { font-weight: 600; margin-bottom: 8px; }
.radio { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; min-height: 48px; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--mint-2); }
.radio input { accent-color: var(--ink); width: 18px; height: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary { position: sticky; top: 96px; }
.ok-box { padding: 28px; background: var(--mint); border-radius: var(--r-m); display: grid; gap: 10px; }
.ok-box h2 { font-size: 1.5rem; }

/* Запис на прийом */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.booking .panel { color: var(--ink); }
.contacts { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.contacts b { display: block; font-weight: 600; }

/* Гайд */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; display: grid; gap: 4px; }
.toc a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.toc a:hover { background: var(--mint-2); }
.article > section { padding-bottom: 48px; max-width: 68ch; }
.article h2 { margin-bottom: 18px; scroll-margin-top: 100px; }
.article p + p { margin-top: 14px; }
.steps { padding: 0; margin: 32px 0 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.steps li::before { content: counter(s); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font: 500 1.125rem var(--font-display); }
.steps b { display: block; margin-bottom: 4px; }
.mistakes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.mistakes li { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); display: grid; gap: 6px; }
.mistakes b { color: var(--gum-dark); }

/* Таймер */
.timer { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.timer__ring { position: relative; width: 220px; height: 220px; }
.timer__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__ring circle { fill: none; stroke-width: 10; }
.timer__bg { stroke: #25585C; }
.timer__fg { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 565.5; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.timer__time { position: absolute; inset: 0; display: grid; place-items: center; font: 500 2.5rem var(--font-display); }
.timer__zone { font: 500 1.5rem var(--font-display); margin-bottom: 8px; min-height: 2.4em; }
.timer__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.mouth { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 140px; margin-top: 16px; }
.mouth span { height: 34px; border-radius: 10px; background: #25585C; transition: background-color .2s; }
.mouth span.on { background: var(--mint); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; min-height: 44px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 18px; color: var(--muted); max-width: 64ch; }

/* Підвал */
.footer { background: var(--ink-2); color: #CFE3E0; padding-block: 56px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h2 { font: 500 1rem var(--font-display); color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #25585C; font-size: .875rem; color: #8FB1AE; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; z-index: 80; transition: opacity .2s, transform .2s; pointer-events: none; font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid, .booking, .checkout, .product { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { max-width: 380px; }
  .summary { position: static; }
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .header__phone { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--enamel); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; display: none; }
  .nav.open { display: flex; }
  .paths, .services, .mistakes { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .timer { grid-template-columns: 1fr; justify-items: start; }
  .section__head--row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .cart-btn .cart-label { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
/* ================= Платформа: пацієнтам / лікарям ================= */
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.eyebrow { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; color: var(--mint); margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.two-col--top { grid-template-columns: 1fr minmax(0, 480px); align-items: start; gap: 48px; }
.two-col__end { justify-self: end; }
.paths--2 { grid-template-columns: repeat(2, 1fr); }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 500 1rem var(--font-body); color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.tag { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--gum); border-bottom: 2.5px solid var(--gum); transform: rotate(-45deg); }

/* Картки засобів */
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; height: 100%; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; transition: border-color .15s, transform .15s; }
.tool:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool__art { width: 96px; height: 96px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.tool__art svg { width: 86%; }
.tool__body { display: flex; flex-direction: column; gap: 4px; }
.tool__body b { font: 500 1.0625rem/1.25 var(--font-display); }
.tool__body > span:not(.tag) { color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.tools--small .tool { grid-template-columns: 64px 1fr; padding: 12px; }
.tools--small .tool__art { width: 64px; height: 64px; }
.tools--small .tool__body > span:not(.tag) { display: none; }

/* Сторінка інструкції */
.howto { padding-bottom: 24px; }
.howto__head { max-width: 760px; margin: 8px 0 32px; display: grid; gap: 16px; }
.howto__head h1 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
.howto__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.howto__media { position: sticky; top: 96px; }
.howto__text h2 { font-size: 1.5rem; }
.steps--compact { margin-top: 18px; gap: 10px; }
.steps--compact li { grid-template-columns: 40px 1fr; padding: 14px 16px; align-items: center; }
.steps--compact li::before { width: 40px; height: 40px; font-size: 1rem; }
.callout { margin-top: 16px; padding: 18px 20px; border-radius: var(--r-m); background: var(--mint-2); display: grid; gap: 6px; }
.callout--warn { background: #FCEBEC; }

/* Відео */
.video { margin: 0; }
.video__btn, .video__frame, .video--soon { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; border: 0; display: block; }
.video__btn { position: relative; background: var(--ink); color: #fff; cursor: pointer; padding: 0; }
.video__btn .video__art { position: absolute; inset: 0; display: grid; place-items: center; opacity: .35; }
.video__btn .video__art svg { height: 90%; width: auto; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--gum); display: grid; place-items: center; transition: transform .15s; }
.video__play svg { width: 38px; height: 38px; margin-left: 4px; }
.video__btn:hover .video__play { transform: translate(-50%, -50%) scale(1.07); }
.video__title { position: absolute; left: 20px; right: 20px; bottom: 16px; text-align: left; font-weight: 600; }
.video figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.video--soon { background: var(--white); border: 1px dashed var(--line); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px; text-align: center; }
.video--soon .video__art { height: 100%; max-height: 220px; display: grid; place-items: center; }
.video--soon .video__art svg { height: 100%; width: auto; max-width: 100%; }

/* Лікарям */
.hero-doc { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.hero-doc h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.doc-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.doc-facts li { padding: 18px 20px; border: 1px solid #25585C; border-radius: var(--r-m); display: grid; gap: 4px; }
.doc-facts b { font: 500 1.125rem var(--font-display); }
.doc-facts span { color: #A9C7C4; font-size: .9375rem; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat__item { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); display: grid; gap: 10px; align-content: start; }
.dsecs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dsec { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 16px 20px; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.dsec span { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.dsec--ready { background: var(--ink); color: #fff; border-color: var(--ink); }
.dsec--ready span { color: var(--mint); font-weight: 600; }
.dsec--ready:hover { background: var(--ink-2); }

/* Схема пародонтиту */
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(16px, 3vw, 36px); }
.player__stage { display: grid; gap: 14px; }
.perio { width: 100%; height: auto; border-radius: 24px; touch-action: pan-y; }
.pp { transition: transform 1.3s cubic-bezier(.4, 0, .2, 1), opacity 1s, fill 1.2s; }
.tooth { transform-box: view-box; transform-origin: 200px 330px; }
.tooth.is-mobile { animation: wobble 2.6s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(var(--wob)); } 70% { transform: rotate(calc(var(--wob) * -1)); } }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .875rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.stage-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-dot { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 500 .9375rem var(--font-body); cursor: pointer; }
.stage-dot span { width: 30px; height: 30px; border-radius: 50%; background: var(--mint-2); display: grid; place-items: center; font-weight: 600; }
.stage-dot[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage-dot[aria-pressed="true"] span { background: var(--gum); }
.player__text { display: grid; gap: 18px; }
.player__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.player__patient { font-size: 1.125rem; min-height: 7.5em; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.metrics div { padding: 12px 14px; background: var(--enamel); border-radius: 14px; }
.metrics dt { font-size: .8125rem; color: var(--muted); }
.metrics dd { margin: 2px 0 0; font: 500 1.25rem var(--font-display); }
.player__ctrl { display: flex; flex-wrap: wrap; gap: 10px; }
.player__ctrl .btn:disabled { opacity: .35; cursor: default; }
.doc-only { border: 1.5px dashed var(--gum); border-radius: var(--r-m); padding: 0 18px; }
.doc-only summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 600; color: var(--gum-dark); }
.doc-only p { padding-bottom: 18px; }
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.timeline li { counter-increment: t; padding: 22px 20px; background: var(--white); border-radius: var(--r-m); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.timeline li::before { content: counter(t); font: 500 1.75rem var(--font-display); color: var(--gum); }
.timeline p { font-size: .9688rem; color: var(--muted); }
.timeline--plain { grid-template-columns: repeat(4, 1fr); }
.timeline--plain li::before { content: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Підбір йоржиків */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.picker__main { display: grid; gap: 20px; min-width: 0; }
.picker__side { position: sticky; top: 92px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.size { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; text-align: left; font: 400 .8125rem/1.25 var(--font-body); }
.size b { display: block; font-size: .9375rem; }
.size i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); }
.size--erase i { background: repeating-linear-gradient(45deg, #fff 0 3px, var(--line) 3px 6px); }
.size--missing i { background: none; border: 2px dashed var(--muted); }
.size[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.chart { min-width: 700px; display: grid; gap: 26px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); }
.jaw { display: grid; gap: 10px; }
.jaw__name { font-size: .8125rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.jaw__row { display: flex; align-items: stretch; justify-content: center; }
.midline { width: 2px; margin: 0 2px; background: var(--line); }
.tooth-c { flex: 1 1 30px; max-width: 46px; min-height: 64px; border: 1.5px solid #CFDCD9; background: #FBFDFC; border-radius: 12px 12px 18px 18px; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 8px; color: var(--muted); font: 500 .8125rem var(--font-body); cursor: pointer; }
.jaw--down .tooth-c { border-radius: 18px 18px 12px 12px; align-items: flex-start; padding: 8px 0 0; }
.tooth-c--m { flex-basis: 44px; max-width: 58px; }
.tooth-c--p { flex-basis: 36px; max-width: 50px; }
.tooth-c.is-missing { background: none; border-style: dashed; color: #A9BDBB; text-decoration: line-through; }
span.tooth-c { cursor: default; }
.gap { flex: 0 0 24px; min-height: 64px; margin: 0 1px; border-radius: 99px; border: 2px dashed #D5E4E1; background: none; cursor: pointer; padding: 0; }
.gap:hover { border-color: var(--ink); }
.gap.is-set { background: var(--c); border: 2px solid rgba(0, 0, 0, .12); }
span.gap { cursor: default; }
span.gap:not(.is-set) { border-color: transparent; }
.chart--view { min-width: 640px; }
.summary-list { margin: 20px 0; }
.side-actions { display: grid; gap: 10px; }
.memo-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.memo-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.memo-list i { width: 32px; height: 32px; border-radius: 50%; background: var(--c); }
.memo-list b { display: block; }
.memo-list span { color: var(--muted); font-size: .9375rem; }
.memo-list--small li { padding: 10px 12px; grid-template-columns: 22px 1fr; }
.memo-list--small i { width: 22px; height: 22px; }

/* Пам'ятка */
.memo { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.memo > *, [data-memo-body] > * { min-width: 0; }
[data-memo-body] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
[data-memo-body][hidden] { display: none; }
.memo__head { display: grid; gap: 10px; margin-bottom: 8px; }
.memo__head h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
.memo h2 { font-size: 1.375rem; margin-top: 24px; }
.memo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (max-width: 1100px) {
  .header__phone { display: none; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline--plain { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
  .howto__grid, .player, .hero-doc, .picker, .two-col--top { grid-template-columns: 1fr; gap: 28px; }
  .howto__media, .picker__side { position: static; }
  .dsecs { grid-template-columns: repeat(2, 1fr); }
  .player__patient { min-height: 0; }
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .two-col__end { justify-self: start; }
  .paths--2 { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .timeline, .timeline--plain { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tools, .dsecs { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 72px 1fr; gap: 14px; padding: 12px; }
  .tool__art { width: 72px; height: 72px; }
  .metrics { gap: 6px; }
  .metrics div { padding: 10px; }
  .metrics dd { font-size: 1.0625rem; }
  .stage-dot { padding: 0 6px; font-size: 0; gap: 0; }
  .stage-dot span { font-size: .9375rem; }
  .player__ctrl .btn--primary { flex: 1; }
  .sizes { grid-template-columns: 1fr 1fr; }
  .video__play { width: 64px; height: 64px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media print {
  .header, .footer, .skip, .drawer, .drawer-shade, .toast, .no-print, .crumbs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 0; }
  .chart-scroll { overflow: visible; }
  .chart { min-width: 0; border: 1px solid #ccc; }
  .memo-list li, .steps li { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================= Облікові записи ================= */
.acc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; max-width: 180px; }
.acc-btn span { overflow: hidden; text-overflow: ellipsis; }
.acc-btn svg { width: 20px; height: 20px; flex: none; }
.acc-btn:hover { background: var(--mint-2); }
.auth__wrap { display: grid; justify-items: center; }
.auth__card { width: min(100%, 480px); display: grid; gap: 14px; padding: clamp(22px, 4vw, 36px); }
.auth__card h1, .auth h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.pw { position: relative; display: block; }
.pw .field { padding-right: 52px; }
.pw__toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.pw__toggle svg { width: 20px; height: 20px; }
.pw__toggle[aria-pressed="true"] { color: var(--ink); }
.hint { font-weight: 400; font-size: .875rem; color: var(--muted); }
.form-error { color: var(--gum-dark); font-weight: 500; }
.form-error:empty, .form-ok:empty { display: none; }
.form-ok { color: #1F6B4F; font-weight: 500; }
.field[aria-invalid="true"] { border-color: var(--gum); }
.offline { padding: 12px 14px; background: var(--sun); border-radius: 12px; color: var(--ink); }
.status { padding: 16px 18px; border-radius: var(--r-m); display: grid; gap: 4px; background: var(--enamel); }
.status--ok { background: var(--mint-2); }
.status--wait { background: #FFF4D9; }
.status--no { background: #FCEBEC; }
.kab { display: grid; gap: 20px; margin-top: 24px; }
.kab__name { font: 500 1.375rem var(--font-display); }
.kab .panel + .panel { margin-top: 0; }
.adm { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.adm__item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.adm__item > div:first-child { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.adm__item b { font-size: 1.0625rem; margin-right: 10px; }
.adm__act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tag--pending { background: #E9B949; color: var(--ink); }
.tag--approved { background: #1F6B4F; }
.tag--rejected { background: var(--gum-dark); }
@media (max-width: 1000px) {
  .acc-btn { max-width: 140px; }
}
@media (max-width: 600px) {
  .acc-btn { padding: 0; width: 44px; justify-content: center; border-radius: 50%; }
  .acc-btn span { display: none; }
  .adm__item { grid-template-columns: 1fr; }
  .adm__act { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .header__row { gap: 10px; }
}
.logo svg { flex: none; }
.adm__item .tag { justify-self: start; margin-top: 0; }
.logo { flex: none; }
.logo svg { max-width: none; }
@media (max-width: 420px) {
  .header .wrap { width: calc(100% - 24px); }
  .header__row { gap: 6px; }
  .logo { font-size: 1.0625rem; gap: 8px; }
  .logo svg { width: 28px; height: 28px; }
  .cart-btn { padding: 0 10px; gap: 6px; }
}
@media (max-width: 600px) {
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size { min-width: 0; padding: 6px 10px; }
  .size span { min-width: 0; overflow-wrap: anywhere; }
}
.reset-link { display: grid; gap: 8px; margin-bottom: 16px; border-color: var(--ink); }
.reset-link__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.reset-link__row .field { font-size: .875rem; }
.adm__act .linkbtn { font-size: .9375rem; min-height: 40px; padding: 0 4px; }
.auth__card [data-forgot-sent]:focus { outline: none; }
@media (max-width: 520px) {
  .reset-link__row { grid-template-columns: 1fr; }
}

/* ================= Відео українською ================= */
.videos { display: grid; gap: 22px; }
.videos--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }
.video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.video__btn:hover .video__thumb { opacity: 1; }
.video__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 59, 63, 0) 55%, rgba(13, 59, 63, .55)); pointer-events: none; }
.video__play { z-index: 1; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.video__len { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .8125rem; font-weight: 600; }
.video figcaption { display: grid; gap: 2px; margin-top: 10px; font-size: .875rem; color: var(--muted); }
.video figcaption b { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.video--vertical .video__btn, .video--vertical .video__frame { aspect-ratio: 9 / 16; max-width: 260px; margin-inline: auto; }
.video--vertical figcaption { max-width: 260px; margin-inline: auto; }
.video__btn, .video__frame { border-radius: var(--r-m); }
@media (max-width: 600px) {
  .video__play { width: 60px; height: 60px; }
  .video__play svg { width: 28px; height: 28px; }
}

/* ================= Візуальна система «анатомічний атлас» =================
   Кольори взяті з анатомії: емаль, ясна, кістка, сталь зонда. Заголовки — книжковий Literata,
   як у медичному довіднику; текст і інтерфейс — Onest. Головний акцент — схема зуба в розрізі. */
:root {
  --ink: #0E3A3D;
  --ink-2: #0A2C2F;
  --enamel: #F5F8F7;
  --gum-tissue: #E7A3A5;
  --gum-soft: #F9E9E9;
  --bone: #EFE4CF;
  --bone-soft: #F7F2E8;
  --steel: #6F8285;
  --mint-2: #E9F2EF;
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
}

/* Типографіка */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; font-optical-sizing: auto; }
h1 { line-height: 1.06; }
h2 { line-height: 1.12; }
h3 { font-size: 1.1875rem; line-height: 1.25; }
.lead { line-height: 1.55; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; }
.jaw__name { text-transform: none; letter-spacing: 0; font-size: .875rem; }
.logo { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.tool__body b, .player__title, .kab__name, .doc-facts b, .metrics dd, .timeline li::before, .steps li::before { font-family: var(--font-display); }
.hero__facts b, .price, .product__price { font-family: var(--font-display); }

/* Шапка: магазин другорядний, тож кошик тихіший */
.header__phone { display: none; }
.cart-btn { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.cart-btn:hover { border-color: var(--ink); }
.cart-count { background: var(--bone); }
.nav a[aria-current="page"] { background: var(--ink); }

/* Розвилка «Для пацієнтів / Для стоматологів»: смужка над шапкою, активна вкладка зливається з шапкою */
.aud { background: var(--ink); }
.aud__row { display: flex; gap: 4px; align-items: flex-end; min-height: 40px; padding-top: 6px; }
.aud__tab { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 10px 10px 0 0; color: #C9DEDA; text-decoration: none; font-size: .9375rem; font-weight: 500; }
.aud__tab:hover { color: #fff; }
.aud__tab:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.aud__tab[aria-current="true"] { background: var(--enamel); color: var(--ink); font-weight: 600; }
.header--doctor .logo::after { content: "для стоматологів"; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 .75rem var(--font-body); letter-spacing: 0; }
html[data-role="patient"] [data-doc-only] { display: none !important; }
@media (max-width: 420px) { .aud__tab { padding: 0 12px; } .header--doctor .logo::after { display: none; } }

/* Кнопка на темному тлі */
.btn--light { background: var(--enamel); color: var(--ink); }
.btn--light:hover { background: #fff; }

/* ---------- Герой: таблиця атласу ---------- */
.hero--atlas { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.hero--atlas .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--atlas h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); max-width: 14ch; margin-bottom: 24px; }
.hero--atlas .lead { max-width: 46ch; color: #2C5254; }

.plate { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(14px, 2vw, 22px); display: grid; gap: 14px; }
.plate__head { display: grid; gap: 2px; padding: 4px 6px 0; }
.plate__head b { font: 600 1.125rem/1.2 var(--font-display); }
.plate__head span { color: var(--muted); font-size: .9375rem; }
.plate .perio { border-radius: 18px; }
.plate__toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--enamel); border-radius: 999px; }
.plate__toggle button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 .9375rem var(--font-body); cursor: pointer; padding: 0 8px; }
.plate__toggle button:hover { background: #fff; }
.plate__toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plate__text { padding: 0 6px 4px; min-height: 4.8em; color: #2C5254; }

/* Підписи атласу на схемі */
/* Зуб у розрізі: анатомічна ілюстрація */
.perio .gum-line { fill: none; stroke: #B05462; stroke-opacity: .35; stroke-width: 1.5; }
.perio .gum-vessel { fill: none; stroke: #A3384A; stroke-opacity: .26; stroke-width: 1.1; stroke-linecap: round; }
.perio .bone-cortex { fill: none; stroke: #CDB384; stroke-width: 5; stroke-linecap: round; }
.perio .pdl { fill: none; stroke: #A98E5E; stroke-width: 6; }
.perio .canal { fill: none; stroke-width: 7; stroke-linecap: round; }
.perio .nerve { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.perio .nerve--a { stroke: #B23545; }
.perio .nerve--v { stroke: #5468A8; stroke-opacity: .75; }
.perio .enamel-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .85; }
.perio .plaque { fill: #E3C96F; opacity: .92; }
.perio .calculus { fill: #AC8843; stroke: #86672C; stroke-width: 1; }
.atlas-label path { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.atlas-label circle { fill: var(--ink); }
.atlas-label text { font: 600 15px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 4px; stroke-linejoin: round; }

/* ---------- Двері для двох аудиторій ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.5vw, 44px); border-radius: 28px; }
.door h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.door p { max-width: 44ch; }
.door .btn { align-self: flex-start; margin-top: auto; }
.door--patient { background: var(--bone-soft); }
.door--doctor { background: var(--ink); color: var(--enamel); }
.door--doctor p { color: #B9D2CF; }
.door__links { list-style: none; padding: 0; margin: 0 0 12px; display: grid; }
.door__links li { border-top: 1px solid rgba(14, 58, 61, .14); }
.door--doctor .door__links li { border-top-color: rgba(245, 248, 247, .16); }
.door__links a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 500; }
.door__links a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gum); flex: none; }
.door--doctor .door__links a::before { background: var(--gum-tissue); }
.door__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Другорядні смуги — тепле тло кістки замість м'ятного */
.section--mint { background: var(--bone-soft); }
.tool__art { border-radius: 14px; }

@media (max-width: 1000px) {
  .hero--atlas .hero__grid { grid-template-columns: 1fr; }
  .hero--atlas h1 { max-width: 18ch; }
  .plate { max-width: 560px; }
}
@media (max-width: 820px) {
  .doors { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .plate__toggle button { font-size: .875rem; padding: 0 4px; }
  .atlas-label text { font-size: 17px; }
}
@media print {
  .plate__toggle { display: none; }
}

/* Позначка відео в картці засобу: тихий текст замість темної плашки */
.tool .tag { background: none; color: var(--gum-dark); padding: 0; margin-top: 4px; font-size: .875rem; display: inline-flex; align-items: center; gap: 6px; }
.tool .tag::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

@media (max-width: 420px) {
  .sm-hide { display: none; }
}

/* Магазин під замовлення */
.card__lead { margin-top: 6px; font-size: .8125rem; color: var(--steel); }
.lead-time { padding: 12px 16px; border-radius: 14px; background: var(--bone-soft); color: var(--ink); }
.lead-time b { font-weight: 600; }

/* Справжні фото товарів: білий фон, щоб упаковка не зливалася з кольоровою підкладкою */
.pic { width: 100%; height: 100%; object-fit: contain; display: block; }
.card__img--photo { background: #fff !important; padding: 8%; border-bottom: 1px solid var(--line); }
.product__img--photo { background: #fff; padding: 6%; border: 1px solid var(--line); }
.line__img .pic { padding: 4px; background: #fff; border-radius: 10px; }

/* Сторінка товару: детальний опис */
.ppoints { margin: 14px 0 6px; }
.pdetails { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding: 8px 0 64px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 40px; }
.pdetails__main { display: grid; gap: 36px; max-width: 72ch; }
.pdetails__main h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 14px; }
.pdetails__main p + p { margin-top: 12px; }
.pdetails__main .steps { margin-top: 0; }
.pdetails__guide { margin-top: 14px; }
.pdetails__guide a { font-weight: 600; text-underline-offset: 4px; }
.pwarn { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pwarn li::marker { color: var(--gum); }
.pdetails__side { display: grid; gap: 16px; position: sticky; top: 92px; }
.pcard { padding: 22px; border-radius: var(--r-m); background: var(--bone-soft); }
.pcard h2 { font-size: 1.125rem; margin-bottom: 10px; }
.pcard__list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 1000px) {
  .pdetails { grid-template-columns: 1fr; gap: 28px; }
  .pdetails__side { position: static; }
}

/* ================= Магазин: фільтри ================= */
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop__main { min-width: 0; }
.grid--shop { grid-template-columns: repeat(3, 1fr); }
.shop__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; min-height: 36px; }
.shop__count { color: var(--muted); font-size: .9375rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ftag { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 500 .875rem var(--font-body); cursor: pointer; }
.ftag span { font-size: 1.1rem; line-height: 1; opacity: .8; }
.ftag:hover span { opacity: 1; }

.filters { position: sticky; top: 92px; display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 18px 16px; max-height: calc(100vh - 112px); overflow: auto; }
.filters__head { display: none; }
.filters__head h2 { font-size: 1.25rem; }
.fgroup { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fgroup legend { font-weight: 600; padding: 14px 0 6px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.fcheck { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-size: .9688rem; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.fcount { color: var(--muted); font-size: .8125rem; min-width: 18px; text-align: right; }
.fcheck.is-off { opacity: .45; cursor: default; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-range .field { padding: 0 10px; min-height: 42px; }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip--small { min-height: 34px; padding: 0 12px; font-size: .875rem; border-width: 1px; }
.filters__foot { display: grid; gap: 4px; padding-top: 12px; }
.filters__foot [data-filters-apply] { display: none; }
.filters-open { display: none; position: relative; }
.filters-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; border-radius: 99px; background: var(--gum); color: #fff; font-size: .8125rem; }
.filters-badge[hidden] { display: none; }
.filters-shade { display: none; }

@media (max-width: 1100px) {
  .grid--shop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .shop { grid-template-columns: 1fr; }
  .grid--shop { grid-template-columns: repeat(3, 1fr); }
  .filters-open { display: inline-flex; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(360px, 88vw); max-height: none; border-radius: 0 var(--r-m) var(--r-m) 0; padding: 0; transform: translateX(-102%); transition: transform .25s ease; grid-template-rows: auto 1fr auto; gap: 0; overflow: hidden; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .filters__body { overflow: auto; padding: 0 18px; -webkit-overflow-scrolling: touch; }
  .filters__foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .filters__foot [data-filters-apply] { display: inline-flex; }
  .filters-shade { position: fixed; inset: 0; z-index: 65; background: rgba(10, 44, 47, .4); opacity: 0; pointer-events: none; transition: opacity .25s; display: block; }
  body.filters-on .filters { transform: none; }
  body.filters-on .filters-shade { opacity: 1; pointer-events: auto; }
  body.filters-on { overflow: hidden; }
}
@media (max-width: 820px) {
  .grid--shop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid--shop { grid-template-columns: 1fr; }
  .shop-tools .tools-search { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 600px) {
  .shop-tools .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; width: calc(100% + 40px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shop-tools .chips::-webkit-scrollbar { display: none; }
  .shop-tools .chip { flex: none; }
}

/* Поле-пастка для спам-ботів: людина його не бачить */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= Запис по слотах ================= */
.slots-box { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.slots-box legend { font-weight: 500; margin-bottom: 6px; }
.slot-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.slot-day { flex: none; display: grid; gap: 2px; justify-items: center; min-width: 58px; min-height: 56px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 500 .8125rem var(--font-body); }
.slot-day b { font-size: .9375rem; }
.slot-day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 10px; }
.slot-time { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 .9375rem var(--font-body); cursor: pointer; }
.slot-time:hover { border-color: var(--ink); }
.slot-time[aria-pressed="true"] { background: var(--gum); border-color: var(--gum); color: #fff; }

/* ================= Лікарі на сторінці «Клініка» ================= */
.doctors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.doctor { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; padding: 18px; background: #fff; border-radius: var(--r-m); border: 1px solid var(--line); }
.doctor__photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--bone); display: grid; place-items: center; font: 600 1.6rem var(--font-display); color: var(--ink); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__body { display: grid; gap: 4px; }
.doctor__spec { color: var(--gum-dark); font-weight: 500; }
.doctor__time { color: var(--muted); font-size: .875rem; margin-top: 4px; }

/* ================= Кабінет пацієнта ================= */
.kab-patient { display: grid; gap: 20px; }
.kab-patient h2 { font-size: 1.25rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.mylist { list-style: none; margin: 0; padding: 0; display: grid; }
.mylist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mylist li:first-child { border-top: 0; }
.mylist .tag { margin-left: 8px; }

/* ================= Адмінка ================= */
.atabs { display: flex; gap: 6px; overflow-x: auto; margin: 20px 0 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.atab { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: 600 .9688rem var(--font-body); cursor: pointer; }
.atab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gum); }
.apanel { display: grid; gap: 14px; }
.apanel__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.apanel__title { font-size: 1.375rem; }
.alist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aitem { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.aitem > div:first-child { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.aitem__act { flex: none; }
.aitem__act .field { min-width: 160px; }
.aitem__with-photo { display: flex !important; gap: 14px; align-items: center; }
.athumb { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bone); display: grid; place-items: center; font-weight: 600; }
.athumb--sq { border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.athumb img { width: 100%; height: 100%; object-fit: cover; }
.athumb--sq img { object-fit: contain; }
.aform { display: grid; gap: 14px; border-color: var(--ink); }
.aform h3 { font-size: 1.25rem; }
.aphoto { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.aphoto__img { width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8125rem; color: var(--muted); }
.aphoto__img img { width: 100%; height: 100%; object-fit: contain; }
.sched-row { display: grid; grid-template-columns: 170px 1fr auto 1fr; gap: 8px; align-items: center; }
.sched-row .field { min-height: 40px; }
.offdays { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.svc { display: grid; gap: 8px; }

/* Сторінки помилок 404 і 500: малюнок у стилі атласу */
.err__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.err__text .lead { margin-top: 20px; max-width: 34em; }
.err__guess { margin-top: 16px; font-size: 1.0625rem; }
.err__guess a { font-weight: 600; }
.err__guess a[href^="tel"] { white-space: nowrap; }
.err__guess ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.err__guess li::marker { color: var(--gum-tissue); }
.err__pore { fill: #E2D3B5; }
.err__text .hero__actions { margin-top: 28px; }
.err__fig { margin: 0; }
.err__fig figcaption { font-size: .9375rem; color: var(--muted); }
.err__fig figcaption b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.err__art { display: block; width: 100%; height: auto; }
.err__tooth { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.err__ghost { fill: var(--bone-soft); stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 5 4; }
.err__gum { fill: var(--gum-tissue); }
.err__bone { fill: var(--bone); }
.err__lead { stroke: var(--ink); stroke-width: 1; }
.err__dot { fill: var(--ink); }
.err__num { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: var(--ink); }
.err__crack { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.err__more { margin-top: clamp(48px, 7vw, 88px); }
.err__more h2 { font-size: 1.5rem; margin-bottom: 12px; }
.err__ways { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 32px; }
.err__ways li { border-top: 1px solid var(--line); }
.err__ways a { display: grid; gap: 2px; padding: 14px 0; text-decoration: none; color: inherit; min-height: 44px; }
.err__ways b { font-weight: 600; }
.err__ways a:hover b, .err__ways a:focus-visible b { text-decoration: underline; }
.err__ways span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 820px) {
  .err__grid { grid-template-columns: 1fr; }
}

/* Політика конфіденційності й згода біля форм */
.legal ul { list-style: disc; padding-left: 1.25em; margin: 14px 0 0; display: grid; gap: 8px; }
.legal ul + p, .legal p + ul { margin-top: 14px; }
.legal li::marker { color: var(--gum, currentColor); }
.consent { font-size: .8125rem; line-height: 1.5; }
.consent a { color: inherit; }
.svc-row, .svc-head { display: grid; grid-template-columns: 1.2fr .7fr 72px 1.4fr auto 44px; gap: 8px; align-items: center; }
.svc-doc { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; white-space: nowrap; cursor: pointer; }
.svc-doc input { width: 18px; height: 18px; accent-color: var(--ink); }
.svc-head { font-size: .8125rem; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) {
  .aitem { flex-direction: column; align-items: stretch; }
  .sched-row { grid-template-columns: 1fr auto 1fr; }
  .sched-row .fcheck { grid-column: 1 / -1; }
  .svc { gap: 14px; }
  .svc-row { grid-template-columns: 1fr 72px 44px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .svc-head { display: none; }
  .svc-row [name=sName] { grid-area: 1 / 1; }
  .svc-row [name=sDur] { grid-area: 1 / 2; }
  .svc-row .icon-btn { grid-area: 1 / 3; }
  .svc-row [name=sPrice] { grid-area: 2 / 1 / 3 / -1; }
  .svc-row [name=sNote] { grid-area: 3 / 1 / 4 / -1; }
  .svc-row .svc-doc { grid-area: 4 / 1 / 5 / -1; }
  .aphoto { grid-template-columns: 90px 1fr; }
  .aphoto__img { width: 90px; height: 90px; }
}

/* fieldset за замовчуванням не стискається менше за вміст: дні прокручуються всередині форми */
.slots-box { min-width: 0; }
.booking > *, .booking .panel, .booking .form { min-width: 0; }
.form { grid-template-columns: minmax(0, 1fr); }
[data-slots] { min-width: 0; max-width: 100%; }
