/* «Дорофеева Дент» — облик сайта поверх базовых стилей движка.
   Палитра: navy #0E2A47 (текст, подвал), лазурь логотипа #0FA0D0 (линии, иконки), тёмная лазурь #0A78A8 (ссылки, кнопки с белым текстом),
   персик #FFB677 с тёмным текстом — главная кнопка записи. Мотив — «орбита» вокруг зуба из логотипа: кольца и дуги. */

:root { --hdr-h: 84px; --top-h: 40px; }
body { background: #fff; color: var(--ink); }
.tstars { color: #FFB400; letter-spacing: 1px; white-space: nowrap; }
.stars { background: linear-gradient(90deg, #FFB400 calc(var(--v) / 5 * 100%), #D6E4EE 0); }
/* главная кнопка записи — персиковая с тёмным текстом (контраст 8,5:1) */
.btn.btn-gold, .cta-band .btn-gold { background: var(--grad-cta); background-size: 200% 100%; color: var(--cta-ink); box-shadow: var(--shadow-gold); }
.btn.btn-gold:hover { background: var(--grad-cta); background-position: 100% 0; color: var(--cta-ink); box-shadow: 0 22px 46px -18px rgba(255, 140, 70, .8); }
.btn.btn-gold::after { display: block; }
.kicker { color: var(--accent); font-weight: 700; }
.kicker::before { background: var(--azure); width: 28px; height: 2px; border-radius: 2px; }
h1, h2, h3, .h1, .h2 { font-family: var(--f-display); letter-spacing: -.028em; color: var(--ink); }
h1, .h1 { font-weight: 800; }
h2, .h2 { font-weight: 800; }
.acc { font-family: var(--f-accent); font-style: italic; font-weight: 600; font-size: 1.06em; letter-spacing: -.01em; background: linear-gradient(110deg, #0B8FC4 0%, #0A6E9C 50%, #0E4F7A 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink-3); }
.sec { padding: clamp(60px, 7vw, 104px) 0; }
.sec-head h2 { margin-bottom: .3em; }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-gold .ico { color: var(--cta-ink); }
.link-arrow { border-bottom-color: var(--azure); }
.link-arrow .ico { color: var(--accent); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .84); font-size: 13.5px; line-height: 1.2; position: relative; z-index: 61; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: var(--top-h); max-width: calc(1420px + var(--gut) * 2); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; white-space: nowrap; }
.topbar-item .ico { width: 16px; height: 16px; color: var(--azure-l); }
a.topbar-item:hover, button.topbar-item:hover { color: #fff; }
.topbar-sub { color: rgba(255, 255, 255, .6); }
.topbar-open .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.topbar-open.is-closed .dot { background: #FFB677; box-shadow: 0 0 0 4px rgba(255, 182, 119, .18); }
.topbar-rate b { color: #fff; }
.topbar-rate .tstars { font-size: 12px; }
.topbar-sp { flex: 1; }
.topbar-a11y { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer; }
.topbar-a11y:hover { background: rgba(255, 255, 255, .16); }
.topbar-msg { padding: 6px 12px; border-radius: 999px; background: rgba(15, 160, 208, .22); color: #fff; }
.topbar-msg:hover { background: var(--azure); }
@media (max-width: 1240px) { .topbar-rate span:last-child, .topbar-sub { display: none; } }
@media (max-width: 900px) { .topbar-rate, .topbar-a11y span { display: none; } .topbar-in { gap: 14px; } }
@media (max-width: 600px) { .topbar-addr span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } .topbar-msg span { display: none; } .topbar { font-size: 12.5px; } }

/* ---------- Шапка ---------- */
.hdr, .is-home .hdr:not(.is-stuck), .hdr.is-stuck { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.hdr { border-bottom: 1px solid var(--line); }
.hdr.is-stuck { box-shadow: 0 14px 40px -30px rgba(14, 42, 71, .45); }
.hdr-in { max-width: calc(1420px + var(--gut) * 2); }
.logo img, .hdr.is-stuck .logo img { width: clamp(176px, 15vw, 232px); height: auto; }
.nav-link, .nav-link:not(.nav-mega) { font-weight: 600; color: var(--ink-2); }
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
.nav-link::after { background: var(--azure); height: 2px; border-radius: 2px; }
.nav-mega, .nav-mega:hover, .nav-mega[aria-expanded="true"] { gap: 8px; margin-right: 6px; padding: 10px 16px; background: var(--gold-2); color: var(--accent-2); border-radius: 999px; }
.nav-mega .ico, .nav-mega:hover .ico, .nav-mega[aria-expanded="true"] .ico { color: var(--accent); }
.nav-mega:hover, .nav-mega[aria-expanded="true"] { background: var(--accent); color: #fff; }
.nav-mega:hover .ico, .nav-mega[aria-expanded="true"] .ico { color: #fff; }
.hdr-search { width: 44px; height: 44px; border-color: var(--line); }
.hdr-search:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hdr-tel { font-size: 17px; font-weight: 800; color: var(--ink); }
.hdr-callback { color: var(--accent); border-bottom-color: var(--azure); font-weight: 600; }
.hdr-cta { padding: 0 20px; gap: 8px; }
.hdr-cta .ico { width: 18px; height: 18px; }
.hdr-burger { background: var(--accent); color: #fff; }
.hdr-mtel { background: var(--gold-2); color: var(--accent); }
@media (max-width: 1360px) { .hdr-callback { display: none; } }
@media (max-width: 1240px) { .nav, .hdr-search { display: none; } .hdr-burger { display: grid; } .hdr-phone { margin-left: auto; } }
@media (max-width: 760px) { :root { --hdr-h: 66px; } .hdr-phone, .hdr-cta { display: none; } .hdr-mtel { display: grid !important; margin-left: auto; } .logo img { width: 168px; } }

/* ---------- Мега-меню: акцент бренда, группы пунктов ---------- */
.mega-grp { margin: 18px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mega-pane-head + .mega-grp { margin-top: 4px; }
.mega-grp + .mega-links { margin-top: 0; }
.mega-cat.is-on, .mega-cat:hover { color: var(--accent-2); }
.mega-cat.is-on .mc-ico { background: var(--accent); color: #fff; }
.mega-links a:hover { color: var(--accent); }
.ml-p { color: var(--accent); font-weight: 700; }

/* ---------- Первый экран ---------- */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
  background: radial-gradient(900px 520px at 85% 20%, rgba(15, 160, 208, .14), transparent 70%), radial-gradient(700px 500px at 0% 100%, rgba(112, 208, 224, .16), transparent 70%), linear-gradient(180deg, #F4F9FC 0%, #fff 100%); }
.hm-hero-orbit { position: absolute; z-index: -1; right: -12vw; top: 50%; width: min(980px, 78vw); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.hm-hero-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(15, 160, 208, .16); }
.hm-hero-orbit span:nth-child(2) { inset: 12%; border-color: rgba(15, 160, 208, .12); border-style: dashed; animation: orbit 90s linear infinite; }
.hm-hero-orbit span:nth-child(3) { inset: 26%; border: 0; background: conic-gradient(from 210deg, transparent 0 58%, rgba(15, 160, 208, .35) 72%, transparent 80%); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); animation: orbit 30s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: calc(1420px + var(--gut) * 2); }
.hm-hero-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -20px rgba(14, 42, 71, .5), inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; color: var(--accent-2); }
.hm-hero-chip .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold-2); color: var(--accent); }
.hm-hero h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.08; margin-bottom: .45em; }
.hm-hero h1 .acc { font-size: 1.04em; }
.hm-hero .lead { font-size: clamp(17px, 1.3vw, 19.5px); max-width: 60ch; margin-bottom: 30px; }
.hm-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hm-hero-btns .btn-line { background: #fff; }
.hm-hero-rates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-rates a { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 18px 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.hm-hero-rates a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 36px -24px rgba(14, 42, 71, .45); color: inherit; }
.hm-hero-rates b { grid-row: span 2; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.hm-hero-rates .tstars { font-size: 12px; line-height: 1; }
.hm-hero-rates span:last-child { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.hm-hero-media { position: relative; }
.hm-hero-arch { position: relative; border-radius: 48% 48% 36px 36px / 34% 34% 36px 36px; overflow: hidden; aspect-ratio: 5 / 5.4; box-shadow: 0 50px 90px -50px rgba(14, 42, 71, .55); }
.hm-hero-arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .55); pointer-events: none; }
.hm-hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%; }
.hm-hero-media::before { content: ''; position: absolute; inset: -18px; border-radius: 50% 50% 46px 46px / 36% 36% 46px 46px; border: 1.5px solid rgba(15, 160, 208, .35); z-index: -1; }
.hm-hero-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 24px 50px -26px rgba(14, 42, 71, .55); text-decoration: none; color: var(--ink); line-height: 1.25; }
.hm-hero-card b { display: block; font-size: 15px; }
.hm-hero-card small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hm-hero-chief { left: -36px; bottom: 34px; max-width: 330px; transition: transform .3s var(--ease); }
.hm-hero-chief:hover { transform: translateY(-3px); color: var(--ink); }
.hm-hero-ava { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--azure); }
.hm-hero-ava img { width: 100%; height: 100%; object-fit: cover; }
.hm-hero-ct { right: -14px; top: 40px; }
.hm-hero-ct .ico { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--gold-2); color: var(--accent); }
/* Лента преимуществ: одна панель, пункты через тонкие разделители, иконка в кольце, заголовок + подпись */
.hm-hero-bar { max-width: calc(1420px + var(--gut) * 2); }
.hm-hero-points { position: relative; list-style: none; margin: clamp(36px, 4.2vw, 60px) 0 0; padding: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 30px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 34px 70px -46px rgba(14, 42, 71, .55), 0 2px 6px -4px rgba(14, 42, 71, .12), inset 0 0 0 1px var(--line); }
.hm-hero-points::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 160, 208, .55) 20%, rgba(255, 182, 119, .7) 50%, rgba(15, 160, 208, .55) 80%, transparent); }
.hm-hero-points li { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 22px; transition: background .35s var(--ease); }
.hm-hero-points li + li::before { content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2, #C9DCEA), transparent); }
.hm-hero-points li:hover { background: #F3F9FC; }
.hm-hp-ico { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0, #E6F6FC 60%, #D3EEF8 100%); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(15, 160, 208, .28), 0 12px 22px -14px rgba(10, 120, 168, .75); transition: transform .45s var(--ease); }
.hm-hp-ico::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed rgba(15, 160, 208, .3); }
.hm-hp-ico .ico { width: 24px; height: 24px; }
.hm-hero-points li:hover .hm-hp-ico { transform: translateY(-2px) rotate(-6deg); }
.hm-hp-txt { display: grid; gap: 3px; min-width: 0; }
.hm-hp-txt b { font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hm-hp-txt small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1260px) { .hm-hero-points li { padding: 16px 16px; gap: 12px; } .hm-hp-ico { width: 46px; height: 46px; } .hm-hp-ico .ico { width: 22px; height: 22px; } .hm-hp-txt b { font-size: 15px; } }
@media (max-width: 1100px) {
  .hm-hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-hero-points li + li::before { display: none; }
  .hm-hero-points li:nth-child(even)::before { display: block; }
  .hm-hero-points li:nth-child(n+3)::after { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: var(--line); }
  .hm-hero-chief { left: 8px; } .hm-hero-ct { right: 8px; }
}
@media (max-width: 900px) {
  .hm-hero-in { grid-template-columns: minmax(0, 1fr); }
  .hm-hero-media { max-width: 520px; margin: 8px auto 0; width: 100%; }
  .hm-hero-arch { aspect-ratio: 5 / 4; border-radius: 40% 40% 28px 28px / 30% 30% 28px 28px; }
  .hm-hero-media::before { inset: -10px; }
  .hm-hero-orbit { right: -40vw; top: 70%; width: 120vw; }
}
@media (max-width: 600px) {
  .hm-hero-points { grid-template-columns: minmax(0, 1fr); padding: 6px; border-radius: 24px; }
  .hm-hero-points li { padding: 14px 14px; }
  .hm-hero-points li:nth-child(even)::before { display: none; }
  .hm-hero-points li + li::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--line); }
  .hm-hero-btns .btn { width: 100%; }
  .hm-hero-chief { position: relative; left: 0; bottom: 0; margin: -36px 12px 0; max-width: none; }
  .hm-hero-ct { top: 14px; right: 14px; padding: 8px 12px 8px 8px; }
  .hm-hero-ct .ico { width: 34px; height: 34px; padding: 8px; }
  .hm-hero-rates a { padding: 10px 14px 10px 12px; }
  .hm-hero-rates b { font-size: 24px; }
}

/* ---------- Плитки направлений ---------- */
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.hm-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 230px; padding: 20px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.hm-tile-big { grid-column: span 2; min-height: 300px; }
.hm-tile-ph { position: absolute; inset: 0; z-index: -2; }
.hm-tile-ph img, .hm-tile-ph picture { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.hm-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 42, 71, .05) 25%, rgba(14, 42, 71, .82) 100%); transition: background .4s; }
.hm-tile:hover { color: #fff; }
.hm-tile:hover .hm-tile-ph img { transform: scale(1.06); }
.hm-tile:hover::before { background: linear-gradient(180deg, rgba(10, 120, 168, .25) 0%, rgba(14, 42, 71, .9) 100%); }
.hm-tile-body { display: grid; gap: 6px; }
.hm-tile-ico { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--accent); }
.hm-tile-ico .ico { width: 24px; height: 24px; }
.hm-tile-t { font-size: clamp(18px, 1.5vw, 22px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.hm-tile-big .hm-tile-t { font-size: clamp(22px, 2vw, 28px); }
.hm-tile-meta { font-size: 14px; color: rgba(255, 255, 255, .85); }
.hm-tile-go { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); transform: rotate(-45deg) scale(.9); opacity: .0; transition: all .35s var(--ease); }
.hm-tile:hover .hm-tile-go, .hm-tile:focus-visible .hm-tile-go { opacity: 1; transform: rotate(-45deg) scale(1); }
@media (max-width: 1100px) { .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-tiles { gap: 10px; } .hm-tile, .hm-tile-big { grid-column: span 1; min-height: 180px; padding: 14px; border-radius: 18px; } .hm-tile-big:first-child { grid-column: span 2; } .hm-tile-ico { width: 36px; height: 36px; left: 12px; top: 12px; } .hm-tile-t { font-size: 16px; } .hm-tile-meta { font-size: 12.5px; } .hm-tile-go { display: none; } }

/* ---------- Главный врач ---------- */
.hm-chief { background: linear-gradient(180deg, #F4F9FC, #fff); }
.hm-chief-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hm-chief-media { position: relative; }
.hm-chief-photo { position: relative; border-radius: 50% 50% 32px 32px / 40% 40% 32px 32px; overflow: hidden; aspect-ratio: 4 / 4.6; background: radial-gradient(circle at 50% 35%, #E2F3FA, #C9E5F2); box-shadow: 0 50px 90px -50px rgba(14, 42, 71, .5); }
.hm-chief-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hm-chief-media::after { content: ''; position: absolute; inset: -16px; z-index: -1; border-radius: 50% 50% 44px 44px / 40% 40% 44px 44px; border: 1.5px dashed rgba(15, 160, 208, .4); }
.hm-chief-badge { position: absolute; right: -18px; bottom: 36px; display: grid; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--grad-cta); color: var(--cta-ink); box-shadow: 0 24px 40px -22px rgba(255, 140, 70, .7); max-width: 210px; line-height: 1.25; }
.hm-chief-badge b { font-size: 28px; letter-spacing: -.02em; text-transform: none; }
.hm-chief-badge span { font-size: 13px; font-weight: 600; }
.hm-chief-facts { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 12px; }
.hm-chief-facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hm-chief-facts b { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.hm-chief-facts span { color: var(--ink-3); }
.hm-chief-quote { position: relative; margin: 0 0 26px; padding: 22px 26px 22px 64px; border-radius: 22px; background: var(--navy); color: #fff; font-size: 17.5px; line-height: 1.55; }
.hm-chief-quote .ico { position: absolute; left: 22px; top: 22px; width: 28px; height: 28px; color: var(--azure-l); }
.hm-chief-quote p { margin: 0; }
.hm-chief .row { gap: 18px; margin-bottom: 12px; }
@media (max-width: 900px) { .hm-chief-in { grid-template-columns: minmax(0, 1fr); } .hm-chief-media { max-width: 420px; margin: 0 auto; width: 100%; } .hm-chief-badge { right: 0; } .hm-chief-facts li { grid-template-columns: 96px minmax(0, 1fr); } }

/* ---------- Подбор лечения ---------- */
.hm-prob .prob-tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.hm-prob .prob-tab[aria-selected="true"] .ico { color: #fff; }

/* ---------- Рейтинги ---------- */
.hm-rates { background: var(--navy); color: rgba(255, 255, 255, .84); position: relative; overflow: hidden; }
.hm-rates::before { content: ''; position: absolute; width: 900px; aspect-ratio: 1; left: 50%; top: -480px; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid rgba(112, 208, 224, .18); box-shadow: 0 0 0 90px rgba(112, 208, 224, .04), 0 0 0 180px rgba(112, 208, 224, .03); pointer-events: none; }
.hm-rates h2, .hm-rates .h2 { color: #fff; }
.hm-rates .acc { background: linear-gradient(110deg, #7FDCEF, #2FB6E2); -webkit-background-clip: text; background-clip: text; }
.hm-rates .lead { color: rgba(255, 255, 255, .72); }
.hm-rates .kicker { color: var(--azure-l); }
.hm-rates .kicker::before, .hm-rates .kicker::after { background: var(--azure-l); }
.hm-rates-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-rate { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 30px 20px 24px; border-radius: 26px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: transform .35s var(--ease), background .3s; }
.hm-rate:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); color: #fff; }
.hm-rate-src { font-size: 15px; font-weight: 700; color: var(--azure-l); }
.hm-rate-v { font-size: clamp(56px, 6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.hm-rate .tstars { font-size: 20px; letter-spacing: 3px; }
.hm-rate-n { font-size: 15px; color: rgba(255, 255, 255, .72); }
.hm-rate-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--cta); }
.hm-rate-go .ico { width: 15px; height: 15px; }
.hm-rates-facts { position: relative; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-rates-facts li { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .04); }
.hm-rates-facts b { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.03em; flex: none; }
.hm-rates-facts span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
@media (max-width: 900px) { .hm-rates-grid, .hm-rates-facts { grid-template-columns: minmax(0, 1fr); } .hm-rate { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 18px; padding: 20px; } .hm-rate-v { grid-row: span 4; font-size: 56px; } }

/* ---------- Цены на главной ---------- */
.hm-price-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hm-price-list { list-style: none; margin: 0; padding: 10px; border-radius: 26px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.hm-price-list a { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; border-radius: 16px; text-decoration: none; transition: background .2s; }
.hm-price-list a::after { content: ''; order: 1; flex: 1; border-bottom: 1.5px dotted var(--line-2); margin: 0 4px; }
.hm-price-list span { order: 0; font-weight: 600; }
.hm-price-list b { order: 2; white-space: nowrap; color: var(--accent-2); font-size: 18px; }
.hm-price-list a:hover { background: #fff; color: inherit; }
@media (max-width: 900px) { .hm-price-in { grid-template-columns: minmax(0, 1fr); } .hm-price-list a { padding: 12px; } .hm-price-list b { font-size: 16px; } }

/* ---------- Подвал ---------- */
.ftr { position: relative; overflow: hidden; background: var(--navy-2); color: rgba(255, 255, 255, .78); padding: clamp(56px, 6vw, 88px) 0 28px; font-size: 15px; line-height: 1.55; }
.ftr-glow { position: absolute; width: 1100px; aspect-ratio: 1; right: -420px; top: -520px; border-radius: 50%; border: 1.5px solid rgba(112, 208, 224, .14); box-shadow: 0 0 0 110px rgba(15, 160, 208, .035), 0 0 0 220px rgba(15, 160, 208, .025); pointer-events: none; }
.ftr a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr .wrap { position: relative; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr-logo img { width: 250px; height: auto; }
.ftr-about { max-width: 560px; margin: 20px 0 24px; color: rgba(255, 255, 255, .72); }
.ftr-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ftr .btn-ghost-w { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.ftr .btn-ghost-w:hover { background: #fff; color: var(--ink); }
.ftr .btn-ghost-w .ico { color: currentColor; }
.ftr-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ftr-rate { display: grid; justify-items: start; text-align: left; gap: 4px; padding: 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .3s, transform .3s var(--ease); }
.ftr-rate:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.ftr-rate-src { font-size: 13px; color: var(--azure-l); font-weight: 600; }
.ftr-rate b { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.05; }
.ftr-rate .tstars { font-size: 13px; }
.ftr-rate-n { font-size: 13px; color: rgba(255, 255, 255, .7); }
.ftr-rate .tstars { color: #FFB400; font-size: 13px; }
.ftr-rate-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.ftr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: clamp(24px, 3vw, 44px); padding: 40px 0; }
/* белые заголовки — только внутри тёмного подвала (класс раньше попадал на светлые страницы и пропадал) */
.ftr .ftr-h { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ftr .ftr-h a { color: #fff; font: inherit; letter-spacing: inherit; }
.ftr-h2 { margin-top: 26px; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ftr-col li { font-size: 14.5px; }
.ftr-p { color: var(--azure-l); font-size: 12.5px; white-space: nowrap; }
.ftr-tel { display: inline-block; font-size: 24px; font-weight: 800; color: #fff !important; letter-spacing: -.02em; margin-bottom: 12px; }
.ftr-soc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ftr-soc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(15, 160, 208, .2); font-size: 14px; font-weight: 600; }
.ftr-soc a:hover { background: var(--azure); }
.ftr-soc .ico { width: 18px; height: 18px; }
.ftr-line { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.ftr-line .ico { flex: none; width: 20px; height: 20px; color: var(--azure-l); margin-top: 2px; }
.ftr-line b { display: block; color: #fff; font-weight: 600; }
.ftr-open { display: block; margin-top: 4px; color: #3DDC97; font-weight: 600; }
.ftr-route { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cta) !important; }
.ftr-route .ico { width: 18px; height: 18px; }
.ftr-band { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ftr-chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 13.5px; }
.ftr-orgs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ftr-orgs li { font-size: 13.5px; line-height: 1.45; }
.ftr-orgs li a { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
.ftr-orgs li span { color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.ftr-warn { margin: 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: clamp(15px, 2.2vw, 30px); font-weight: 800; letter-spacing: .02em; line-height: 1.25; color: rgba(255, 255, 255, .9); }
.ftr-legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; padding: 26px 0; font-size: 13px; color: rgba(255, 255, 255, .58); }
.ftr-legal p { margin: 0 0 8px; }
.ftr-legal b { color: rgba(255, 255, 255, .8); font-weight: 600; }
.ftr-legal a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }
.ftr-docs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ftr-docs a, .ftr-docs .linklike { color: rgba(255, 255, 255, .75); font-size: 13.5px; text-decoration-color: rgba(255, 255, 255, .3); }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr-copy { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
@media (max-width: 1100px) { .ftr-top, .ftr-band { grid-template-columns: minmax(0, 1fr); } .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ftr-grid, .ftr-legal, .ftr-orgs ul { grid-template-columns: minmax(0, 1fr); } .ftr-rates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ftr-rate { padding: 12px 10px; } .ftr-rate b { font-size: 26px; } .ftr-bottom { justify-content: center; text-align: center; } }

/* ---------- Ссылка разработчика (Digital-агентство «Айс Маркетинг»): переливающаяся подпись, бегущий световой контур, блик по логотипу ---------- */
.dev { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(112, 208, 224, .2); flex: none; isolation: isolate; text-decoration: none; transition: border-color .4s, background .4s, transform .4s var(--ease); }
.dev-l { font-size: 13px; font-weight: 600; background: linear-gradient(90deg, #9fbfcc 0%, #82f3f3 25%, #ffffff 50%, #34e1f2 75%, #9fbfcc 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: devText 4s linear infinite; white-space: nowrap; }
/* Блик идёт только по буквам логотипа (маска по самому SVG), без обрезки контейнером: раньше при наведении
   увеличенный логотип и его свечение срезались по краям блока — появлялся тёмный прямоугольник и обрезанная «g» */
.dev-logo { position: relative; display: block; overflow: visible; }
.dev-logo img { display: block; width: 170px; height: auto; transition: transform .5s var(--ease), filter .5s; filter: drop-shadow(0 0 0 rgba(52, 225, 242, 0)); }
.dev-logo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; -webkit-mask: url(/assets/img/ice-marketing.svg) center / 100% 100% no-repeat; mask: url(/assets/img/ice-marketing.svg) center / 100% 100% no-repeat;
  transition: background-position .9s var(--ease), transform .5s var(--ease); }
.dev:hover .dev-logo::after { background-position: 0 0; }
.dev-glow { position: absolute; inset: -1px; border-radius: inherit; z-index: -1; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(52, 225, 242, .65) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; animation: devSpin 5s linear infinite; }
.dev:hover { border-color: rgba(130, 243, 243, .5); background: rgba(52, 225, 242, .08); transform: translateY(-2px); }
.dev:hover .dev-logo img { transform: scale(1.03); filter: drop-shadow(0 0 10px rgba(52, 225, 242, .45)); }
.dev:hover .dev-logo::after { transform: scale(1.03); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes devSpin { to { --a: 360deg; } }
@keyframes devText { to { background-position: -200% center; } }
@media (prefers-reduced-motion: reduce) { .dev-l, .dev-glow, .hm-hero-orbit span { animation: none !important; } .dev-logo::after { display: none; } }

/* ---------- Телефон: компактная верхняя полоса, персиковая кнопка записи в нижней панели ---------- */
@media (max-width: 760px) {
  .topbar { display: block; }
  .topbar-in { gap: 12px; min-height: 34px; }
  .topbar-addr .topbar-sub, .topbar-rate, .topbar-a11y span { display: none; }
  .topbar-open { min-width: 0; }
  .topbar-open span { overflow: hidden; text-overflow: ellipsis; }
  .topbar-a11y, .topbar-msg { padding: 5px 9px; }
  .hm-hero h1 { font-size: 32px; }
}
@media (max-width: 420px) { .topbar-addr { display: none; } }
.mbar .mbar-main { background: var(--grad-cta); color: var(--cta-ink); box-shadow: 0 14px 28px -16px rgba(255, 140, 70, .7); }
.mbar .mbar-main .ico { color: var(--cta-ink); }

/* ---------- «Клиника в фактах» ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); align-items: start; }
.facts-grid > .req-box:first-child { grid-row: span 2; }
.facts-list { margin: 14px 0 12px; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; }
.facts-prices { width: 100%; border-collapse: collapse; margin: 14px 0 12px; font-size: 15px; }
.facts-prices td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts-prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } .facts-grid > .req-box:first-child { grid-row: auto; } }

/* ---------- Всплывающее окно ---------- */
.modal-popup .modal-box { max-width: 520px; padding: 0; overflow: hidden; }
.modal-popup .popup-img img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.modal-popup .popup-body { padding: 22px 26px 24px; display: grid; gap: 12px; }
.modal-popup .popup-text { color: var(--muted, #44546A); }
.modal-popup .popup-text p { margin: 0 0 8px; }
.modal-popup .modal-x { z-index: 2; background: rgba(255,255,255,.9); }
.draft-bar { position: sticky; top: 0; z-index: 200; background: #FFB677; color: #0E2A47; font: 600 14px/1.4 Golos, Arial, sans-serif; padding: 8px 16px; text-align: center; }
.seo-reviewed { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 12px 0; color: var(--ink, #0E2A47); }
.seo-reviewed .ico { width: 18px; height: 18px; flex: none; color: #0A78A8; margin-top: 2px; }

/* ===== Калькулятор имплантации со схемой зубов (блок teeth) ===== */
.tc-sec { background: linear-gradient(180deg, #fff 0, var(--bg) 100%); }
.tc-head { max-width: 860px; }
.tc { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(24px, 3vw, 44px); padding: clamp(18px, 2.6vw, 36px);
  border-radius: 34px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.tc-step { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 16px; padding: 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.tc-step > span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; }
.tc-step small { font-size: 13px; font-weight: 500; color: var(--muted); }
/* Левая колонка: схема */
.tc-map { display: flex; flex-direction: column; min-width: 0; padding: clamp(16px, 2vw, 26px); border-radius: 26px; background: radial-gradient(120% 90% at 50% 40%, #fff 0, #F1F8FC 70%, #E9F3F9 100%); box-shadow: inset 0 0 0 1px var(--line); }
.tc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.tc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; color: var(--ink); font: 600 14px/1.2 var(--f-text); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.tc-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.tc-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tc-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tc-reset { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 6px 10px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 13px/1.2 var(--f-text); cursor: pointer; transition: color .2s, background .2s; }
.tc-reset:hover { color: var(--accent); background: #fff; }
.tc-reset:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tc-reset .ico { width: 13px; height: 13px; }
.tc-jaw-wrap { display: grid; place-items: center; padding: 6px 0 0; }
/* схема «прилипает» при прокрутке, пока справа виден расчёт */
@media (min-width: 1021px) { .tc-map { position: sticky; top: calc(var(--hdr-h) + 16px); align-self: start; } }
.tc-jaw { display: block; width: 100%; max-width: 600px; margin: 0 auto; user-select: none; -webkit-tap-highlight-color: transparent; overflow: visible; }
.tc-gum { fill: none; stroke: #E2EEF6; stroke-width: 50; stroke-linecap: round; }
.tc-cap { font: 600 11px var(--f-text); fill: #6B849B; letter-spacing: .06em; text-transform: uppercase; }
.tc-mid { stroke: var(--line-2); stroke-dasharray: 3 6; stroke-linecap: round; }
.tooth { cursor: pointer; outline: none; }
.t-body { fill: #fff; stroke: #B7CDDD; stroke-width: 1.6; transition: fill .25s, stroke .25s; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 2px 2px rgba(14, 42, 71, .12)); }
.t-num { font: 600 9.5px var(--f-text); fill: #5E7891; pointer-events: none; transition: opacity .2s; }
.t-imp { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .35s var(--ease-out); fill: #fff; pointer-events: none; }
.t-thr { fill: none; stroke: var(--accent-2); stroke-width: 1.1; }
.tooth:hover .t-body { stroke: var(--gold); stroke-width: 2.2; fill: #F2FAFE; }
.tooth:focus-visible .t-body { stroke: var(--ink); stroke-width: 3; }
.tooth[aria-checked="true"] .t-body { fill: var(--accent); stroke: var(--accent-2); animation: tc-pop .35s var(--ease-out); }
.tooth[aria-checked="true"]:hover .t-body { fill: var(--accent-2); }
.tooth[aria-checked="true"] .t-num { opacity: 0; }
.tooth[aria-checked="true"] .t-imp { opacity: 1; transform: none; }
@keyframes tc-pop { 50% { transform: scale(1.16); } }
.tc-legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.tc-keys { display: inline-flex; align-items: center; gap: 6px; }
.tc-keys i { display: inline-block; width: 14px; height: 14px; border-radius: 5px; }
.tc-keys .k-off { margin-left: 8px; }
.tc-keys .k-on { background: var(--accent); }
.tc-keys .k-off { background: #fff; box-shadow: inset 0 0 0 1.5px #B7CDDD; }
.tc-hint { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 12px 0 0; padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-3); text-align: center; }
.tc-hint .ico { flex: none; width: 20px; height: 20px; color: var(--accent); }
/* Правая колонка: имплант, коронка, итог */
.tc-side-col { display: flex; flex-direction: column; min-width: 0; }
.tc-g { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.tc-sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-sys-opt { position: relative; cursor: pointer; }
.tc-sys-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tc-sys-opt input, .tc-crown input, .tc-seg input, .tc-months input { position: absolute; opacity: 0; pointer-events: none; }
.tc-sys-in { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.tc-sys-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--gold-2); color: var(--accent); transition: background .2s, color .2s; }
.tc-sys-ico .ico { width: 20px; height: 20px; }
.tc-sys-t { display: grid; min-width: 0; line-height: 1.2; }
.tc-sys-t b { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sys-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sys-p { grid-column: 2; margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.tc-sys-opt:hover .tc-sys-in { border-color: var(--line-2); }
.tc-sys-opt input:checked + .tc-sys-in { border-color: var(--accent); background: #F1F9FD; box-shadow: inset 0 0 0 1px var(--accent); }
.tc-sys-opt input:checked + .tc-sys-in .tc-sys-ico { background: var(--accent); color: #fff; }
.tc-sys-opt input:focus-visible + .tc-sys-in, .tc-crown input:focus-visible + span, .tc-seg input:focus-visible + span, .tc-months input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tc-crowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-crown { position: relative; cursor: pointer; }
.tc-crown span { display: grid; gap: 2px; height: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: center; transition: border-color .2s, background .2s, color .2s; }
.tc-crown b { font-size: 14px; color: var(--ink); }
.tc-crown small { font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.tc-crown:hover span { border-color: var(--line-2); }
.tc-crown input:checked + span { border-color: var(--accent); background: var(--accent); }
.tc-crown input:checked + span b, .tc-crown input:checked + span small { color: #fff; }
.tc-crown.is-off { cursor: not-allowed; }
.tc-crown.is-off span { background: var(--paper); border-style: dashed; }
.tc-crown.is-off b, .tc-crown.is-off small { color: #6F879D; font-weight: 500; }
.tc-ext { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-crown-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
/* Итог — тёмная карточка */
.tc-res { position: relative; overflow: hidden; margin-top: auto; padding: 22px 22px 20px; border-radius: 24px; background: var(--grad-dark); color: #fff; box-shadow: 0 30px 60px -36px rgba(14, 42, 71, .8); }
.tc-res::before { content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(112, 208, 224, .22); box-shadow: 0 0 0 26px rgba(112, 208, 224, .05); pointer-events: none; }
.tc-empty { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.tc-empty p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.tc-empty b { color: #fff; }
.tc-empty-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: var(--azure-l); }
.tc-empty-ico .ico { width: 26px; height: 26px; }
.tc-full { position: relative; margin: 0 0 16px; }
.tc-teeth { margin: 0 0 12px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.tc-mode { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tc-mode-l { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.tc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.tc-seg label { position: relative; cursor: pointer; }
.tc-seg span { display: block; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-align: center; color: rgba(255, 255, 255, .8); transition: background .2s, color .2s; }
.tc-seg input:checked + span { background: #fff; color: var(--ink); }
.tc-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.tc-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.tc-lines b { flex: none; color: #fff; font-weight: 700; white-space: nowrap; }
.tc-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 14px 0 0; }
.tc-total > span { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.tc-total > b { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.tc-total.is-bump > b { animation: tc-bump .4s var(--ease-out); }
@keyframes tc-bump { 40% { transform: scale(1.05); } }
.tc-total > b { display: inline-block; transform-origin: right center; }
.tc-cmp { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--azure-l); }
.tc-inst { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.tc-inst-l { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.tc-months { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tc-months label { position: relative; cursor: pointer; }
.tc-months span { display: block; padding: 6px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .2s, color .2s; }
.tc-months input:checked + span { background: #fff; color: var(--ink); box-shadow: none; }
.tc-month { grid-column: 1 / -1; margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.tc-month b { font-size: 18px; color: #fff; }
.tc-cta { position: relative; }
.tc-cta:disabled { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); cursor: not-allowed; transform: none; }
.tc-cta:disabled::before, .tc-cta:disabled::after { display: none; }
.tc-note { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1180px) { .tc-sys-t small { display: none; } }
@media (max-width: 1020px) {
  .tc { grid-template-columns: minmax(0, 1fr); }
  .tc-sys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-sys-t small { display: block; }
}
@media (max-width: 760px) { .tc-sys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tc { padding: 12px; border-radius: 26px; }
  .tc-map { padding: 14px 10px; border-radius: 20px; }
  .tc-presets { gap: 6px; }
  .tc-chip { min-height: 38px; padding: 7px 12px; font-size: 13px; }
  .tc-legend { flex-wrap: wrap; justify-content: center; font-size: 12px; }
  .tc-legend .tc-side { display: none; }
  .tc-step { font-size: 16.5px; gap: 6px 10px; }
  .tc-sys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tc-sys-in { grid-template-columns: minmax(0, 1fr); padding: 9px 11px; border-radius: 14px; }
  .tc-sys-ico, .tc-sys-t small { display: none; }
  .tc-sys-t b { font-size: 13.5px; }
  .tc-sys-p { grid-column: auto; margin-top: 2px; font-size: 13.5px; }
  .tc-crowns { gap: 6px; }
  .tc-crown span { padding: 10px 6px; }
  .tc-crown b { font-size: 13px; line-height: 1.25; }
  .tc-res { padding: 18px 16px; border-radius: 20px; }
  .tc-inst { grid-template-columns: minmax(0, 1fr); }
  .tc-months { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tooth[aria-checked="true"] .t-body { animation: none; } .t-imp { transition: none; } }

/* ===== «Честные условия» (блок guarantee): тёмная панель, печать слева, карточки с иконками справа ===== */
.gu { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); gap: clamp(24px, 3.4vw, 56px); align-items: center;
  padding: clamp(26px, 3.6vw, 56px); border-radius: 34px; background: var(--grad-dark); color: #fff; box-shadow: 0 40px 80px -50px rgba(14, 42, 71, .9); }
.gu-orbit { position: absolute; z-index: -1; left: -140px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(112, 208, 224, .2);
  box-shadow: 0 0 0 44px rgba(112, 208, 224, .04), 0 0 0 45px rgba(112, 208, 224, .14), 0 0 0 110px rgba(112, 208, 224, .03); pointer-events: none; }
.gu-head { display: grid; justify-items: start; gap: 0; }
.gu-seal { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: 0 0 22px; }
.gu-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.gu-ring text { font: 700 8.6px var(--f-text); letter-spacing: .08em; fill: var(--azure-l); }
.gu-seal-in { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 14px 28px -12px rgba(0, 0, 0, .5); }
.gu-seal-in .ico { width: 28px; height: 28px; }
.gu-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--azure-l); }
.gu-kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.gu-h { margin: 0 0 22px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.gu-h .acc { color: var(--azure-l); -webkit-text-fill-color: currentColor; background: none; }
.gu-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: background .25s, box-shadow .25s; }
.gu-link:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); color: #fff; }
.gu-link .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.gu-link:hover .ico { transform: translateX(3px); }
.gu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gu-item { position: relative; display: flex; flex-direction: column; padding: 22px 22px 24px; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .6); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gu-item:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .7); }
.gu-item-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.gu-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 12px 22px -12px rgba(10, 120, 168, .9); }
.gu-ico .ico { width: 24px; height: 24px; }
.gu-k { padding: 6px 12px; border-radius: 99px; background: var(--gold-2); color: var(--accent-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.gu-t { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.gu-d { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) {
  .gu { grid-template-columns: minmax(0, 1fr); }
  .gu-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: center; }
  .gu-seal { grid-row: 1 / 4; margin: 0; }
  .gu-h { margin-bottom: 16px; }
}
@media (max-width: 640px) {
  .gu { padding: 24px 16px 16px; border-radius: 26px; gap: 22px; }
  .gu-head { grid-template-columns: minmax(0, 1fr); }
  .gu-seal { grid-row: auto; width: 92px; height: 92px; margin: 0 0 16px; }
  .gu-seal-in { width: 48px; height: 48px; }
  .gu-seal-in .ico { width: 24px; height: 24px; }
  .gu-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gu-item { padding: 18px 18px 20px; border-radius: 20px; }
  .gu-ico { width: 44px; height: 44px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .gu-ring { animation: none; } .gu-item, .gu-item:hover { transition: none; transform: none; } }

/* ===== Контраст иконок и подписей на фирменном градиенте =====
   Движок рисовал золотой градиент с тёмными иконками; после смены цвета на лазурь тёмные и синие иконки на синем градиенте сливались.
   Плашки с иконкой или текстом — на тёмном градиенте (белый текст ≥ 4,5:1), иконки и подписи на них — белые. */
:root { --grad-solid: linear-gradient(120deg, #0A78A8 0%, #08648C 55%, #0A4F78 100%); }
.modal-ico, .lst-ico, .rev-ava, .pill-gold, .promo-band-badge, .vs-best, .ba-tag-a, .cmp thead .is-acc, .tl-when, .myth-back .myth-tag, .hh-offer-ico,
.quiz-a input:checked + span i, .sym-item input:checked + .sym-box, .mega-cat:hover .mc-ico, .mega-cat.is-on .mc-ico, .anat-dot:hover, .anat-dot.is-on {
  background: var(--grad-solid); color: #fff; }
:is(.modal-ico, .lst-ico, .rev-ava, .pill-gold, .promo-band-badge, .vs-best, .ba-tag-a, .tl-when, .myth-tag, .hh-offer-ico, .sym-box, .mc-ico, .anat-dot) .ico { color: inherit; }
.modal-ico { box-shadow: 0 14px 26px -14px rgba(10, 95, 142, .8); }
.faq-item[open] .faq-pm { background: var(--accent); }
.faq-item[open] .faq-pm::before, .faq-item[open] .faq-pm::after { background: #fff; }
/* Полоса-призыв на градиенте: белый текст, акцент — светлая лазурь */
.cta-band { background: var(--grad-solid); background-size: 100% 100%; animation: none; color: #fff; }
.cta-band p, .cta-band .cta-band-t { color: #fff; }
.cta-band .acc { color: #BDEBF7; }
/* Неактивная кнопка калькулятора: иконка в цвет подписи */
.tc-cta:disabled .ico { color: inherit; }
/* «Как удобнее связаться:» — legend не участвует во flex-раскладке fieldset, поэтому отступ до кнопок задаём явно */
.contact-pref { margin: 4px 0 2px; padding: 0; border: 0; min-width: 0; }
.contact-pref > .field-label { display: block; width: 100%; float: none; margin: 0 0 10px; padding: 0; font-size: 14px; }
/* Отступы: метки услуги, разделы прайса на телефоне и строки графика не стоят вплотную */
.svc-tags { gap: 8px; }
.branch-hours { gap: 8px; }
@media (max-width: 960px) { .plist-nav { gap: 8px; } }
/* Состояния при наведении: в движке --accent был тёмным, а --gold-1 — золотым; теперь оба синие, поэтому на синем фоне — белый */
.rel:hover .rel-p, .rel:hover .rel-arr, .rel:hover .rel-ico { color: #fff; }
.rel:hover .rel-ico { background: rgba(255, 255, 255, .16); }
.kid-card:hover .kid-ico, .why-item:hover .why-ico, .step.is-done .step-n, .anat-item.is-on .anat-n, .tldr-ico { color: #fff; }
.plist-nav a.is-on small, .plist-nav a:hover small { color: rgba(255, 255, 255, .82); }
.dsvc-item ul a:hover { color: #fff; }
/* Мессенджеры в верхней полосе и подвале: при наведении — тёмная лазурь, на ней белый читается (≥ 4,5:1) */
.topbar-msg:hover, .ftr-soc a:hover { background: var(--accent); color: #fff; }
.topbar-msg:hover .ico, .ftr-soc a:hover .ico { color: #fff; }

/* ===== Отзывы: шапка со стрелками, карусель одинаковых карточек, полоса прокрутки ===== */
.rvw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin: 0 0 clamp(24px, 3vw, 36px); }
.rvw-head .sec-head { margin-bottom: 0; }
.rvw-tools { display: flex; align-items: center; gap: 16px; }
.rvw-all { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .25s, border-color .25s, color .25s; }
.rvw-all .ico { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.rvw-all:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rvw-all:hover .ico { transform: translateX(3px); }
.rvw-nav { margin: 0; gap: 8px; }
.rvw-nav .icon-btn { width: 48px; height: 48px; background: #fff; }
.rvw-sec { --g: clamp(14px, 1.8vw, 22px); }
.rvw-track { gap: var(--g); grid-auto-columns: calc((100% - 3 * var(--g)) / 3.2); padding: 8px 4px 26px; margin: -8px -4px 0; scroll-padding-left: 4px; }
.rvw-bar { position: relative; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rvw-bar[hidden] { display: none; }
.rvw-bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * (1 - var(--w, 1)) * 100%); width: calc(var(--w, 1) * 100%); border-radius: inherit; background: var(--accent); transition: left .2s linear; }

/* Карточка */
.rev-card { position: relative; display: flex; flex-direction: column; gap: 0; height: 100%; padding: 24px 24px 20px; border-radius: 26px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 26px 50px -42px rgba(14, 42, 71, .55); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.rev-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 32px 60px -40px rgba(14, 42, 71, .6); }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.rev-rate { display: inline-flex; align-items: center; gap: 8px; }
.rev-rate b { font-size: 14px; font-weight: 700; color: var(--ink); }
.rev-stars { width: 90px; height: 16px; }
.rev-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rev-text { margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev-text p { margin: 0; }
.rev-text.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rev-text::after { display: none; }
.rev-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 12px 0 0; padding: 0; border: 0; background: none;
  font: 700 14px/1.3 var(--f-text); color: var(--accent); cursor: pointer; }
.rev-more[hidden] { display: none; }
.rev-more .ico { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.rev-more:hover .ico { transform: translateX(3px); }
.rev-more:focus-visible, .rev-doc:focus-visible, .rvw-all:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.rev-foot { display: grid; justify-content: normal; gap: 14px; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: inherit; }
.rev-card > .rev-text, .rev-card > .rev-more { margin-bottom: 18px; }
.rev-card > .rev-text + .rev-more { margin-top: -6px; }
.rev-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rev-ava { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; font-weight: 700; box-shadow: none; }
.rev-ava-0 { background: #E1F2FA; color: #08648C; }
.rev-ava-1 { background: #FFEADB; color: #8F4310; }
.rev-ava-2 { background: #E4EBF4; color: #1D3D63; }
.rev-ava-3 { background: #DFF2EB; color: #1C6249; }
.rev-who-t { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.rev-author { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.rev-src { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
a.rev-src:hover { color: var(--accent); }
.rev-src .ico { width: 13px; height: 13px; }
.rev-doc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px;
  background: #F2F8FB; color: var(--ink); text-decoration: none; font-weight: 400; transition: background .25s; }
.rev-doc:hover { background: var(--gold-2); color: var(--ink); }
.rev-doc-ph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #DCEAF3; color: var(--accent); }
.rev-doc-ph picture, .rev-doc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.rev-doc-ico .ico { width: 20px; height: 20px; }
.rev-doc-t { display: grid; min-width: 0; line-height: 1.25; }
.rev-doc-t small { font-size: 12px; color: var(--muted); }
.rev-doc-t b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-doc .rev-doc-go { width: 18px; height: 18px; color: var(--accent); transition: transform .25s var(--ease); }
.rev-doc:hover .rev-doc-go { transform: translateX(3px); }
/* Страница «Отзывы»: текст целиком, без обрезки */
.revs-grid .rev-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.revs-grid .rev-card:hover { transform: none; }
/* Окно с полным отзывом */
dialog.modal.rev-modal { width: min(640px, calc(100% - 24px)); max-width: none; }
/* строка «оценка · дата» стоит на одной линии с крестиком (он 44×44 в 16 px от угла) и заканчивается до него */
.rev-modal .modal-box { width: auto; padding: 16px clamp(22px, 3vw, 36px) clamp(22px, 3vw, 32px); }
.rev-card-full, .rev-card-full:hover { height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none !important; }
.rev-card-full .rev-top { min-height: 44px; margin-bottom: 14px; padding-right: 52px; }
.rev-card-full .rev-doc { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rev-card-full .rev-doc:hover { background: var(--gold-2); }
.rev-card-full .rev-text { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 17px; }
@media (max-width: 1100px) { .rvw-track { grid-auto-columns: calc((100% - 2 * var(--g)) / 2.2); } }
@media (max-width: 700px) {
  .rvw-head { align-items: flex-start; }
  .rvw-tools { width: 100%; justify-content: space-between; }
  .rvw-all { min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .rvw-nav .icon-btn { width: 44px; height: 44px; }
  .rvw-track { grid-auto-columns: 86%; }
  .rev-card { padding: 20px 18px 18px; border-radius: 22px; }
  .rev-text { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .rev-card, .rev-card:hover { transition: none; transform: none; } .rvw-bar i { transition: none; } }

/* ===== Адрес клиники: фото со статусом и картой, карточка поверх фото ===== */
.loc { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.loc-media { position: relative; grid-column: 1 / 9; grid-row: 1; align-self: stretch; min-height: 560px; border-radius: 34px; overflow: hidden; background: var(--sand); isolation: isolate; }
.loc-media::after { content: ''; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 42, 71, 0) 0%, rgba(14, 42, 71, .78) 100%); pointer-events: none; }
.loc-media:has(iframe)::after { display: none; }
/* кадр сдвинут вправо: вывеска клиники видна целиком, хотя карточка перекрывает правый край фото */
.loc-media picture, .loc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 45%; }
.loc-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.loc-status { position: absolute; left: 22px; top: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 13px; border-radius: 99px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -16px rgba(14, 42, 71, .6);
  font-size: 14px; font-weight: 600; color: var(--ink); }
.loc-status:has([data-open-now][hidden]) { display: none; }
.loc-dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #23A15A; }
.loc-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(35, 161, 90, .35); animation: loc-pulse 2.2s ease-out infinite; }
.loc-status.is-closed .loc-dot { background: #D9822B; }
.loc-status.is-closed .loc-dot::after { border-color: rgba(217, 130, 43, .35); }
@keyframes loc-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.loc-media-foot { position: absolute; left: 24px; right: calc(12.5% + 28px); bottom: 24px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.loc-floor { display: grid; gap: 2px; color: #fff; text-shadow: 0 1px 12px rgba(14, 42, 71, .45); }
.loc-floor b { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.01em; }
.loc-floor small { font-size: 14px; color: rgba(255, 255, 255, .88); }
.loc-map-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 99px; background: #fff; color: var(--ink);
  font: 600 15px/1.2 var(--f-text); cursor: pointer; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); transition: background .25s, color .25s, transform .25s var(--ease); }
.loc-map-btn .ico { width: 18px; height: 18px; color: var(--accent); transition: color .25s; }
.loc-map-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.loc-map-btn:hover .ico { color: #fff; }
.loc-map-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Карточка */
.loc-card { position: relative; z-index: 4; grid-column: 8 / 13; grid-row: 1; margin: 44px 0; padding: clamp(24px, 2.8vw, 38px); border-radius: 30px; background: #fff;
  box-shadow: 0 44px 90px -46px rgba(14, 42, 71, .55), inset 0 0 0 1px var(--line); }
.loc-k { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.loc-addr > span:last-child { text-wrap: balance; }
.loc-addr { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: clamp(18px, 1.5vw, 20px); font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.loc-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--grad-solid); color: #fff; box-shadow: 0 14px 26px -14px rgba(10, 95, 142, .8); }
.loc-ico .ico { width: 23px; height: 23px; }
.loc-block { padding: 18px 0; border-top: 1px solid var(--line); }
.loc-bt { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.loc-bt .ico { width: 16px; height: 16px; color: var(--accent); }
.loc-hours { list-style: none; margin: 0 -12px; padding: 0; display: grid; gap: 2px; }
.loc-hours li { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 15.5px; transition: background .25s; }
.loc-hours li > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.loc-hours li > i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.loc-hours li > b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.loc-hours li.is-off > b { font-weight: 500; color: var(--muted); }
.loc-hours li.is-today { background: var(--gold-2); }
.loc-hours li.is-today > i { border-color: rgba(10, 120, 168, .35); }
.loc-hours em { padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; line-height: 1.5; }
.loc-way { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.loc-way li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.loc-way-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #EEF6FB; color: var(--accent); }
.loc-way-ico .ico { width: 19px; height: 19px; }
.loc-way-t { padding-top: 7px; }
.loc-transit { display: grid; gap: 8px; padding-top: 3px; }
.loc-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.loc-tr small { min-width: 92px; margin-right: 3px; font-size: 13.5px; color: var(--muted); }
.loc-tr b { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.loc-tr:nth-child(3n+1) b { background: #E1F2FA; color: #08648C; }
.loc-tr:nth-child(3n+2) b { background: #FFEADB; color: #8F4310; }
.loc-tr:nth-child(3n) b { background: #E4EBF4; color: #1D3D63; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.loc-actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 1100px) {
  .loc-media { grid-column: 1 / -1; min-height: 440px; }
  .loc-card { grid-column: 1 / -1; grid-row: 2; margin: -56px 24px 0; }
  .loc-media-foot { right: 24px; bottom: 80px; }
  .loc-media::after { inset: 35% 0 0; }
}
@media (max-width: 600px) {
  .loc-media { min-height: 330px; border-radius: 24px; }
  .loc-card { margin: -44px 8px 0; padding: 20px 18px; border-radius: 22px; }
  .loc-status { left: 12px; top: 12px; padding: 7px 13px 7px 11px; font-size: 13px; }
  .loc-media-foot { left: 16px; right: 16px; bottom: 60px; gap: 10px; }
  .loc-map-btn { min-height: 42px; padding: 8px 15px; font-size: 14px; }
  .loc-addr { font-size: 17px; gap: 12px; }
  .loc-ico { width: 44px; height: 44px; border-radius: 14px; }
  .loc-tr small { min-width: 0; width: 100%; }
  .loc-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .loc-dot::after { animation: none; } .loc-map-btn, .loc-map-btn:hover { transition: none; transform: none; } }

/* ===== «Коротко об услуге»: слева суть и цена крупно, справа плитки фактов ===== */
.brief { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); border-radius: 32px; background: #fff; overflow: hidden;
  box-shadow: 0 34px 70px -50px rgba(14, 42, 71, .55), inset 0 0 0 1px var(--line); }
.brief-main { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #FFFFFF 0%, #F0F8FC 55%, #E3F2FA 100%); }
.brief-main::after { content: ''; position: absolute; right: -90px; bottom: -110px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(15, 160, 208, .22);
  box-shadow: 0 0 0 26px rgba(15, 160, 208, .04), 0 0 0 27px rgba(15, 160, 208, .12); pointer-events: none; }
.brief-k { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.brief-k-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad-solid); color: #fff; box-shadow: 0 10px 20px -10px rgba(10, 95, 142, .8); }
.brief-k-ico .ico { width: 19px; height: 19px; }
.brief-sum { position: relative; margin: 0; font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.5; font-weight: 600; color: var(--ink); letter-spacing: -.005em; text-wrap: pretty; }
.brief-price { position: relative; display: grid; justify-items: start; gap: 2px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(10, 120, 168, .16); }
.brief-price-l { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.brief-price-v { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brief-price-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.brief-price-go .ico { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.brief-price-go:hover .ico { transform: rotate(90deg) translateX(3px); }
/* Плитки фактов */
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 10px; margin: 0; padding: clamp(18px, 2.4vw, 30px); }
.brief-item { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 16px 18px; border-radius: 18px; background: #F5F9FC; box-shadow: inset 0 0 0 1px #E6EFF5; transition: background .25s, box-shadow .25s; }
.brief-item:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -24px rgba(14, 42, 71, .5); }
.brief-item.is-wide { grid-column: 1 / -1; }
.brief-item dt { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.brief-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.brief-ico .ico { width: 17px; height: 17px; }
.brief-item dd { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.brief-item dd small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.brief-docs dd { display: flex; align-items: center; gap: 14px; }
.brief-avas { display: flex; flex: none; }
.brief-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #DCEAF3; color: var(--accent); box-shadow: 0 0 0 3px #F5F9FC; }
.brief-ava + .brief-ava { margin-left: -10px; }
.brief-item:hover .brief-ava { box-shadow: 0 0 0 3px #fff; }
.brief-ava picture, .brief-ava img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.brief-ava .ico { width: 20px; height: 20px; }
.brief-doc-names { min-width: 0; }
.brief-doc-names a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(10, 120, 168, .35); text-underline-offset: 4px; }
.brief-doc-names a:hover { color: var(--accent); text-decoration-color: currentColor; }
.brief-doc-names small { font-weight: 500; color: var(--muted); }
@media (max-width: 1000px) { .brief { grid-template-columns: minmax(0, 1fr); } .brief-main::after { display: none; } }
@media (max-width: 560px) {
  .brief { border-radius: 24px; }
  .brief-main { padding: 22px 18px; gap: 14px; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 8px; }
  .brief-item { padding: 14px; }
  .brief-docs dd { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* «Почему выбирают»: портрет главного врача и фото клиники, плашка «к. м. н.» — ссылка на страницу врача */
.why-photo img, .why-photo picture { object-position: var(--pos, 50% 50%); }
a.why-badge { z-index: 2; text-decoration: none; color: var(--ink); transition: box-shadow .3s; }
a.why-badge:hover { color: var(--ink); box-shadow: 0 24px 44px -24px rgba(14, 42, 71, .55); }
.why-badge-t { display: grid; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.why-badge-t b { font-size: 15px; color: var(--ink); }

/* ===== Подвал: четыре колонки навигации + панель контактов ===== */
.ftr-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); padding: 44px 0 36px; }
.ftr-nav .ftr-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr-nav .ftr-h::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 4px rgba(15, 160, 208, .18); }
.ftr-nav .ftr-h a { display: inline-flex; align-items: center; gap: 8px; }
.ftr-nav .ftr-h .ico { width: 14px; height: 14px; color: var(--azure-l); transition: transform .25s var(--ease); }
.ftr-nav .ftr-h a:hover .ico { transform: translateX(3px); }
.ftr-plist, .ftr-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ftr-plist a, .ftr-links a { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 14.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); transition: color .2s; }
.ftr-plist a > span, .ftr-links a > span { min-width: 0; }
.ftr-plist a > i { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(255, 255, 255, .22); transform: translateY(-4px); transition: border-color .2s; }
.ftr-plist a > small { flex: none; font-size: 13px; font-weight: 600; color: var(--azure-l); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ftr-plist a:hover, .ftr-links a:hover { color: #fff; }
.ftr-plist a:hover > i { border-color: rgba(112, 208, 224, .7); }
.ftr-links a > span { position: relative; }
.ftr-links a > span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--azure-l); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.ftr-links a:hover > span::after { transform: scaleX(1); }
/* Панель контактов */
.ftr-cbar { display: grid; grid-template-columns: max-content minmax(0, 1.25fr) minmax(0, 1fr) auto; margin: 0 0 36px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ftr-cell { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 24px clamp(18px, 2vw, 28px); }
.ftr-cell + .ftr-cell { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08); }
.ftr-cico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(15, 160, 208, .16); color: var(--azure-l); box-shadow: inset 0 0 0 1px rgba(112, 208, 224, .25); }
.ftr-cico .ico { width: 21px; height: 21px; }
.ftr-cbody { flex: 1; display: grid; gap: 4px; min-width: 0; }
.ftr-cl { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.ftr-cbar .ftr-tel { margin: 0; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; white-space: nowrap; }
.ftr-cbar .ftr-soc { margin: 8px 0 0; }
.ftr-cbar .ftr-soc a { padding: 6px 12px; font-size: 13.5px; }
.ftr-cv { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.ftr-cs { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.ftr-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ftr-hours li { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.ftr-hours li span { color: rgba(255, 255, 255, .62); }
.ftr-hours li b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftr-status { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: #3DDC97; }
.ftr-status:has([data-open-now][hidden]) { display: none; }
.ftr-status i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.ftr-status.is-closed { color: #F4B26B; }
.ftr-status.is-closed i { box-shadow: 0 0 0 4px rgba(244, 178, 107, .18); }
.ftr-cell-act { flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; }
.ftr-cbar .ftr-route { justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 99px; background: var(--grad-cta); color: var(--cta-ink) !important; font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 14px 28px -16px rgba(255, 140, 70, .7); transition: transform .25s var(--ease); }
.ftr-cbar .ftr-route:hover { transform: translateY(-2px); }
.ftr-cbar .ftr-route .ico { color: currentColor; }
.ftr-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8) !important; }
.ftr-more .ico { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.ftr-more:hover { color: #fff !important; }
.ftr-more:hover .ico { transform: translateX(3px); }
@media (max-width: 1180px) {
  .ftr-cbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-cell:nth-child(3) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  .ftr-cell:nth-child(4) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .08); flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .ftr-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 600px) {
  .ftr-nav { gap: 26px 18px; padding: 32px 0 26px; }
  .ftr-ncol.is-price { grid-column: 1 / -1; }
  .ftr-cbar { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .ftr-cell { padding: 18px; }
  .ftr-cell + .ftr-cell, .ftr-cell:nth-child(3), .ftr-cell:nth-child(4) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  .ftr-cell-act { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  /* на телефоне — только портрет главного врача, плашка на его нижнем углу */
  .why-media { min-height: 360px; }
  .why-photo-0 { inset: 0; width: 100%; height: 100%; }
  .why-photo-1 { display: none; }
  .why-badge { left: 12px; bottom: 12px; padding: 10px 14px; gap: 10px; }
  .why-badge-k { font-size: 24px; }
}

/* «Правовые документы» на страницах политик */
.legal-nav-h { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ===== Страница врача: боковая карточка «Опыт работы» и «Отмечено» ===== */
.dside { padding: 0; border: 0; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -46px rgba(14, 42, 71, .55), inset 0 0 0 1px var(--line); overflow: hidden; }
.dside-sec { padding: 24px 26px; }
.dside-sec + .dside-sec { border-top: 1px solid var(--line); }
.dside-h { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dside-hico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--gold-2); color: var(--accent); }
.dside-hico .ico { width: 18px; height: 18px; }
/* шкала опыта: линия слева, точки, текущее место — заполненная точка с кольцом */
.dexp { position: relative; list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 18px; }
.dexp::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--azure), var(--line-2)); }
.dexp li { position: relative; display: grid; gap: 3px; }
.dexp li::before { content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); }
.dexp li.is-now::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(15, 160, 208, .2); }
.dexp-y { justify-self: start; font-size: 12.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.dexp li.is-now .dexp-y { padding: 1px 9px; border-radius: 99px; background: var(--accent); color: #fff; }
.dexp-p { font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.dexp-r { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
/* заслуги: строки во всю ширину */
.dmerits { list-style: none; margin: 0; padding: 0; display: grid; }
.dmerits li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.dmerits li + li { border-top: 1px dashed var(--line); }
.dmerits .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.6; margin-top: 1px; }
/* ссылки на площадки */
.dside-links { display: grid; gap: 8px; padding: 0 26px 24px; }
.dside-sec + .dside-links { padding-top: 0; }
.dside-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #F3F8FB; color: var(--ink); text-decoration: none; transition: background .25s, color .25s; }
.dside-link span { display: grid; line-height: 1.3; }
.dside-link small { font-size: 12.5px; color: var(--muted); }
.dside-link b { font-size: 15px; }
.dside-link .ico { flex: none; width: 18px; height: 18px; color: var(--accent); }
.dside-link:hover { background: var(--accent); color: #fff; }
.dside-link:hover small, .dside-link:hover .ico { color: rgba(255, 255, 255, .85); }
@media (max-width: 600px) { .dside { border-radius: 22px; } .dside-sec { padding: 20px 18px; } .dside-links { padding: 0 18px 20px; } }

/* ===== Страница «Контакты»: тёмная карточка телефона + адрес + режим работы ===== */
.cx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .9fr); gap: 16px; align-items: stretch; }
.cx-main { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.6vw, 34px); border-radius: 28px;
  background: var(--grad-dark); color: rgba(255, 255, 255, .82); box-shadow: 0 34px 70px -44px rgba(14, 42, 71, .85); }
.cx-orbit { position: absolute; z-index: -1; right: -120px; top: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(112, 208, 224, .22);
  box-shadow: 0 0 0 30px rgba(112, 208, 224, .04), 0 0 0 31px rgba(112, 208, 224, .12); pointer-events: none; }
.cx-k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--azure-l); }
.cx-tel { font-size: clamp(28px, 2.7vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-decoration: none; white-space: nowrap; }
.cx-tel:hover { color: #fff; }
.cx-tel2 { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; }
.cx-tel2 small { font-size: 13px; color: var(--azure-l); }
.cx-status { display: flex; align-items: center; gap: 9px; margin: 2px 0 6px; font-size: 15px; font-weight: 600; color: #6FE3AE; }
.cx-status:has([data-open-now][hidden]) { display: none; }
.cx-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(111, 227, 174, .16); }
.cx-status.is-closed { color: #F6BE84; }
.cx-status.is-closed i { box-shadow: 0 0 0 5px rgba(246, 190, 132, .16); }
.cx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-actions .btn { flex: 1 1 auto; justify-content: center; }
.cx-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.cx-ghost .ico { color: currentColor; }
.cx-ghost:hover { background: #fff; color: var(--ink); }
.cx-write { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cx-main .cx-actions + .cx-write { margin-top: 18px; }
.cx-write-l { margin: 0 0 10px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.cx-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-soc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; transition: background .25s; }
.cx-soc a:hover { background: var(--accent); color: #fff; }
.cx-soc .ico { width: 17px; height: 17px; }
/* Светлые карточки */
.cx-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(22px, 2.4vw, 30px); border-radius: 28px; background: #fff;
  box-shadow: 0 26px 54px -44px rgba(14, 42, 71, .5), inset 0 0 0 1px var(--line); }
.cx-h { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cx-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold-2); color: var(--accent); }
.cx-ico .ico { width: 19px; height: 19px; }
.cx-addr { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.cx-way { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-way li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.cx-way .ico { width: 19px; height: 19px; color: var(--accent); margin-top: 1px; }
.cx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.cx-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.cx-more .ico { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.cx-more:hover .ico { transform: rotate(90deg) translateX(3px); }
.cx-hours { list-style: none; margin: 0 -12px; padding: 0; display: grid; gap: 2px; }
.cx-hours li { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 16px; }
.cx-hours li > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cx-hours li > i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.cx-hours li > b { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-hours li.is-off > b { font-weight: 500; color: var(--muted); }
.cx-hours li.is-today { background: var(--gold-2); }
.cx-hours em { padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; line-height: 1.5; }
.cx-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cx-note .ico { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
@media (max-width: 1100px) {
  .cx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-main { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cx { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cx-main, .cx-card { border-radius: 22px; }
  .cx-actions .btn { width: 100%; justify-content: center; }
  .cx-foot .btn { width: 100%; justify-content: center; }
}
