/* ============================================================
   ГУСАРСКОЕ ЗДОРОВЬЕ — Design System v1.0
   Medical Minimalism | Mobile-First | Accessible
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand Colors */
  --primary:        #1B4FD8;   /* Main blue — trust */
  --primary-dark:   #1338A8;
  --primary-light:  #EFF6FF;
  --violet:         #7C3AED;   /* Violet accent */
  --violet-light:   #F5F3FF;
  --teal:           #0891B2;   /* Teal/cyan — freshness */
  --teal-light:     #ECFEFF;

  /* Neutrals */
  --white:          #FFFFFF;
  --bg:             #F8FAFC;
  --bg-card:        #FFFFFF;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  /* Text */
  --text-dark:      #0F172A;
  --text-body:      #334155;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  /* Semantic */
  --success:        #059669;
  --success-light:  #ECFDF5;
  --warning:        #D97706;
  --warning-light:  #FFFBEB;
  --danger:         #DC2626;

  /* Shadows */
  --shadow-xs:  0 1px 0.125rem rgba(15,23,42,.06);
  --shadow-sm:  0 1px 0.1875rem rgba(15,23,42,.08), 0 1px 0.125rem rgba(15,23,42,.04);
  --shadow:     0 0.25rem 0.375rem rgba(15,23,42,.06), 0 0.125rem 0.25rem rgba(15,23,42,.04);
  --shadow-md:  0 0.5rem 1rem rgba(15,23,42,.08), 0 0.25rem 0.5rem rgba(15,23,42,.04);
  --shadow-lg:  0 1.25rem 2.5rem rgba(15,23,42,.10), 0 0.5rem 1rem rgba(15,23,42,.06);
  --shadow-blue: 0 0.5rem 1.5rem rgba(27,79,216,.25);

  /* Radius */
  --r-sm:  0.375rem;
  --r-md:  0.75rem;
  --r-lg:  1rem;
  --r-xl:  1.5rem;
  --r-2xl: 2rem;
  --r-full: 624.9375rem;

  /* Spacing (8pt grid) */
  --sp-1: 0.25rem;   --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;  --sp-5: 1.25rem;  --sp-6: 1.5rem;
  --sp-8: 2rem;  --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;

  /* Typography */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;

  /* Layout */
  --header-h: 4.5rem;
  --container: 75rem;
}

/* ── Accessibility Mode ── */
body.a11y-mode {
  --text-dark:  #000000;
  --text-body:  #111111;
  --text-muted: #333333;
  --primary:    #0033CC;
  --bg:         #FFFFFF;
  --border:     #000000;
  font-size: 1.125rem !important;
}
body.a11y-mode * { font-size: 1.1em !important; letter-spacing: .03em !important; }
body.a11y-mode a, body.a11y-mode button { outline: 0.1875rem solid #000 !important; }
body.a11y-mode .card { border: 0.125rem solid #000 !important; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Базовый шрифт — доля ширины окна: 1rem = 16px при опорной ширине 1440.
   Все размеры в rem, поэтому страница масштабируется целиком.
   До 860px база снова фиксированная — там обычный адаптив. */
html { scroll-behavior: smooth; font-size: calc(100vw / 90); -webkit-text-size-adjust: 100%; }
@media (max-width: 860px) { html { font-size: 16px; } }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* Размер шрифта кнопки по умолчанию браузерный (13.333px) и не масштабируется.
   Записываем то же значение в rem: на опорной ширине вид тот же, дальше растёт. */
button { cursor: pointer; font-family: inherit; font-size: 0.83333rem; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--sp-8); } }
@media (min-width: 861px) { .container { padding: 0 var(--sp-6); } }

.section { padding: var(--sp-16) 0; }
.section-sm { padding: var(--sp-10) 0; }
.section-lg { padding: var(--sp-24) 0; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
p { color: var(--text-body); }

.section-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-light); padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full); margin-bottom: var(--sp-4);
}
.section-title { margin-bottom: var(--sp-4); }
.section-subtitle { font-size: 1.0625rem; color: var(--text-muted); max-width: 35rem; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.875rem 1.75rem; border-radius: var(--r-full);
  font-size: .9375rem; font-weight: 600; line-height: 1;
  transition: all var(--dur) var(--ease);
  white-space: nowrap; cursor: pointer; border: 0.125rem solid transparent;
  min-height: 3rem;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 0.75rem 1.75rem rgba(27,79,216,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-white {
  background: var(--white); color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 0.5rem 1.25rem rgba(8,145,178,.3); }
.btn-teal:hover { filter: brightness(1.07); transform: translateY(-1px); }

.btn-sm { padding: 0.625rem 1.25rem; font-size: .875rem; min-height: 2.5rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; min-height: 3.5rem; }

.btn-icon { width: 3rem; height: 3rem; padding: 0; border-radius: var(--r-full); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 600;
}
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-violet { background: var(--violet-light); color: var(--violet); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-orange { background: var(--warning-light); color: var(--warning); }

/* ── Cards ── */
.card {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-0.1875rem); box-shadow: var(--shadow-md); }
.card-body { padding: var(--sp-6); }

/* ── Forms ── */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block; margin-bottom: var(--sp-2);
  font-size: .875rem; font-weight: 500; color: var(--text-dark);
}
.form-label .req { color: var(--danger); margin-left: 0.125rem; }
.form-control {
  width: 100%; padding: 0.8125rem 1rem; border-radius: var(--r-md);
  border: 0.09375rem solid var(--border); background: var(--white);
  font-size: .9375rem; color: var(--text-dark);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  outline: none;
  min-height: 3rem;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.1875rem rgba(27,79,216,.12); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 6.25rem; }
.form-hint { font-size: .8125rem; color: var(--text-muted); margin-top: var(--sp-1); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(0.75rem);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header-logo { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.logo-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { color: white; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.logo-text { line-height: 1.2; }
.logo-name { font-family: var(--font-heading); font-size: .9rem; font-weight: 800; color: var(--text-dark); display: block; }
.logo-sub { font-size: .7rem; color: var(--text-muted); font-weight: 500; }

.header-nav { display: none; }
@media (min-width: 861px) {
  .header-nav { display: flex; align-items: center; gap: var(--sp-1); }
  .nav-link {
    padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
    font-size: .9rem; font-weight: 500; color: var(--text-body);
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
    white-space: nowrap;
  }
  .nav-link:hover { color: var(--primary); background: var(--primary-light); }
  .nav-link.active { color: var(--primary); background: var(--primary-light); }
}

/* ── Services dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 0.25rem; cursor: pointer;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--text-body);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap; user-select: none;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--primary); background: var(--primary-light); }
.nav-dropdown-trigger svg { transition: transform .2s ease; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: var(--sp-3); z-index: 2000;
  min-width: 45rem;
}
.nav-dropdown.open .nav-dropdown-panel { display: block; }
.nav-dropdown-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3); border-radius: var(--r-sm);
  color: var(--text-body); font-size: .875rem; font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-item:hover .nav-dropdown-icon { background: var(--primary); }
.nav-dropdown-item:hover .nav-dropdown-icon svg { stroke: white; }
.nav-dropdown-icon {
  flex-shrink: 0; width: 2.125rem; height: 2.125rem; border-radius: var(--r-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
/* Иконки услуг приходят из базы с размером в px — он не масштабируется.
   Задаём размер здесь: 1.75rem = 28px на опорной ширине. */
.nav-dropdown-icon svg { display: block; width: 1.75rem; height: 1.75rem; }
.service-card-icon svg { width: 1.75rem; height: 1.75rem; }
/* Иконки в блоках услуги тоже приходят из базы: 20px → 1.25rem. */
.treat-icon svg, .symptoms-list li > svg { width: 1.25rem; height: 1.25rem; }
.nav-dropdown-footer {
  margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border-light);
  text-align: center;
}
.nav-dropdown-footer a {
  font-size: .8125rem; color: var(--primary); font-weight: 500;
}
.nav-dropdown-footer a:hover { text-decoration: underline; }
.nav-dropdown-panel--narrow { min-width: 17.5rem; }
.nav-dropdown-list { display: flex; flex-direction: column; gap: var(--sp-1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-phone-block { display: none; flex-direction: column; gap: 0.125rem; }
@media (min-width: 768px) { .header-phone-block { display: flex; } }
.header-phone {
  font-weight: 600; color: var(--text-dark); font-size: .9375rem;
  display: flex; align-items: center; gap: var(--sp-2);
}
.header-phone svg { color: var(--primary); flex-shrink: 0; }
.header-address {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: .78rem; color: var(--text-muted); line-height: 1;
}
.header-address svg { color: var(--primary); flex-shrink: 0; }

.hamburger {
  display: flex; flex-direction: column; gap: 0.3125rem; width: 2.5rem; height: 2.5rem;
  padding: 0.5rem; border-radius: var(--r-sm); align-items: center; justify-content: center;
  background: var(--bg); transition: background var(--dur-fast);
}
.hamburger span { display: block; width: 1.375rem; height: 0.125rem; background: var(--text-dark); border-radius: 0.125rem; transition: all var(--dur) var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }
@media (min-width: 861px) { .hamburger { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; overflow-y: auto;
  padding: var(--sp-6) var(--sp-5);
  flex-direction: column; gap: var(--sp-2);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4);
  border-radius: var(--r-md); font-size: 1.0625rem; font-weight: 500;
  color: var(--text-body); transition: all var(--dur-fast);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--primary); background: var(--primary-light); }
.mobile-nav-cta { margin-top: var(--sp-4); }

/* ── Footer ── */
.site-footer { background: #0A1628; color: rgba(255,255,255,.8); }
.footer-top { padding: var(--sp-16) 0 var(--sp-10); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 861px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12); } }
.footer-brand .logo-name { color: white; font-size: 1.0625rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,.6); }
.footer-desc { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); margin-top: var(--sp-4); margin-bottom: var(--sp-5); }
.footer-heading { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: var(--sp-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-link { font-size: .9rem; color: rgba(255,255,255,.7); transition: color var(--dur-fast); }
.footer-link:hover { color: white; }
.footer-contact { display: flex; align-items: center; gap: var(--sp-3); font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: var(--sp-3); }
.footer-contact svg { color: var(--teal); flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.8); transition: color var(--dur-fast); }
.footer-contact a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: var(--sp-5) 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; align-items: center;
  font-size: .8125rem; color: rgba(255,255,255,.4);
}
.social-links { display: flex; gap: var(--sp-3); }
.social-link {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full);
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all var(--dur-fast);
}
.social-link:hover { background: var(--primary); color: white; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,.65); backdrop-filter: blur(0.375rem);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 32.5rem; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(0.75rem);
  transition: transform var(--dur) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: var(--sp-6) var(--sp-6) 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-title { font-size: 1.375rem; font-weight: 700; color: var(--text-dark); }
