/* ============================================================
   ДЕНТА — стоматологическая клиника
   Тон: клиника, которой не страшно. Холодный бирюзовый вместо
   больничного синего, тёплый белый вместо стерильного, крупный
   плотный гротеск в заголовках. Цены — списком, а не «от».
   ============================================================ */

:root {
  --bg: #fbfcfc;
  --soft: #edf5f5;
  --soft-2: #dfeded;
  --ink: #0e1f24;
  --muted: #566a6f;
  --line: #d6e5e5;
  --teal: #0f6472;
  --teal-2: #0b4c57;
  --aqua: #227980;

  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;

  --cart-bg: #ffffff;
  --cart-fg: var(--ink);
  --cart-shadow: -20px 0 60px rgba(14, 31, 36, 0.2);

  --gut: clamp(16px, 4.5vw, 56px);
  --sec-y: clamp(50px, 6.5vw, 96px);
}

body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.62; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-weight: 900; line-height: 1.1; letter-spacing: -0.022em; }
.kicker { margin-bottom: 16px; color: var(--aqua); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.p { max-width: 34em; margin-bottom: 14px; color: var(--muted); }

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 24px; border: 2px solid transparent; border-radius: 8px;
  background: transparent;
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); }
.btn--teal:disabled { background: #c2d4d4; cursor: not-allowed; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--teal); color: var(--teal); }
.btn__q:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.24); font-size: 11px; }
[data-add][data-in-cart] { background: var(--aqua); border-color: var(--aqua); }

/* ── Шапка ──────────────────────────────────────────────── */

