/* ==========================================================================
   ООО «Имидж дент» - Flagship v2 S-Tier Implantology Design System (2026)
   Palette: #3A5678 clinical slate-blue + #132030 midnight + #16795B emerald trust
   ========================================================================== */

@font-face {
  font-family: 'Wix Madefor Display';
  src: url('../fonts/WixMadeforDisplay.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20BD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jbmono-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jbmono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+20BD;
}

:root {
  --bg-canvas: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-soft: #ECF1F7;
  --bg-navy: #0F1C2B;
  --bg-navy-card: #182A3F;

  --brand-primary: #3A5678;
  --brand-hover: #293F59;
  --brand-light: #E8F0F8;
  --accent-emerald: #16795B;
  --accent-emerald-bg: #E7F5F0;
  --accent-amber: #9E6313;
  --accent-amber-bg: #FEF5E7;
  --accent-danger-bg: #FDF0F1;
  --accent-danger-ink: #A32838;

  --ink-primary: #111B27;
  --ink-secondary: #435366;
  --ink-muted: #65768A;
  --ink-inverse: #F8FAFC;
  --ink-inverse-soft: rgba(248, 250, 252, 0.78);

  --border-hairline: rgba(17, 27, 39, 0.09);
  --border-strong: rgba(17, 27, 39, 0.16);

  --shadow-sm: 0 2px 8px rgba(17, 27, 39, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(17, 27, 39, 0.09), 0 2px 6px rgba(17, 27, 39, 0.03);
  --shadow-lg: 0 24px 52px -12px rgba(17, 27, 39, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-display: 'Wix Madefor Display', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 280ms;
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: rgba(58, 86, 120, 0.16);
  color: var(--ink-primary);
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

button, input {
  font-family: inherit;
}

a, button, input, summary, .ba-range {
  touch-action: manipulation;
}

.nowrap {
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: 96px;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-emerald));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink-primary);
}

h1, h2, h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(29px, 3.85vw, 48px);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(26px, 3.1vw, 39px);
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

p, li {
  text-wrap: pretty;
}

.section {
  padding-block: 82px;
}

.section--white {
  background: var(--bg-surface);
}

.section--navy {
  background:
    radial-gradient(65% 70% at 86% 18%, rgba(22, 121, 91, 0.22), transparent 65%),
    radial-gradient(50% 60% at 10% 90%, rgba(58, 86, 120, 0.34), transparent 70%),
    var(--bg-navy);
  color: var(--ink-inverse);
}

.section--navy h2,
.section--navy h3,
.section--navy strong {
  color: var(--ink-inverse);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-light);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.section-eyebrow--dark {
  background: rgba(255, 255, 255, 0.12);
  color: #DCE9F7;
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn.is-loading {
  cursor: wait;
  opacity: 0.92;
}

.btn.is-loading::before {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: btnSpin 700ms linear infinite;
  flex-shrink: 0;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2D4766 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(58, 86, 120, 0.5);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 550ms var(--ease-out);
}

.btn--outline {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.btn--light {
  background: #FFFFFF;
  color: var(--bg-navy);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.28);
}

.btn--sm {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: linear-gradient(135deg, var(--brand-hover) 0%, #1F3249 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -8px rgba(42, 64, 91, 0.56);
  }

  .btn--primary:hover::after {
    left: 140%;
  }

  .btn--outline:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
    transform: translateY(-1px);
  }

  .btn--light:hover {
    background: #EAF2FA;
    transform: translateY(-2px);
  }
}

/* ---------- Header & Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(58, 86, 120, 0.16);
  box-shadow: 0 10px 30px -16px rgba(17, 27, 39, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 11px;
}

.header-nav a {
  position: relative;
  padding-block: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-emerald));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease-out);
}

.header-nav a.is-current {
  color: var(--brand-primary);
}

.header-nav a.is-current::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover {
    color: var(--brand-primary);
  }
  .header-nav a:hover::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border-hairline);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.live-status-pill.is-open-now {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: rgba(22, 121, 91, 0.22);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
}

.live-status-pill.is-open-now .live-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(22, 121, 91, 0.55);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22, 121, 91, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(22, 121, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 121, 91, 0); }
}

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.header-phone-main {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
  white-space: nowrap;
}

.header-phone-sec {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.msg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-soft);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 12px;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .msg-icon-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
  }
}

.header-call-mobile {
  display: none;
}

.burger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

.mobile-drawer {
  display: flex;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-strong);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 59;
  flex-direction: column;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}

.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 230ms var(--ease-out), transform 240ms var(--ease-spring), visibility 0s linear 0s;
}

.mobile-drawer a {
  padding: 10px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-hairline);
}

/* ---------- Hero Section ---------- */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseCertDot {
  0% { box-shadow: 0 0 0 0 rgba(62, 227, 168, 0.52), 0 0 0 4px rgba(62, 227, 168, 0.18); }
  70% { box-shadow: 0 0 0 8px rgba(62, 227, 168, 0), 0 0 0 4px rgba(62, 227, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 227, 168, 0), 0 0 0 4px rgba(62, 227, 168, 0.18); }
}

html.js-ready .hero-badges { animation: heroRise 460ms var(--ease-out) 0ms both; }
html.js-ready .hero h1 { animation: heroRise 480ms var(--ease-out) 45ms both; }
html.js-ready .hero-lead { animation: heroRise 480ms var(--ease-out) 90ms both; }
html.js-ready .hero-facts-list { animation: heroRise 480ms var(--ease-out) 135ms both; }
html.js-ready .hero-cta-row { animation: heroRise 480ms var(--ease-out) 175ms both; }
html.js-ready .hero-contact-strip { animation: heroRise 480ms var(--ease-out) 210ms both; }
html.js-ready .hero-cert-chip { animation: heroRise 480ms var(--ease-out) 120ms both; }
html.js-ready .hero-photo-overlay { animation: heroRise 480ms var(--ease-out) 160ms both; }
html.js-ready .hero-doctors-duo { animation: heroRise 480ms var(--ease-out) 190ms both; }

.hero {
  padding: 40px 0 64px;
  background:
    radial-gradient(72% 64% at 88% 12%, rgba(58, 86, 120, 0.11), transparent 68%),
    radial-gradient(54% 48% at 14% 84%, rgba(22, 121, 91, 0.08), transparent 68%),
    var(--bg-canvas);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 40px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.trust-pill--btn {
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.trust-pill--accent {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: rgba(22, 121, 91, 0.22);
}

.trust-pill--match {
  background: #132030;
  color: #FFFFFF;
  border-color: #132030;
}

.hero-lead {
  margin-top: 16px;
  font-size: 17.5px;
  color: var(--ink-secondary);
  max-width: 60ch;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 24px;
}

.hero-fact-card {
  padding: 13px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-fact-card--emerald {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1FAF6 100%);
  border-color: rgba(22, 121, 91, 0.22);
}

.hero-fact-val {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.15;
}

.hero-fact-card--emerald .hero-fact-val {
  color: var(--accent-emerald);
}

.hero-fact-label {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.32;
}

.hero-facts-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-facts-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.hero-facts-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-emerald);
  font-weight: 800;
}

.hero-facts-list strong {
  color: var(--ink-primary);
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 14.5px;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .trust-pill--btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }
  .hero-secondary-link:hover {
    border-color: var(--brand-primary);
    background: var(--bg-soft);
    transform: translateY(-1px);
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.hero-contact-strip a {
  font-weight: 700;
  color: var(--brand-primary);
  border-bottom: 1px dashed rgba(58, 86, 120, 0.35);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  border: 1px solid var(--border-hairline);
  background: #DCE5EF;
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10.2;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 420ms var(--ease-out);
}

.hero-cert-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 28, 43, 0.88);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero-cert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3EE3A8;
  box-shadow: 0 0 0 4px rgba(62, 227, 168, 0.24);
  animation: pulseCertDot 2.4s infinite;
  flex-shrink: 0;
}