.modal-subtitle { font-size: .9rem; color: var(--text-muted); margin-top: var(--sp-1); }
.modal-close {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-full);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0; transition: all var(--dur-fast);
  margin-left: var(--sp-4);
}
.modal-close:hover { background: #FEE2E2; color: var(--danger); }
.modal-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.modal-privacy {
  font-size: .8125rem; color: var(--text-light); text-align: center; margin-top: var(--sp-3);
  line-height: 1.5;
}
.modal-privacy a { color: var(--primary); text-decoration: underline; }
.modal-agree { display: flex; align-items: flex-start; gap: var(--sp-2); text-align: left; cursor: pointer; margin-top: var(--sp-4); margin-bottom: var(--sp-3); }
.modal-agree-input { margin-top: 0.1875rem; flex-shrink: 0; width: 1rem; height: 1rem; cursor: pointer; accent-color: var(--primary); }
.modal-agree-text { flex: 1; }
.modal-agree-error { display: none; color: var(--danger, #DC2626); font-size: .8125rem; margin: 0 0 var(--sp-3); text-align: center; }
.modal-agree-error.is-shown { display: block; }

/* ── Валидация полей формы записи ── */
.form-control.is-error { border-color: var(--danger, #DC2626); }
.form-control.is-error:focus { box-shadow: 0 0 0 0.1875rem rgba(220,38,38,.12); }
.field-error { display: none; color: var(--danger, #DC2626); font-size: .8125rem; margin: 0.375rem 0 0; }
.field-error.is-shown { display: block; }
.modal--compact .field-error { font-size: .75rem; margin-top: 0.25rem; }

/* ── Modal: compact form ── */
.modal--compact .modal-header { padding: var(--sp-4) var(--sp-5); }
.modal--compact .modal-title { font-size: 1.15rem; }
.modal--compact .modal-subtitle { font-size: .8125rem; }
.modal--compact .modal-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.modal--compact .form-group { margin-bottom: var(--sp-3); }
.modal--compact .form-label { font-size: .8125rem; margin-bottom: 0.25rem; }
.modal--compact .form-control { padding: 0.5625rem 0.75rem; font-size: .875rem; min-height: 2.375rem; border-width: 1px; border-radius: var(--r-sm, 0.375rem); }
.modal--compact select.form-control { background-position: right 0.625rem center; padding-right: 2rem; }
.modal--compact textarea.form-control { min-height: 4.5rem; }
.modal--compact .btn-lg { padding: 0.625rem 1.125rem; font-size: .9rem; min-height: 2.625rem; }
.modal--compact .modal-agree { margin-top: var(--sp-3); margin-bottom: var(--sp-2); font-size: .75rem; }
.modal--compact .modal-agree-input { width: 0.875rem; height: 0.875rem; margin-top: 0.125rem; }
.modal--compact .modal-agree-error { font-size: .75rem; margin-bottom: var(--sp-2); }
.modal-success-icon { width: 4rem; height: 4rem; background: var(--success-light); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-4); }

/* ── Floating CTA ── */
.floating-cta {
  position: fixed; bottom: 3.5rem; right: var(--sp-6); z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3);
}
.float-btn-record {
  background: var(--primary); color: white;
  border-radius: var(--r-full); padding: 0.875rem 1.375rem;
  font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-blue);
  display: flex; align-items: center; gap: var(--sp-2);
  animation: pulse-blue 3s infinite;
}
.float-btn-record:hover { background: var(--primary-dark); animation: none; }
.float-btn-phone {
  width: 3.25rem; height: 3.25rem; border-radius: var(--r-full);
  background: var(--teal); color: white;
  box-shadow: 0 0.25rem 1rem rgba(8,145,178,.4);
  display: flex; align-items: center; justify-content: center;
  animation: pulse-teal 3s infinite 1s;
}
.float-btn-phone:hover { background: #0E7490; animation: none; }
@keyframes pulse-blue {
  0%,100% { box-shadow: var(--shadow-blue); }
  50% { box-shadow: 0 0.5rem 2rem rgba(27,79,216,.45); }
}
@keyframes pulse-teal {
  0%,100% { box-shadow: 0 0.25rem 1rem rgba(8,145,178,.4); }
  50% { box-shadow: 0 0.375rem 1.5rem rgba(8,145,178,.6); }
}
@media (min-width: 768px) {
  .float-btn-record { font-size: 1rem; padding: 0.9375rem 1.75rem; }
}

/* ── Accessibility Float Button ── */
.a11y-toggle {
  position: fixed; bottom: var(--sp-6); left: var(--sp-6); z-index: 900;
  width: 3rem; height: 3rem; border-radius: var(--r-full);
  background: var(--text-dark); color: white;
  box-shadow: var(--shadow-md); transition: all var(--dur-fast);
  display: flex; align-items: center; justify-content: center;
}
.a11y-toggle:hover { background: var(--primary); }
.a11y-panel {
  position: fixed; bottom: 4.25rem; left: var(--sp-6); z-index: 900;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-4); box-shadow: var(--shadow-lg);
  min-width: 13.75rem; display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel-title { font-size: .8rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: .05em; }
.a11y-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-2) 0; font-size: .9rem; color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}
.a11y-option:last-child { border-bottom: none; }

/* ── Hero ── */
.hero {
  /* Высота первого экрана: 50rem = 800px при опорном окне, растёт вместе с вёрсткой.
     На мобильном возвращаем привязку к высоте окна — см. @media ниже. */
  min-height: calc(50rem - var(--header-h));
  display: flex; align-items: center;
  background: linear-gradient(160deg, #EFF6FF 0%, #F5F3FF 40%, #ECFEFF 100%);
  position: relative; overflow: hidden;
  padding: var(--sp-12) 0;
}

@media (max-width: 860px) {
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
}

.hero::before {
  content: ''; position: absolute; top: -12.5rem; right: -12.5rem;
  width: 37.5rem; height: 37.5rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,79,216,.08) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -6.25rem; left: -6.25rem;
  width: 25rem; height: 25rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: center; position: relative; z-index: 1;
}
@media (min-width: 861px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } }
.hero-label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.hero-label::before { content: ''; width: 1.5rem; height: 0.125rem; background: var(--primary); border-radius: 0.125rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin-bottom: var(--sp-5); }
.hero-title em { font-style: normal; background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--sp-8); max-width: 32.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
/* На ПК обе кнопки держим в одной строке: колонка первого экрана узкая,
   поэтому боковые отступы у них чуть меньше обычных. На мобильном перенос нужен. */
@media (min-width: 861px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { padding-inline: 2rem; white-space: nowrap; }
}
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.trust-item { display: flex; align-items: center; gap: var(--sp-2); }
.trust-num { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 800; color: var(--text-dark); }
.trust-label { font-size: .8125rem; color: var(--text-muted); line-height: 1.3; }

.hero-visual { position: relative; }
.hero-card-main {
  background: var(--white); border-radius: var(--r-xl); padding: var(--sp-8);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  min-height: 25rem; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-card-main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 15rem;
  background: linear-gradient(160deg, var(--primary-light), var(--violet-light));
  border-radius: var(--r-xl) var(--r-xl) 50% 50% / var(--r-xl) var(--r-xl) 2.5rem 2.5rem;
}
.hero-med-cross {
  position: absolute; top: var(--sp-8); left: 50%; transform: translateX(-50%);
  width: 6.25rem; height: 6.25rem;
}
.hero-float-badge {
  position: absolute; background: white; border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--sp-2); white-space: nowrap;
}
.hero-float-badge.b1 { top: var(--sp-8); right: -var(--sp-4); }
.hero-float-badge.b2 { bottom: 8.75rem; left: -var(--sp-8); }
.float-badge-icon { width: 2rem; height: 2rem; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-badge-text { font-size: .8125rem; font-weight: 600; color: var(--text-dark); }
.float-badge-sub { font-size: .75rem; color: var(--text-muted); }
.hero-doctor-card { position: relative; z-index: 1; background: var(--white); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; align-items: center; gap: var(--sp-4); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.doctor-avatar { width: 3.25rem; height: 3.25rem; border-radius: var(--r-full); background: linear-gradient(135deg, var(--primary-light), var(--violet-light)); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.doctor-name { font-weight: 700; font-size: .9375rem; color: var(--text-dark); }
.doctor-spec { font-size: .8125rem; color: var(--text-muted); }
.doctor-rating { display: flex; align-items: center; gap: 0.25rem; font-size: .8125rem; color: var(--warning); margin-top: 0.125rem; }

/* ── Advantage Strip ── */
.advantages { background: var(--primary); }
.advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); }
@media (min-width: 768px) { .advantages-grid { grid-template-columns: repeat(4, 1fr); } }
.adv-item { background: var(--primary); padding: var(--sp-6) var(--sp-6); text-align: center; }
.adv-icon { width: 3rem; height: 3rem; background: rgba(255,255,255,.15); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-3); color: white; }
.adv-title { font-size: .9375rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.adv-text { font-size: .8125rem; color: rgba(255,255,255,.7); line-height: 1.5; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 861px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: all var(--dur) var(--ease); }
.service-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-card-header { padding: var(--sp-6); background: linear-gradient(135deg, var(--primary-light), var(--violet-light)); position: relative; overflow: hidden; }
.service-card-icon { width: 3.5rem; height: 3.5rem; background: white; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); margin-bottom: var(--sp-4); }
.service-card-icon svg { color: var(--primary); }
.service-card-title { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); }
.service-card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.service-card-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: var(--sp-4); }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; }
.service-price { font-size: .9rem; color: var(--text-muted); }
.service-price strong { display: block; font-size: 1.125rem; color: var(--text-dark); }
.service-symptoms { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.symptom-tag { padding: 0.25rem 0.625rem; background: var(--bg); border-radius: var(--r-full); font-size: .8125rem; color: var(--text-muted); border: 1px solid var(--border); }

/* ── Doctors ── */
.doctors-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 861px) { .doctors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 861px) { .doctors-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Doctors slider (главная) ── */
.doctors-slider { position: relative; --dslider-cols: 1; }
@media (min-width: 640px) { .doctors-slider { --dslider-cols: 2; } }
@media (min-width: 861px) { .doctors-slider { --dslider-cols: 4; } }
.doctors-track { display: flex; gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.doctors-track::-webkit-scrollbar { display: none; }
.doctors-track .doctor-card { flex: 0 0 calc((100% - (var(--dslider-cols) - 1) * var(--sp-5)) / var(--dslider-cols)); scroll-snap-align: start; }
.doctors-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--white); color: var(--primary); cursor: pointer; box-shadow: var(--shadow-md); transition: all var(--dur) var(--ease); }
.doctors-slider-prev { left: -1.375rem; }
.doctors-slider-next { right: -1.375rem; }
.doctors-slider-arrow:hover:not(:disabled) { background: var(--primary); color: var(--white); border-color: var(--primary); }
.doctors-slider-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 639px) { .doctors-slider-prev { left: -8px; } .doctors-slider-next { right: -8px; } }

