/* ================================================================
   МедиРайзе Германия — общие стили для всех страниц
   ================================================================ */

/* ---------- Design tokens ---------- */
:root {
  --green-50:  #EDFADE;
  --green-100: #D4F5B2;
  --green-200: #B4EC80;
  --green-300: #8FDE4E;
  --green-400: #6DCE28;
  --green-500: #52B800;   /* primary — насыщенный зелёный */
  --green-600: #3E9400;
  --green-700: #2D6E00;
  --ink-900:   #0A1209;
  --ink-700:   #1E2E20;
  --ink-500:   #445948;
  --ink-400:   #6E8272;
  --white:     #FFFFFF;
  --cream:     #F5FFF0;
  --stroke:    #C8E8B0;
  --shadow-sm: 0 2px 8px rgba(30, 70, 20, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 70, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 70, 20, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---------- Layout ---------- */
.shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% -10%, var(--green-100) 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, var(--green-50) 0%, transparent 55%),
    var(--white);
}
.shell.full-height { min-height: 100vh; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.blob.b1 { width: 420px; height: 420px; background: var(--green-200); top: -120px; right: -100px; }
.blob.b2 { width: 300px; height: 300px; background: var(--green-300); bottom: -80px; left: -80px; opacity: 0.35; }

.container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
header.site {
  padding: 26px 0 10px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--green-700, #3D8A18);
  filter: drop-shadow(0 6px 18px rgba(61, 138, 24, 0.22));
}
.logo-mark svg { width: 92px; height: 92px; overflow: visible; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
footer .logo-mark { width: 88px; height: 88px; }
footer .logo-mark svg { width: 76px; height: 76px; }
footer .logo-mark { filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.15)); }
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.main a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 2px;
  position: relative;
  transition: color .2s;
}
nav.main a:hover { color: var(--green-700); }
nav.main a.active { color: var(--green-700); font-weight: 700; }
nav.main a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-500);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.lang button {
  background: transparent;
  color: var(--ink-500);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  border-radius: 999px;
  transition: all .2s;
}
.lang button:hover { color: var(--ink-900); }
.lang button.is-active {
  background: var(--green-500);
  color: white;
  box-shadow: 0 4px 10px rgba(95, 179, 48, 0.35);
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink-900);
  font-size: 15px;
}
.phone svg { width: 18px; height: 18px; color: var(--green-600); }

/* ---------- HERO (index) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-100);
  color: var(--green-700);
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(123, 201, 74, 0.25);
}

h1.headline {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink-900);
}
h1.headline .accent {
  position: relative;
  color: var(--green-700);
  white-space: nowrap;
  display: inline-block;
}
h1.headline .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 12px;
  background: var(--green-200);
  border-radius: 12px;
  z-index: -1;
}

.lede {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 540px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 26px;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  box-shadow: 0 12px 26px rgba(95, 179, 48, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(95, 179, 48, 0.4); }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary > * { position: relative; z-index: 2; }

.btn-ghost {
  background: white;
  color: var(--ink-900);
  border: 1.5px solid var(--stroke);
}
.btn-ghost:hover { border-color: var(--green-400); color: var(--green-700); }
.btn-ghost .play {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-100);
  display: grid; place-items: center;
  color: var(--green-700);
}
.btn svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover svg { transform: translateX(4px); }

/* stats under hero */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  max-width: 560px;
  position: relative;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  border-top: 1px dashed var(--stroke);
  transform-origin: left;
}
.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.stat .num span { color: var(--green-600); }
.stat .lbl {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
  line-height: 1.35;
}

/* ---------- Right column: hero visual + form ---------- */
.right { position: relative; }
.visual { position: relative; height: 100%; min-height: 560px; }

.doctor {
  position: absolute;
  right: 30px;
  top: 20px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--green-200), var(--green-400));
  box-shadow: 0 30px 60px rgba(95, 179, 48, 0.25);
  overflow: hidden;
  z-index: 1;
  animation: breathe 6s ease-in-out infinite;
}
.doctor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.3) 0%, transparent 60%);
}
.doctor svg.illust {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: auto;
}

.float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  border: 1px solid var(--stroke);
  animation: floatY 5s ease-in-out infinite;
}
.float-card .ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}
.float-card .ic svg { width: 20px; height: 20px; }
.float-card .tx .t { font-weight: 700; font-size: 14px; color: var(--ink-900); }
.float-card .tx .s { font-size: 12px; color: var(--ink-500); }
.fc-1 { top: 0; left: 0; animation-delay: 0s; }
.fc-2 { bottom: 120px; left: -20px; animation-delay: 1.2s; }

.form-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 380px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stroke);
  z-index: 3;
}
.form-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.form-card p.sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-500);
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--stroke);
  background: var(--cream);
  font: inherit;
  font-size: 14px;
  color: var(--ink-900);
  transition: border-color .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-400);
  background: white;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }

.form-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 15px 20px;
}
.form-foot {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.4;
}
.form-foot a { color: var(--green-700); font-weight: 600; }

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
  margin-top: 12px;
}
.scroll-hint .mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--ink-400);
  border-radius: 12px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  background: var(--ink-400);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 10px); opacity: 0.3; }
}

/* =============================================
   PAGE HERO (для внутренних страниц)
   ============================================= */
.page-hero {
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.page-hero h1 .accent {
  position: relative;
  color: var(--green-700);
  display: inline-block;
}
.page-hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: var(--green-200);
  border-radius: 12px;
  z-index: -1;
}
.page-hero p.lede {
  margin: 0 auto 28px;
  max-width: 680px;
}
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--ink-500); transition: color .2s; }
.breadcrumbs a:hover { color: var(--green-700); }
.breadcrumbs .sep { color: var(--green-400); }
.breadcrumbs .current { color: var(--green-700); font-weight: 700; }

/* =============================================
   SECTION HEAD (центрированный заголовок)
   ============================================= */
.section-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink-900);
}
.section-head h2 .accent {
  position: relative;
  color: var(--green-700);
  display: inline-block;
}
.section-head h2 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--green-200);
  border-radius: 10px;
  z-index: -1;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-500);
  margin: 0;
}
.section {
  padding: 90px 0;
  position: relative;
}
.section.alt { background: var(--white); }