.hero-cert-chip strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.hero-cert-chip span {
  display: block;
  font-size: 11.5px;
  color: rgba(248, 250, 252, 0.8);
}

.hero-photo-overlay {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  background: rgba(17, 27, 39, 0.84);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-photo-overlay strong {
  display: block;
  font-size: 13.5px;
}

.hero-photo-overlay span {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.78);
}

.hero-doctors-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.mini-doc-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 14%;
  flex-shrink: 0;
  background: #F2F5F9;
}

.mini-doc-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

.mini-doc-role {
  font-size: 12px;
  color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
  .hero-photo-frame:hover img {
    transform: scale(1.028);
  }
  .mini-doc-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
  }
}

/* ---------- #anatomiya (Interactive 3-Layer + Honest Table) ---------- */
.anatomy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.anatomy-interactive {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 22px;
  align-items: center;
}

.anatomy-diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.anatomy-diagram svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin-inline: auto;
}

.anatomy-svg-layer {
  opacity: 0.42;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-spring), filter var(--dur-med) var(--ease-out);
}

.anatomy-svg-layer.is-highlighted {
  opacity: 1;
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 6px 12px rgba(22, 121, 91, 0.22));
}

.anatomy-svg-caption {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.anatomy-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anatomy-layer-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .anatomy-layer-btn:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
  }
}