.doctor-card { border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--border); transition: all var(--dur) var(--ease); display: flex; flex-direction: column; }
.doctor-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); }
.doctor-card-photo { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--primary-light) 0%, var(--violet-light) 100%); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.doctor-photo-placeholder { width: 10rem; position: absolute; bottom: 0; }
.doctor-exp-badge { position: absolute; top: var(--sp-4); right: var(--sp-4); background: white; border-radius: var(--r-md); padding: 0.375rem 0.75rem; font-size: .8125rem; font-weight: 700; color: var(--primary); box-shadow: var(--shadow-sm); }
.doctor-card-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.doctor-card-name { font-size: 1.0625rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.doctor-card-spec { font-size: .875rem; color: var(--primary); font-weight: 500; margin-bottom: var(--sp-3); }
.doctor-card-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--sp-4); }
.doctor-card-actions { display: flex; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-4); }
.doctor-card-actions .btn { flex: 1; }
.doctors-empty { text-align: center; padding: var(--sp-16) 0; color: var(--text-muted); }
.doctors-empty .btn { margin-top: var(--sp-4); }
.doctor-stats { display: flex; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); margin-bottom: var(--sp-4); }
.doctor-stat { text-align: center; flex: 1; }
.doctor-stat-num { font-weight: 800; font-size: 1.125rem; color: var(--text-dark); display: block; }
.doctor-stat-label { font-size: .75rem; color: var(--text-muted); }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 861px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: var(--white); border-radius: var(--r-lg); padding: var(--sp-6); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.review-stars { display: flex; gap: 0.1875rem; color: var(--warning); margin-bottom: var(--sp-3); }
.review-text { font-size: .9375rem; color: var(--text-body); line-height: 1.7; margin-bottom: var(--sp-5); font-style: italic; }
.review-text::before { content: '"'; font-size: 2rem; color: var(--primary); line-height: 0; vertical-align: -0.5em; margin-right: 0.125rem; }
.review-author { display: flex; align-items: center; gap: var(--sp-3); }
.review-avatar { width: 2.5rem; height: 2.5rem; border-radius: var(--r-full); background: linear-gradient(135deg, var(--primary-light), var(--violet-light)); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.review-name { font-weight: 600; font-size: .9rem; color: var(--text-dark); }
.review-date { font-size: .8125rem; color: var(--text-muted); }
.review-platform { font-size: .75rem; color: var(--text-light); }

/* ── How It Works ── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); position: relative; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-item { text-align: center; position: relative; }
.step-num {
  width: 3.75rem; height: 3.75rem; border-radius: var(--r-full);
  background: var(--primary); color: white;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4); position: relative; z-index: 1;
  box-shadow: 0 0.25rem 1rem rgba(27,79,216,.3);
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-2); }
.step-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
@media (min-width: 768px) {
  .steps-grid::before {
    content: ''; position: absolute; top: 1.8125rem; left: calc(12.5% + 1.875rem); right: calc(12.5% + 1.875rem);
    height: 0.125rem; background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 0.5rem, transparent 0.5rem, transparent 1rem);
    z-index: 0;
  }
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #312E81 60%, var(--violet) 100%);
  border-radius: var(--r-xl); padding: var(--sp-12) var(--sp-8);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -3.75rem; right: -3.75rem;
  width: 18.75rem; height: 18.75rem; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -5rem; left: -2.5rem;
  width: 15.625rem; height: 15.625rem; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-content { position: relative; z-index: 1; max-width: 37.5rem; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2.25rem); color: white; margin-bottom: var(--sp-4); }
.cta-desc { color: rgba(255,255,255,.8); font-size: 1.0625rem; line-height: 1.6; margin-bottom: var(--sp-6); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.cta-badge { display: flex; align-items: center; gap: var(--sp-2); color: rgba(255,255,255,.8); font-size: .875rem; }
.cta-badge svg { color: rgba(255,255,255,.6); flex-shrink: 0; }

/* ── Prices Table ── */
.price-table { width: 100%; border-collapse: collapse; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.price-table thead { background: var(--primary); color: white; }
.price-table thead th { padding: var(--sp-4) var(--sp-5); text-align: left; font-size: .875rem; font-weight: 600; }
.price-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--dur-fast); }
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: var(--primary-light); }
.price-table tbody td { padding: var(--sp-4) var(--sp-5); font-size: .9375rem; color: var(--text-body); vertical-align: top; }
.price-table tbody td:first-child { color: var(--text-dark); font-weight: 500; }
.price-table tbody td.price-val { font-weight: 700; color: var(--primary); white-space: nowrap; }
.price-category { background: var(--bg) !important; }
.price-category td { font-weight: 700; color: var(--text-dark) !important; font-size: .875rem !important; text-transform: uppercase; letter-spacing: .05em; padding: var(--sp-3) var(--sp-5) !important; }
.price-table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ── Articles ── */
.article-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 861px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { border-radius: var(--r-lg); overflow: hidden; background: white; border: 1px solid var(--border); display: flex; flex-direction: column; transition: all var(--dur) var(--ease); }
.article-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); }
.article-thumb { height: 12.5rem; background: linear-gradient(135deg, var(--primary-light), var(--violet-light)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.article-thumb-icon { width: 5rem; height: 5rem; background: white; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.article-thumb-icon svg { color: var(--primary); }
.article-thumb-cat { position: absolute; top: var(--sp-4); left: var(--sp-4); }
.article-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.article-date { font-size: .8125rem; color: var(--text-light); margin-bottom: var(--sp-2); }
.article-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-3); line-height: 1.4; flex: 1; }
.article-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: var(--sp-4); }
.article-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-3); border-top: 1px solid var(--border-light); margin-top: auto; }
.article-read { font-size: .875rem; color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }

/* ── Category Filters ── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.filter-tab {
  padding: 0.5rem 1.125rem; border-radius: var(--r-full); font-size: .875rem; font-weight: 500;
  border: 0.09375rem solid var(--border); color: var(--text-muted); background: white;
  transition: all var(--dur-fast); cursor: pointer;
}
.filter-tab:hover, .filter-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── Trust Block ── */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-block { background: white; border-radius: var(--r-lg); padding: var(--sp-6); border: 1px solid var(--border); text-align: center; }
.trust-icon { width: 3.5rem; height: 3.5rem; border-radius: var(--r-md); margin: 0 auto var(--sp-3); display: flex; align-items: center; justify-content: center; }
.trust-block-num { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--text-dark); }
.trust-block-label { font-size: .875rem; color: var(--text-muted); line-height: 1.4; margin-top: 0.25rem; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--violet-light) 100%);
  padding: var(--sp-12) 0 var(--sp-10);
}
.page-hero-title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: var(--sp-4); }
.page-hero-desc { font-size: 1.0625rem; color: var(--text-muted); max-width: 35rem; line-height: 1.7; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: .875rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }

/* ── Service Detail ── */
.service-detail-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: start; }
@media (min-width: 861px) { .service-detail-grid { grid-template-columns: 1fr 21.25rem; } }
@media (max-width: 860px) { .sidebar-sticky { position: static !important; } }
.service-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.sidebar-sticky { position: sticky; top: 6.25rem; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); padding: var(--sp-6); box-shadow: var(--shadow-sm); margin-bottom: var(--sp-5); }
.sidebar-price-label { font-size: .8125rem; color: var(--text-muted); margin-bottom: var(--sp-2); }
.sidebar-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: var(--sp-1); }
.sidebar-price-from { font-size: .875rem; color: var(--text-muted); }
.sidebar-price-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: var(--sp-4); }
.sidebar-price-value-sm { font-size: 1.2rem; }
.sidebar-price-note { font-size: .75rem; color: var(--text-muted); margin-top: var(--sp-2); }
.sidebar-section-label { font-weight: 700; font-size: .875rem; color: var(--text-dark); margin-bottom: var(--sp-3); }
.sidebar-work-hours { font-size: .9rem; color: var(--text-body); line-height: 1.7; }
.trust-badge-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.trust-badge-item { display: flex; align-items: center; gap: 0.375rem; background: #F0FDF4; color: #166534; border-radius: 1.25rem; padding: 0.375rem 0.75rem; font-size: .75rem; font-weight: 600; }

/* Подуслуги */
.sidebar-subservices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.sidebar-subservice-link { display: flex; align-items: center; gap: var(--sp-2); font-size: .875rem; color: var(--text-body); text-decoration: none; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.sidebar-subservice-link:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-subservice-link svg { color: var(--primary); flex-shrink: 0; }

/* Схема лечения (таймлайн) */
.sidebar-timeline { list-style: none; padding: 0; margin: 0; }
.sidebar-timeline-item { display: flex; gap: var(--sp-3); align-items: flex-start; padding-bottom: var(--sp-4); position: relative; }
.sidebar-timeline-item:not(.sidebar-timeline-item--last)::before { content: ''; position: absolute; left: 0.9375rem; top: 1.875rem; bottom: 0; width: 0.125rem; background: var(--border); }
.sidebar-timeline-dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.sidebar-timeline-content { padding-top: 0.375rem; }
.sidebar-timeline-title { font-size: .875rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.125rem; }
.sidebar-timeline-desc { font-size: .775rem; color: var(--text-muted); line-height: 1.5; }

/* Почему выбирают нас */
.sidebar-advantages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.sidebar-advantages li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: .85rem; color: var(--text-body); line-height: 1.5; }
.sidebar-adv-icon { width: 1.875rem; height: 1.875rem; border-radius: var(--r-md); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* TOC статьи */
.article-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; counter-reset: toc-counter; }
.article-toc-item { counter-increment: toc-counter; }
.article-toc-link { display: block; font-size: .8125rem; color: var(--text-body); text-decoration: none; padding: 0.3125rem var(--sp-3); border-radius: var(--r-md); line-height: 1.45; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.article-toc-link:hover { background: var(--primary-light); color: var(--primary); }
.article-toc-link::before { content: counter(toc-counter) '. '; color: var(--primary); font-weight: 600; font-size: .75rem; }
.article-toc-item--sub .article-toc-link { padding-left: var(--sp-6); font-size: .775rem; }
.article-toc-item--sub .article-toc-link::before { content: none; }
.service-full-desc h2, .service-full-desc h3 { font-family: var(--font-heading); color: var(--text-dark); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.service-full-desc p { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--sp-4); }
.service-full-desc ul { padding-left: var(--sp-6); margin-bottom: var(--sp-4); color: var(--text-muted); line-height: 1.8; }
.service-no-desc { color: var(--text-muted); line-height: 1.8; }
.service-tags-section { margin-top: var(--sp-8); }
.service-content-section { margin-top: var(--sp-10); }
.service-subsection-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-dark); margin-bottom: var(--sp-4); }
.service-section-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-dark); margin-bottom: var(--sp-6); }
.service-section-heading { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); margin-bottom: var(--sp-6); }
.service-specialist-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.service-specialist-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: center; }
.service-specialist-avatar { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: linear-gradient(135deg, #EFF6FF, #DBEAFE); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-specialist-info { flex: 1; min-width: 0; }
.service-specialist-name { font-weight: 700; color: var(--text-dark); }
.service-specialist-specialty { font-size: .85rem; color: var(--primary); margin-top: 0.125rem; }
/* ── Price List ── */
.price-list-block { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-list-group { border-bottom: 0.125rem solid var(--border); }
.price-list-group:last-child { border-bottom: none; }
.price-list-group-title { padding: var(--sp-3) var(--sp-5); background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); font-size: .9375rem; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid #BFDBFE; }
.price-list-table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
.price-list-table tr { border-bottom: 1px solid var(--border); transition: background var(--dur-fast) var(--ease); }
.price-list-table tr:last-child { border-bottom: none; }
.price-list-table tr:nth-child(even) { background: var(--bg); }
.price-list-table tr:hover { background: #EFF6FF; }
.price-list-td-name { padding: var(--sp-3) var(--sp-5); font-size: .9375rem; color: var(--text-body); width: 70%; }
.price-list-td-price { padding: var(--sp-3) var(--sp-5); font-size: .9375rem; font-weight: 700; color: var(--primary); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.price-list-note { font-size: .8125rem; font-weight: 400; color: var(--text-muted); }
.price-list-td-on-request { font-weight: 400; color: var(--text-muted); }

/* ── Service Content Blocks ── */

/* type: text */
.svc-content-block { display: flex; flex-direction: column; gap: var(--sp-3); }
.svc-content-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-4) var(--sp-5); font-size: .9375rem; color: var(--text-body); line-height: 1.7; }
.svc-content-item p { margin: 0 0 var(--sp-2); }
.svc-content-item p:last-child { margin-bottom: 0; }
.svc-content-item ul, .svc-content-item ol { margin: 0 0 var(--sp-2); padding-left: var(--sp-5); }
.svc-content-item li { margin-bottom: var(--sp-1); }

/* symptoms-list */
.symptoms-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.symptoms-list li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: #FEF2F2; border-radius: var(--radius-lg); font-size: 0.9375rem; color: var(--text-dark); }
.symptoms-list li svg { flex-shrink: 0; }

/* stages-list */
.stages-list { display: flex; flex-direction: column; gap: var(--sp-4); counter-reset: stage; }
.stage-item { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); }
.stage-num { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.stage-body h4 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--text-dark); }
.stage-body p { margin: 0; font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* type: list (callout with icon) */
.svc-list-block { display: flex; flex-direction: column; gap: var(--sp-3); }
.svc-list-item { background: #EFF6FF; border-left: 0.25rem solid var(--primary); border-radius: 0 var(--r-xl) var(--r-xl) 0; padding: var(--sp-4) var(--sp-5); display: flex; align-items: flex-start; gap: var(--sp-3); }
.svc-list-icon { flex-shrink: 0; display: flex; align-items: center; }
.svc-list-text { color: var(--text-muted); line-height: 1.65; font-size: .9375rem; }

/* type: quote (callout with label) */
.svc-quote-block { display: flex; flex-direction: column; gap: var(--sp-3); }
.svc-quote-item { background: #EFF6FF; border-left: 0.25rem solid var(--primary); border-radius: 0 var(--r-xl) var(--r-xl) 0; padding: var(--sp-4) var(--sp-5); font-size: .9375rem; line-height: 1.65; }
.svc-quote-label { color: var(--primary); }
.svc-quote-text { color: var(--text-muted); }

/* type: grid */
.svc-grid-block { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--sp-4); }
.how-we-treat { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 600px) { .how-we-treat { grid-template-columns: 1fr; } }
.treat-item { padding: var(--sp-4); background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); display: flex; gap: var(--sp-3); align-items: flex-start; }
.treat-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg); background: #EFF6FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.treat-title { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.125rem; color: var(--text-dark); }
.treat-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.svc-grid-item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); }
.svc-grid-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; background: #EFF6FF; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; }
.svc-grid-title { font-weight: 600; font-size: .9375rem; color: var(--text-dark); margin-bottom: var(--sp-1); }
.svc-grid-desc { color: var(--text-muted); font-size: .875rem; line-height: 1.55; }

