/* ==========================================================================
   Motivation Clinic — styles
   Palette taken from the logo: ink black, clean white, the blue of the wink.
   ========================================================================== */

:root {
  --ink: #111214;
  --ink-2: #2a2c31;
  --muted: #6b6e76;
  --line: #e4e2dd;
  --paper: #ffffff;
  --paper-2: #f6f5f1;
  --accent: #1a78b4;
  --accent-bright: #3fa9e0;
  --accent-soft: #e6f2fa;
  --danger: #c8424f;

  --dark-bg: #0e0f11;
  --dark-card: #17191c;
  --dark-line: #2a2d32;
  --dark-text: #f2f1ee;
  --dark-muted: #9a9ea6;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 8px 28px rgba(17, 18, 20, .07);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #136597; }
.btn--wa { background: #15803d; color: #fff; }
.btn--wa:hover { background: #166534; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: var(--dark-line); color: var(--dark-text); background: transparent; }
.btn--ghost-light:hover { border-color: var(--dark-text); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; }
.brand__name { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: .95; letter-spacing: -.01em; }
.brand__name em {
  display: flex; align-items: center; gap: 6px;
  font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .55em; text-indent: .55em; color: var(--ink-2); margin-top: 2px;
}
.brand__name em::before, .brand__name em::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .7; }
.brand--light .brand__logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.brand--light .brand__name { color: var(--dark-text); }
.brand--light .brand__name em { color: var(--dark-muted); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background .15s;
}
.nav__link:hover, .nav__link.is-active { background: var(--paper-2); color: var(--ink); }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -.02em; line-height: 1.02;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 520px; font-size: 18px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; max-width: 160px; }
.hero__facts strong { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.hero__facts span { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.hero__visual { position: relative; }
/* Mascot: the logo's winking tooth, alive */
.mascot {
  position: relative; aspect-ratio: 4 / 4.6;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(63, 169, 224, .28), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px,
    #111214;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  user-select: none;
}
.mascot__ring { position: absolute; width: 92%; top: 50%; left: 50%; translate: -50% -52%; animation: spin 40s linear infinite; }
.mascot__ring text { fill: rgba(255, 255, 255, .34); font: 700 15px var(--font); letter-spacing: .18em; }
@keyframes spin { to { rotate: 360deg; } }

.mascot__tooth {
  position: relative; z-index: 2; width: 48%; margin-top: -4%;
  padding: 0; border: 0; background: none; cursor: pointer;
  animation: bob 4.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.mascot__tooth:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 8px; border-radius: 30px; }
.mascot__tooth svg { width: 100%; display: block; overflow: visible; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(1.5deg); } }
.mascot__tooth:active svg { transform: scale(.96); }
.mascot__shadow { fill: rgba(0, 0, 0, .45); animation: shadow 4.5s ease-in-out infinite; transform-origin: 200px 428px; }
@keyframes shadow { 50% { transform: scaleX(.82); opacity: .6; } }
.mascot__body { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.mascot__shine { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; opacity: .9; }
.mascot__brow { fill: none; stroke: #111214; stroke-width: 6; stroke-linecap: round; }
.mascot__wink, .mascot__blink, .mascot__mouth { fill: none; stroke: #111214; stroke-width: 6; stroke-linecap: round; }
.mascot__mouth--big { fill: #111214; stroke-linejoin: round; opacity: 0; }
.mascot__blink { opacity: 0; }
.mascot__eye { transition: opacity .08s; }
.mascot.is-blinking .mascot__eye { opacity: 0; }
.mascot.is-blinking .mascot__blink { opacity: 1; }
.mascot.is-happy .mascot__mouth { opacity: 0; }
.mascot.is-happy .mascot__mouth--big { opacity: 1; }
#mascotIris { transition: transform .12s ease-out; }

.mascot__bubble {
  position: absolute; z-index: 3; top: 7%; right: 6%; max-width: 54%;
  padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: opacity .25s, transform .25s;
}
.mascot__bubble.is-swapping { opacity: 0; transform: translateY(6px) scale(.96); }

.hero-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  animation: float 6s ease-in-out infinite;
  transition: background .2s, border-color .2s;
}
.hero-chip b { color: var(--accent-bright); font-weight: 800; }
.hero-chip i { font-style: normal; }
.hero-chip:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .4); }
.hero-chip--1 { top: 30%; left: 5%; animation-delay: -1s; }
.hero-chip--2 { top: 52%; right: 4%; animation-delay: -3s; }
.hero-chip--3 { bottom: 24%; left: 6%; animation-delay: -2s; }
.hero-chip--4 { bottom: 9%; right: 7%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-9px); } }

.hero__badge {
  position: relative; margin-top: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--ink); color: #fff; border-radius: 16px;
  font-size: 14px; line-height: 1.4; text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.hero__badge:hover { transform: translateY(-3px); }
.hero__badge-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(63, 169, 224, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(63, 169, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 169, 224, 0); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--dark-bg); color: var(--dark-text); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.015em; }
.section__lead { margin-top: 14px; font-size: 17px; color: var(--muted); }
.section__head--light .section__lead { color: var(--dark-muted); }