.anatomy-layer-btn.is-active {
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF4FA 100%);
  box-shadow: inset 3px 0 0 var(--brand-primary), 0 10px 24px -10px rgba(58, 86, 120, 0.32);
}

.anatomy-step {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.anatomy-layer-btn strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.anatomy-layer-btn span:last-child {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.compare-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.compare-table-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.compare-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  font-size: 13px;
}

.compare-row--head {
  background: var(--bg-soft);
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-secondary);
}

.compare-item-name {
  font-weight: 700;
  color: var(--ink-primary);
}

.compare-bad {
  color: var(--accent-danger-ink);
  background: var(--accent-danger-bg);
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
}

.compare-good {
  color: var(--accent-emerald);
  background: var(--accent-emerald-bg);
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
}

.compare-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-foot span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}

/* ---------- #included-title (0 ₽ Visit) ---------- */
.bento-included {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.included-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.included-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.included-photo-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.included-zero-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  font-size: 12.5px;
  font-weight: 800;
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.included-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .included-photo-card:hover img {
    transform: scale(1.028);
  }
  .included-item:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
  }
}

.included-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.included-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.included-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.takeaway-strip {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.takeaway-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.takeaway-content strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 10px;
}

.takeaway-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.takeaway-pills span {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* ---------- #systems-title (4 Systems Pricing + Glider) ---------- */
.crown-switcher {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border-hairline);
  margin-bottom: 28px;
  max-width: 100%;
}

.switch-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease-out), width 280ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.switch-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.switch-btn.is-active {
  color: var(--ink-primary);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sys-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .sys-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.sys-card--featured,
.sys-card--highlighted {
  background: var(--bg-surface);
  border-color: var(--brand-primary);
  box-shadow: 0 16px 38px -14px rgba(58, 86, 120, 0.34);
}

.sys-card--featured::before,
.sys-card--highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-emerald));
}

.sys-card .btn {
  margin-top: auto;
  width: 100%;
}

.sys-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--brand-primary);
}

.sys-badge--popular {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.sys-origin {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.sys-total-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.sys-total-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.sys-total-price {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.15;
  margin-top: 2px;
}

.sys-total-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.3;
}

.trap-disclosure {
  padding: 18px 20px;
}

.trap-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-primary);
}

.trap-summary::-webkit-details-marker {
  display: none;
}

.trap-disclosure[open] .trap-summary .faq-plus {
  transform: rotate(45deg);
}

.trap-body {
  margin-top: 14px;
}

.sys-stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.sys-stages li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-hairline);
}

.sys-fit {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.sys-desc {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 auto;
}

.pricing-notes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.note-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 14px;
  color: var(--ink-secondary);
}

.note-box strong {
  display: block;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.note-box--promo {
  background: var(--accent-amber-bg);
  border-color: rgba(158, 99, 19, 0.24);
}

/* ---------- #kalkulyator (Interactive Calculator + Split Bar + 13%) ---------- */
.calc-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: start;
}