/* type: list_numbered (stages) */
.svc-stages-block { display: flex; flex-direction: column; }
.svc-stage-item { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.svc-stage-item:last-child { border-bottom: none; }
.svc-stage-num { flex-shrink: 0; width: 2.5rem; height: 2.5rem; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.svc-stage-body { flex: 1; }
.svc-stage-title { font-weight: 600; font-size: .9375rem; color: var(--text-dark); margin-bottom: var(--sp-1); }
.svc-stage-desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); overflow: hidden; margin-bottom: var(--sp-3); }
.faq-item summary { padding: var(--sp-4) var(--sp-5); font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); background: var(--bg-card); transition: background var(--dur) var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg); }
.faq-item[open] summary { background: #EFF6FF; color: var(--primary); }
.faq-item summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--primary); transition: transform var(--dur) var(--ease); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: var(--sp-4) var(--sp-5); color: var(--text-muted); line-height: 1.7; font-size: .9375rem; background: var(--bg-card); }

/* ── Service Schedule ── */
.schedule-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.schedule-table { width: 100%; border-collapse: collapse; background: var(--bg-card); white-space: nowrap; }
.schedule-table thead tr { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
.schedule-table thead th { padding: var(--sp-3) var(--sp-4); font-size: .8125rem; font-weight: 700; color: var(--text-dark); border-bottom: 0.125rem solid #BFDBFE; text-align: center; letter-spacing: .02em; }
.schedule-table thead th:first-child { text-align: left; min-width: 10rem; }
.schedule-th--weekend { color: #DC2626; }
.schedule-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--dur-fast) var(--ease); }
.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table tbody tr:nth-child(even) { background: var(--bg); }
.schedule-table tbody tr:hover { background: #EFF6FF; }
.schedule-td-name { padding: var(--sp-3) var(--sp-4); font-size: .9375rem; font-weight: 600; color: var(--text-dark); border-right: 0.125rem solid #BFDBFE; white-space: normal; min-width: 10rem; }
.schedule-td-time { padding: var(--sp-3) var(--sp-4); font-size: .875rem; color: var(--text-dark); text-align: center; font-variant-numeric: tabular-nums; }
.schedule-td-empty { background: var(--bg); color: var(--text-muted); }

/* ── Contacts ── */
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 861px) { .contacts-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } }
.contact-card { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5); background: white; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-icon { width: 3rem; height: 3rem; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-title { font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.contact-value { font-size: .9375rem; color: var(--text-body); }
.contact-value a { color: var(--primary); font-weight: 600; }
.map-placeholder { height: 26.25rem; background: var(--bg); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }

/* ── About / Company ── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: center; }
@media (min-width: 861px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-16); } }
.about-visual { position: relative; }
.about-main-img { width: 100%; border-radius: var(--r-xl); overflow: hidden; }
.about-stat-badge { position: absolute; background: white; border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-md); }
.about-stat-badge.b1 { bottom: var(--sp-8); right: -var(--sp-6); }
.about-stat-badge.b2 { top: var(--sp-8); left: -var(--sp-6); }
.about-list { display: flex; flex-direction: column; gap: var(--sp-4); margin: var(--sp-6) 0; }
.about-list-item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.about-check { width: 1.5rem; height: 1.5rem; background: var(--success-light); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.125rem; }
.about-check svg { color: var(--success); }

/* ── Promotions ── */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 861px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card { border-radius: var(--r-lg); overflow: hidden; background: white; border: 1px solid var(--border); transition: all var(--dur); }
.promo-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); }
.promo-card-header { padding: var(--sp-6); background: linear-gradient(135deg, var(--primary), var(--violet)); position: relative; overflow: hidden; min-height: 8.75rem; display: flex; flex-direction: column; justify-content: flex-end; }
.promo-discount { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: white; line-height: 1; margin-bottom: var(--sp-2); }
.promo-discount-label { font-size: .875rem; color: rgba(255,255,255,.8); }
.promo-card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.promo-card-title { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-2); }
.promo-card-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--sp-4); }
.promo-expires { font-size: .8125rem; color: var(--text-light); display: flex; align-items: center; gap: 0.25rem; margin-bottom: var(--sp-4); }
.promo-card.expired .promo-card-header { background: linear-gradient(135deg, #94A3B8, #64748B); }
.promo-card.expired .promo-card-body { opacity: .65; }

/* ── Utility ── */
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.breadcrumb-link { color: var(--primary); text-decoration: none; }
.breadcrumb-link:hover { text-decoration: underline; }
.price-row:hover { background: var(--bg); }
.text-primary { color: var(--primary) !important; }
.text-violet { color: var(--violet) !important; }
.text-teal { color: var(--teal) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-surface { background: var(--bg); }
.divider { height: 1px; background: var(--border); margin: var(--sp-8) 0; }
.mt-auto { margin-top: auto; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.section-head { margin-bottom: var(--sp-10); }
/* срез снизу, а не по центру: голова врача остаётся в кадре при любой пропорции снимка */
.doctor-card-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.doctor-card-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.doctor-card-photo-placeholder--blue { background: linear-gradient(160deg, #EFF6FF, #DBEAFE); }

/* ── Specialist detail page ── */
.doctor-detail-grid { display: grid; grid-template-columns: 1fr 20rem; gap: var(--sp-10); align-items: start; }
@media (max-width: 860px) { .doctor-detail-grid { grid-template-columns: 1fr; } .doctor-detail-grid .sidebar-sticky { position: static !important; } }
.sidebar-sticky { position: sticky; top: 6.25rem; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; padding: var(--sp-6); margin-bottom: var(--sp-5); box-shadow: var(--shadow-sm); }
.doctor-full-desc h2, .doctor-full-desc h3 { font-family: var(--font-heading); color: var(--text-dark); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.doctor-full-desc p { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--sp-4); }
.doctor-full-desc ul { padding-left: var(--sp-6); margin-bottom: var(--sp-4); color: var(--text-muted); line-height: 1.8; }

.doctor-detail-head { display: flex; gap: var(--sp-8); align-items: flex-start; margin-bottom: var(--sp-10); flex-wrap: wrap; }
.doctor-detail-photo { width: 11.25rem; height: 13.75rem; border-radius: var(--r-xl); overflow: hidden; flex-shrink: 0; background: linear-gradient(160deg, #EFF6FF, #DBEAFE); }
.doctor-detail-info { flex: 1; }
.doctor-detail-name { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); margin-bottom: var(--sp-2); }
.doctor-detail-spec { color: var(--primary); font-weight: 600; margin-bottom: var(--sp-4); }
.doctor-detail-stats { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.doctor-detail-stat { border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); text-align: center; }
.doctor-detail-stat--blue { background: #EFF6FF; }
.doctor-detail-stat--green { background: #ECFDF5; }
.doctor-detail-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.doctor-detail-stat-num--price { font-size: 1.1rem; color: #059669; }
.doctor-detail-stat-label { font-size: .75rem; color: var(--text-muted); }
.doctor-detail-desc { color: var(--text-muted); line-height: 1.8; }

.doctor-section { margin-top: var(--sp-10); }
.doctor-section-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-dark); margin-bottom: var(--sp-6); }
.doctor-edu-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.doctor-edu-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-start; }
.doctor-edu-icon { width: 2.5rem; height: 2.5rem; background: #EFF6FF; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doctor-edu-text1 { font-weight: 600; color: var(--text-dark); }
.doctor-edu-text2 { font-size: .85rem; color: var(--text-muted); margin-top: 0.125rem; }
.doctor-services-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.symptom-tag-link { text-decoration: none; }

.sidebar-price-label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.sidebar-price-main { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: var(--sp-2); }
.sidebar-price-second { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: var(--sp-2); }
.sidebar-price-sub { font-size: .75rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.sidebar-price-empty { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-4); }
.sidebar-btn-full { width: 100%; }
.sidebar-btn-full--mt { width: 100%; margin-top: var(--sp-3); }
.sidebar-services-title { font-weight: 700; font-size: 0.875rem; color: var(--text-dark); margin-bottom: var(--sp-4); }

/* ── Stocks page ── */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .promo-grid { grid-template-columns: 1fr; } }
.promo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); display: flex; flex-direction: column; }
.promo-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); }
.promo-card.expired { opacity: .55; pointer-events: none; }
.promo-card.expired:hover { transform: none; box-shadow: var(--shadow-sm); }
.promo-header { padding: var(--sp-6); position: relative; min-height: 6.875rem; display: flex; flex-direction: column; justify-content: space-between; }
.promo-header--expired { background: linear-gradient(135deg, #6B7280, #9CA3AF); }
.promo-header--g0 { background: linear-gradient(135deg, #1B4FD8, #2563EB); }
.promo-header--g1 { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }
.promo-header--g2 { background: linear-gradient(135deg, #059669, #10B981); }
.promo-header--g3 { background: linear-gradient(135deg, #0891B2, #06B6D4); }
.promo-header--g4 { background: linear-gradient(135deg, #D97706, #F59E0B); }
.promo-header--g5 { background: linear-gradient(135deg, #DC2626, #EF4444); }
.promo-badge { display: inline-flex; align-items: center; gap: var(--sp-2); background: rgba(255,255,255,.2); color: white; border-radius: 1.25rem; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; backdrop-filter: blur(0.25rem); width: fit-content; }
.promo-discount { font-size: 3.5rem; font-weight: 900; color: white; line-height: 1; text-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.2); }
.promo-discount--sm { font-size: 2rem; }
.promo-discount sup { font-size: 1.5rem; vertical-align: super; }
.expired-stamp { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%) rotate(-15deg); background: rgba(0,0,0,.35); color: white; border: 0.125rem solid rgba(255,255,255,.5); border-radius: 0.5rem; padding: 0.375rem 0.875rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.promo-body { padding: var(--sp-5) var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.promo-title { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: var(--sp-2); }
.promo-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: var(--sp-4); }
.promo-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.promo-price-row { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.promo-price-new { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.promo-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.promo-section-label { font-size: 0.6875rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); margin-top: var(--sp-8); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border); }
.promo-section-label:first-child { margin-top: 0; }
.promo-section-label--gap { margin-top: var(--sp-12); }
.promo-counter { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4); background: #FFF7ED; border-radius: 0; margin-bottom: var(--sp-4); border: 1px solid #FED7AA; }
.promo-counter-icon { color: #EA580C; flex-shrink: 0; }
.promo-counter-text { font-size: 0.8125rem; color: #C2410C; font-weight: 600; }
.promo-btn-full { width: 100%; margin-top: auto; }
.promo-empty { text-align: center; padding: var(--sp-16) 0; color: var(--text-muted); }
.promo-empty-cta { margin-top: var(--sp-4); }
.promo-subscribe { margin-top: var(--sp-12); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: var(--sp-8); text-align: center; }
.promo-subscribe-label { margin-bottom: var(--sp-3); }
.promo-subscribe-title { font-size: 1.25rem; margin-bottom: var(--sp-3); color: var(--text-dark); }
.promo-subscribe-desc { color: var(--text-muted); margin-bottom: var(--sp-6); max-width: 30rem; margin-left: auto; margin-right: auto; }
.promo-subscribe-form { display: flex; gap: var(--sp-3); max-width: 26.25rem; margin: 0 auto; flex-wrap: wrap; }
.promo-subscribe-input { flex: 1; min-width: 12.5rem; }
.promo-subscribe-input.is-error { border-color: #DC2626; }
.promo-subscribe-btn { white-space: nowrap; }
.promo-subscribe-error { font-size: 0.75rem; color: #DC2626; margin-top: var(--sp-2); display: none; }
.promo-subscribe-error.is-shown { display: block; }
.promo-subscribe-note { font-size: 0.75rem; color: var(--text-muted); margin-top: var(--sp-3); }

/* ── Contacts page ── */
.contacts-layout { display: grid; grid-template-columns: 1fr 26.25rem; gap: var(--sp-8); align-items: start; }
@media (max-width: 860px) { .contacts-layout { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--bg-card); border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.contact-info-header { background: linear-gradient(135deg, var(--primary), #2563EB); padding: var(--sp-6) var(--sp-8); color: #fff; }
.contact-info-header h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: var(--sp-2); color: #fff; }
.contact-info-header p { color: rgba(255, 255, 255, .92); font-size: .95rem; line-height: 1.55; font-weight: 500; margin: 0; }
.contact-info-body { padding: var(--sp-6) var(--sp-8); }
.contact-row { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--border-light); }
.contact-row:last-child { border-bottom: none; }
.contact-row-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row-icon--blue { background: #EFF6FF; }
.contact-row-icon--teal { background: #ECFEFF; }
.contact-row-icon--green { background: #ECFDF5; }
.contact-row-icon--amber { background: #FEF3C7; }
.contact-row-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 0.25rem; }
.contact-row-value { font-size: 1rem; font-weight: 600; color: var(--text-dark); line-height: 1.5; }
.contact-row-value a { color: var(--primary); text-decoration: none; }
.contact-row-value a:hover { text-decoration: underline; }
.contact-row-phones { display: flex; flex-direction: column; gap: 0.125rem; }
.contact-msg-list { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: 0.25rem; }
.contact-msg-btn { padding: 0.5rem 1rem; font-size: .8rem; }
.contact-msg-btn--telegram { border-color: var(--teal); color: var(--teal); }

.map-wrap { background: var(--bg-card); border-radius: var(--r-xl); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.map-mock { width: 100%; height: 100%; background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 40%, #E0E7FF 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: var(--sp-4); position: relative; }
.map-pin { width: 3rem; height: 3rem; background: var(--primary); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0.5rem 1.25rem rgba(27,79,216,.4); display: flex; align-items: center; justify-content: center; }
.map-pin-inner { width: 1.25rem; height: 1.25rem; background: #fff; border-radius: 50%; transform: rotate(45deg); }
.map-grid-line { position: absolute; background: rgba(27,79,216,.06); }
.map-grid-line--h { left: 0; right: 0; height: 1px; }
.map-grid-line--h1 { top: 25%; }
.map-grid-line--h2 { top: 50%; }
.map-grid-line--h3 { top: 75%; }
.map-grid-line--v { top: 0; bottom: 0; width: 1px; }
.map-grid-line--v1 { left: 20%; }
.map-grid-line--v2 { left: 40%; }
.map-grid-line--v3 { left: 60%; }
.map-grid-line--v4 { left: 80%; }
.map-road { position: absolute; background: rgba(255,255,255,.7); border-radius: 0.125rem; }
.map-road--h-main { top: 38%; left: 0; right: 0; height: 0.625rem; }
.map-road--v-main { top: 0; bottom: 0; left: 38%; width: 0.5rem; }
.map-road--v-alt { top: 0; bottom: 0; left: 62%; width: 0.3125rem; background: rgba(255,255,255,.5); }
.map-road--h-alt { top: 62%; left: 0; right: 0; height: 0.375rem; background: rgba(255,255,255,.5); }
.map-pin-stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.375rem; z-index: 2; }
.map-pin-card { background: #fff; border-radius: var(--r-md); padding: 0.5rem 1rem; box-shadow: var(--shadow-md); text-align: center; }
.map-pin-card-name { font-weight: 700; color: var(--text-dark); font-size: .9rem; }
.map-pin-card-addr { font-size: .75rem; color: var(--text-muted); }
.map-address-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: var(--sp-2); }
.company-requisites { margin-top: var(--sp-6); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6); }
.company-requisites-title { font-weight: 700; color: var(--text-dark); font-size: 1.05rem; margin-bottom: var(--sp-4); }
.company-requisites-list { margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.company-requisites-row { display: grid; grid-template-columns: 12.5rem 1fr; gap: var(--sp-3); align-items: baseline; }
.company-requisites-row dt { color: var(--text-muted); font-size: .875rem; margin: 0; }
.company-requisites-row dd { color: var(--text-dark); font-size: .9375rem; margin: 0; word-break: break-word; }
@media (max-width: 600px) { .company-requisites-row { grid-template-columns: 1fr; gap: 2px; } }
.contacts-feedback { margin-top: var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-start; background: rgba(27, 79, 216, .05); border: 1px solid rgba(27, 79, 216, .15); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6); }
.contacts-feedback-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); background: rgba(27, 79, 216, .1); display: flex; align-items: center; justify-content: center; }
.contacts-feedback p { margin: 0; color: var(--text-dark); font-size: .9375rem; line-height: 1.6; }
.contacts-feedback a { color: var(--primary); font-weight: 600; }
.contacts-feedback a:hover { text-decoration: underline; }

.contacts-side { display: flex; flex-direction: column; gap: var(--sp-6); }
.transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: var(--sp-4); margin-top: var(--sp-8); }
.transport-card { background: var(--bg-card); border-radius: var(--r-lg); border: 1px solid var(--border); padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-start; }
.transport-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feedback-form-card { background: var(--bg-card); border-radius: var(--r-xl); border: 1px solid var(--border); padding: var(--sp-8); box-shadow: var(--shadow); }
.feedback-form-head { margin-bottom: var(--sp-5); }
.feedback-form-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-1); }
.feedback-form-sub { font-size: .875rem; color: var(--text-muted); }
.feedback-textarea { resize: vertical; min-height: 6.25rem; }
.feedback-submit { width: 100%; }
.feedback-policy { font-size: .75rem; color: var(--text-light); margin-top: var(--sp-3); text-align: center; }
.feedback-success { display: none; text-align: center; padding: var(--sp-6) 0; }
.feedback-success.is-shown { display: block; }
.feedback-success-icon { width: 3.5rem; height: 3.5rem; background: #ECFDF5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-4); }
.feedback-success-title { color: var(--text-dark); margin-bottom: var(--sp-2); }
.feedback-success-text { color: var(--text-muted); font-size: .9rem; }
.feedback-success-link { color: var(--primary); font-weight: 600; }
.is-hidden { display: none !important; }

.urgent-card { background: linear-gradient(135deg, #FEF2F2, #FEE2E2); border: 1px solid #FECACA; border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-8); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.urgent-card-info { display: flex; align-items: center; gap: var(--sp-4); }
.urgent-card-icon { width: 3rem; height: 3rem; background: #FEE2E2; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.urgent-card-title { font-weight: 700; color: #991B1B; font-family: var(--font-heading); font-size: 1rem; }
.urgent-card-text { font-size: .875rem; color: #B91C1C; margin-top: 0.125rem; }
.btn-urgent { background: #DC2626; color: #fff; border: none; box-shadow: 0 0.25rem 0.75rem rgba(220,38,38,.3); flex-shrink: 0; }
.btn-urgent:hover { filter: brightness(1.05); }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 861px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeInUp .6s var(--ease) both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Article Detail (view) ── */
.article-detail-grid { display: grid; grid-template-columns: 1fr 18.75rem; gap: var(--sp-10); align-items: start; }
@media (max-width: 860px) { .article-detail-grid { grid-template-columns: 1fr; } .article-sidebar-sticky { position: static !important; } }
.article-sidebar-sticky { position: sticky; top: 6.25rem; }
.article-sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-6); margin-bottom: var(--sp-5); box-shadow: var(--shadow-sm); }
.article-content h2, .article-content h3 { font-family: var(--font-heading); color: var(--text-dark); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.article-content p { color: var(--text-body); line-height: 1.85; margin-bottom: var(--sp-5); }
.article-content ul, .article-content ol { padding-left: var(--sp-6); margin-bottom: var(--sp-5); color: var(--text-body); line-height: 1.8; }
.article-content li { margin-bottom: var(--sp-2); }
.article-content blockquote { border-left: 0.25rem solid var(--primary); padding: var(--sp-4) var(--sp-6); background: var(--primary-light); border-radius: 0 var(--r-lg) var(--r-lg) 0; margin: var(--sp-6) 0; color: var(--text-body); font-style: italic; }
.article-content img { max-width: 100%; border-radius: var(--r-xl); margin: var(--sp-6) 0; }
.article-content strong { color: var(--text-dark); }
.article-hero-img { width: 100%; max-height: 28.75rem; object-fit: cover; border-radius: var(--r-2xl); margin-bottom: var(--sp-8); }
.article-tag-chip { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: var(--r-full); padding: 0.25rem 0.875rem; font-size: .75rem; font-weight: 600; text-decoration: none; transition: background var(--dur) var(--ease); }
.article-tag-chip:hover { background: var(--primary); color: white; }
.related-card { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.related-card:last-child { border-bottom: none; }
.related-card-img { width: 4rem; height: 4rem; border-radius: var(--r-lg); background: linear-gradient(135deg, #EFF6FF, #DBEAFE); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-title { font-size: .875rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; text-decoration: none; }
.related-card-title:hover { color: var(--primary); }
.related-card-date { font-size: .75rem; color: var(--text-muted); margin-top: 0.25rem; }
.article-tags-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.article-meta-bar { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border); }
.article-meta-item { display: flex; align-items: center; gap: var(--sp-2); font-size: .875rem; color: var(--text-muted); }
.article-content--extra { margin-top: var(--sp-6); }
.article-tags-footer { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--border); }
.article-tags-label { font-size: .8rem; font-weight: 700; letter-spacing: 0.03125rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-3); }
.article-tags-list { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.article-cta-box { margin-top: var(--sp-8); padding: var(--sp-6); background: var(--primary-light); border-radius: var(--r-xl); border-left: 0.25rem solid var(--primary); }
.article-cta-box-title { font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-2); }
.article-cta-box-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: var(--sp-4); }
.sidebar-title { font-weight: 700; font-size: 0.875rem; color: var(--text-dark); margin-bottom: var(--sp-4); }
.sidebar-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.sidebar-phone-btn { width: 100%; margin-top: var(--sp-3); }
.article-cta-banner { background: linear-gradient(135deg, var(--primary) 0%, #0f3bba 50%, var(--teal) 100%); border-radius: var(--r-2xl); padding: var(--sp-12) var(--sp-10); text-align: center; color: white; }
.article-cta-banner-inner { position: relative; z-index: 1; }
.article-cta-banner h2 { color: white; margin-bottom: var(--sp-4); }
.article-cta-banner-desc { opacity: .85; margin-bottom: var(--sp-8); max-width: 35rem; margin-left: auto; margin-right: auto; line-height: 1.7; }
.article-cta-banner-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ── Article List (index) ── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.article-featured { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-2xl); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } .article-featured { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 580px) { .articles-grid { grid-template-columns: 1fr; } .article-featured { grid-column: span 1; } }
.articles-grid .article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); display: flex; flex-direction: column; }
.articles-grid .article-card:hover { transform: translateY(-0.25rem); box-shadow: var(--shadow-md); }
.article-featured:hover { box-shadow: var(--shadow-md); }
.articles-grid .article-card-img { position: relative; height: 11.25rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-featured .article-card-img { height: 100%; min-height: 17.5rem; }
.articles-grid .article-card-body { padding: var(--sp-5) var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.article-featured .article-card-body { padding: var(--sp-8); }
.article-cat { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: .7rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: var(--r-full); margin-bottom: var(--sp-3); }
.article-cat--primary { background: var(--primary-light); color: var(--primary); }
.articles-grid .article-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-3); line-height: 1.4; }
.article-featured .article-title { font-size: 1.4rem; }
.articles-grid .article-title a { color: inherit; text-decoration: none; }
.articles-grid .article-title a:hover { color: var(--primary); }
.article-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: var(--sp-4); }
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font-size: .8rem; color: var(--text-muted); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.article-author { display: flex; align-items: center; gap: var(--sp-2); }
.article-author-ava { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.article-views { display: flex; align-items: center; gap: 0.25rem; }
.pagination-wrap { margin-top: var(--sp-12); display: flex; justify-content: center; }
.pagination-wrap .pagination { display: flex; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.pagination-wrap .page-item a, .pagination-wrap .page-item span { display: flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); font-size: .875rem; font-weight: 600; color: var(--text-body); text-decoration: none; transition: all var(--dur) var(--ease); }
.pagination-wrap .page-item a:hover { background: var(--bg-surface); border-color: var(--primary); color: var(--primary); }
.pagination-wrap .page-item.active span { background: var(--primary); border-color: var(--primary); color: white; }
.pagination-wrap .page-item.disabled span { opacity: .4; cursor: default; }
.articles-empty { text-align: center; padding: var(--sp-16) 0; color: var(--text-muted); }

/* Article card gradient variants */
.article-grad-0 { --card-bg: linear-gradient(135deg, #EFF6FF, #DBEAFE); --card-accent: #1B4FD8; }
.article-grad-1 { --card-bg: linear-gradient(135deg, #F5F3FF, #EDE9FE); --card-accent: #7C3AED; }
.article-grad-2 { --card-bg: linear-gradient(135deg, #ECFDF5, #D1FAE5); --card-accent: #059669; }
.article-grad-3 { --card-bg: linear-gradient(135deg, #ECFEFF, #CFFAFE); --card-accent: #0891B2; }
.article-grad-4 { --card-bg: linear-gradient(135deg, #FFFBEB, #FEF3C7); --card-accent: #D97706; }
.article-grad-5 { --card-bg: linear-gradient(135deg, #FEF2F2, #FEE2E2); --card-accent: #DC2626; }
.articles-grid .article-card-img { background: var(--card-bg); }
.articles-grid .article-card-img > svg { stroke: var(--card-accent); }
.article-card-tag--accent { background: var(--card-accent); }
.card-cover-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.article-card-tag-wrap { position: absolute; bottom: 1.5rem; left: 1.5rem; }
.article-card-tag-wrap--sm { position: absolute; bottom: 1rem; left: 1rem; }
.article-card-tag { color: #fff; font-size: .7rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: var(--r-full); }
.article-card-tag--sm { padding: 0.25rem 0.625rem; }
.article-featured-read { align-self: flex-start; }
.article-featured-read svg { margin-left: 0.375rem; }

/* ── Utilities ── */
.is-hidden { display: none; }
.page-hero-title--narrow { max-width: 50rem; }

/* ── Article category filter ── */
.cat-filter {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--r-full);
  border: 0.125rem solid var(--border);
  background: transparent;
  color: var(--text-body);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── About: Section heads ── */
.about-section-head { margin-bottom: var(--sp-10); }

/* ── About: Mission grid ── */
.about-mission-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: center; }
@media (min-width: 861px) { .about-mission-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-12); } }
.about-mission-text { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--sp-6); }
.about-mission-list { list-style: none; padding: 0; margin: 0 0 var(--sp-8); }
.about-mission-item { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.about-mission-check { width: 1.5rem; height: 1.5rem; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.125rem; }
.about-mission-item-text { color: var(--text-dark); line-height: 1.6; }
.about-mission-badges { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.about-mission-badge { display: flex; align-items: center; gap: var(--sp-3); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.about-mission-badge--blue { background: #EFF6FF; }
.about-mission-badge--green { background: #ECFDF5; }
.about-mission-badge-num { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.about-mission-badge-num--blue { color: var(--primary); }
.about-mission-badge-num--green { color: #059669; }
.about-mission-badge-label { font-size: .75rem; color: var(--text-muted); }

/* ── About: Visual card ── */
.about-visual-card { background: linear-gradient(145deg, var(--primary) 0%, #0f3bba 60%, var(--teal) 100%); border-radius: var(--r-2xl); padding: var(--sp-10); color: white; position: relative; overflow: hidden; min-height: 26.25rem; display: flex; flex-direction: column; justify-content: flex-end; }
.about-visual-blob { position: absolute; border-radius: 50%; }
.about-visual-blob--tr { top: -3.75rem; right: -3.75rem; width: 13.75rem; height: 13.75rem; background: rgba(255,255,255,.06); }
.about-visual-blob--bl { bottom: -2.5rem; left: -2.5rem; width: 11.25rem; height: 11.25rem; background: rgba(255,255,255,.04); }
.about-visual-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); opacity: .12; }
.about-visual-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.about-visual-stat { background: rgba(255,255,255,.12); backdrop-filter: blur(0.5rem); border-radius: var(--r-md); padding: var(--sp-4); border: 1px solid rgba(255,255,255,.2); }
.about-visual-stat-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.about-visual-stat-label { font-size: .8rem; opacity: .8; margin-top: 0.25rem; }

/* ── About: Trust icon variants ── */
.trust-icon--blue { background: #EFF6FF; }
.trust-icon--green { background: #ECFDF5; }
.trust-icon--teal { background: #ECFEFF; }
.trust-icon--amber { background: #FEF3C7; }
.trust-icon--violet { background: #F5F3FF; }

/* ── About: Values grid ── */
.values-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-card { padding: var(--sp-8); }
.value-icon { width: 3.25rem; height: 3.25rem; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); }
.value-icon--blue { background: #EFF6FF; }
.value-icon--violet { background: #F5F3FF; }
.value-icon--green { background: #ECFDF5; }
.value-icon--teal { background: #ECFEFF; }
.value-title { font-family: var(--font-heading), sans-serif; font-weight: 700; margin-bottom: var(--sp-2); }
.value-desc { color: var(--text-muted); line-height: 1.7; }

/* ── About: Dark stats strip ── */
.about-stats-dark { background: #0F172A; padding: var(--sp-12) 0; }
.about-stats-dark-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); text-align: center; }
@media (min-width: 768px) { .about-stats-dark-grid { grid-template-columns: repeat(4, 1fr); } }
.about-stats-dark-item { padding: var(--sp-4); }
@media (min-width: 768px) { .about-stats-dark-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,.1); } }
.about-stats-dark-num { font-size: 3rem; font-weight: 900; line-height: 1; }
.about-stats-dark-num--blue { color: #60A5FA; }
.about-stats-dark-num--green { color: #34D399; }
.about-stats-dark-num--violet { color: #A78BFA; }
.about-stats-dark-num--yellow { color: #FBBF24; }
.about-stats-dark-label { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: var(--sp-2); }

/* ── About: Team leads ── */
.team-leads-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); max-width: 56.25rem; margin: 0 auto; }
@media (min-width: 768px) { .team-leads-grid { grid-template-columns: repeat(2, 1fr); } }
.doctor-card-photo--violet { background: linear-gradient(160deg, var(--violet-light) 0%, #EDE9FE 100%); }
.doctor-exp-badge--violet { color: var(--violet); }
.doctor-card-spec--violet { color: var(--violet); }
.doctor-photo-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: .3; }
.btn-violet { background: var(--violet); color: var(--white); box-shadow: 0 0.5rem 1.25rem rgba(124,58,237,.3); }
.btn-violet:hover { filter: brightness(1.08); transform: translateY(-1px); }
.team-leads-cta { text-align: center; margin-top: var(--sp-8); }

/* ── About: Licenses ── */
.licenses-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 640px) { .licenses-grid { grid-template-columns: repeat(3, 1fr); } }
.license-block { border-width: 0.125rem; border-style: solid; }
.license-block--blue { border-color: #EFF6FF; }
.license-block--violet { border-color: #F5F3FF; }
.license-block--teal { border-color: #ECFEFF; }
.license-title { font-size: 1rem !important; }

/* ── Services page ── */
.services-grid--top { margin-top: var(--sp-8); }
.services-empty { text-align: center; padding: var(--sp-16) 0; color: var(--text-muted); }
.services-empty-cta { margin-top: var(--sp-4); }

.services-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0f3bba 50%, var(--teal) 100%);
    border-radius: var(--r-2xl);
    padding: var(--sp-12) var(--sp-10);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.services-cta-inner { position: relative; z-index: 1; }
.services-cta-title { color: #fff; margin-bottom: var(--sp-4); }
.services-cta-text {
    opacity: .85;
    margin-bottom: var(--sp-8);
    max-width: 35rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.services-cta-actions {
    display: flex;
    gap: var(--sp-4);
    justify-content: center;
    flex-wrap: wrap;
}
.services-cta-badges {
    display: flex;
    gap: var(--sp-6);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-6);
}
.services-cta-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
}

/* ── Layout / Modal helpers ── */
.btn--block { width: 100%; }
.mobile-menu-cta { width: 100%; margin-top: 0.75rem; }
.footer-logo--mb { margin-bottom: var(--sp-4); }
.popup-cta { margin-top: var(--sp-4); width: 100%; }
.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
}
.footer-legal-links { display: flex; gap: var(--sp-4); }
.footer-legal-link { color: rgba(255, 255, 255, .4); }
.footer-dev {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  font-size: .8125rem; color: rgba(255,255,255,.4);
  transition: color var(--dur-fast);
  white-space: nowrap; text-decoration: none;
}
.footer-dev:hover { color: white; }
.footer-dev-logo {
  height: 1.125rem; width: auto; display: block;
  opacity: .5; transition: opacity var(--dur-fast);
  filter: brightness(0) invert(1);
}
.footer-dev:hover .footer-dev-logo { opacity: 1; }
.modal-success { text-align: center; padding: var(--sp-8) 0; }
.modal-success-title { margin-bottom: var(--sp-3); color: var(--text-dark); }
.modal-success-text { color: var(--text-muted); line-height: 1.6; }
.modal-success-phone-row { color: var(--text-muted); margin-top: var(--sp-2); }
.modal-success-phone-link { color: var(--primary); font-weight: 600; }
.modal-success-cta { margin-top: var(--sp-6); }
.a11y-range { width: 5rem; }
.is-hidden { display: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 0.375rem; height: 0.375rem; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0.1875rem; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Quick Booking Widget (hero) ── */
.qb-card { padding: 0; min-height: 0; display: block; overflow: visible; }
.qb-card::before { display: none; }
.qb-widget {
  position: relative; background: var(--white); border-radius: var(--r-xl);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4);
  min-height: 28.75rem;
}
.qb-header {
  background: linear-gradient(160deg, var(--primary-light), var(--violet-light));
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) 0;
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.qb-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--text-dark); }
.qb-sub { font-size: .8125rem; color: var(--text-muted); margin-top: 0.125rem; }
.qb-progress {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4); padding: 0; list-style: none;
}
.qb-dot { width: 1.75rem; height: 0.25rem; border-radius: 0.125rem; background: rgba(27,79,216,.18); transition: background var(--dur) var(--ease); }
.qb-dot.is-active { background: var(--primary); }
.qb-dot.is-done { background: var(--success, #059669); }

.qb-step { display: none; flex-direction: column; gap: var(--sp-3); }
.qb-step.is-active { display: flex; }
.qb-step-label { font-size: .8125rem; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

.qb-step-label-sub { margin-top: var(--sp-2); }

.qb-spec-slider { position: relative; }
.qb-specialists {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; gap: 0;
  scrollbar-width: none;
}
.qb-specialists::-webkit-scrollbar { display: none; }
.qb-spec-page {
  flex: 0 0 100%; width: 100%; min-width: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2);
  scroll-snap-align: start;
}
.qb-spec-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white); color: var(--text-dark);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,.08); z-index: 2;
  transition: all var(--dur) var(--ease);
}
.qb-spec-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.qb-spec-nav:disabled { opacity: .35; cursor: not-allowed; }
.qb-spec-prev { left: -0.625rem; }
.qb-spec-next { right: -0.625rem; }
.qb-spec-dots {
  display: flex; justify-content: center; gap: 0.375rem; margin-top: 0.375rem;
}
.qb-spec-dot {
  width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: all var(--dur) var(--ease);
}
.qb-spec-dot.is-active { background: var(--primary); width: 1.125rem; border-radius: 0.1875rem; }
.qb-spec {
  display: flex; flex-direction: column; gap: 0.125rem;
  padding: 0.375rem 0.625rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--white); cursor: pointer; text-align: left;
  transition: all var(--dur) var(--ease); font-family: inherit; min-width: 0;
}
.qb-spec:hover { border-color: var(--primary); background: var(--primary-light); }
.qb-spec.is-active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 0.125rem rgba(27,79,216,.15); }
.qb-spec-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qb-spec-name {
  font-size: .8125rem; font-weight: 600; color: var(--text-dark); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qb-spec-spec {
  font-size: .7rem; color: var(--text-muted); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.qb-purposes, .qb-directions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.qb-directions-wrap { margin-bottom: var(--sp-3, 0.75rem); }
.qb-purpose {
  padding: 0.5rem 0.875rem; border-radius: 62.4375rem;
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
  font-size: .8125rem; font-weight: 600; color: var(--text-dark); font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.qb-purpose:hover { border-color: var(--primary); background: var(--primary-light); }
.qb-purpose.is-active { border-color: var(--primary); background: var(--primary); color: var(--white); }

.qb-dates-hint { font-size: .75rem; color: var(--text-muted); }

.qb-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.qb-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem;
  padding: 0.625rem 0.875rem; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--white); cursor: pointer; transition: all var(--dur) var(--ease); text-align: left;
}
.qb-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.qb-chip.is-active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 0.125rem rgba(27,79,216,.15); }
.qb-chip-name { font-size: .875rem; font-weight: 600; color: var(--text-dark); }
.qb-chip-price { font-size: .75rem; color: var(--text-muted); }

.qb-dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-2); padding-bottom: 0.25rem; }
.qb-date {
  min-width: 0; padding: 0.5rem 0.375rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--white); cursor: pointer; text-align: center;
  transition: all var(--dur) var(--ease);
}
.qb-date:hover { border-color: var(--primary); }
.qb-date.is-active { border-color: var(--primary); background: var(--primary-light); }
.qb-date.is-disabled {
  background: var(--bg); cursor: not-allowed; opacity: .5; pointer-events: none;
  border-style: dashed;
}
.qb-date-head {
  text-align: center; font-size: .7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; padding: 0.125rem 0;
}
.qb-date-empty { background: transparent; border: none; }
.qb-date.is-today { border-color: var(--primary); }
.qb-date-day { font-size: .65rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.qb-date-num { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.qb-date-mon { font-size: .65rem; color: var(--text-muted); }

.qb-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.qb-slot {
  padding: 0.5rem 0.375rem; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--text-dark);
  transition: all var(--dur) var(--ease); text-align: center;
}
.qb-slot:hover { border-color: var(--primary); }
.qb-slot.is-active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.qb-slots-empty { grid-column: 1 / -1; text-align: center; font-size: .875rem; color: var(--text-muted); padding: var(--sp-4); }

.qb-summary {
  background: var(--bg); border-radius: var(--r-md); padding: 0.625rem 0.75rem;
  font-size: .8125rem; color: var(--text-muted); line-height: 1.6;
}
.qb-summary strong { color: var(--text-dark); font-weight: 600; }

.qb-field { display: flex; flex-direction: column; gap: 0.25rem; }
.qb-label { font-size: .8125rem; font-weight: 600; color: var(--text-dark); }
.qb-input {
  width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: .9375rem; font-family: inherit; background: var(--white); color: var(--text-dark);
  min-height: 2.75rem; transition: border-color var(--dur) var(--ease);
}
.qb-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 0.1875rem rgba(27,79,216,.12); }
.qb-input.is-error { border-color: #dc2626; }

.qb-agree { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: .8125rem; color: var(--text-muted); cursor: pointer; }
.qb-agree input { margin-top: 0.125rem; flex-shrink: 0; }

.qb-honey { position: absolute; left: -624.9375rem; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.qb-error { font-size: .75rem; color: #dc2626; min-height: 1em; }
.qb-error:empty { display: none; }
.qb-error-global { margin-top: var(--sp-2); }

.qb-actions { display: flex; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-3); }
.qb-actions .btn { flex: 1; }
.qb-submit[disabled] { opacity: .6; cursor: not-allowed; }

.qb-success { text-align: center; align-items: center; gap: var(--sp-3); padding: var(--sp-6) 0; }
.qb-success-icon {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #ECFDF5;
  display: flex; align-items: center; justify-content: center;
}
.qb-success-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--text-dark); }
.qb-success-text { font-size: .9375rem; color: var(--text-muted); max-width: 21.25rem; }
.qb-success-details { font-size: .8125rem; color: var(--text-muted); background: var(--bg); padding: 0.625rem 0.875rem; border-radius: var(--r-md); margin-top: var(--sp-2); }
.qb-success-details strong { color: var(--text-dark); }

@media (max-width: 480px) {
  .qb-slots { grid-template-columns: repeat(3, 1fr); }
  .qb-widget { min-height: 0; }
}

/* SEO text block */
.seo-text { color: var(--text-muted); font-size: .9375rem; line-height: 1.7; max-width: 56.25rem; margin: 0 auto; }
.seo-text h2, .seo-text h3 { color: var(--text-dark); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.seo-text h2 { font-size: 1.375rem; font-weight: 700; }
.seo-text h3 { font-size: 1.125rem; font-weight: 600; }
.seo-text p { margin-bottom: var(--sp-3); }
.seo-text ul, .seo-text ol { margin: var(--sp-3) 0 var(--sp-4) var(--sp-5); }
.seo-text li { margin-bottom: var(--sp-2); }
.seo-text a { color: var(--primary); text-decoration: underline; }
.seo-text a:hover { color: var(--primary-dark); }

/* Prices: list (index) */
.prices-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: var(--sp-3); }
.prices-list-item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); transition: box-shadow .2s, transform .2s, border-color .2s; }
.prices-list-item:hover { border-color: var(--primary); box-shadow: 0 0.25rem 1rem rgba(27,79,216,.08); transform: translateY(-1px); }
.prices-list-link { display: block; padding: var(--sp-3) var(--sp-4); color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.prices-list-link:hover { color: var(--primary); }

/* Prices: view description */
.prices-description { background: #fff; border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); color: var(--text-muted); line-height: 1.7; border: 1px solid var(--border); }

@media (max-width: 480px) {
  .prices-list { grid-template-columns: 1fr; }
}

.map-wrap--embed { padding: 0; display: block; }
.map-wrap--embed iframe,
.map-wrap--embed > script + iframe,
.map-wrap--embed > div,
.map-wrap--embed > a { width: 100% !important; height: 100% !important; display: block; border: 0; }
.map-wrap--embed > * { width: 100%; height: 100%; }

/* ============================================================
   404 / Error Page
   ============================================================ */

/* Hero */
.error-hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27,79,216,.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(124,58,237,.06), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.error-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27,79,216,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,79,216,.04) 1px, transparent 1px);
  background-size: 2rem 2rem;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.error-hero-inner {
  position: relative;
  display: grid;
  gap: var(--sp-10);
  align-items: center;
  text-align: center;
}
.error-hero-graphic {
  position: relative;
  width: 100%;
  max-width: 47.5rem;
  margin: 0 auto;
  aspect-ratio: 800 / 220;
}
.error-cardio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.error-cardio-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: errorCardio 3.2s var(--ease) .2s forwards,
             errorCardioPulse 2.6s var(--ease) 3.4s infinite;
}
@keyframes errorCardio {
  to { stroke-dashoffset: 0; }
}
@keyframes errorCardioPulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; filter: drop-shadow(0 0 0.5rem rgba(27,79,216,.5)); }
}
.error-hero-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--primary) 20%, var(--violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 5rem rgba(27,79,216,.15);
  user-select: none;
}
.error-hero-text { max-width: 40rem; margin: 0 auto; }
.error-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
  letter-spacing: .02em;
}
.error-hero-title {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  letter-spacing: -.01em;
}
.error-hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}
.error-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
.error-hero-actions .btn { gap: var(--sp-2); }

/* Medical chart */
.error-chart-section {
  padding: var(--sp-10) 0 var(--sp-12);
  background: var(--white);
}
.error-chart {
  position: relative;
  max-width: 45rem;
  margin: 0 auto;
  background:
    repeating-linear-gradient(transparent 0, transparent 1.9375rem, rgba(27,79,216,.06) 1.9375rem, rgba(27,79,216,.06) 2rem),
    var(--white);
  border: 1px solid var(--border);
  border-left: 0.25rem solid var(--primary);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.error-chart::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--primary), var(--violet), var(--teal));
}
.error-chart-head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px dashed var(--border);
  position: relative;
}
.error-chart-head-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.error-chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--sp-1);
  letter-spacing: -.005em;
}
.error-chart-meta {
  font-size: .8125rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.error-chart-stamp {
  position: absolute;
  top: -0.75rem;
  right: -0.5rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--danger);
  border: 0.125rem solid var(--danger);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  transform: rotate(8deg);
  background: rgba(220,38,38,.04);
  opacity: .75;
  white-space: nowrap;
}
.error-chart-list { display: grid; gap: var(--sp-3); margin: 0; }
.error-chart-row {
  display: grid;
  grid-template-columns: 6.875rem 1fr;
  gap: var(--sp-3);
  align-items: baseline;
  padding-bottom: var(--sp-2);
  border-bottom: 1px dotted var(--border-light);
}
.error-chart-row:last-child { border-bottom: 0; padding-bottom: 0; }
.error-chart-row dt {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.error-chart-row dd {
  font-size: .9375rem;
  color: var(--text-dark);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.error-chart-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.125rem 0.625rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .875rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .02em;
}
.error-chart-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border);
}
.error-chart-signature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--primary);
}
.error-chart-signature svg {
  width: 6.875rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.error-chart-signature span {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
}
.error-chart-rx {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .8125rem;
  color: var(--text-muted);
}
.error-chart-rx-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem; height: 1.75rem;
  background: var(--violet-light);
  color: var(--violet);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
}

/* Navigation grid */
.error-nav-section {
  padding: var(--sp-12) 0;
  background: var(--bg);
}
.error-nav-head {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.error-nav-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.error-nav-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32.5rem;
  margin: 0 auto;
}
.error-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--sp-3);
  max-width: 57.5rem;
  margin: 0 auto;
}
.error-nav-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.error-nav-card:hover,
.error-nav-card:focus-visible {
  transform: translateY(-0.125rem);
  border-color: var(--primary);
  box-shadow: 0 0.5rem 1.5rem rgba(27,79,216,.10);
  outline: none;
}
.error-nav-card:focus-visible {
  box-shadow: 0 0 0 0.1875rem rgba(27,79,216,.25), 0 0.5rem 1.5rem rgba(27,79,216,.10);
}
.error-nav-card-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.error-nav-card:hover .error-nav-card-icon {
  background: var(--primary);
  color: var(--white);
}
.error-nav-card-body { flex: 1; min-width: 0; }
.error-nav-card-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.125rem;
}
.error-nav-card-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.error-nav-card-arrow {
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.error-nav-card:hover .error-nav-card-arrow {
  color: var(--primary);
  transform: translateX(0.25rem);
}

/* Bottom CTA */
.error-cta-section {
  padding: 0 0 var(--sp-16);
  background: var(--bg);
}
.error-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-8);
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
.error-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
  pointer-events: none;
}
.error-cta-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(0.25rem);
}
.error-cta-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 var(--sp-1);
  color: var(--white);
}
.error-cta-sub {
  font-size: .9375rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  margin: 0;
}
.error-cta-btn {
  background: var(--white) !important;
  color: var(--primary) !important;
  border-color: var(--white) !important;
  flex-shrink: 0;
}
.error-cta-btn:hover {
  background: var(--bg) !important;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .error-hero { padding: var(--sp-10) 0 var(--sp-8); }
  .error-hero-graphic { max-width: 30rem; aspect-ratio: 480 / 180; }
  .error-hero-actions .btn { flex: 1 1 auto; }
  .error-chart { padding: var(--sp-5) var(--sp-4); }
  .error-chart-stamp { top: -0.625rem; right: -0.25rem; font-size: .625rem; padding: 0.1875rem 0.5rem; }
  .error-chart-row {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
  .error-chart-foot { flex-direction: column; align-items: flex-start; }
  .error-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--sp-5) var(--sp-5);
  }
  .error-cta-icon { margin: 0 auto; }
  .error-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .error-nav-grid { grid-template-columns: 1fr; }
  .error-hero-number { font-size: clamp(6rem, 30vw, 10rem); }
}

@media (prefers-reduced-motion: reduce) {
  .error-cardio-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  .error-nav-card { transition: none; }
  .error-nav-card:hover { transform: none; }
}

/* ── Flash Toast ─────────────────────────────────────────── */
.flash-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 16.25rem;
  max-width: 22.5rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.625rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,.15);
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateX(1.875rem);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.flash-toast.flash-toast--visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.flash-toast--success { background: #2e9e6b; }
.flash-toast--error   { background: #d9534f; }
.flash-toast__icon { flex-shrink: 0; font-size: 1.1rem; }
.flash-toast__close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  opacity: .8;
  padding: 0;
}
.flash-toast__close:hover { opacity: 1; }

/* ── Сертификаты врача ─────────────────────────────────────────── */
.doctor-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}
.doctor-cert-item {
  display: block;
  border: 1px solid #e3e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease;
}
.doctor-cert-item:hover { box-shadow: 0 0.25rem 0.875rem rgba(27, 79, 216, .15); }
.doctor-cert-item img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

/* ── Отзывы о враче ────────────────────────────────────────────── */
.review-list { margin-bottom: 1.5rem; }
.review-card {
  border: 1px solid #e3e8f0;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
}
.review-card-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.375rem;
}
.review-card-name { font-weight: 600; }
.review-card-stars { color: #f5a623; letter-spacing: 0.125rem; }
.review-card-date { color: #8a94a6; font-size: 0.8125rem; margin-left: auto; }
.review-card-text { margin: 0; }
.review-empty { color: #8a94a6; }

.review-form {
  border: 1px solid #e3e8f0;
  border-radius: 0.625rem;
  padding: 1rem;
  background: #f8fafd;
}
.review-form-title { font-weight: 600; margin-bottom: 0.625rem; }
.review-form-row {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
}
.review-form-input {
  width: 100%;
  border: 1px solid #d5dbe7;
  border-radius: 0.5rem;
  padding: 0.5625rem 0.75rem;
  font: inherit;
  background: #fff;
  margin-bottom: 0.625rem;
}
.review-form-row .review-form-input { margin-bottom: 0; flex: 1 1 12.5rem; }
.review-form-select { max-width: 11.25rem; }
.review-form-note { color: #8a94a6; font-size: 0.8125rem; margin: 0.625rem 0 0; }
.review-honeypot { position: absolute; left: -624.9375rem; width: 1px; height: 1px; opacity: 0; }

.review-flash {
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.875rem;
}
.review-flash--success { background: #e8f7ee; color: #1c7c3d; border: 1px solid #bfe8cf; }
.review-flash--error { background: #fdecec; color: #b02a37; border: 1px solid #f5c2c7; }

/* ── Слот-пикер записи (мастер и страница врача) ──────────────── */
.qb-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
/* Слоты времени — ровная сетка с одинаковыми ячейками */
.bkw-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.625rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.bkw-slots .bkw-slot { text-align: center; }
.qb-slot,
.bkw-slot {
  border: 1px solid #d5dbe7;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.qb-slot:hover,
.bkw-slot:hover { border-color: #1B4FD8; }
.qb-slot.is-active,
.bkw-slot.is-active {
  background: #1B4FD8;
  border-color: #1B4FD8;
  color: #fff;
}
.bkw-calendar { margin-bottom: 0.75rem; }
.bkw-purpose { cursor: pointer; }
.bkw-purpose input { margin-right: 0.375rem; }
/* Страницы слайдера: календарь → время → форма.
   Все страницы лежат в одной grid-ячейке — высота виджета фиксирована
   по самой высокой странице и не прыгает при переключении. */
.bkw-form { display: grid; }
.bkw-form[hidden] { display: none; }
.bkw-page { grid-row: 1; grid-column: 1; visibility: hidden; }
.bkw-page.is-active { visibility: visible; animation: bkw-page-in .25s ease; }
.bkw-form .bkw-error { grid-row: 2; grid-column: 1; }
@keyframes bkw-page-in {
  from { opacity: 0; transform: translateX(1.5rem); }
  to   { opacity: 1; transform: translateX(0); }
}
.bkw-back {
  display: inline-block; border: 0; background: none; padding: 0;
  margin-bottom: 0.625rem; font: inherit; font-size: 0.875rem;
  color: #1B4FD8; cursor: pointer;
}
.bkw-back:hover { text-decoration: underline; }
.bkw-chosen { font-weight: 600; margin-bottom: 0.625rem; line-height: 1.5; min-height: 1.5em; }
.qb-slots-label, .bkw-slots-label, .bkw-days-label,
.qb-slots-day {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.375rem;
}

/* Календарь выбора дня (шаг 2 мастера) */
.qb-calendar { margin-bottom: 0.625rem; }
.qb-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.625rem;
}
.qb-cal-title { font-weight: 600; }
.qb-cal-nav {
  border: 1px solid #d5dbe7; background: #fff; border-radius: 0.5rem;
  width: 2.125rem; height: 2.125rem; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.qb-cal-nav:disabled { opacity: .35; cursor: default; }
.qb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.375rem; }
.qb-cal-wd { text-align: center; font-size: 0.6875rem; color: #8a94a6; padding-bottom: 0.125rem; }
.qb-cal-empty { background: transparent; }
.qb-cal-day {
  border: 1px solid transparent; background: #f1f4f9; color: #b8bfcc;
  border-radius: 0.5rem; padding: 0.5625rem 0; font: inherit; font-size: 0.875rem;
  text-align: center; cursor: not-allowed;
}
.qb-cal-day.is-available {
  background: #fff; border-color: #d5dbe7; color: #1f2937; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.qb-cal-day.is-available:hover { border-color: #1B4FD8; }
.qb-cal-day.is-today.is-available { border-color: #1B4FD8; }
.qb-cal-day.is-active {
  background: #1B4FD8 !important; border-color: #1B4FD8 !important; color: #fff !important;
}
.qb-loading, .qb-empty,
.bkw-loading, .bkw-empty {
  color: #8a94a6;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

/* Блок записи на странице врача */
.booking-widget {
  border: 1px solid #e3e8f0;
  border-radius: 0.75rem;
  padding: 1.125rem;
  background: #f8fafd;
}
.booking-widget-title { font-weight: 600; margin-bottom: 0.75rem; font-size: 1.125rem; }
.bkw-field { margin-bottom: 0.625rem; }
.bkw-label { display: block; margin-bottom: 0.25rem; font-size: .8125rem; font-weight: 600; color: var(--text-dark); }
.bkw-input[type="date"], .qb-input[type="date"], .form-control[type="date"] { -webkit-appearance: none; appearance: none; }
.bkw-directions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bkw-directions-wrap { margin-bottom: 0.75rem; }
.bkw-input {
  width: 100%;
  border: 1px solid #d5dbe7;
  border-radius: 0.5rem;
  padding: 0.5625rem 0.75rem;
  font: inherit;
  background: #fff;
}
.bkw-purposes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.625rem; }
.bkw-agree { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: #4b5563; margin: 0.5rem 0; }
.bkw-error { color: #b02a37; font-size: 0.8125rem; min-height: 1rem; }
.bkw-honey { position: absolute; left: -624.9375rem; width: 1px; height: 1px; opacity: 0; }
.bkw-success { text-align: center; padding: var(--sp-6) 0; }


/* Попапы выбора даты/времени записи (поверх модалки записи) */
.booking-pop { z-index: 2100; }
.booking-pop .booking-pop-calendar,
.booking-pop .booking-pop-slots { min-height: 2.5rem; }
/* Слоты времени — ровная сетка с равными ячейками */
.booking-pop-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem;
}
.booking-pop-slots .qb-slot {
  width: 100%;
  padding: 0.5625rem 0.25rem;
  text-align: center;
}
/* сообщение «слотов нет» — на всю ширину сетки */
.booking-pop-slots .qb-empty { grid-column: 1 / -1; }
#modal-date:not([disabled]) { cursor: pointer; background: #fff; }
#modal-date[disabled] { background: #f1f4f9; cursor: not-allowed; }

/* Legal documents */
.legal-document { max-width: 52rem; margin: 0 auto; line-height: 1.75; overflow-wrap: anywhere; }
.legal-document h2 { margin: 2rem 0 1rem; font-size: 1.4rem; line-height: 1.4; }
.legal-document p, .legal-document ul, .legal-document ol { margin-bottom: 1rem; }
.legal-document ul, .legal-document ol { padding-left: 1.5rem; }
.legal-document a { color: var(--color-primary, #1B4FD8); text-decoration: underline; }
.footer-legal-links { flex-wrap: wrap; justify-content: center; }
.footer-bottom-row { flex-wrap: wrap; }

/* Explicit consent for public forms */
.form-consent { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0; font-size: .875rem; line-height: 1.5; text-align: left; }
.form-consent input[type="checkbox"] { flex: 0 0 auto; width: 1rem; height: 1rem; margin-top: .2rem; accent-color: #1B4FD8; }
.form-consent a { color: inherit; text-decoration: underline; }
.promo-subscribe-form { flex-wrap: wrap; }
.promo-subscribe-form .form-consent { flex-basis: 100%; color: inherit; }

/* Clinic emblem with its original circular silhouette */
.logo-icon--brand { background: transparent; border-radius: 0; }
.logo-icon--brand img { object-fit: contain; border-radius: 0; }
.footer-brand .logo-icon--brand { width: 4rem; height: 4rem; }
