/* =========================================================
   Denta · All-on-4 · общие стили для / и /new/
   ========================================================= */
:root {
  /* палитра основного сайта dentakrd.ru */
  --pine: #15181E;        /* тёмный фон и тёмные акценты */
  --pine-2: #262B33;
  --porcelain: #F8F8F8;   /* фон страницы */
  --white: #FFFFFF;
  --sage: #EAF5FB;        /* светло-голубые плашки */
  --sage-2: #D7D7D7;
  --brand: #008DD2;       /* фирменный голубой: иконки, чипы, крупные цифры */
  --sun: #0079B5;         /* кнопки и ссылки — тот же голубой, чуть темнее для контраста с белым текстом */
  --sun-2: #006FA6;
  --brand-light: #5BC0EE; /* голубой на тёмном фоне */
  --text: #303030;
  --muted: #616161;
  --on-dark: #C9CED6;
  --line: #E9E9E9;
  --err: #B3261E;
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.6 var(--font-body); color: var(--text); background: var(--porcelain); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .q-hero :focus-visible, .footer :focus-visible { outline-color: var(--brand-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border: 0; border-radius: 14px;
  background: var(--sun); color: #fff;
  font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--sun-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--outline { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.btn--outline:hover { background: var(--sage); }
.btn--block { width: 100%; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li {
  position: relative; padding-left: 34px;
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23008DD2'/%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1.1; }
.logo img { display: block; width: auto; height: 46px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--pine); text-decoration: underline; }
.header__contact { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
.nav + .header__contact { margin-left: 12px; }
.phone { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--pine); white-space: nowrap; }
.phone:hover { text-decoration: underline; }
.header__addr { font-size: .82rem; color: var(--muted); }
.header .btn { min-height: 50px; padding: 0 20px; font-size: .98rem; }
@media (max-width: 1120px) { .nav { display: none; } }
@media (max-width: 720px) {
  .header__in { min-height: 66px; gap: 12px; }
  .header__addr, .header .btn { display: none; }
  .logo img { height: 36px; }
  .phone { font-size: 1.05rem; }
}

/* ---------- первый экран ---------- */
.hero { background: var(--pine); color: #fff; padding-top: 56px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.chip {
  display: inline-block; margin-bottom: 22px;
  padding: 7px 14px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: .95rem;
}
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 22ch; }
.hero__sub { font-size: 1.2rem; color: var(--on-dark); margin: 20px 0 24px; max-width: 46ch; }
.hero__price {
  display: inline-grid; gap: 4px; margin-bottom: 26px;
  padding: 14px 22px 16px; border-radius: 16px;
  background: rgba(255,255,255,.06); border-left: 4px solid var(--brand-light);
}
.hero__price span { color: var(--on-dark); font-size: .98rem; font-weight: 600; }
.hero__price b { font: 600 clamp(1.9rem, 3.4vw, 2.6rem)/1.05 var(--font-display); color: #fff; white-space: nowrap; }
.hero__price small { font: 600 1.1rem/1 var(--font-body); color: var(--brand-light); margin-right: 4px; }
.hero .list-check { margin-bottom: 32px; font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__cta .btn { min-height: 62px; padding: 0 32px; font-size: 1.1rem; }
.hero__cta p { margin: 0; color: var(--on-dark); font-size: .95rem; max-width: 24ch; }

.hero-doc { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero-doc__photo { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #fff; }
.hero-doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-doc figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 10px 30px rgba(21,24,30,.18);
}
.hero-doc figcaption b { font-size: 1.05rem; line-height: 1.3; }
.hero-doc figcaption span { color: var(--muted); font-size: .92rem; }
.hero-doc .hero-doc__exp { justify-self: start; margin-top: 6px; padding: 3px 10px; border-radius: 8px; background: var(--sage); color: var(--sun); font-weight: 700; font-size: .85rem; }

.hero__legal {
  margin-top: 56px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16);
  text-align: center; color: var(--on-dark); font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.15rem);
}
@media (max-width: 960px) {
  .hero { padding-top: 36px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-doc { justify-self: start; max-width: 420px; }
  .hero__legal { margin-top: 32px; }
}
@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
  .hero__cta p { max-width: none; }
  .hero-doc { max-width: none; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; align-items: center; }
  .hero-doc__photo { aspect-ratio: 1; border-radius: 50%; }
  .hero-doc figcaption { position: static; padding: 0; background: none; box-shadow: none; color: #fff; }
  .hero-doc figcaption span { color: var(--on-dark); }
  .hero-doc .hero-doc__exp { background: rgba(255,255,255,.1); color: var(--brand-light); }
}

/* ---------- формы ---------- */
.lead-card { background: #fff; color: var(--text); border-radius: 22px; padding: 26px; max-width: 580px; }
.lead-card__title { font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.lead-card__note { color: var(--muted); font-size: .96rem; margin: 0 0 16px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-row .btn { grid-column: 1 / -1; }
@media (max-width: 520px) { .lead-row { grid-template-columns: 1fr; } .lead-card { padding: 20px; } }

.field { display: grid; gap: 6px; }
.field__label { font-size: .9rem; font-weight: 600; }
.input {
  width: 100%; min-height: 56px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
  font: inherit; font-size: 1.05rem;
}
.input::placeholder { color: #8A8A8A; }
.input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(0,141,210,.2); }
.input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pine); }
.consent a { color: var(--pine); }
.form-error { display: none; margin: 10px 0 0; color: var(--err); font-size: .92rem; font-weight: 600; }
.form-error.is-visible { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- цифры доверия ---------- */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 32px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 500 2rem/1.1 var(--font-display); color: var(--pine); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: .98rem; line-height: 1.45; display: block; }
@media (max-width: 860px) {
  .facts__grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .fact, .fact:first-child { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact b { font-size: 1.6rem; }
}

/* ---------- кому подходит ---------- */
.suits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 56px; }
.suits li { border-top: 3px solid var(--pine); padding-top: 20px; }
.suits h3 { margin-bottom: 8px; font-size: 1.25rem; }
.suits p { margin: 0; color: var(--muted); }
.note-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; padding: 28px 32px; background: var(--sage); border-radius: 20px; }
.note-cta p { margin: 0; flex: 1 1 360px; font-size: 1.1rem; }
@media (max-width: 760px) { .suits { grid-template-columns: 1fr; gap: 28px; } .note-cta { padding: 22px; } }

/* ---------- этапы ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); counter-reset: step; }
.step { position: relative; padding-right: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font: 600 1.15rem/1 var(--font-display);
}
.step::after { content: ""; position: absolute; top: 25px; left: 52px; right: 0; height: 2px; background: var(--sage-2); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.step__time { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px; background: var(--sage); color: var(--pine); font-size: .88rem; font-weight: 600; }
.steps-total { margin-top: 40px; font-size: 1.1rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { padding: 0 0 0 76px; min-height: 52px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step::after { top: 52px; bottom: -32px; left: 25px; right: auto; width: 2px; height: auto; }
}

/* ---------- страхи ---------- */
.fears { border-top: 2px solid var(--pine); }
.fear { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.3fr); gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.fear__q { margin: 0; font: 500 1.25rem/1.35 var(--font-display); color: var(--pine); }
.fear__a p { margin: 0; }
.fear__a p + p { margin-top: .6em; }
@media (max-width: 760px) { .fear { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; } .fear__q { font-size: 1.1rem; } }

/* ---------- стоимость ---------- */
.price { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 24px; }
.price__main { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.price__label { font-weight: 700; font-size: 1.15rem; margin: 0; }
.price__value { margin: 10px 0 26px; font: 500 clamp(2.2rem, 5vw, 3.3rem)/1 var(--font-display); color: var(--pine); }
.price__value small { font: 600 1.1rem/1 var(--font-body); color: var(--muted); margin-right: 6px; }
.price__sub { font-weight: 700; margin: 0 0 12px; }
.price__extra { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--sage-2); color: var(--muted); font-size: .98rem; }
.price__extra p:last-child { margin: 0; }
.price__side { display: grid; gap: 24px; align-content: start; }
.pay { background: var(--pine); color: #fff; border-radius: 28px; padding: 34px; }
.pay h3 { font-size: 1.15rem; }
.pay__value { display: block; margin: 10px 0 12px; font: 500 2rem/1.1 var(--font-display); color: var(--brand-light); }
.pay p { color: var(--on-dark); margin: 0; }
.pay small { display: block; margin-top: 16px; color: var(--on-dark); font-size: .84rem; line-height: 1.45; }
.promo { background: var(--sage); color: var(--pine); border-radius: 28px; padding: 32px 34px; }
.promo__value { color: var(--sun); display: block; font: 600 2.6rem/1 var(--font-display); margin-bottom: 8px; }
.promo p { margin: 0 0 18px; font-weight: 600; }
.promo .btn { background: var(--pine); color: #fff; }
.promo .btn:hover { background: var(--pine-2); }
.promo small { display: block; margin-top: 12px; font-size: .84rem; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } .price__main { padding: 28px 22px; } .pay, .promo { padding: 28px 22px; } }

/* ---------- врачи ---------- */
.doctors { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.doctor__photo { position: relative; aspect-ratio: 4 / 5; margin-bottom: 16px; border-radius: 20px; overflow: hidden; background: var(--sage); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor__photo.is-empty img { display: none; }
.doctor__photo.is-empty::after { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font: 500 2.6rem/1 var(--font-display); color: var(--pine); }
.doctor h3 { font-size: 1.08rem; line-height: 1.3; }
.doctor__role { margin: 6px 0 10px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.doctor__exp { display: inline-block; padding: 3px 10px; border-radius: 8px; background: var(--sage); font-size: .9rem; font-weight: 600; }
.doctor__text { margin: 12px 0 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .doctors { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .doctors { gap: 20px 14px; } .doctor h3 { font-size: .98rem; } .doctor__role, .doctor__text { font-size: .88rem; } }

/* ---------- оснащение ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-bottom: 56px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: var(--sage); }
.gallery figcaption { margin-top: 10px; font-size: .95rem; font-weight: 600; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; } }
.tech { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px 40px; }
.tech__item h3 { margin-bottom: 8px; }
.tech__item p { margin: 0; color: var(--muted); }
.implants { margin-top: 56px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px 48px; align-items: center; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.implants p { margin: 0; }
.implants__brands { display: flex; flex-wrap: wrap; gap: 10px; }
.implants__brands span { padding: 10px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--pine); }
@media (max-width: 900px) { .tech { grid-template-columns: 1fr 1fr; } .implants { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 560px) { .tech { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- кейсы ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.case { margin: 0; }
.case__img { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--sage); }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__img.is-empty img { display: none; }
.case__img.is-empty::after { content: "Фото до и после"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; }
.case figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.cases-note { margin-top: 24px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cases { grid-template-columns: 1fr; } }

/* ---------- отзывы ---------- */
.ratings { list-style: none; padding: 0; margin: 0; }
.ratings li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ratings li:first-child { border-top: 1px solid var(--line); }
.ratings span { font-weight: 600; color: var(--pine); }
.ratings small { display: block; color: var(--muted); font-size: .88rem; }
.ratings b { font: 500 1.8rem/1 var(--font-display); color: var(--pine); white-space: nowrap; }
.ratings--cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.ratings--cards li, .ratings--cards li:first-child { flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.ratings--cards b { font-size: 2.2rem; }
@media (max-width: 900px) { .ratings--cards { grid-template-columns: 1fr 1fr; gap: 14px; } .ratings--cards li { padding: 18px; } }

/* ---------- иногородним ---------- */
.on-dark { background: var(--pine); color: #fff; }
.on-dark .section-head p { color: var(--on-dark); }
.guests { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.guest { border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 28px; }
.guest__who { margin: 0 0 6px; color: var(--brand-light); font-weight: 700; }
.guest h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.3; margin-bottom: 10px; }
.guest p { margin: 0; color: var(--on-dark); }
.guests-note { margin-top: 28px; color: var(--on-dark); font-size: .95rem; }
@media (max-width: 860px) { .guests { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 2px solid var(--pine); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: var(--pine); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq__a { padding: 0 56px 24px 0; color: var(--muted); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- финальная заявка ---------- */
.final { background: var(--sage); }
.final__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.final__grid .list-check { margin-top: 24px; }
@media (max-width: 900px) { .final__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 40px; align-items: stretch; }
.contacts dl { margin: 0; display: grid; gap: 20px; align-content: start; }
.contacts dt { font-size: .9rem; color: var(--muted); }
.contacts dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 600; }
.contacts dd a { color: var(--pine); }
.contacts__info { display: grid; gap: 28px; align-content: start; }
.map { position: relative; min-height: 460px; border-radius: 20px; overflow: hidden; background: var(--sage); }
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); line-height: 0; }
.map__card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 14px);
  padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(21,24,30,.2);
  text-align: center; line-height: 1.3; white-space: nowrap;
}
.map__card b { display: block; font-size: 1rem; color: var(--pine); }
.map__card span { font-size: .88rem; color: var(--muted); }
.place { margin: 0; }
.place img { width: 100%; max-height: 300px; object-fit: cover; object-position: center top; border-radius: 20px; background: var(--sage); }
.place figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } .map { min-height: 340px; }
  .map::after { content: "© Яндекс"; position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.85); font-size: 11px; color: #333; } }

/* ---------- подвал ---------- */
.footer { background: var(--pine); color: var(--on-dark); padding: 56px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer .logo img { height: 52px; }
.footer .logo span { color: var(--on-dark); display: block; margin-top: 12px; font-size: .9rem; }
.footer .phone { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: #fff; }
.footer__legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16);
  display: grid; gap: 14px;
}
.footer__warning { color: #fff; font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); text-align: center; }
.footer__small { font-size: .82rem; line-height: 1.5; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- мобильная панель ---------- */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--line);
  }
  .mbar .btn { min-height: 52px; padding: 0 10px; font-size: .98rem; }
  body.has-mbar { padding-bottom: 76px; }
}

/* ---------- модальные окна ---------- */
dialog.modal { border: 0; border-radius: 24px; padding: 32px; width: calc(100% - 32px); max-width: 480px; color: var(--text); }
dialog.modal::backdrop { background: rgba(21, 24, 30, .6); }
.modal h2 { font-size: 1.5rem; margin: 0 40px 8px 0; }
.modal__lead { color: var(--muted); margin-bottom: 14px; }
.modal__perks { gap: 8px; margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--sage); font-size: .95rem; }
.modal .field + .field { margin-top: 12px; }
.modal .btn { margin-top: 16px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sage); color: var(--pine); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { dialog.modal { padding: 26px 20px; } }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; max-width: 440px;
  display: none; gap: 14px; align-items: center;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21, 24, 30, .18); font-size: .86rem; line-height: 1.45;
}
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; }
.cookie .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; flex: none; }
@media (max-width: 720px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 10px 12px; font-size: .8rem; }
  body.has-mbar .cookie { bottom: 84px; }
}

/* =========================================================
   Квиз (/new/)
   ========================================================= */
.q-hero { background: var(--pine); color: #fff; padding: 48px 0 64px; }
.q-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 48px; align-items: start; }
.q-intro h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 18ch; }
.q-intro__sub { color: var(--on-dark); font-size: 1.12rem; margin: 20px 0 28px; }
.q-intro .list-check { font-size: 1.05rem; }
.q-legal { margin-top: 28px; color: var(--on-dark); font-size: .95rem; font-weight: 600; }

.quiz { position: relative; display: flex; flex-direction: column; min-height: 480px; padding: 32px; border-radius: 28px; background: #fff; color: var(--text); }
.quiz__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .92rem; color: var(--muted); }
.quiz__bar { height: 8px; margin-bottom: 28px; border-radius: 99px; background: var(--sage); overflow: hidden; }
.quiz__bar i { display: block; width: 0; height: 100%; background: var(--brand); transition: width .3s ease; }
.quiz__step { display: none; flex: 1; flex-direction: column; }
.quiz__step.is-active { display: flex; }
.quiz__q { margin: 0 0 22px; font: 500 1.4rem/1.3 var(--font-display); }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  position: relative; display: flex; align-items: center; min-height: 72px; height: 100%;
  padding: 14px 16px 14px 52px; border: 2px solid var(--line); border-radius: 14px;
  font-weight: 500; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 2px solid var(--sage-2); border-radius: 50%; background: #fff; }
.opt:hover span { border-color: var(--sage-2); }
.opt input:checked + span { border-color: var(--sun); background: var(--sage); }
.opt input:checked + span::before { border: 7px solid var(--sun); }
.opt input:focus-visible + span { outline: 3px solid var(--pine); outline-offset: 2px; }
.opts-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.opts-inline legend { width: 100%; margin-bottom: 8px; font-size: .9rem; font-weight: 600; }
.opts-inline .opt span { min-height: 48px; padding: 8px 16px 8px 44px; }
.opts-inline .opt span::before { left: 14px; width: 20px; height: 20px; margin-top: -10px; }
.opts-inline .opt input:checked + span::before { border-width: 6px; }
.quiz__hint { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--sage); color: var(--pine); font-size: .96rem; }
.quiz__hint[hidden] { display: none; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; }
.quiz__nav .btn { min-width: 160px; }
.link-btn { padding: 10px 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn[hidden] { visibility: hidden; display: inline; }
.quiz__gifts { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; background: var(--sage); }
.quiz__gifts .list-check { gap: 8px; font-size: .98rem; }
.quiz__form { display: grid; gap: 12px; }
.quiz__form .lead-row { gap: 12px; }
.quiz__done { text-align: left; }
.quiz__done h2 { font-size: 1.6rem; margin-bottom: 12px; }
@media (max-width: 960px) {
  .q-hero { padding: 28px 0 40px; }
  .q-grid { grid-template-columns: 1fr; gap: 24px; }
  .q-intro .list-check, .q-intro .q-legal { display: none; }
  .q-intro__sub { margin-bottom: 0; }
  .quiz { min-height: 0; padding: 22px 18px; border-radius: 22px; }
  .quiz__q { font-size: 1.2rem; }
}
@media (max-width: 560px) { .quiz__opts { grid-template-columns: 1fr; } .opt span { min-height: 60px; } .quiz__nav .btn { min-width: 0; flex: 1; } }

.strip { padding: 64px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.mini-doctor { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; align-items: center; }
.mini-doctor .doctor__photo { margin: 0; aspect-ratio: 1; border-radius: 50%; }
.mini-doctor .doctor__photo.is-empty::after { font-size: 1.8rem; }
@media (max-width: 760px) { .strip__grid { grid-template-columns: 1fr; } .mini-doctor { grid-template-columns: 88px minmax(0,1fr); } }
.quiz__fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz__fs legend { padding: 0; float: left; width: 100%; }
.quiz__fs legend + * { clear: both; }
.quiz__step:focus { outline: none; }

.nowrap { white-space: nowrap; }