.calc-controls {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.calc-step-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.calc-step-label span {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.calc-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-opt {
  position: relative;
  text-align: left;
  padding: 12px 34px 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}

.calc-opt::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}

@media (hover: hover) and (pointer: fine) {
  .calc-opt:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
  }
}

.calc-opt.is-selected {
  border-color: var(--brand-primary);
  background: var(--brand-light);
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.calc-opt.is-selected::after {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  box-shadow: inset 0 0 0 3px #FFFFFF;
  transform: scale(1.06);
}

.calc-opt strong {
  display: block;
  font-size: 14px;
  color: var(--ink-primary);
}

.calc-opt span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.calc-opt--wide {
  grid-column: 1 / -1;
}

.calc-mobile-live {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-navy);
  color: #FFFFFF;
  margin-top: 4px;
}

.calc-mobile-live-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.calc-mobile-live-label {
  font-size: 11px;
  color: rgba(248, 250, 252, 0.72);
}

.calc-mobile-live-info strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

.calc-mobile-live-net {
  font-size: 11.5px;
  font-weight: 700;
  color: #96F2CE;
}

.calc-receipt {
  background: var(--bg-navy);
  color: var(--ink-inverse);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 94px;
  min-width: 0;
  max-width: 100%;
}

.receipt-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-receipt h3 {
  color: #FFFFFF;
  font-size: 20px;
}

.receipt-split-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(62, 227, 168, 0.14);
  color: #96F2CE;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.receipt-split-bar {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
}

.split-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding-inline: 6px;
  transition: width 320ms var(--ease-out);
  overflow: hidden;
}

.split-seg--0 {
  flex: 0 0 58px;
  background: #16795B;
  color: #FFFFFF;
}

.split-seg--1 {
  background: #3A5678;
  color: #FFFFFF;
}

.split-seg--2 {
  background: rgba(255, 255, 255, 0.18);
  color: #E2ECF7;
}

.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13.5px;
  color: rgba(248, 250, 252, 0.84);
}

.receipt-row strong {
  color: #FFFFFF;
  white-space: nowrap;
}

.receipt-row--tax {
  color: #96F2CE;
}

.receipt-row--tax strong {
  color: #6AF0BE;
}

.receipt-total-block {
  margin-bottom: 18px;
}

.receipt-total-pair {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.receipt-total-label {
  font-size: 12.5px;
  color: rgba(248, 250, 252, 0.72);
}

.receipt-total-sum {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-top: 2px;
  transform-origin: left center;
  transition: transform 200ms var(--ease-spring), color 200ms var(--ease-out);
}

.receipt-total-sum.is-pulsing {
  transform: scale(1.035);
}

.receipt-after-tax {
  text-align: right;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(22, 121, 91, 0.25);
  border: 1px solid rgba(106, 240, 190, 0.28);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms var(--ease-out);
}

.receipt-after-tax.is-pulsing {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px rgba(106, 240, 190, 0.34);
}

.receipt-after-tax span {
  display: block;
  font-size: 11px;
  color: #B4F5DC;
}

.receipt-after-tax strong {
  font-size: 16px;
  color: #FFFFFF;
}

.receipt-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: #A5D8C6;
}

.receipt-promo-banner {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(231, 245, 240, 0.13);
  border: 1px solid rgba(165, 216, 198, 0.34);
  font-size: 13px;
  color: #DDF5EC;
  margin-bottom: 14px;
}

/* ---------- #komfort (Pain-Free Surgical Block) ---------- */
.comfort-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 36px;
  align-items: center;
}

.comfort-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-hairline);
}

.comfort-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.comfort-float-stat {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 28, 43, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
}

.comfort-float-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: #6AF0BE;
}

.comfort-float-stat span {
  font-size: 12.5px;
  color: rgba(248, 250, 252, 0.85);
}

.comfort-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 24px;
}

.comfort-point {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
}

.comfort-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comfort-point strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.comfort-point p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.42;
}

/* ---------- #vse-na-4 (All-on-4/6 + X-Ray Proof) ---------- */
.allon4-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.allon4-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 18px;
}

.allon4-day {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.allon4-day-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93E2C6;
  margin-bottom: 6px;
}