/* =============================================
   TREATMENTS GRID (направления лечения)
   ============================================= */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.treatment-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s, background .5s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.treatment-card::after {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--green-100);
  top: -60px; right: -60px;
  opacity: 0;
  transition: opacity .5s, transform .5s;
  pointer-events: none;
  z-index: 0;
}
.treatment-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
  }
  .treatment-card:hover::after { opacity: 1; transform: scale(1.3); }
  .treatment-card:hover .ic { transform: scale(1.08) rotate(-5deg); }
  .treatment-card:hover .arrow {
    background: var(--green-500);
    color: white;
    transform: translateX(4px);
  }
}
/* Touch: блокируем :hover-визуалку, но БАЗОВЫЕ стили карточки оставляем */
@media (hover: none) {
  .treatment-card:hover,
  .treatment-card:focus-visible,
  .treatment-card:active {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--stroke);
  }
  .treatment-card:hover::after,
  .treatment-card:focus::after,
  .treatment-card:active::after { opacity: 0; transform: scale(1); }
  .treatment-card:hover .ic,
  .treatment-card:active .ic { transform: none; }
  .treatment-card:hover .arrow,
  .treatment-card:active .arrow {
    background: var(--green-100);
    color: var(--green-700);
    transform: none;
  }
}
.treatment-card > * { position: relative; z-index: 1; }
.treatment-card .ic {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: white;
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 10px 20px rgba(95, 179, 48, 0.25);
  transition: transform .35s ease;
}
.treatment-card .ic svg { width: 28px; height: 28px; }
.treatment-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.treatment-card p {
  color: var(--ink-500);
  font-size: 15px;
  margin: 0 0 18px;
  flex-grow: 1;
}
.treatment-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--stroke);
  font-size: 13px;
  color: var(--ink-500);
}
.treatment-card .meta strong { color: var(--ink-900); font-weight: 700; }
.treatment-card .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  transition: background .25s, color .25s, transform .25s;
}

/* =============================================
   CLINIC CARDS
   ============================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.filter-chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--stroke);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--green-300); color: var(--green-700); }
.filter-chip.is-active {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
  box-shadow: 0 6px 14px rgba(95, 179, 48, 0.3);
}

.clinics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}
.clinic-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.clinic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.clinic-foot .go::after {
  content: '';
  position: absolute;
  inset: 0;
}
.clinic-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
  position: relative;
  overflow: hidden;
}
.clinic-photo svg,
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clinic-photo .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.clinic-photo .rating {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(15, 26, 18, 0.85);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
}
.clinic-photo .rating svg { width: 12px; height: 12px; color: #FFE76A; }
.clinic-info { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.clinic-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.clinic-info .city {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.clinic-info .city svg { width: 14px; height: 14px; color: var(--green-600); }
.clinic-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.clinic-specs span {
  background: var(--green-50);
  color: var(--green-700);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.clinic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--stroke);
  margin-top: auto;
}
.clinic-foot .beds {
  font-size: 12px;
  color: var(--ink-500);
}
.clinic-foot .beds strong { color: var(--ink-900); font-size: 16px; font-weight: 800; display: block; }
.clinic-foot .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
}
.clinic-foot .go svg { width: 14px; height: 14px; transition: transform .25s; }
.clinic-card:hover .clinic-foot .go svg { transform: translateX(3px); }

/* =============================================
   DOCTORS GRID
   ============================================= */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.doctor-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  text-align: center;
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.doctor-portrait {
  height: 240px;
  background: linear-gradient(160deg, var(--green-100), var(--green-300));
  position: relative;
  overflow: hidden;
}
.doctor-portrait svg {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: auto;
}
.doctor-portrait .spec-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: white;
  color: var(--green-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.doctor-info {
  padding: 20px 20px 24px;
}
.doctor-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.doctor-info .title {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 12px;
  min-height: 36px;
}
.doctor-info .doctor-meta {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--stroke);
  font-size: 11px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doctor-info .doctor-meta strong {
  display: block;
  color: var(--green-700);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}

/* =============================================
   VALUES / ABOUT CARDS
   ============================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.value-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .ic {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.value-card .ic svg { width: 26px; height: 26px; }
.value-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.value-card p { color: var(--ink-500); font-size: 14px; margin: 0; }

/* Timeline (история) */
.timeline {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-300), var(--green-500), var(--green-300));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 16px 0 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-500);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--green-200);
}
.timeline-item .year {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-item h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.timeline-item p {
  color: var(--ink-500);
  font-size: 15px;
  margin: 0;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.contact-layout > .contact-info,
.contact-layout > .contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-layout > .contact-info .socials { margin-top: auto; }
.contact-info {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
}
.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--stroke);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ic {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .tx .t {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-item .tx .v {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  margin-top: 2px;
  line-height: 1.4;
}
.contact-item .tx .v a { color: var(--green-700); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--green-700);
  transition: all .2s;
}
.socials a:hover {
  background: var(--green-500);
  color: white;
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; }

.contact-form {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact-form .sub {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0 0 24px;
}
.contact-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form .form-head { margin: 0 0 22px; }
.contact-form .form-head .eyebrow { margin-bottom: 10px; }
.contact-form .form-head h3 { margin: 0 0 8px; }
.contact-form .form-head .sub { margin: 0; }

/* Map with pins */
.map-wrap {
  position: relative;
  z-index: 2;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.map-wrap svg { display: block; width: 100%; height: auto; background: linear-gradient(160deg, var(--green-50), var(--green-100)); }

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}
.office-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.office-card .flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.office-card h4 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.office-card p { font-size: 13px; color: var(--ink-500); margin: 0 0 8px; line-height: 1.5; }
.office-card .ofc-phone { font-weight: 700; font-size: 14px; color: var(--green-700); }

/* =============================================
   TESTIMONIALS (reviews section)
   ============================================= */
.reviews {
  position: relative;
  padding: 110px 0 130px;
  background:
    radial-gradient(800px 500px at 50% 0%, var(--green-50) 0%, transparent 60%),
    var(--white);
  overflow: hidden;
}
.reviews::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: var(--green-100);
  filter: blur(80px);
  opacity: 0.55;
  top: 60px; right: -180px;
  pointer-events: none;
}
.reviews::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--green-200);
  filter: blur(90px);
  opacity: 0.35;
  bottom: -120px; left: -120px;
  pointer-events: none;
}