.hdr { position: sticky; top: var(--demo-bar-h); z-index: 100; background: rgba(251,252,252,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 22px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; letter-spacing: 0.1em; text-decoration: none; }
.brand__mark { width: 27px; height: 27px; color: var(--teal); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--teal); }
.hdr__side { display: flex; align-items: center; gap: 14px; }
.phone { font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--teal); border-radius: 8px; background: none; color: var(--teal); padding: 9px 16px; font-size: 13.5px; font-weight: 600; }
.cart-btn:hover { background: var(--teal); color: #fff; }
.cart-btn__n { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.cart-btn:hover .cart-btn__n { background: #fff; color: var(--teal); }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 960px) {
  .hdr__in { position: relative; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gut) 16px; margin: 0; }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .hdr__side { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 700px) { .phone { display: none; } .cart-btn { font-size: 12.5px; padding: 9px 12px; } }

/* ── Первый экран ───────────────────────────────────────── */

.hero { padding-block: clamp(38px, 5vw, 78px); }
.hero__in { display: grid; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(32px, 5.2vw, 60px); }
.hero h1 em { font-style: normal; color: var(--teal); }
.lede { max-width: 33em; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marks { display: grid; gap: 18px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.marks b { display: block; font-size: 24px; font-weight: 900; color: var(--teal); }
.marks span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 520px) { .marks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.1fr 0.9fr; } }

/* Два кольца и силуэт зуба: спокойный знак вместо клинического фото. */
.hero__art { position: relative; min-height: 280px; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; }
.ring--1 { width: 76%; aspect-ratio: 1; background: var(--soft); }
.ring--2 { width: 52%; aspect-ratio: 1; background: var(--soft-2); }
.tooth {
  position: relative; width: 26%; aspect-ratio: 4 / 5;
  background: linear-gradient(170deg, #ffffff, #dceaea);
  border-radius: 46% 46% 32% 32% / 40% 40% 60% 60%;
  box-shadow: 0 18px 40px -22px rgba(14, 31, 36, 0.55);
}
.tooth::after { content: ""; position: absolute; left: 46%; right: 30%; bottom: 0; top: 62%; background: var(--soft); border-radius: 0 0 60% 0; }

/* ── Секции ─────────────────────────────────────────────── */

.sec { padding-block: var(--sec-y); }
.sec--soft { background: var(--soft); }
.sec--teal { background: var(--teal); color: #cfe6e8; }
.sec__head { max-width: 46em; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head h2 { font-size: clamp(26px, 3.8vw, 42px); }
.sec__head p { margin-top: 14px; color: var(--muted); }
.sec__head--light h2 { color: #fff; }
.sec__head--light p { color: #c4dcdf; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips--tight { margin-bottom: 0; }
.chip { border: 2px solid var(--line); border-radius: 8px; padding: 9px 17px; background: var(--bg); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: all 0.2s; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[data-on] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ── Цены ───────────────────────────────────────────────── */

.price { display: grid; gap: 8px; }
.price li { display: grid; align-items: center; gap: 6px 18px; grid-template-columns: 1fr auto; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.price h3 { font-size: 18px; margin-bottom: 4px; }
.price li p { color: var(--muted); font-size: 13.5px; }
.price__p { font-size: 21px; font-weight: 900; white-space: nowrap; }
.price li .btn { justify-self: start; }
.price__note { margin-top: 18px; color: var(--muted); font-size: 13px; max-width: 56em; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (min-width: 840px) {
  .price li { grid-template-columns: 1fr 140px 130px; }
  .price li .btn { justify-self: stretch; }
}

/* ── Врачи ──────────────────────────────────────────────── */

.docs { display: grid; gap: 22px; }
.docs li { text-align: center; }
.docs__a { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(165deg, var(--soft), var(--soft-2)); font-size: 54px; font-weight: 900; color: rgba(14,31,36,0.2); }
.docs__a::before { content: attr(data-i); }
.docs h3 { font-size: 19px; margin-bottom: 5px; }
.docs li p { color: var(--teal); font-size: 13.5px; }
.docs__m { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 560px) { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .docs { grid-template-columns: repeat(4, 1fr); } }

/* ── Шаги ───────────────────────────────────────────────── */

.steps { display: grid; gap: 20px; }
.steps li { border-top: 2px solid rgba(207,230,232,0.3); padding-top: 18px; }
.steps span { display: block; margin-bottom: 12px; color: #c1dfe2; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; }
.steps h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.steps li p { color: #c4dcdf; font-size: 14px; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ── Запись ─────────────────────────────────────────────── */

.book { display: grid; gap: clamp(28px, 3.5vw, 52px); }
.book h2 { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 16px; }
.book__form { display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.6vw, 30px); background: var(--soft); }
.book__row { display: grid; gap: 14px; }
.fld { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fld legend { padding: 0; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 11px 4px; background: var(--bg); color: var(--ink); }
.day b { font-size: 12px; font-weight: 600; color: var(--muted); }
.day span { font-size: 20px; font-weight: 900; }
.day:hover { border-color: var(--teal); }
.day[data-on] { background: var(--teal); border-color: var(--teal); color: #fff; }
.day[data-on] b { color: #c1dfe2; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.slot { border: 2px solid var(--line); border-radius: 10px; padding: 11px 6px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot:hover:not([data-busy]) { border-color: var(--aqua); color: var(--teal); }
.slot[data-on] { background: var(--aqua); border-color: var(--aqua); color: #fff; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
input { border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); padding: 11px 14px; font-size: 15px; }
input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.book__sum { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.book__sum b { font-size: 26px; font-weight: 900; }
.legal { color: var(--muted); font-size: 12px; }
@media (min-width: 560px) { .book__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .book { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }

.done { grid-column: 1 / -1; border: 2px solid var(--teal); border-radius: 16px; padding: 24px; background: var(--soft); }
.done__t { font-size: 20px; font-weight: 900; }
.done__s { margin-top: 8px; color: var(--muted); }
.done__d { margin-top: 14px; color: #7d9599; font-size: 13px; }

/* ── Вопросы ────────────────────────────────────────────── */

.faq__h { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px 20px; cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--aqua); font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; max-width: 62em; }

/* ── План лечения ───────────────────────────────────────── */

.cart__top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gut) 16px; border-bottom: 1px solid var(--line); }
.cart__top h2 { font-size: 21px; }
.cart__x { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 8px; background: none; font-size: 19px; line-height: 1; color: var(--ink); }
.cart__x:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.cart__empty { padding: 32px var(--gut); color: var(--muted); }
.cart__empty a { color: var(--teal); }
.cart__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__lines { flex: 1; padding: 6px var(--gut); }

.line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__i b { display: block; font-size: 14px; font-weight: 600; }
.line__u { color: var(--muted); font-size: 12px; }
.line__q { display: flex; align-items: center; gap: 4px; }
.line__q button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 7px; background: none; font-size: 14px; line-height: 1; }
.line__q button:hover { border-color: var(--teal); color: var(--teal); }
.line__q span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line__p { font-weight: 900; font-size: 14px; white-space: nowrap; }
.line__x { width: 26px; height: 26px; border: 0; background: none; color: #a5b8ba; font-size: 18px; line-height: 1; }
.line__x:hover { color: var(--teal); }

.cart__sum { padding: 14px var(--gut); border-top: 1px solid var(--line); display: grid; gap: 7px; }
.cart__sum > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.cart__sum--total { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: 18px !important; }
.cart__sum--total dd { font-weight: 900; }
.cart__note { padding: 0 var(--gut) 12px; color: var(--muted); font-size: 12.5px; }
.cart__body > .btn { margin: 0 var(--gut) calc(var(--gut) + 6px); width: auto; }
.cart__backdrop { position: fixed; inset: 0; z-index: 290; border: 0; }

/* ── Подвал ─────────────────────────────────────────────── */

.foot { background: var(--ink); color: #90a5a8; padding-block: clamp(36px, 5vw, 60px); }
.foot__in { display: grid; gap: 28px; }
.foot__brand { font-size: 22px; font-weight: 900; letter-spacing: 0.1em; color: #fff; }
.foot__t { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.foot h3 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #5fb8c1; margin-bottom: 12px; font-weight: 600; }
.foot a { display: block; padding: 4px 0; color: #90a5a8; font-size: 14px; text-decoration: none; }
.foot a:hover { color: #fff; }
@media (min-width: 700px) { .foot__in { grid-template-columns: 1.7fr 1fr 1fr; } }