.allon4-day h3 {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.allon4-day p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-inverse-soft);
}

.allon4-compare-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #6AF0BE;
  margin-bottom: 22px;
}

.allon4-compare-box strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.allon4-compare-box span {
  font-size: 13.5px;
  color: rgba(248, 250, 252, 0.8);
}

.allon4-media-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.allon4-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--bg-navy-card);
}

.allon4-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.allon4-media-caption {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--ink-inverse-soft);
}

.allon4-xray-card {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.allon4-xray-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.allon4-xray-card strong {
  display: block;
  font-size: 13.5px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.allon4-xray-card span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-inverse-soft);
}

/* ---------- #vrachi (Doctors + Care Service) ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}

.doctor-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #F2F5F9;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 11 / 12;
  object-fit: cover;
  object-position: center top;
  transition: transform 420ms var(--ease-out);
}

.doctor-body {
  display: flex;
  flex-direction: column;
}

.doctor-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.doc-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--ink-secondary);
}

.doc-pill--rate {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.doctor-spec {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
}

.doctor-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.doctor-edu {
  margin-top: 10px;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--ink-muted);
}

.team-care-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: center;
}

.team-care-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.team-banner-avatar {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  background: #F2F5F9;
}

.team-care-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-care-photos--single {
  grid-template-columns: 1fr;
}

.is-collapsed-extra {
  display: none !important;
}

.section-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.atmosphere-grid--duo {
  grid-template-columns: repeat(2, 1fr);
}

.team-care-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-hairline);
}

/* ---------- #raboty (6 Cases + Filter Tabs + BA Sliders) ---------- */
.cases-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.case-tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.case-tab.is-active {
  background: var(--bg-navy);
  border-color: var(--bg-navy);
  color: #FFFFFF;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), border-color var(--dur-fast);
}

@keyframes cardSoftIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.case-card.is-entering,
.review-card.is-entering {
  animation: cardSoftIn 260ms var(--ease-out) both;
}

@media (hover: hover) and (pointer: fine) {
  .case-tab:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }
  .case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .comfort-media:hover img,
  .allon4-media:hover img,
  .doctor-card:hover .doctor-photo img,
  .atmo-card:hover img,
  .map-crop-card:hover img {
    transform: scale(1.028);
  }
}

.ba-slider {
  --ba-pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  user-select: none;
  background: #DCE3EB;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  pointer-events: none;
}

.ba-slider.is-peeking .ba-before-wrap {
  transition: clip-path 520ms var(--ease-out);
}

.ba-slider.is-peeking .ba-divider,
.ba-slider.is-peeking .ba-handle {
  transition: left 520ms var(--ease-out);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos);
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 2px solid var(--brand-primary);
  box-shadow: 0 4px 14px rgba(15, 28, 43, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  pointer-events: none;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ba-slider:hover .ba-handle {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(15, 28, 43, 0.34), 0 0 0 5px rgba(255, 255, 255, 0.5);
  }
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ba-label {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(17, 27, 39, 0.78);
  color: #FFFFFF;
  pointer-events: none;
  z-index: 2;
}

.ba-label--before { left: 10px; }
.ba-label--after { right: 10px; background: var(--accent-emerald); }

.case-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.case-body h3 {
  font-size: 17.5px;
  margin-bottom: 7px;
}

.case-body p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.case-doctors {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ---------- #etapy (5 Stages + 13% Tax Banner) ---------- */
.stages-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (min-width: 1121px) {
  .stages-grid::before {
    content: '';
    position: absolute;
    top: 31px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, rgba(58, 86, 120, 0.24), rgba(22, 121, 91, 0.4));
    z-index: 0;
    pointer-events: none;
  }
}

.stage-card {
  position: relative;
  z-index: 1;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .stage-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
  }
}

.stage-num {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
}

.stage-card h3 {
  font-size: 16.5px;
}

.stage-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.stage-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.tax-banner {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF8F4 100%);
  border: 1px solid rgba(22, 121, 91, 0.24);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.tax-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.tax-banner h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.tax-banner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.tax-example-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tax-ex-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-hairline);
}