.reviews-summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 20px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto 56px;
}
.reviews-summary .score { display: flex; align-items: center; gap: 14px; }
.reviews-summary .score .big {
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink-900); line-height: 1;
}
.reviews-summary .score .big span { color: var(--green-600); }
.reviews-summary .stars-row { display: flex; gap: 2px; color: #F5B700; }
.reviews-summary .stars-row svg { width: 18px; height: 18px; }
.reviews-summary .score .meta { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.reviews-summary .sep { width: 1px; height: 44px; background: var(--stroke); }
.reviews-summary .mini { display: flex; align-items: center; gap: 12px; }
.reviews-summary .mini .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
}
.reviews-summary .mini .ic svg { width: 20px; height: 20px; }
.reviews-summary .mini .t { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.reviews-summary .mini .s { font-size: 12px; color: var(--ink-500); }

.reviews-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.review-card {
  position: relative;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s, background .5s ease;
}
.review-card:not(.featured):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
  background: linear-gradient(135deg, white 0%, var(--green-50) 100%);
}
.review-card.featured {
  background: linear-gradient(160deg, var(--green-500), var(--green-600));
  border: none;
  color: white;
  box-shadow: 0 24px 50px rgba(95, 179, 48, 0.35);
}
.review-card .quote-mark {
  position: absolute;
  top: 22px; right: 24px;
  width: 38px; height: 38px;
  opacity: 0.15;
}
.review-card .stars {
  display: flex;
  gap: 3px;
  color: #F5B700;
  margin-bottom: 16px;
}
.review-card.featured .stars { color: #FFE76A; }
.review-card .stars svg { width: 18px; height: 18px; }
.review-card blockquote {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  flex-grow: 1;
}
.review-card.featured blockquote {
  color: white;
  font-size: 17px;
  font-weight: 500;
}
.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  align-self: flex-start;
}
.review-card.featured .review-tag {
  background: rgba(255,255,255,0.2);
  color: white;
}
.review-tag svg { width: 13px; height: 13px; }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--stroke);
}
.review-card.featured .review-author { border-top-color: rgba(255,255,255,0.25); }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(95, 179, 48, 0.3);
}
.review-card.featured .avatar { background: white; color: var(--green-700); }
.avatar.a2 { background: linear-gradient(135deg, #7BC94A, #4A8F24); }
.avatar.a3 { background: linear-gradient(135deg, #B6E592, #5FB330); }
.avatar.a4 { background: linear-gradient(135deg, #97D968, #4A8F24); }
.avatar.a5 { background: linear-gradient(135deg, #D1F0B8, #7BC94A); color: var(--green-700); }
.review-author .who { flex-grow: 1; }
.review-author .name {
  font-weight: 700; font-size: 15px; color: var(--ink-900);
  display: flex; align-items: center; gap: 8px;
}
.review-card.featured .review-author .name { color: white; }
.review-author .from { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.review-card.featured .review-author .from { color: rgba(255,255,255,0.8); }

.flag {
  width: 22px; height: 16px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.flag-de { background: linear-gradient(to bottom, #000 33%, #DD0000 33% 66%, #FFCE00 66%); }
.flag-ru { background: linear-gradient(to bottom, #FFF 33%, #0039A6 33% 66%, #D52B1E 66%); }
.flag-ua { background: linear-gradient(to bottom, #0057B7 50%, #FFD700 50%); }
.flag-at { background: linear-gradient(to bottom, #ED2939 33%, #FFF 33% 66%, #ED2939 66%); }
.flag-ch { background: #DA291C; position: relative; }
.flag-ch::before, .flag-ch::after { content: ""; position: absolute; background: white; }
.flag-ch::before { top: 4px; bottom: 4px; left: 9px; width: 4px; }
.flag-ch::after { left: 4px; right: 4px; top: 6px; height: 4px; }
.flag-kz { background: #00AFCA; position: relative; }

.reviews-cta {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.reviews-cta .mini-note { font-size: 14px; color: var(--ink-500); }
.reviews-cta .mini-note b { color: var(--ink-900); }

/* =============================================
   CTA BANNER (нижний блок-призыв)
   ============================================= */
.cta-banner {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: var(--radius-xl);
  padding: 56px 60px;
  color: white;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(75, 143, 36, 0.35);
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -150px; right: -100px;
  pointer-events: none;
  z-index: 0;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -120px; left: 30%;
  pointer-events: none;
  z-index: 0;
}
.cta-banner h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: white;
  position: relative;
}
.cta-banner p { font-size: 17px; opacity: 0.9; margin: 0 0 24px; max-width: 520px; position: relative; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-banner .btn {
  background: white;
  color: var(--green-700);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}
.cta-banner .btn:hover { transform: translateY(-2px); }
.cta-banner .cta-illust {
  position: relative;
  text-align: center;
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.9;
}
.cta-banner .cta-illust sub {
  display: block;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* =============================================
   FOOTER
   ============================================= */
footer.site {
  background: var(--ink-900);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 30px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
footer .logo { color: white; }
footer .logo small { color: rgba(255,255,255,0.5); }
footer .foot-about {
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 20px;
  color: rgba(255,255,255,0.85);
}
footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin: 0 0 18px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 10px;
}
footer ul a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color .2s;
}
footer ul a:hover { color: var(--green-400); }
footer .foot-contact p {
  font-size: 14px;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.7);
}
footer .foot-contact p strong { color: white; }
.foot-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.foot-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  display: grid; place-items: center;
  transition: all .2s;
}
.foot-socials a:hover {
  background: var(--green-500);
  color: white;
  transform: translateY(-2px);
}
.foot-socials svg { width: 16px; height: 16px; }
.foot-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.foot-bottom a { color: rgba(255,255,255,0.6); transition: color .2s; }
.foot-bottom a:hover { color: var(--green-400); }

/* =============================================
   REVEAL / ENTRANCE ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
.reveal.r-left  { transform: translateX(-36px); }
.reveal.r-right { transform: translateX(36px); }
.reveal.r-up    { transform: translateY(40px); }
.reveal.r-scale { transform: scale(0.92); }
.reveal.r-fade  { transform: none; filter: blur(0); }
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

.reveal[data-delay="1"]  { transition-delay: 0.08s; }
.reveal[data-delay="2"]  { transition-delay: 0.16s; }
.reveal[data-delay="3"]  { transition-delay: 0.24s; }
.reveal[data-delay="4"]  { transition-delay: 0.32s; }
.reveal[data-delay="5"]  { transition-delay: 0.40s; }
.reveal[data-delay="6"]  { transition-delay: 0.48s; }
.reveal[data-delay="7"]  { transition-delay: 0.56s; }
.reveal[data-delay="8"]  { transition-delay: 0.64s; }
.reveal[data-delay="9"]  { transition-delay: 0.72s; }
.reveal[data-delay="10"] { transition-delay: 0.80s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 30px 60px rgba(95, 179, 48, 0.25); }
  50%      { transform: scale(1.02); box-shadow: 0 36px 70px rgba(95, 179, 48, 0.32); }
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(123, 201, 74, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(123, 201, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 201, 74, 0); }
}
.eyebrow .dot { animation: pulseDot 2.2s ease-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}
.blob { animation: drift 18s ease-in-out infinite; }
.blob.b2 { animation-duration: 22s; animation-direction: reverse; }

@keyframes starPop {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(0); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.reveal.is-in .stars-row svg,
.reveal.is-in .stars svg {
  animation: starPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.reveal.is-in .stars-row svg:nth-child(1),
.reveal.is-in .stars svg:nth-child(1) { animation-delay: 0.2s; }
.reveal.is-in .stars-row svg:nth-child(2),
.reveal.is-in .stars svg:nth-child(2) { animation-delay: 0.32s; }
.reveal.is-in .stars-row svg:nth-child(3),
.reveal.is-in .stars svg:nth-child(3) { animation-delay: 0.44s; }
.reveal.is-in .stars-row svg:nth-child(4),
.reveal.is-in .stars svg:nth-child(4) { animation-delay: 0.56s; }
.reveal.is-in .stars-row svg:nth-child(5),
.reveal.is-in .stars svg:nth-child(5) { animation-delay: 0.68s; }

@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.reveal.is-in .stats::before {
  animation: drawLine 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .float-card, .doctor, .blob, .eyebrow .dot { animation: none; }
  .reveal.is-in .stars-row svg, .reveal.is-in .stars svg { animation: none; }
}

/* =============================================
   DETAIL PAGE — HERO (clinic / treatment)
   ============================================= */
.detail-hero {
  position: relative;
  padding: 36px 0 56px;
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.detail-hero .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.detail-hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--stroke);
  color: var(--green-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}
.detail-hero .tag.solid {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(95, 179, 48, 0.3);
}
.detail-hero h1 {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.detail-hero h1 .accent {
  position: relative;
  color: var(--green-700);
  display: inline-block;
}
.detail-hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--green-200);
  border-radius: 10px;
  z-index: -1;
}
.detail-hero .lede {
  font-size: 17px;
  color: var(--ink-500);
  margin: 0 0 28px;
  max-width: 560px;
}
.detail-hero .hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px 36px;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
  max-width: 620px;
}
.detail-hero .hero-meta .m .t { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.detail-hero .hero-meta .m .v { font-size: 22px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; margin-top: 4px; }
.detail-hero .hero-meta .m .v .accent { color: var(--green-700); }

/* Gallery / visual on right */
.gallery {
  position: relative;
}
.gallery-main {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--green-300), var(--green-500));
}
.gallery-main svg,
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main .pill-rating {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(15, 26, 18, 0.85);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}
.gallery-main .pill-rating svg { width: 14px; height: 14px; color: #FFE76A; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs .thumb {
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
}
.gallery-thumbs .thumb svg,
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs .thumb:hover { transform: translateY(-2px); }
.gallery-thumbs .thumb.active { border-color: var(--green-500); box-shadow: 0 6px 14px rgba(95, 179, 48, 0.25); }

/* =============================================
   DETAIL PAGE — 2-COL LAYOUT (content + sidebar)
   ============================================= */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  position: relative;
  z-index: 2;
  align-items: start;
}
.detail-content > section { margin-bottom: 48px; }
.detail-content > section:last-child { margin-bottom: 0; }
.detail-content h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.detail-content h2 .accent { color: var(--green-700); }
.detail-content p { color: var(--ink-500); font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.detail-content .lead { font-size: 17px; color: var(--ink-700); }

.detail-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
}
.info-card .price-big {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.info-card .price-big strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 2px 0 2px;
}
.info-card .price-big strong span { color: var(--green-700); }
.info-card .includes {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-card .includes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-700);
}
.info-card .includes li svg {
  width: 18px; height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-card .btn-primary { width: 100%; justify-content: center; }
.info-card .note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.5;
}

.mini-contact-card {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 14px 32px rgba(75, 143, 36, 0.28);
}
.mini-contact-card .t { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.mini-contact-card .s { font-size: 13px; opacity: 0.85; margin-bottom: 14px; }
.mini-contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--green-700);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s;
}
.mini-contact-card a:hover { transform: translateY(-2px); }
.mini-contact-card a svg { width: 14px; height: 14px; }

/* Fact grid (inside detail content) */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.fact {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--green-200); }
.fact .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
  margin-bottom: 10px;
}
.fact .ic svg { width: 18px; height: 18px; }
.fact .v { font-size: 20px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.fact .l { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* Department list */
.dept-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dept {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  transition: border-color .2s, transform .2s, background .2s;
}
.dept:hover {
  border-color: var(--green-300);
  transform: translateX(4px);
  background: var(--green-50);
}
.dept .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dept .ic svg { width: 20px; height: 20px; }
.dept .t { font-weight: 700; font-size: 14px; color: var(--ink-900); }
.dept .s { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.process-steps.process-steps-3 {
  grid-template-columns: repeat(3, 1fr);
}
.process-steps.is-centered {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.process-steps .step {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.process-steps .step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.process-steps .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -14px;
  left: 24px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 14px rgba(95, 179, 48, 0.35);
}
.process-steps .step .ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
  margin: 4px 0 16px;
}
.process-steps .step .ic svg { width: 24px; height: 24px; }
.process-steps .step h4 { font-size: 17px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.process-steps .step p { font-size: 13px; color: var(--ink-500); margin: 0; line-height: 1.55; }

/* Vertical process (для детальной страницы) */
.process-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pstep;
  position: relative;
}
.process-vertical::before {
  content: "";
  position: absolute;
  top: 24px; bottom: 24px;
  left: 21px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-300), var(--green-500), var(--green-300));
  border-radius: 2px;
}
.process-vertical li {
  position: relative;
  padding: 0 0 28px 62px;
  counter-increment: pstep;
}
.process-vertical li::before {
  content: counter(pstep);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(95, 179, 48, 0.3);
  border: 3px solid white;
}
.process-vertical li h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.process-vertical li p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.6;
}

/* =============================================
   PRICE TABLE
   ============================================= */
.price-table {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 18px 22px;
  align-items: center;
  border-bottom: 1px dashed var(--stroke);
  transition: background .2s;
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--green-50); }
.price-row.header {
  background: var(--ink-900);
  color: white;
  padding: 14px 22px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.price-row.header:hover { background: var(--ink-900); }
.price-row .title-col .t { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.price-row .title-col .s { font-size: 13px; color: var(--ink-500); margin-top: 3px; }
.price-row .price-col {
  font-weight: 800;
  font-size: 18px;
  color: var(--green-700);
  letter-spacing: -0.01em;
}
.price-row .price-col span { color: var(--ink-400); font-weight: 600; font-size: 13px; }

/* =============================================
   FAQ LIST (accordion-style, CSS-only)
   ============================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.faq-item {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FB330' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--green-700); }
.faq-item .faq-body {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
}
.faq-item .faq-body p { margin: 0 0 8px; }
.faq-item .faq-body p:last-child { margin: 0; }

/* =============================================
   TABS (для страниц-деталей)
   ============================================= */
.tabs {
  display: flex;
  gap: 6px;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  width: fit-content;
  overflow-x: auto;
}
.tabs a {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-500);
  white-space: nowrap;
  transition: all .2s;
}
.tabs a:hover { color: var(--ink-900); }
.tabs a.active {
  background: var(--green-500);
  color: white;
  box-shadow: 0 6px 14px rgba(95, 179, 48, 0.28);
}

/* =============================================
   METHOD CARDS (для страницы направления)
   ============================================= */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.method-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.method-card .ic {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(95, 179, 48, 0.25);
}
.method-card .ic svg { width: 26px; height: 26px; }
.method-card h4 { font-size: 18px; font-weight: 800; margin: 4px 0 8px; letter-spacing: -0.01em; }
.method-card p { font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.55; }

/* =============================================
   RELATED CLINICS ROW (горизонтальные мини-карточки)
   ============================================= */
.related-clinics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rel-clinic {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rel-clinic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--green-300);
}
.rel-clinic .pic {
  flex-shrink: 0;
  width: 82px; height: 82px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-300), var(--green-500));
}
.rel-clinic .pic svg,
.rel-clinic .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-clinic .title { font-weight: 800; font-size: 14px; margin: 0 0 4px; letter-spacing: -0.01em; }
.rel-clinic .city { font-size: 12px; color: var(--ink-500); margin-bottom: 6px; }
.rel-clinic .go {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rel-clinic .go svg { width: 12px; height: 12px; transition: transform .2s; }
.rel-clinic:hover .go svg { transform: translateX(3px); }

/* =============================================
   PARTNERS / LOGOS ROW (для главной)
   ============================================= */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 56px;
  padding: 32px 32px;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.partners-row .p-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-400);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: color .25s;
}
.partners-row .p-logo:hover { color: var(--green-700); }
.partners-row .p-logo .lg {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.partners-row .p-logo .name { font-size: 18px; }
.partners-row .p-logo .name small { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); margin-top: 2px; }

/* =============================================
   WHY-US / FEATURES (для главной)
   ============================================= */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.feature-split .feat-visual {
  position: relative;
  height: 460px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(400px 300px at 30% 30%, var(--green-200), transparent 70%),
    linear-gradient(160deg, var(--green-100), var(--green-300));
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-split .feat-visual svg { width: 100%; height: 100%; display: block; }
.feature-split .feat-visual .stick-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--stroke);
  animation: floatY 5s ease-in-out infinite;
}
.feature-split .feat-visual .stick-card .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.feature-split .feat-visual .stick-card .ic svg { width: 22px; height: 22px; overflow: visible; }
.feature-split .feat-visual .stick-card .ic-verified,
.feature-split .feat-visual .stick-card .ic-clock {
  position: relative;
  overflow: visible;
}
.feature-split .feat-visual .stick-card .ic-verified::after {
  /* soft accent halo behind the verified icon */
  content: "";
  position: absolute; inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(95,179,48,0.25), transparent 65%);
  z-index: -1;
  animation: verifiedPulse 2.4s ease-in-out infinite;
}
@keyframes verifiedPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50%      { opacity: 0.85; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .feature-split .feat-visual .stick-card { animation: none; }
  .feature-split .feat-visual .stick-card .ic-verified::after { animation: none; }
  .feature-split .feat-visual .stick-card .ic svg animate,
  .feature-split .feat-visual .stick-card .ic svg animateTransform {
    animation-play-state: paused;
  }
}
.feature-split .feat-visual .stick-card .t { font-weight: 700; font-size: 13px; color: var(--ink-900); }
.feature-split .feat-visual .stick-card .s { font-size: 11px; color: var(--ink-500); }
.feature-split .feat-visual .stick-card.s1 { top: 14px; left: 12px; }
.feature-split .feat-visual .stick-card.s2 { top: 14px; right: 12px; animation-delay: 1.5s; }
.feature-split .feat-visual .stick-card.s3 {
  bottom: 14px;
  left: 50%;
  animation: floatYCentered 5s ease-in-out infinite;
  animation-delay: 3s;
}
@keyframes floatYCentered {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
.feature-split .feat-visual .stick-card .ic-direct,
.feature-split .feat-visual .stick-card .ic-support {
  background: linear-gradient(135deg, #E6F7DA, #D7F0C4);
  color: #3D8A18;
}

/* HTML service strip — visible only on mobile (see @media 640px) */
.feat-visual .svc-html { display: none; }

.feat-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feat-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feat-list li .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: white;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(95, 179, 48, 0.25);
}
.feat-list li .ic svg { width: 20px; height: 20px; }
.feat-list li .t { font-weight: 800; font-size: 17px; color: var(--ink-900); margin: 4px 0 4px; letter-spacing: -0.01em; }
.feat-list li .s { font-size: 14px; color: var(--ink-500); line-height: 1.55; margin: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--stroke);
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--green-700);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle:hover { border-color: var(--green-500); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Backdrop — disabled, using box-shadow on nav.main instead (avoids stacking-context bug) */
.nav-backdrop { display: none !important; }

@media (max-width: 1080px) {
  nav.main {
    position: fixed;
    top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 88px 24px 32px;
    box-shadow: -10px 0 40px rgba(10, 26, 12, 0.15);
    transform: translateX(100%);
    transition: transform .32s ease;
    z-index: 9999;
    overflow-y: auto;
    pointer-events: auto;
  }
  .nav-backdrop { z-index: 9990 !important; }
  body.nav-open nav.main {
    transform: translateX(0);
    background: #ffffff;
    box-shadow:
      -16px 0 50px rgba(10, 26, 12, 0.18),
      0 0 0 100vmax rgba(10, 26, 12, 0.25);
  }
  body.nav-open {
    overflow: hidden !important;
    height: 100vh;
    overscroll-behavior: contain;
  }
  body.nav-open nav.main { overscroll-behavior: contain; }
  html:has(body.nav-open) { overflow: hidden !important; }
  nav.main a {
    font-size: 17px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--stroke);
    color: var(--ink-700);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(95, 179, 48, 0.2);
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    display: block;
  }
  nav.main a:hover,
  nav.main a:active { color: var(--green-700); }
  nav.main a.active::after { display: none; }
  nav.main a.active {
    color: var(--green-700);
    font-weight: 700;
    background: transparent;
    padding-left: 4px;
    border-radius: 0;
  }
  .nav-toggle { display: flex; }
  /* Hide top-bar lang on mobile — its clone lives inside nav.main */
  .top-actions .lang { display: none; }
  /* Mobile lang clone — shown inside slide-out menu */
  .lang-mobile {
    margin-top: 24px;
    align-self: stretch;
    justify-content: center;
    padding: 6px;
    border-radius: 999px;
  }
  .lang-mobile button { padding: 10px 14px; font-size: 13px; flex: 1; }
}
@media (min-width: 1081px) {
  .lang-mobile { display: none !important; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .visual { min-height: 480px; }
  .form-card { position: static; width: 100%; max-width: 440px; margin: 0 auto; }
  .doctor { position: relative; margin: 0 auto; right: auto; top: auto; }
  .fc-1, .fc-2 { position: static; display: none; }
  .treatments-grid, .clinics-grid, .values-grid, .office-grid { grid-template-columns: 1fr 1fr; }
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .review-card.featured { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-banner .cta-illust { display: none; }
  .cta-btn-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-btn-row .btn { width: 100%; justify-content: flex-start; box-sizing: border-box; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; flex-direction: row; gap: 20px; flex-wrap: wrap; }
  .detail-sidebar > * { flex: 1 1 300px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-list { grid-template-columns: 1fr; }
  .process-steps,
  .process-steps.process-steps-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .related-clinics { grid-template-columns: 1fr 1fr; }
  .methods-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 36px; }
  .feature-split .feat-visual { height: 360px; }
}
@media (max-width: 720px) {
  .reviews { padding: 70px 0 90px; }
  .reviews-grid, .treatments-grid, .clinics-grid, .doctors-grid, .values-grid, .office-grid {
    grid-template-columns: 1fr;
  }
  .review-card.featured { grid-column: auto; }
  .reviews-summary { padding: 18px; gap: 18px; }
  .reviews-summary .sep { display: none; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form .field-row { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .process-steps,
  .process-steps.process-steps-3 { grid-template-columns: 1fr; }
  .related-clinics { grid-template-columns: 1fr; }
  .detail-hero .hero-meta { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-thumbs .thumb:nth-child(4) { display: none; }
  .partners-row { gap: 24px 28px; padding: 24px; }
  .price-row { grid-template-columns: 1fr; gap: 6px; }
}
/* Mobile title — hidden on desktop */
.mobile-title {
  display: none;
}
/* Nav close arrow — hidden on desktop */
.nav-close {
  display: none;
}
@media (max-width: 1080px) {
  /* Logo: hide text on mobile (header only), keep only the icon */
  header .logo > span:not(.logo-mark) { display: none !important; }
  header .logo { gap: 0 !important; font-size: 0 !important; }
  /* Footer logo: показываем название рядом с логотипом, белым цветом */
  footer .logo > span:not(.logo-mark) { display: block !important; }
  footer .logo { gap: 12px !important; font-size: 20px !important; color: white !important; }
  footer .logo small { color: rgba(255,255,255,0.55) !important; }
  /* Center title between logo and hamburger */
  .topbar { position: relative; }
  .mobile-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    white-space: nowrap;
    pointer-events: none;
  }
  .mobile-title small {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
  }
  /* Logo slightly to the right */
  .logo { padding-left: 8px; }
  /* Hamburger slightly to the left */
  .top-actions { padding-right: 8px; }
  /* Close arrow inside slide-out menu */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 0;
    width: 40px; height: 40px;
    margin-bottom: 16px;
    color: var(--ink-500);
    cursor: pointer;
    transition: color .2s, border-color .2s;
    -webkit-tap-highlight-color: rgba(95, 179, 48, 0.2);
    flex-shrink: 0;
  }
  .nav-close:hover, .nav-close:active { color: var(--green-700); border-color: var(--green-500); }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .topbar .phone { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .topbar { gap: 8px; padding: 14px 0 8px; }
  .logo-mark { width: 56px !important; height: 56px !important; border-radius: 12px; }
  .logo-mark svg { width: 48px !important; height: 48px !important; }
  .top-actions { gap: 6px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle span { width: 18px; }

  /* ---- Stick-cards в секции "Почему Sofortmed" ---- */
  .feature-split .feat-visual { height: 460px; }
  /* Все карточки: одинаковая высота, помещаются рядом */
  .feature-split .feat-visual .stick-card {
    padding: 10px 12px;
    gap: 9px;
    max-width: 152px;
    height: 74px;        /* фиксированная высота — все одинаковые */
    overflow: hidden;
    align-items: flex-start;
  }
  .feature-split .feat-visual .stick-card .ic {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
  }
  .feature-split .feat-visual .stick-card .ic svg { width: 16px; height: 16px; }
  .feature-split .feat-visual .stick-card .t { font-size: 13px; line-height: 1.25; }
  /* Подпись: умещается в оставшуюся ширину, естественный перенос по дефису/пробелу */
  .feature-split .feat-visual .stick-card .s { font-size: 11px; line-height: 1.3; margin-top: 2px; }
  /* «Без комиссии» — заголовок в 2 строки */
  .feature-split .feat-visual .stick-card.s2 .t { max-width: 58px; }
  /* Позиции */
  .feature-split .feat-visual .stick-card.s1 { top: 20px; left: 8px;  right: auto; bottom: auto; }
  .feature-split .feat-visual .stick-card.s2 { top: 14px; right: 8px; left: auto;  bottom: auto; }
  /* s3 под полосой, у самого низа */
  .feature-split .feat-visual .stick-card.s3 { bottom: 14px; }
  /* SVG-тексты крупнее */
  .feature-split .feat-visual svg .slbl-h { font-size: 22px; }
  .feature-split .feat-visual svg .slbl-s  { font-size: 14px; transform: translateY(10px); }
  /* SVG: текст полосы скрыт (HTML-оверлей), линия видима */
  .feature-split .feat-visual svg .svc-strip { display: none; }
  .feature-split .feat-visual svg .svc-line  { display: block; }
  /* HTML-полоса: позиционирована точно внутри иллюстрации, на месте SVG-текстов */
  .feature-split .feat-visual .svc-html {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: absolute;
    top: 325px;          /* совпадает с y≈386 SVG при масштабе 0.724 */
    bottom: auto;
    left: 0;
    width: 100%;
    z-index: 3;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0a1a0c;
    letter-spacing: 0.01em;
  }
}

/* =============================================
   MODALS (ПОПАПЫ)
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .28s ease;
}
.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}
.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .28s ease;
  box-shadow: 0 30px 80px rgba(15, 26, 18, .45);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: .05s;
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-thumb { background: var(--green-300); border-radius: 3px; }

.modal.m-sm { max-width: 420px; }
.modal.m-md { max-width: 560px; }
.modal.m-lg { max-width: 680px; }
.modal.m-xl { max-width: 880px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: white;
  color: var(--ink-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s, color .25s, transform .35s, border-color .25s;
  z-index: 10;
}
.modal-close:hover {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
  transform: rotate(90deg);
}
.modal-close svg { width: 18px; height: 18px; stroke-width: 2.2; }

.modal-head {
  padding: 34px 36px 0;
  position: relative;
}
.modal-head .eyebrow { margin-bottom: 14px; }
.modal-head h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  padding-right: 48px;
}
.modal-head .sub {
  color: var(--ink-500);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.modal-body {
  padding: 22px 36px 32px;
}
.modal-body .field { margin-bottom: 14px; }
.modal-body .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.modal-body .field input,
.modal-body .field select,
.modal-body .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-900);
  background: var(--cream);
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.modal-body .field input:focus,
.modal-body .field select:focus,
.modal-body .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: white;
}
.modal-body .field textarea { min-height: 100px; }
.modal-body .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-body .radio-row,
.contact-form .radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-body .radio-row label,
.contact-form .radio-row label {
  flex: 1;
  min-width: calc(33.333% - 8px);
  text-align: center;
  padding: 10px 12px;
  border: 1.5px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  background: white;
  transition: all .2s;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.modal-body .radio-row input,
.contact-form .radio-row input { display: none; }
.modal-body .radio-row label:hover,
.contact-form .radio-row label:hover { border-color: var(--green-300); color: var(--green-700); }
.modal-body .radio-row input:checked + span,
.modal-body .radio-row label:has(input:checked),
.contact-form .radio-row input:checked + span,
.contact-form .radio-row label:has(input:checked) {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}
.modal-body .check-line,
.contact-form .check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 10px 0 16px;
}
.modal-body .check-line input,
.contact-form .check-line input {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--green-500);
}
.modal-body .check-line a,
.contact-form .check-line a { color: var(--green-700); font-weight: 600; }
.modal-body .btn { width: 100%; justify-content: center; }
.modal-body .alt-link {
  text-align: center;
  font-size: 13px;
  color: var(--ink-500);
  margin: 16px 0 0;
}
.modal-body .alt-link a { color: var(--green-700); font-weight: 700; }

.modal-body .contacts-row,
.contact-form .contacts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--stroke);
}
.modal-body .contacts-row a,
.contact-form .contacts-row a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.modal-body .contacts-row a:hover,
.contact-form .contacts-row a:hover { border-color: var(--green-300); background: var(--green-50); }
.modal-body .contacts-row a svg,
.contact-form .contacts-row a svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }
.modal-body .contacts-row a small,
.contact-form .contacts-row a small { display: block; font-size: 11px; color: var(--ink-500); font-weight: 500; }
/* Viber brand accent */
.modal-body .contacts-row a.contact-viber svg,
.contact-form .contacts-row a.contact-viber svg { color: #7360F2; }
.modal-body .contacts-row a.contact-viber:hover,
.contact-form .contacts-row a.contact-viber:hover { border-color: #7360F2; background: rgba(115, 96, 242, 0.06); }

/* Image viewer modal */
.modal.m-image {
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: none;
  overflow: visible;
  width: auto;
  padding: 0;
}
.modal.m-image .img-wrap {
  position: relative;
  display: grid;
  place-items: center;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  background: var(--green-100);
}
.modal.m-image svg,
.modal.m-image img {
  max-width: 100%;
  max-height: 88vh;
  display: block;
}
.modal.m-image .modal-close {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  top: -20px; right: -20px;
}
.modal.m-image .caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(15, 26, 18, .75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
}

/* Video modal */
.modal.m-video {
  max-width: 960px;
  background: #0b140e;
  padding: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.modal.m-video .video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 30% 30%, rgba(95,179,48,.2), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(61,138,24,.3), transparent 60%),
    linear-gradient(160deg, #1a2a1d, #0b140e);
}
.modal.m-video .video-frame .play-big {
  width: 94px; height: 94px;
  border-radius: 50%;
  background: var(--green-500);
  display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(95, 179, 48, .5);
  cursor: pointer;
  border: none;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  z-index: 2;
}
.modal.m-video .video-frame .play-big::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  animation: pulsePlay 2s ease-out infinite;
}
@keyframes pulsePlay {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.modal.m-video .video-frame .play-big:hover { transform: scale(1.08); }
.modal.m-video .video-frame .play-big svg { width: 36px; height: 36px; fill: white; margin-left: 5px; }

/* Animated "How we work" illustration */
.modal.m-video .video-frame .hww-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .modal.m-video .video-frame .hww-anim animate,
  .modal.m-video .video-frame .hww-anim animateMotion,
  .modal.m-video .video-frame .hww-anim animateTransform {
    /* SMIL ignores CSS, but we hint UA at intent */
    animation-play-state: paused;
  }
}

.modal.m-video .v-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.modal.m-video .v-caption .t { font-size: 20px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.modal.m-video .v-caption .s { font-size: 13px; opacity: .7; }

/* Gallery modal - slideshow */
.modal.m-gallery {
  background: transparent;
  max-width: 94vw;
  max-height: 92vh;
  box-shadow: none;
  padding: 0;
  width: auto;
  overflow: visible;
}
.modal.m-gallery .g-stage {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-100);
  max-height: 80vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.modal.m-gallery .g-stage svg,
.modal.m-gallery .g-stage img { max-width: 100%; max-height: 80vh; display: block; }
.modal.m-gallery .g-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s;
  z-index: 3;
}
.modal.m-gallery .g-nav.prev { left: -28px; }
.modal.m-gallery .g-nav.next { right: -28px; }
.modal.m-gallery .g-nav:hover { transform: translateY(-50%) scale(1.1); }
.modal.m-gallery .g-nav svg { width: 20px; height: 20px; }
.modal.m-gallery .g-counter {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(15, 26, 18, .7);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.modal.m-gallery .modal-close { top: -22px; right: -22px; background: white; box-shadow: 0 4px 14px rgba(0,0,0,.4); }

/* Doctor detail modal */
.modal.m-doctor .doc-hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px 32px 20px;
}
.modal.m-doctor .doc-hero .portrait {
  width: 150px; height: 150px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--green-100), var(--green-300));
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.modal.m-doctor .doc-hero .portrait svg { width: 100%; height: 100%; }
.modal.m-doctor .doc-hero h3 { font-size: 22px; margin-bottom: 4px; }
.modal.m-doctor .doc-hero .pos { color: var(--ink-500); font-size: 14px; margin: 0 0 10px; }
.modal.m-doctor .doc-hero .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.modal.m-doctor .doc-hero .tag-row span {
  padding: 4px 10px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.modal.m-doctor .doc-body { padding: 0 32px 32px; }
.modal.m-doctor .doc-body h4 { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-500); margin: 20px 0 10px; }
.modal.m-doctor .doc-body p { color: var(--ink-700); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.modal.m-doctor .doc-body ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-700); line-height: 1.7; }
.modal.m-doctor .doc-body ul li { padding-left: 22px; position: relative; }
.modal.m-doctor .doc-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border: 2px solid var(--green-500);
  border-radius: 50%;
}
.modal.m-doctor .doc-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* Certificate modal */
.modal.m-cert .cert-img {
  background: linear-gradient(135deg, var(--cream), var(--green-50));
  padding: 40px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--stroke);
  min-height: 320px;
}
.modal.m-cert .cert-img svg { max-width: 100%; height: auto; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.toast {
  background: white;
  border: 1px solid var(--stroke);
  border-left: 4px solid var(--green-500);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 14px 40px rgba(15, 26, 18, .18);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}
.toast.is-show {
  transform: translateX(0);
  opacity: 1;
}
.toast.is-hiding {
  transform: translateX(120%);
  opacity: 0;
}
.toast::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: .35;
  width: 100%;
  transform-origin: left center;
  animation: toastBar var(--toast-dur, 5s) linear forwards;
}
@keyframes toastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.toast.t-success { border-left-color: #22a651; color: #22a651; }
.toast.t-error { border-left-color: #e54545; color: #e54545; }
.toast.t-warn { border-left-color: #f59e0b; color: #f59e0b; }
.toast.t-info { border-left-color: #4a8ccd; color: #4a8ccd; }

.toast .ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: currentColor;
}
.toast.t-success .ic { background: #d4f5e0; }
.toast.t-error .ic { background: #fde2e2; }
.toast.t-warn .ic { background: #fef3d9; }
.toast.t-info .ic { background: #dde9f5; }
.toast .ic svg { width: 18px; height: 18px; }
.toast .tx { flex: 1; min-width: 0; }
.toast .t { font-weight: 800; color: var(--ink-900); font-size: 14px; margin-bottom: 2px; letter-spacing: -0.01em; }
.toast .s { font-size: 13px; color: var(--ink-500); line-height: 1.45; }
.toast .x {
  width: 24px; height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-400);
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.toast .x:hover { background: var(--green-50); color: var(--ink-900); }
.toast .x svg { width: 14px; height: 14px; }

/* Responsive modals */
@media (max-width: 720px) {
  .modal-overlay { padding: 14px; }
  .modal-head { padding: 26px 22px 0; }
  .modal-body { padding: 18px 22px 26px; }
  .modal-body .field-row { grid-template-columns: 1fr; }
  .modal-body .contacts-row,
  .contact-form .contacts-row { grid-template-columns: 1fr; }
  .modal.m-doctor .doc-hero { grid-template-columns: 1fr; text-align: center; padding: 28px 22px 16px; }
  .modal.m-doctor .doc-hero .portrait { margin: 0 auto; width: 120px; height: 120px; }
  .modal.m-doctor .doc-body { padding: 0 22px 26px; }
  .modal.m-doctor .doc-foot { grid-template-columns: 1fr; }
  .modal.m-gallery .g-nav.prev { left: 10px; }
  .modal.m-gallery .g-nav.next { right: 10px; }
  .modal.m-gallery .g-nav { width: 44px; height: 44px; }
  .modal.m-image .modal-close,
  .modal.m-gallery .modal-close { top: 10px; right: 10px; }
  .toast-container { top: 14px; right: 14px; left: 14px; }
  .toast { min-width: 0; max-width: 100%; }
}

/* =============================================
   PACKAGES (packages.html)
   ============================================= */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.plan-card.is-popular {
  background: linear-gradient(180deg, #F8FEF2 0%, white 60%);
  border: 2px solid var(--green-400);
  box-shadow: 0 16px 40px rgba(95, 179, 48, 0.18);
  transform: translateY(-8px);
}
.plan-card.is-popular:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 56px rgba(95, 179, 48, 0.24);
}
.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(95, 179, 48, 0.4);
  white-space: nowrap;
}
.plan-head { margin-bottom: 18px; }
.plan-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 8px;
}
.plan-card h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.plan-desc {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
  min-height: 44px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px dashed var(--stroke);
  border-bottom: 1px dashed var(--stroke);
  margin-bottom: 20px;
}
.plan-from {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
}
.plan-amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.plan-card.is-popular .plan-amount { color: var(--green-700); }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-700);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A8F24' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan-features li.plan-feat-prev {
  color: var(--ink-500);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--stroke);
  font-size: 13px;
}
.plan-features li.plan-feat-prev::before { display: none; }
.plan-features li.plan-feat-prev { padding-left: 0; }
.plan-features li.plan-feat-prev b { color: var(--ink-900); font-weight: 700; }
.plan-btn {
  width: 100%;
  justify-content: center;
}
/* Stretched link: entire card is clickable */
.plan-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.plan-card { cursor: pointer; }

.plan-note {
  max-width: 820px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.65;
}

/* Compare table */
.compare-table {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.cmp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 22px;
  align-items: center;
  border-bottom: 1px dashed var(--stroke);
  transition: background .2s;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row:not(.cmp-header):hover { background: var(--green-50); }
.cmp-row.cmp-header {
  background: var(--ink-900);
  color: white;
  padding: 16px 22px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
}
.cmp-row.cmp-header:hover { background: var(--ink-900); }
.cmp-feature {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
}
.cmp-row.cmp-header .cmp-feature { color: rgba(255,255,255,0.55); font-weight: 700; }
.cmp-col {
  text-align: center;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 600;
}
.cmp-row.cmp-header .cmp-col { color: white; font-weight: 800; }
.cmp-col.cmp-col-hl {
  background: var(--green-50);
  margin: -16px 0;
  padding: 16px 8px;
  border-left: 1px solid var(--green-200);
  border-right: 1px solid var(--green-200);
}
.cmp-row.cmp-header .cmp-col.cmp-col-hl {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-color: transparent;
}
.cmp-y, .cmp-n {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.cmp-y {
  background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A8F24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.cmp-n {
  background: #F3F5F2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A968D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.is-popular { transform: none; }
}
@media (max-width: 720px) {
  .plans-grid { grid-template-columns: 1fr; }
  /* Compare table — горизонтальная прокрутка на мобиле */
  .compare-table {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .cmp-row, .cmp-row.cmp-header {
    grid-template-columns: 180px 110px 110px 110px 110px !important;
    padding: 12px 14px;
    gap: 8px;
    font-size: 12px;
    min-width: 660px;
    width: 660px;
  }
  .cmp-feature { font-size: 13px; }
  .cmp-col { font-size: 12px; }
}
.scroll-hint-mobile {
  display: none;
  text-align: center;
  color: var(--ink-500);
  font-size: 11px;
  padding: 8px 0 0;
}
@media (max-width: 720px) {
  .scroll-hint-mobile { display: block; }
}

/* ================================================================
   Packages page — plans grid + compare table
   ================================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.plan-card.is-popular {
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 35%);
  border: 2px solid var(--green-400);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.plan-card.is-popular:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(95, 179, 48, 0.3);
}
.plan-head { margin-bottom: 18px; }
.plan-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 8px;
}
.plan-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.plan-desc {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
  min-height: 44px;
  line-height: 1.45;
}
.plan-price {
  padding: 18px 0;
  border-top: 1px dashed var(--stroke);
  border-bottom: 1px dashed var(--stroke);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.plan-from {
  font-size: 13px;
  color: var(--ink-400);
}
.plan-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
}
.plan-amount sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-400);
  vertical-align: baseline;
  margin-left: 2px;
}
.plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23E6F7DA'/%3E%3Cpath d='M8 12l3 3 5-6' stroke='%235FB330' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.plan-feat-prev {
  font-style: italic;
  color: var(--ink-500);
  padding-left: 0 \!important;
}
.plan-feat-prev::before { display: none !important; }
.plan-btn { width: 100%; justify-content: center; }
.plan-note {
  max-width: 820px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
}

/* Compare table */
.compare-table {
  margin-top: 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.cmp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--stroke);
  align-items: center;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row.cmp-header {
  background: var(--ink-900);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cmp-feature, .cmp-col {
  padding: 16px 18px;
  font-size: 14px;
}
.cmp-feature {
  font-weight: 600;
  color: var(--ink-900);
  border-right: 1px solid var(--stroke);
}
.cmp-row.cmp-header .cmp-feature,
.cmp-row.cmp-header .cmp-col { border-right: 1px solid rgba(255,255,255,0.08); }
.cmp-row.cmp-header .cmp-col:last-child { border-right: none; }
.cmp-col {
  text-align: center;
  color: var(--ink-700);
  border-right: 1px solid var(--stroke);
}
.cmp-col:last-child { border-right: none; }
.cmp-col.cmp-col-hl {
  background: var(--green-50);
  color: var(--ink-900);
  font-weight: 600;
}
.cmp-y, .cmp-n {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   PACKAGES — мобильная сетка (фикс перекрытия)
   ============================================ */
@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 720px) {
  .plans-grid { grid-template-columns: 1fr !important; }
  .plan-card { padding: 24px 20px 22px; }
}

/* ============================================
   ADDONS PAGE (addons.html)
   ============================================ */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.addon-card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.addon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.addon-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.addon-icon svg { width: 26px; height: 26px; }
.addon-card h3 {
  margin: 4px 0 2px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.addon-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}
@media (max-width: 1080px) {
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .addons-grid { grid-template-columns: 1fr; }
  .addon-card { padding: 20px 18px; }
}

/* ── Review form ───────────────────────────────────────────── */
.review-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  color: var(--green-700);
  font-weight: 600;
}
.review-success-banner svg { width: 22px; height: 22px; flex-shrink: 0; }

.review-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.review-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.review-form .field label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.review-form .field .req { color: var(--green-600); }
.review-form .field input,
.review-form .field textarea {
  border: 1.5px solid var(--stroke);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .2s;
  font-family: inherit;
  resize: vertical;
}
.review-form .field input:focus,
.review-form .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(52,168,83,.12);
}

/* Star rating */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-rating input[type="radio"] { display: none; }
.star-rating label {
  cursor: pointer;
  color: #d1d5db;
  transition: color .15s;
}
.star-rating label svg { width: 32px; height: 32px; display: block; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f5b700; }

.review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.review-notice {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
}

@media (max-width: 720px) {
  .review-form { padding: 24px 18px; }
  .review-form .field-row { grid-template-columns: 1fr; }
  .review-form-footer { flex-direction: column; align-items: flex-start; }
}