/* ---------- Help router ---------- */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.help-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 22px; min-height: 196px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.help-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.help-card__icon { font-size: 26px; line-height: 1; margin-bottom: 16px; }
.help-card__title { font-size: 18px; font-weight: 800; }
.help-card__text { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.help-card__price { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 700; color: var(--accent); }
.help-card--cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.help-card--cta .help-card__text { color: var(--dark-muted); }
.help-card--cta .help-card__price { color: var(--accent-bright); }

/* ---------- 3D Journey ---------- */
.journey { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.journey__stage {
  position: relative;
  background: radial-gradient(120% 90% at 50% 30%, #1f2328 0%, var(--dark-card) 55%, #111316 100%);
  border: 1px solid var(--dark-line); border-radius: 24px; overflow: hidden;
  min-height: 560px;
}
.journey__canvas { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.journey__canvas:active { cursor: grabbing; }
.journey__canvas canvas { display: block; width: 100%; height: 100%; }
.journey__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dark-muted); font-size: 14px; }

.journey__tools { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.journey__tools > * { pointer-events: auto; }
.journey__hint { font-size: 12px; color: var(--dark-muted); }

.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { width: 38px; height: 22px; border-radius: 99px; background: var(--dark-line); position: relative; transition: background .2s; }
.toggle__thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .toggle__track { background: var(--accent); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

.tooth-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tooth-labels svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tline { fill: none; stroke: rgba(242, 241, 238, .55); stroke-width: 1.2; transition: opacity .35s; }
.tline--alert { stroke: rgba(255, 110, 120, .8); }
.tdot { fill: #fff; stroke: rgba(0, 0, 0, .5); stroke-width: 1.5; transition: opacity .35s; }
.tdot--alert { fill: #ff4d5e; animation: tdot 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tdot { 50% { transform: scale(1.5); } }
.tlabel {
  position: absolute; top: 0; left: 0;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(14, 15, 17, .78); border: 1px solid rgba(255, 255, 255, .16);
  color: #f2f1ee; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.3;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .35s;
}
.tlabel--alert { border-color: rgba(255, 90, 100, .65); color: #ffe1e3; background: rgba(60, 10, 14, .78); }

.journey__panel {
  display: flex; flex-direction: column;
  padding: 32px; background: var(--dark-card);
  border: 1px solid var(--dark-line); border-radius: 24px;
}
.journey__step-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dark-muted); }
.journey__step-num { font-weight: 700; color: var(--accent-bright); }
.journey__title { font-family: var(--serif); font-size: 36px; font-weight: 600; margin-top: 14px; }
.journey__text { margin-top: 12px; color: #c9ccd2; font-size: 15px; min-height: 96px; }

.journey__price { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: #0f1113; border: 1px solid var(--dark-line); display: flex; flex-direction: column; }
.journey__price-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dark-muted); }
.journey__price-value { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; transition: color .3s; }
.journey__price-note { font-size: 13px; color: var(--dark-muted); margin-top: 2px; }

.journey__bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 64px; margin-top: 22px; }
.journey__bar { border-radius: 4px 4px 2px 2px; background: var(--dark-line); transition: background .3s, opacity .3s; min-height: 4px; cursor: pointer; border: 0; padding: 0; }
.journey__bar.is-past { background: #4b5058; }
.journey__bar.is-current { background: var(--accent-bright); }

.journey__slider { margin-top: 18px; }
.journey__slider input[type="range"] { width: 100%; accent-color: var(--accent-bright); height: 28px; }
.journey__ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--dark-muted); text-transform: uppercase; letter-spacing: .08em; }

.journey__nav { display: flex; gap: 10px; margin-top: 20px; }
.journey__nav .btn { flex: 1; }
.journey__disclaimer { margin-top: auto; padding-top: 18px; font-size: 12px; color: #6f737b; }

/* ---------- Prices ---------- */
.prices__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .15s;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab__count { opacity: .55; margin-left: 4px; font-weight: 500; }

.search { position: relative; flex: 0 1 340px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2);
  font: inherit; font-size: 15px; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--accent); background: #fff; }

.price-group { margin-bottom: 28px; }
.price-group__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; padding: 0 4px; }
.price-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; border-bottom-color: var(--line);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.price-row:hover { background: var(--paper-2); }
.price-row.is-selected { background: var(--accent-soft); border-color: var(--accent); }
.price-row__check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c4c2bc; display: grid; place-items: center; transition: all .15s; background: #fff; }
.price-row__check svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.price-row.is-selected .price-row__check { background: var(--accent); border-color: var(--accent); }
.price-row.is-selected .price-row__check svg { opacity: 1; }
.price-row__name { font-weight: 700; font-size: 16px; }
.price-row__desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.price-row__price { font-weight: 800; font-size: 18px; white-space: nowrap; text-align: right; }
.price-row input { position: absolute; opacity: 0; pointer-events: none; }
.price-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.prices__note { margin-top: 8px; font-size: 13px; color: var(--muted); }

mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }

.estimate {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  width: min(640px, 100% - 24px);
  transform: translateX(-50%);
  animation: rise .3s ease;
}
.estimate[hidden] { display: none; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }
.estimate__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 14px 14px 24px; border-radius: 20px;
  background: var(--ink); color: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.estimate__info { display: flex; flex-direction: column; }
.estimate__count { font-size: 13px; color: var(--dark-muted); }
.estimate__total { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.estimate__actions { display: flex; gap: 8px; }

/* ---------- Doctors ---------- */
.doctors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.doctor { display: flex; flex-direction: column; }
.doctor__photo { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #e9e7e2; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s ease; }
.doctor:hover .doctor__photo img { transform: scale(1.04); }
.doctor__name { font-size: 18px; font-weight: 800; margin-top: 14px; }
.doctor__role { font-size: 14px; color: var(--muted); }
.doctor__book { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.doctor__book:hover { text-decoration: underline; }

/* ---------- Steps + FAQ ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 26px; border-radius: var(--radius); border: 1.5px solid var(--line); position: relative; }
.step__num { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--accent); line-height: 1; }
.step__title { font-size: 19px; font-weight: 800; margin-top: 18px; }
.step__text { margin-top: 8px; font-size: 15px; color: var(--muted); }

.faq { margin-top: 72px; max-width: 820px; }
.faq__title { font-family: var(--serif); font-size: 34px; font-weight: 600; margin-bottom: 16px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 17px; font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 22px; color: var(--ink-2); max-width: 720px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.branch {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 18px; border-radius: var(--radius); cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.branch:hover { border-color: #c9c6bf; }
.branch.is-active { border-color: var(--ink); box-shadow: var(--shadow); }
.branch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.branch__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.branch__tag b { color: #15803d; }
.branch__addr { font-size: 17px; font-weight: 800; margin-top: 6px; line-height: 1.3; }
.branch__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.metro { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #99cc00; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; }
.branch__route { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.branch__route:hover { text-decoration: underline; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.contact-list__value { font-size: 17px; font-weight: 700; text-decoration: none; }
a.contact-list__value:hover { color: var(--accent); }
.contact-list__link { grid-column: 2; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.contacts__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__map { border-radius: 24px; overflow: hidden; min-height: 440px; background: #e9e7e2; box-shadow: var(--shadow); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-bg); color: var(--dark-muted); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--dark-text); }
.footer__nav a:hover { color: var(--accent-bright); }
.footer__legal { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.footer__legal { align-items: center; }

/* Developer credit badge */
.credit {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(63, 169, 224, .16), rgba(63, 169, 224, .04));
  border: 1px solid rgba(63, 169, 224, .45);
  color: var(--dark-text); text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.credit:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  background: linear-gradient(135deg, rgba(63, 169, 224, .28), rgba(63, 169, 224, .08));
  box-shadow: 0 10px 30px rgba(63, 169, 224, .25);
}
.credit:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.credit__icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--accent-bright); color: #0e0f11;
}
.credit__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.credit__text { display: flex; flex-direction: column; line-height: 1.15; }
.credit__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.credit__name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.credit__arrow { font-size: 18px; color: var(--accent-bright); transition: transform .2s; }
.credit:hover .credit__arrow { transform: translate(2px, -2px); }

/* ---------- Quickbar (mobile) ---------- */
.quickbar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__link { padding: 8px 9px; font-size: 13px; }
  .doctors { grid-template-columns: repeat(3, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr; }
  .journey__stage { min-height: 480px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
  }
  .burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 8px; font-size: 17px; border-radius: 10px; }

  .hero { padding: 32px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }

  .contacts { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }

  .quickbar {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .quickbar__btn {
    display: grid; place-items: center; height: 46px; border-radius: 12px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    background: var(--paper-2); color: var(--ink);
  }
  .quickbar__btn--main { background: #15803d; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .quickbar__btn--main svg { width: 18px; height: 18px; fill: currentColor; }
  body { padding-bottom: 70px; }
  .estimate { bottom: 82px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .brand__name { font-size: 22px; }
  .brand__logo { width: 42px; height: 42px; }
  .hero__lead { font-size: 16px; }
  .hero__facts { gap: 22px; }
  .hero__facts strong { font-size: 28px; }
  .mascot { aspect-ratio: 1 / 1.18; }
  .mascot__ring { translate: -50% -64%; width: 86%; }
  .mascot__tooth { width: 46%; margin-top: -30%; }
  .mascot__bubble { font-size: 12.5px; top: 4%; right: 4%; max-width: 60%; }
  .hero-chip { font-size: 12px; padding: 7px 11px; top: auto; left: auto; right: auto; bottom: auto; }
  .chip-extra { display: none; }
  .hero-chip--1 { bottom: 17%; left: 4%; }
  .hero-chip--2 { bottom: 17%; right: 4%; }
  .hero-chip--3 { bottom: 5%; left: 4%; }
  .hero-chip--4 { bottom: 5%; right: 4%; }
  .hero__cta .btn { flex: 1 1 100%; }

  .help-grid { gap: 10px; }
  .help-card { padding: 16px; min-height: 172px; }
  .help-card__title { font-size: 16px; }
  .help-card__text { font-size: 13px; }

  .journey__stage { min-height: 400px; border-radius: 20px; }
  .journey__panel { padding: 22px; border-radius: 20px; }
  .journey__title { font-size: 30px; }
  .journey__text { min-height: 0; }
  .journey__hint { display: none; }
  .tlabel { font-size: 11px; padding: 4px 9px; }

  .prices__toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .search { flex-basis: auto; }
  .price-row { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 12px; }
  .price-row__price { grid-column: 2; text-align: left; font-size: 16px; }

  .doctors { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .contact-list__link { grid-column: 1; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }

  .estimate__inner { padding: 12px 12px 12px 18px; }
  .estimate__total { font-size: 20px; }
  .estimate__actions #estimateClear { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