.tax-ex-row strong {
  color: var(--accent-emerald);
}

/* ---------- #rejting (Reviews & Tour) ---------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  margin-bottom: 24px;
}

.rating-big {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-score {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  color: var(--accent-emerald);
  line-height: 1;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .review-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
  }
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}

.review-head span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.review-stars {
  color: #D48817;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.atmosphere-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.atmo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 0;
  cursor: default;
  text-align: left;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

@media (hover: hover) and (pointer: fine) {
  .atmo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.atmo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.atmo-card span {
  display: block;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  font-size: 18px;
  color: var(--brand-primary);
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-out), opacity 240ms var(--ease-out);
  opacity: 0;
}

.faq-item[open] .faq-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-body > p {
  overflow: hidden;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* ---------- #forma (Contacts, Custom Map & Lead Form) ---------- */
.booking-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card, .form-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-card {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.route-pills span {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-primary);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.contact-row strong {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.contact-row a, .contact-row span {
  font-size: 15.5px;
  font-weight: 700;
}

.messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.map-entrance-pair {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 12px;
}

.map-crop-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

.map-crop-card img,
.entrance-crop-card img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 420ms var(--ease-out);
}

.map-crop-card span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 28, 43, 0.84);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- Shared Forms ---------- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.input-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 16px;
  caret-color: var(--brand-primary);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.input-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(58, 86, 120, 0.16);
}

.way-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.way-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.way-btn.is-active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.calc-receipt .way-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(248, 250, 252, 0.9);
  padding: 6px 12px;
  font-size: 12.5px;
}

.calc-receipt .way-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.calc-receipt .way-btn.is-active {
  background: #F8FAFC;
  color: #132030;
  border-color: #F8FAFC;
}

.calc-warmup-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calc-warmup-link:hover {
  color: #FFFFFF;
}

.direct-chat-fallback {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.direct-chat-fallback span {
  display: block;
  margin-bottom: 8px;
}

.direct-chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direct-chat-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.direct-chat-links a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.direct-chat-fallback--dark {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(248, 250, 252, 0.86);
}

.direct-chat-fallback--dark .direct-chat-links a {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: #F8FAFC;
}

.direct-chat-fallback--dark .direct-chat-links a:first-child {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.52);
  color: #FFFFFF;
}

.direct-chat-fallback--dark .direct-chat-links a:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
}

@media (max-width: 580px) {
  .direct-chat-links a {
    min-height: 44px;
    flex: 1 1 auto;
  }
}

.hero-grid > *,
.mini-doc-card > div {
  min-width: 0;
}

.hero-sys-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.hero-sys-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.hero-sys-pill strong {
  color: var(--ink-primary);
  font-weight: 800;
}

.hero-sys-pill:hover,
.hero-sys-pill.is-active {
  border-color: var(--brand-primary);
  background: #EDF3FA;
  color: var(--brand-primary);
}

.desktop-float-bar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 88;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 28, 43, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 252, 0.16);
  box-shadow: 0 14px 34px rgba(15, 28, 43, 0.24);
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}

.desktop-float-bar.is-shown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 240ms var(--ease-out), transform 260ms var(--ease-spring), visibility 0s linear 0s;
}

.desktop-float-calc {
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding-right: 4px;
}

.desktop-float-calc:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.desktop-float-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-float-msg:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .desktop-float-bar {
    display: none !important;
  }
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
}

.consent-label a {
  text-decoration: underline;
  font-weight: 700;
}

