:root {
  --bg: #f8fbfb;
  --paper: #ffffff;
  --ink: #10292e;
  --muted: #546c73;
  --line: #dbe6e8;
  --aqua: #dcf1ee;
  --aqua-2: #b4e0da;
  --teal: #0f5e63;
  --teal-2: #0b4a4e;
  --enamel: #f5f2ec;

  --step-hero: clamp(2.4rem, 1.1rem + 4vw, 4.9rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Golos Text", system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.demo-note { background: var(--ink); color: #cfe3e5; font-size: 13px; text-align: center; padding: 7px 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 6px; border: 0; cursor: pointer;
  font: 500 16px/1 "Golos Text", sans-serif; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); }
.btn--line { height: 44px; padding: 0 20px; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head__in { height: 76px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--teal); }
.brand__mark { align-self: center; }
.brand__name { font: 500 24px/1 "Commissioner", sans-serif; letter-spacing: -.02em; color: var(--ink); }
.brand__sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 34px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 3.6vw, 56px) 0 clamp(48px, 6vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.hero__grid > * { min-width: 0; }
.eyebrow { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 26px; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--teal); }
h1 { font: 300 var(--step-hero)/1.06 "Commissioner", sans-serif; letter-spacing: -.035em; text-wrap: balance; max-width: 15ch; }
h1 em { font-style: normal; color: var(--teal); background: linear-gradient(var(--aqua-2), var(--aqua-2)) 0 88% / 100% .08em no-repeat; white-space: nowrap; }
.lead { margin-top: 26px; color: var(--muted); max-width: 52ch; font-size: clamp(16px, .95rem + .25vw, 19px); }
.promises { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.promises li { padding: 18px 24px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.promises li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.promises b { font: 500 16px/1.3 "Commissioner", sans-serif; color: var(--ink); }

/* ---------- tooth chart ---------- */
.chart { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px 20px; position: relative; }
.chart__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.chart__label { font: 500 15px "Commissioner", sans-serif; letter-spacing: .01em; }
.chart__hint { color: var(--muted); text-align: right; transition: color .2s; }
.chart__hint.is-on { color: var(--teal); font-weight: 500; }

.jaw { display: block; width: 100%; height: auto; margin: 6px 0 0; touch-action: manipulation; }
.jaw .gum { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.jaw .mid { stroke: var(--line); stroke-width: 1; }
.tooth { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tooth .hit { fill: transparent; }
.tooth .crown { fill: var(--enamel); stroke: #c6d3d5; stroke-width: 1.2; transition: fill .25s var(--ease), stroke .25s var(--ease); }
.tooth .groove { fill: none; stroke: #cfd9db; stroke-width: 1; transition: stroke .25s var(--ease); }
.tooth .num { font: 500 10px "Golos Text", sans-serif; fill: #9ab0b5; text-anchor: middle; dominant-baseline: middle; pointer-events: none; transition: fill .2s; }
.tooth:hover .crown { fill: var(--aqua); stroke: var(--aqua-2); }
.tooth:focus { outline: none; }
.tooth:focus-visible .crown { stroke: var(--teal); stroke-width: 2; }
.tooth.is-on .crown { fill: var(--teal); stroke: var(--teal); }
.tooth.is-on .groove { stroke: rgba(255, 255, 255, .45); }
.tooth.is-on .num { fill: var(--teal); font-weight: 600; }
.tooth.is-done .crown { fill: var(--aqua-2); stroke: #8fcbc3; }
.jaw__label { font: 400 11px "Golos Text", sans-serif; fill: var(--muted); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.jaw__sides { display: flex; justify-content: space-between; font-size: 12px; color: #8aa1a7; margin-top: -4px; padding: 0 6px; }

.chart__step { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.chart__q { font: 500 15px "Commissioner", sans-serif; margin-bottom: 10px; }
.complaints { display: flex; flex-wrap: wrap; gap: 6px; }
.complaints button {
  height: 38px; padding: 0 14px; border-radius: 6px; border: 0; cursor: pointer; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line); font: 400 14px "Golos Text", sans-serif; color: var(--ink);
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.complaints button:hover { box-shadow: inset 0 0 0 1px var(--aqua-2); background: var(--aqua); }
.complaints button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.verdict {
  margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center;
  background: var(--aqua); border-radius: 8px; padding: 16px 16px 16px 20px;
}
.verdict > * { min-width: 0; }
.verdict__t { font: 500 18px/1.25 "Commissioner", sans-serif; letter-spacing: -.01em; }
.verdict__d { font-size: 14px; color: var(--muted); margin-top: 2px; }
.verdict__side { text-align: right; }
.verdict__price { font: 500 20px/1.2 "Commissioner", sans-serif; white-space: nowrap; }
.verdict__slot { font-size: 13px; color: var(--teal); white-space: nowrap; }
.verdict.is-empty .verdict__side, .verdict.is-empty .btn { display: none; }
.verdict.is-empty { grid-template-columns: minmax(0, 1fr); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.verdict.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(4px); opacity: .6; } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 8vw, 128px) 0; border-top: 1px solid var(--line); }
.sec--paper { background: var(--paper); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head > * { min-width: 0; }
h2 { font: 300 clamp(2rem, 1.2rem + 2.6vw, 3.6rem)/1.05 "Commissioner", sans-serif; letter-spacing: -.035em; }
.sec__sub { color: var(--muted); max-width: 46ch; justify-self: end; }
h3 { font: 500 19px/1.3 "Commissioner", sans-serif; letter-spacing: -.01em; }

/* prices */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 120px); align-items: start; }
.split > * { min-width: 0; }
.split__aside { position: sticky; top: 32px; }
.honest { margin-top: 32px; padding: 20px 22px; background: var(--aqua); border-radius: 8px; max-width: 38ch; }
.honest__t { font: 500 16px "Commissioner", sans-serif; margin-bottom: 4px; }
.honest p:last-child { color: var(--muted); font-size: 15px; }
.pgroup + .pgroup { margin-top: 44px; }
.pgroup h3 { font-size: 13px; font-family: "Golos Text", sans-serif; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.prow__t { font: 400 18px/1.3 "Commissioner", sans-serif; }
.prow__n { font-size: 14px; color: var(--muted); margin-top: 2px; }
.prow__p { font: 500 18px "Commissioner", sans-serif; white-space: nowrap; }
.prow__go { font-size: 14px; color: var(--teal); padding: 8px 0 8px 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.prow__go:hover { text-decoration: underline; text-underline-offset: 4px; }

/* doctors */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.doc { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.doc__ava { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 400 20px "Commissioner", sans-serif; color: var(--ink); margin-bottom: 26px; }
.doc__role { color: var(--teal); font-size: 14px; margin-top: 2px; }
.doc__exp { color: var(--muted); font-size: 15px; margin-top: 12px; }
.doc__slot { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--muted); }
.doc__slot b { color: var(--ink); font-weight: 500; }
.doc__go { margin-top: 10px; color: var(--teal); font-weight: 500; font-size: 15px; }
.doc__go:hover { text-decoration: underline; text-underline-offset: 4px; }

/* flow */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.flow li { padding: 0 28px 0 0; position: relative; }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.flow__n { display: block; font: 300 44px/1 "Commissioner", sans-serif; color: var(--aqua-2); margin-bottom: 28px; letter-spacing: -.03em; }
.flow p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 30ch; }

/* booking */
.booking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.booking > * { min-width: 0; }
.bstep + .bstep { margin-top: 34px; }
.bstep__t { display: flex; align-items: center; gap: 12px; font: 500 17px "Commissioner", sans-serif; margin-bottom: 14px; }
.bstep__t span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); display: grid; place-items: center; font-size: 13px; }
.bselect { position: relative; max-width: 560px; }
.bselect::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.bselect select { width: 100%; appearance: none; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; height: 54px; padding: 0 44px 0 16px; font: 400 16px "Golos Text", sans-serif; color: var(--ink); background: var(--bg); cursor: pointer; }
.bselect select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--teal); }
.bdoc { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.bdoc b { color: var(--ink); font-weight: 500; }
.bdoc__ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 400 14px "Commissioner", sans-serif; color: var(--ink); flex: none; }

.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.days button {
  border: 0; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 10px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink); font-family: "Golos Text", sans-serif; transition: background-color .2s, box-shadow .2s;
}
.days__w { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.days__d { font: 400 22px/1.2 "Commissioner", sans-serif; }
.days__f { font-size: 11px; color: var(--teal); }
.days button:hover:not([disabled]) { box-shadow: inset 0 0 0 1px var(--aqua-2); background: var(--aqua); }
.days button[aria-checked="true"] { background: var(--ink); box-shadow: none; color: #fff; }
.days button[aria-checked="true"] .days__w, .days button[aria-checked="true"] .days__f { color: #bfd8db; }
.days button[disabled] { opacity: .45; cursor: not-allowed; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.times button { height: 42px; border: 0; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 400 15px "Golos Text", sans-serif; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .2s, box-shadow .2s; }
.times button:hover:not([disabled]) { background: var(--aqua); box-shadow: inset 0 0 0 1px var(--aqua-2); }
.times button[aria-checked="true"] { background: var(--teal); color: #fff; box-shadow: none; }
.times button[disabled] { color: #a9b9bd; text-decoration: line-through; background: transparent; cursor: not-allowed; }

.ticket { position: sticky; top: 24px; background: var(--ink); color: #fff; border-radius: 10px; padding: clamp(22px, 2.4vw, 32px); }
.ticket__k { font-size: 13px; color: #9fc1c5; letter-spacing: .08em; text-transform: uppercase; }
.ticket__when { font: 300 clamp(26px, 1.4rem + 1vw, 34px)/1.15 "Commissioner", sans-serif; margin-top: 6px; letter-spacing: -.02em; }
.ticket__when.is-empty { color: #7f9da1; }
.ticket__list { margin: 18px 0 20px; border-top: 1px dashed rgba(255, 255, 255, .22); }
.ticket__list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .22); font-size: 14px; }
.ticket__list dt { color: #9fc1c5; }
.ticket__list dd { text-align: right; }
.tfield { display: block; margin-bottom: 10px; }
.tfield span { display: block; font-size: 12px; color: #9fc1c5; margin-bottom: 5px; }
.tfield i { font-style: normal; opacity: .7; }
.tfield input { width: 100%; height: 48px; border: 0; border-radius: 6px; padding: 0 14px; background: rgba(255, 255, 255, .08); color: #fff; font: 400 16px "Golos Text", sans-serif; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tfield input::placeholder { color: #7f9da1; }
.tfield input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--aqua-2); }
.tfield.is-bad input { box-shadow: inset 0 0 0 1.5px #f1a1a1; }
.tcheck { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #bcd3d6; margin: 6px 0 14px; cursor: pointer; }
.tcheck input { width: 17px; height: 17px; accent-color: var(--aqua-2); flex: none; margin-top: 1px; }
.terr { color: #f6b6b6; font-size: 13px; margin-bottom: 10px; }
.terr:empty { display: none; }
.btn--light { background: var(--aqua-2); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; text-align: center; line-height: 1.3; }
.ticket__msg { color: #bcd3d6; font-size: 15px; margin: 14px 0 22px; }
.tlink { background: none; border: 0; color: #9fc1c5; font: 400 14px "Golos Text", sans-serif; margin-top: 12px; cursor: pointer; padding: 6px 0; }
.tlink:hover { color: #fff; }

/* contacts */
.contacts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px clamp(40px, 6vw, 120px); }
.contacts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.contacts__list div { padding: 18px 24px 0 0; min-width: 0; }
.contacts__list dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contacts__list dd { font-size: 16px; }
.contacts__list a { color: var(--teal); }
.foot { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; gap: 16px; }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .head__in { justify-content: space-between; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 18ch; }
  .split, .contacts { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .booking { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head__in { height: 64px; }
  .brand__sub { display: none; }
  .eyebrow { margin-bottom: 18px; font-size: 13px; }
  .lead { margin-top: 18px; }
  .promises { margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
  .promises li { padding: 14px 0; }
  .promises li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .chart { padding: 16px 14px 16px; margin: 0 calc(var(--gutter) * -.5); }
  .chart__label { display: none; }
  .chart__hint { text-align: left; }
  .verdict { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .verdict__side { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .verdict .btn { width: 100%; }

  .sec__head { grid-template-columns: minmax(0, 1fr); }
  .sec__sub { justify-self: start; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow__go { grid-column: 1 / -1; border-left: 0; padding: 0; justify-self: start; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 22px 18px; }
  .doc__ava { margin-bottom: 16px; width: 52px; height: 52px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li, .flow li + li { padding: 0 0 0 18px; border-left: 1px solid var(--line); }
  .flow__n { font-size: 32px; margin-bottom: 10px; }
  .days { grid-template-columns: repeat(12, 64px); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .days::-webkit-scrollbar { display: none; }
  .times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contacts__list { grid-template-columns: minmax(0, 1fr); }
  .contacts__list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .foot__in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