.consent-label--error {
  color: var(--accent-danger-ink) !important;
  background: var(--accent-danger-bg);
  border: 1px solid rgba(163, 40, 56, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  display: none;
}

.form-status.is-success {
  display: block;
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid rgba(22, 121, 91, 0.3);
}

.form-status.is-error {
  display: block;
  background: var(--accent-danger-bg);
  color: var(--accent-danger-ink);
  border: 1px solid rgba(163, 40, 56, 0.25);
}

.form-trust-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.form-trust-foot span::before {
  content: '✓ ';
  color: var(--accent-emerald);
  font-weight: 800;
}

/* ---------- Footer & ФЗ-38 ---------- */
.site-footer {
  background: var(--bg-navy);
  color: var(--ink-inverse-soft);
  padding: 46px 0 28px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.fz38-banner {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 43, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms var(--ease-out), visibility 0s linear 190ms;
}

.modal-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 250ms var(--ease-out), visibility 0s linear 0s;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(0.96);
  transition: transform 190ms var(--ease-out);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
  transition: transform 260ms var(--ease-spring);
}

.modal-dialog--wide {
  max-width: 820px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-size: 20px;
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover {
    background: var(--bg-soft);
    border-color: var(--brand-primary);
    transform: rotate(90deg);
  }
}

.license-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.license-gallery img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  cursor: zoom-in;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.license-gallery img.is-zoomed {
  grid-column: 1 / -1;
  width: 100%;
  cursor: zoom-out;
  box-shadow: var(--shadow-lg);
}

/* ---------- Sticky Mobile Bar ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(15, 28, 43, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-sticky-bar a,
.mobile-sticky-bar button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticky-call-btn {
  flex: 1.05;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.sticky-tg-btn {
  flex: 0 0 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.sticky-max-btn {
  flex: 0 0 48px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.sticky-cta-btn {
  flex: 1.15;
  background: #FFFFFF;
  color: var(--bg-navy);
  border: 0;
  cursor: pointer;
}

/* ---------- Progressive Reveal Animations ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 55ms);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1240px) {
  .header-nav {
    display: none;
  }
  .burger-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .brand-link {
    flex-shrink: 1;
  }
}

@media (max-width: 1120px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .anatomy-grid,
  .bento-included,
  .calc-layout,
  .comfort-grid,
  .allon4-grid,
  .doctors-grid,
  .team-care-grid,
  .tax-banner,
  .booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-receipt {
    position: static;
  }
  .calc-mobile-live {
    display: flex;
  }
}

@media (max-width: 767px) {
  .site-header,
  .hero-photo-overlay,
  .comfort-float-stat,
  .mobile-sticky-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 820px) {
  .section {
    padding-block: 44px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .doctor-card {
    grid-template-columns: 1fr;
  }
  .booking-grid .form-card {
    order: -1;
  }
  .cases-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-notes,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .atmosphere-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .container {
    padding-inline: 16px;
  }
  .header-inner {
    min-height: 66px;
    gap: 8px;
  }
  .brand-link {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .header-actions {
    gap: 6px;
  }
  .msg-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }
  .header-call-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .sys-card--highlighted {
    order: -1;
  }
  .burger-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .header-phones,
  .header-cta-desktop {
    display: none;
  }
  .mobile-drawer {
    top: 66px;
    max-height: calc(100dvh - 66px);
  }
  .section {
    padding-block: 32px;
  }
  .section-head {
    margin-bottom: 18px;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .hero {
    padding: 14px 0 30px;
  }
  .hero-badges {
    gap: 6px;
    margin-bottom: 10px;
  }
  .trust-pill {
    padding: 4px 9px;
    font-size: 11.5px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero-lead {
    font-size: 14px;
    margin-top: 8px;
  }
  .hero-facts-list {
    padding: 9px 11px;
    margin: 10px 0 12px;
    gap: 5px;
  }
  .hero-facts-list li {
    font-size: 12.5px;
  }
  .hero-sys-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 12px;
  }
  .hero-sys-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 11.5px;
  }
  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 14px 0 16px;
  }
  .hero-fact-card {
    padding: 9px 8px;
    border-radius: 11px;
  }
  .hero-fact-val {
    font-size: 15px;
  }
  .hero-fact-label {
    font-size: 10.5px;
    line-height: 1.25;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero-cta-row .btn,
  .hero-cta-row .hero-secondary-link {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero-cert-chip {
    display: none;
  }
  .anatomy-interactive {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
    gap: 14px;
  }
  .anatomy-diagram svg {
    width: 150px;
    height: 218px;
  }
  .trap-disclosure {
    padding: 14px 16px;
  }
  .trap-summary {
    font-size: 15px;
  }
  .compare-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .sys-card,
  .included-item,
  .stage-card,
  .review-card,
  .contact-card,
  .form-card {
    padding: 13px 14px;
  }
  .section {
    padding-block: 24px;
  }
  .section-head {
    margin-bottom: 12px;
  }
  .hero-photo-frame img {
    max-height: 220px;
    object-fit: cover;
  }
  .mini-doc-card {
    padding: 8px 10px;
    gap: 10px;
  }
  .anatomy-layer-btn {
    padding: 9px 12px;
    gap: 2px;
  }
  .sys-card {
    gap: 7px;
  }
  .sys-total-box {
    padding: 9px 12px;
  }
  .sys-total-price {
    font-size: 23px;
  }
  .sys-meta-list {
    gap: 4px;
    font-size: 13px;
  }
  .pricing-notes {
    margin-top: 12px;
    gap: 8px;
  }
  .note-box {
    padding: 12px 14px;
    font-size: 13px;
  }
  .doctor-photo img {
    max-height: 195px;
    object-fit: cover;
    object-position: center top;
  }
  .doctor-body {
    padding: 12px 14px;
    gap: 6px;
  }
  .team-care-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .team-care-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .team-care-photos.team-care-photos--single {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-care-photos.team-care-photos--single img {
    max-height: 240px;
  }
  .team-care-photos img {
    max-height: 160px;
    object-fit: cover;
    object-position: center top;
  }
  .included-photo-card img,
  .comfort-media img,
  .allon4-media img {
    max-height: 180px;
    object-fit: cover;
  }
  .stage-card {
    padding: 11px 14px;
    gap: 3px;
  }
  .stage-card p,
  .comfort-point p {
    margin: 0;
  }
  .comfort-point {
    padding: 10px 12px;
  }
  .allon4-day,
  .allon4-xray-card {
    padding: 12px 14px;
  }
  .calc-controls {
    gap: 10px;
  }
  .calc-receipt {
    padding: 14px;
  }
  .receipt-row {
    padding-block: 6px;
    font-size: 13px;
  }
  .calc-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .calc-opt {
    padding: 10px 26px 10px 10px;
    min-width: 0;
  }
  .calc-opt::after {
    top: 10px;
    right: 9px;
    width: 11px;
    height: 11px;
  }
  .calc-opt strong {
    font-size: 13px;
  }
  .calc-opt span {
    font-size: 11.5px;
  }
  .case-body {
    padding: 12px 14px;
    gap: 6px;
  }
  .cases-filter {
    margin-bottom: 12px;
    gap: 6px;
  }
  .tax-banner {
    margin-top: 14px;
    padding: 16px;
    gap: 14px;
  }
  .tax-banner h3 {
    font-size: 18.5px;
  }
  .tax-example-box {
    padding: 12px 14px;
    gap: 8px;
  }
  .atmosphere-grid--duo,
  .map-entrance-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .map-crop-card img,
  .entrance-crop-card img {
    max-height: 140px;
    object-fit: cover;
  }
  .contact-list {
    gap: 8px;
  }
  .systems-grid,
  .included-grid,
  .cases-grid,
  .stages-grid,
  .reviews-grid,
  .comfort-points,
  .allon4-timeline,
  .allon4-xray-card,
  .license-gallery,
  .takeaway-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .crown-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    border-radius: var(--radius-md);
  }
  .switch-glider {
    display: none;
  }
  .switch-btn.is-active {
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }
  .mobile-sticky-bar {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .mobile-sticky-bar.is-shown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 240ms var(--ease-out), transform 260ms var(--ease-spring), visibility 0s linear 0s;
  }
  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 30px;
    height: 30px;
  }
  .brand-sub {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .header-call-mobile {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }
  .msg-icon-btn {
    width: 30px;
    height: 30px;
    font-size: 10.5px;
  }
  .team-care-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .receipt-total-sum {
    font-size: 26px;
  }
  .receipt-after-tax {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero-doctors-duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 375px) {
  .header-actions {
    gap: 4px;
  }
  .site-header .msg-icon-btn[href*="max.ru"] {
    display: none;
  }
  .brand-link {
    gap: 7px;
  }
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 13.5px;
  }
}
