/* ── СБРОС И БАЗОВЫЕ СТИЛИ ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green:       #538a3e;
  --green-dark:  #42722f;
  --green-light: #eef7e8;
  --green-pale:  #c8e8a8;
  --terra:       #b56e3a;
  --terra-dark:  #905828;
  --terra-light: #fdf5e8;
  --cream:       #fffdf8;
  --ink:         #1a3018;
  --ink-soft:    #5a4830;
  --border:      #e8e0d0;
  --sans:        system-ui, -apple-system, sans-serif;
  --serif:       'Playfair Display', Georgia, serif;
}
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.7;
  /* длинные адреса и ссылки переносятся, а не расталкивают вёрстку на узких экранах */
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ТИПОГРАФИКА ───────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
.section-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.section-title::before {
  content: ''; width: 4px; height: 24px; border-radius: 2px;
  background: var(--green); flex-shrink: 0;
}
.section-title.terra::before { background: var(--terra); }
.section-title h2 { font-size: 1.5rem; color: var(--ink); }
.section-title a {
  margin-left: auto; font-size: .875rem; color: var(--terra);
  white-space: nowrap;
}

/* ── НАВИГАЦИЯ ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 2px solid #e8f0e0;
  padding: 12px 18px; display: flex; align-items: center;
  gap: 12px; box-shadow: 0 2px 10px rgba(46,66,40,.08);
  flex-wrap: nowrap;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.18rem;
  color: var(--ink); white-space: nowrap; flex: 0 1 auto;
}
.nav-logo em { color: var(--terra); font-style: normal; }
.nav-links {
  display: flex; gap: 6px; list-style: none; flex: 1 1 auto; flex-wrap: nowrap;
  justify-content: center; border-left: 1.5px solid rgba(26,48,20,.14);
  padding-left: 14px; margin-left: 8px;
}
/* Кнопки меню: крупнее, контрастнее и с явной областью нажатия —
   портал рассчитан на людей старшего возраста */
.nav-links a {
  display: block;
  font-size: .86rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: 11px 14px; border-radius: 10px;
  background: #f4f2ea;
  border: 1.5px solid #ddd6c4;
  box-shadow: 0 1px 2px rgba(26,48,20,.06);
  transition: color .16s, background .16s, border-color .16s,
              box-shadow .16s, transform .16s;
}
.nav-links a:hover {
  color: #fff; background: var(--green); border-color: var(--green);
  box-shadow: 0 5px 14px rgba(83,138,62,.3);
  transform: translateY(-2px);
}
.nav-links a:focus-visible {
  outline: 3px solid var(--terra); outline-offset: 2px;
}
.nav-links a.active {
  color: #fff; background: var(--green); border-color: var(--green-dark);
  box-shadow: 0 3px 10px rgba(83,138,62,.32);
}
.nav-links a.active:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; justify-content: flex-end; }

/* ── Nav dropdown ─────────────────────────── */
.nav-item { position: relative; }
/* Transparent bridge so mouse can travel into the dropdown without losing hover */
.nav-item--has-sub::before {
  content: ''; position: absolute; top: 100%; left: -12px; right: -12px;
  height: 12px; background: transparent; z-index: 199;
}
.nav-sub {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff; border: 1px solid #e0d8c0;
  border-radius: 10px; padding: 6px 0;
  min-width: 172px; box-shadow: 0 6px 24px rgba(26,48,20,.13);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .17s ease, transform .17s ease, visibility 0s linear .18s;
  z-index: 200;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .17s ease, transform .17s ease, visibility 0s linear 0s;
}
.nav-sub::before {
  content: ''; position: absolute; top: -7px; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent; border-top: 0;
  border-bottom-color: #e0d8c0;
}
.nav-sub::after {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top: 0;
  border-bottom-color: #fff;
}
.nav-sub a {
  display: block; padding: 10px 18px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(26,48,20,.75); white-space: nowrap;
  transition: color .13s, background .13s;
  border-bottom: none !important; border-radius: 0;
}
.nav-sub a:hover { color: var(--green-dark); background: var(--green-light); }

/* ── Burger button ───────────────────────────── */
.nav-burger {
  display: none; border: none; background: none; cursor: pointer;
  color: var(--green); padding: 4px; font-size: 1.6rem;
  align-items: center; line-height: 1;
}

/* ── Mobile nav panel ────────────────────────── */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 290; opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(82vw, 340px);
  background: var(--cream); z-index: 300;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding-bottom: 40px;
  box-shadow: 4px 0 24px rgba(26,48,20,.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--cream); position: sticky; top: 0; z-index: 1;
}
.mobile-nav-logo {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
}
.mobile-nav-logo em { color: var(--terra); font-style: normal; }
.mobile-nav-close {
  border: none; background: none; cursor: pointer; padding: 6px;
  color: rgba(26,48,20,.45); font-size: 1.3rem; display: flex; line-height: 1;
}
.mob-links { list-style: none; padding: 4px 0; }
.mob-item > a,
.mob-item > .mob-item-row > a {
  display: block; padding: 14px 20px;
  font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(26,48,20,.65); border-bottom: 1px solid var(--border);
}
.mob-item > a.active,
.mob-item > .mob-item-row > a.active { color: var(--ink); }
.mob-item-row { display: flex; align-items: stretch; }
.mob-item-row > a { flex: 1; border-right: none; }
.mob-toggle {
  border: none; border-bottom: 1px solid var(--border); background: none;
  cursor: pointer; padding: 0 16px; color: rgba(26,48,20,.4);
  font-size: 1rem; display: flex; align-items: center;
}
.mob-toggle .ti { transition: transform .22s ease; display: block; }
.mob-item.open .mob-toggle .ti { transform: rotate(180deg); }
.mob-sub {
  list-style: none; background: var(--green-light);
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}
.mob-item.open .mob-sub { max-height: 500px; }
.mob-sub li a {
  display: block; padding: 12px 32px;
  font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green-dark); border-bottom: 1px solid rgba(83,138,62,.12);
}
.mob-sub li:last-child a { border-bottom: none; }
/* Ссылки-CTA выглядят так же, как остальные пункты меню */
.nav-links a.nav-cta-green,
.nav-links a.nav-cta-terra { transform: none; }
.nav-links a.nav-cta-green:hover,
.nav-links a.nav-cta-terra:hover { transform: none; }
.font-btn {
  border: 1px solid #a8cc88; border-radius: 5px; padding: 3px 8px;
  background: #f0f8e8; color: var(--green); cursor: pointer;
  font-family: var(--sans); line-height: 1;
  transition: background .15s;
}
.font-btn.active { background: var(--green-pale); font-weight: 700; }
.font-btn:hover { background: var(--green-pale); }

/* ── ВОЛНОВЫЕ РАЗДЕЛИТЕЛИ ──────────────────────────────── */
.wave { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave svg { display: block; width: 100%; }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 580px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background: url('../images/hero-family.jpg') center center / cover no-repeat;
}
/* Запасной градиент если фото ещё не загружено */
.hero-photo-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #e8edd8 0%, #c8daa8 50%, #a8c280 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(252,250,244,.97) 0%,
    rgba(248,246,238,.93) 28%,
    rgba(242,250,230,.72) 52%,
    rgba(228,245,210,.30) 70%,
    rgba(210,238,188,.05) 85%,
    transparent 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 64px 40px; max-width: 580px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.85); border: 1px solid #b8d898;
  border-radius: 24px; padding: 5px 16px; font-size: .8rem;
  color: var(--green); margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .05em;
}
.hero-title { font-size: 3rem; color: var(--ink); margin-bottom: 16px; line-height: 1.15; }
.hero-title em { color: var(--terra); font-style: italic; }
.hero-subtitle { font-size: 1.125rem; color: #4a3820; line-height: 1.7; margin-bottom: 28px; }
.hero-subtitle strong { color: #2a4820; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: #fff; font-size: 1rem;
  padding: 12px 28px; border-radius: 32px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(74,122,56,.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,122,56,.4); }
.btn-secondary {
  background: rgba(255,255,255,.9); border: 2px solid #a8cc88;
  color: var(--green); font-size: 1rem; padding: 12px 20px;
  border-radius: 32px; transition: background .15s;
}
.btn-secondary:hover { background: #fff; }
.hero-stats {
  position: absolute; right: 32px; bottom: 32px; z-index: 2;
  display: flex; gap: 10px;
}
.stat-card {
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(200,221,184,.8); border-radius: 12px;
  padding: 10px 18px; text-align: center;
}
.stat-card .num {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--green); font-weight: 700;
}
.stat-card .label { font-size: .75rem; color: #7a9868; margin-top: 2px; }

/* ── TOPICS STRIP ──────────────────────────────────────── */
.topics {
  background: #fff; border-bottom: 2px solid #f0ebe0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.topic-item {
  padding: 24px 16px; text-align: center;
  border-right: 1px solid #e8e0d0; transition: background .15s;
}
.topic-item:last-child { border-right: none; }
.topic-item:hover { background: var(--green-light); }
.topic-icon { width: 72px; height: 72px; margin: 0 auto 10px; }
.topic-item h3 { font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.topic-item p { font-size: .8rem; color: #7a8868; }

/* ── ОБЩИЕ СЕКЦИИ ──────────────────────────────────────── */
.section { padding: 48px 40px; }
.section-cream  { background: var(--cream); }
.section-green  { background: var(--green-light); }
.section-terra  { background: var(--terra-light); }
.section-white  { background: #fff; }

/* ── КАРТОЧКИ СТАТЕЙ ───────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.article-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,66,40,.1); }
.article-thumb {
  height: 80px; display: flex; align-items: center;
  justify-content: center; font-size: 2rem;
}
.article-body { padding: 14px 16px 16px; }
.article-tag {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; margin-bottom: 6px;
}
.article-body h3 { font-size: .9375rem; margin-bottom: 6px; }
.article-meta { font-size: .75rem; color: #b09878; }
.badge-new {
  background: var(--green-light); color: var(--green);
  border: 1px solid #a8cc88; border-radius: 4px;
  padding: 1px 6px; font-size: .7rem;
}

/* ══════════════════════════════════════════════════════════
   СТРАНИЦА СТАТЬИ (.article-single)
══════════════════════════════════════════════════════════ */
.article-single {
    padding: 60px 40px 80px;
    background: var(--cream);
}
.article-single > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.article-single > .art-content > p {
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .article-single { padding: 40px 24px 60px; }
}
@media (max-width: 640px) {
    .article-single { padding: 28px 16px 40px; }
}

/* ── ПОЧЕМУ МЫ ─────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item { display: flex; align-items: flex-start; gap: 14px; }
.why-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-light); border: 2px solid #a8cc88;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; font-size: 1rem;
}
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: .875rem; color: #7a6858; line-height: 1.6; }
.why-cta-card {
  position: relative; border-radius: 16px; overflow: hidden;
  min-height: 200px; display: flex; align-items: flex-end;
}
.why-cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #c0d8a0 0%, #6a9850 60%, #3a6828 100%);
}
.why-cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,42,16,.7) 0%, rgba(46,66,40,.2) 100%);
}
.why-cta-content {
  position: relative; z-index: 2; padding: 24px;
}
.why-cta-content .eyebrow {
  font-size: .75rem; color: rgba(200,232,168,.8);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.why-cta-content h3 {
  font-size: 1.375rem; color: #fff; margin-bottom: 8px;
}
.why-cta-content p { font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.btn-light {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-pale); color: #2e4228;
  font-size: .875rem; font-weight: 600; padding: 9px 18px;
  border-radius: 8px; transition: background .15s;
}
.btn-light:hover { background: #b8dca8; }

/* ПАРТНЁР / RNIMU LOGO */
.rnimu-logo-wrap {
  background: rgba(255,255,255,.95); border-radius: 10px;
  padding: 8px 12px; display: inline-block; margin-bottom: 14px;
}
.rnimu-logo-wrap img { height: 40px; width: auto; display: block; }

/* ── КАРТА ГЕРИАТРИИ — новый дизайн ───────────────────── */
.geriatrics-new {
  background: #1e3018; border-radius: 20px; overflow: hidden;
  padding: 40px 40px 32px;
}
.geriatrics-new-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.geriatrics-new-header h2 {
  font-family: var(--serif); font-size: 1.625rem; color: #fff; margin-bottom: 8px;
}
.geriatrics-new-header p { font-size: .9375rem; color: rgba(255,255,255,.55); max-width: 480px; line-height: 1.6; }
.geriatrics-counters { display: flex; gap: 16px; flex-shrink: 0; }
.g-counter {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px 22px; text-align: center; min-width: 90px;
}
.g-counter .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.g-counter .lbl { font-size: .75rem; margin-top: 4px; }
.g-counter.open .num { color: #a8e888; }
.g-counter.open .lbl { color: rgba(168,232,136,.65); }
.g-counter.soon .num { color: #f0c070; }
.g-counter.soon .lbl { color: rgba(240,192,112,.65); }
.geriatrics-map-svg { width: 100%; max-height: 280px; display: block; margin-bottom: 28px; }
.geriatrics-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.g-city {
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.g-city:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.g-city.open { background: rgba(74,122,56,.25); border: 1px solid rgba(100,180,80,.3); }
.g-city.soon { background: rgba(181,110,58,.15); border: 1px solid rgba(200,140,80,.25); }
.g-city .city-name { font-size: .9375rem; font-weight: 600; color: #fff; margin-bottom: 3px; }
.g-city.open .city-status { font-size: .75rem; color: #8ad870; }
.g-city.soon .city-status { font-size: .75rem; color: #f0c070; }
.g-city .city-addr { font-size: .75rem; color: rgba(255,255,255,.38); margin-top: 2px; line-height: 1.4; }
.geriatrics-cta {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
}
.geriatrics-cta-text h4 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.geriatrics-cta-text p { font-size: .875rem; color: rgba(255,255,255,.5); }
.geriatrics-cta .btn-gc {
  flex-shrink: 0; background: var(--green-pale); color: #1e3018;
  font-size: .875rem; font-weight: 700; padding: 12px 24px;
  border-radius: 10px; white-space: nowrap; transition: background .15s;
}
.geriatrics-cta .btn-gc:hover { background: #b8e898; }

@keyframes pulse-city-open {
  0% { r: 16; opacity: .4; }
  70% { r: 28; opacity: 0; }
  100% { r: 16; opacity: 0; }
}
@keyframes pulse-city-soon {
  0% { r: 12; opacity: .35; }
  70% { r: 22; opacity: 0; }
  100% { r: 12; opacity: 0; }
}
.pdot-open { animation: pulse-city-open 2.4s ease-out infinite; }
.pdot-soon  { animation: pulse-city-soon  2.4s ease-out infinite; }

/* ── О ПРОЕКТЕ ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.about-stat {
  background: #fff; border: 1px solid #d8c8a8; border-radius: 12px;
  padding: 12px 20px; text-align: center;
}
.about-stat .num { font-family: var(--serif); font-size: 1.375rem; color: var(--terra); font-weight: 700; }
.about-stat .lbl { font-size: .75rem; color: #9a8060; margin-top: 2px; }
.about-partners { display: flex; flex-direction: column; gap: 12px; }
.partner-card {
  background: #fff; border: 1px solid #e0d0b0; border-radius: 12px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.partner-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--terra-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.partner-card h4 { font-size: .9375rem; margin-bottom: 2px; }
.partner-card p { font-size: .8rem; color: #9a8060; }

/* ── БАННЕР ВРАЧА ──────────────────────────────────────── */
.doctor-banner {
  background: var(--green); padding: 24px 40px;
  display: flex; align-items: center; gap: 20px;
  border-bottom: 3px solid var(--green-dark);
}
.doctor-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff; flex-shrink: 0;
}
.doctor-text .eyebrow {
  font-size: .75rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px;
}
.doctor-text p { font-family: var(--serif); font-size: 1rem; color: #fff; line-height: 1.6; }
.doctor-banner .btn-white {
  margin-left: auto; background: #fff; color: var(--green);
  font-size: .875rem; font-weight: 600; padding: 10px 20px;
  border-radius: 8px; white-space: nowrap; flex-shrink: 0;
  transition: box-shadow .15s;
}
.doctor-banner .btn-white:hover { box-shadow: 0 4px 12px rgba(255,255,255,.3); }

/* ── БИБЛИОТЕКА ────────────────────────────────────────── */
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.library-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.lib-tag {
  background: #fff; border: 1px solid #b8d898; border-radius: 20px;
  padding: 5px 14px; font-size: .8rem; color: var(--green);
  display: flex; align-items: center; gap: 5px;
}
.lib-items { display: flex; flex-direction: column; gap: 9px; }
.lib-item {
  background: #fff; border: 1px solid #d0e8c0; border-radius: 11px;
  padding: 11px 14px; display: flex; align-items: center; gap: 11px;
  transition: border-color .15s;
}
.lib-item:hover { border-color: var(--green); }
.lib-item-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0;
}
.lib-item h4 { font-size: .875rem; color: var(--ink); margin-bottom: 2px; }
.lib-item p { font-size: .75rem; color: #9a8870; }

/* ── ГЕРИАТРИЯ (карта) ─────────────────────────────────── */
.geriatrics-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid #d8c8a8; border-radius: 14px; overflow: hidden; }
.map-area { background: linear-gradient(160deg,#eef5e4,#f5f0e4); position: relative; padding: 20px; }
.city-list-panel { background: #fff; padding: 20px; border-left: 1px solid #e0d0b0; display: flex; flex-direction: column; gap: 8px; }
.city-dot-pulse { animation: pulse-map 2s ease-out infinite; }
@keyframes pulse-map {
  0% { r: 10; opacity: .5; }
  70% { r: 18; opacity: 0; }
  100% { r: 10; opacity: 0; }
}
.city-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; transition: all .15s;
}
.city-card:hover { border-color: #a8cc88; box-shadow: 0 2px 8px rgba(74,122,56,.1); }
.city-card .cdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.city-card h4 { font-size: .875rem; color: var(--ink); margin-bottom: 2px; }
.city-card p { font-size: .75rem; color: #9a8870; }
.city-cta {
  background: linear-gradient(135deg,var(--terra-light),#f5ece0);
  border: 1px solid #d8c8a0; border-radius: 10px; padding: 14px;
  margin-top: 4px;
}
.city-cta h4 { font-size: .875rem; margin-bottom: 4px; }
.city-cta p { font-size: .8rem; color: #7a6050; line-height: 1.5; margin-bottom: 10px; }

/* ── ОТЗЫВЫ ────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.review-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--border);
  padding: 20px; position: relative;
}
.review-quote {
  position: absolute; top: 14px; right: 18px;
  font-size: 3rem; color: #e8d8c0; font-family: Georgia,serif;
  line-height: 1; opacity: .7;
}
.review-author { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.125rem; font-weight: 700;
  flex-shrink: 0;
}
.review-author h4 { font-size: .9375rem; color: var(--ink); margin-bottom: 2px; }
.review-author p { font-size: .75rem; color: #9a8870; }
.review-text { font-size: .875rem; color: #4a3820; line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.stars { display: flex; gap: 3px; color: #d4a840; font-size: 1rem; }

/* ── СОЦСЕТИ ───────────────────────────────────────────── */
.social-section {
  background: #2e4228; padding: 40px;
  border-bottom: 3px solid #1e2e18;
}
.social-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; }
.social-left h2 { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.social-left p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 20px; }
.email-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12);
}
.email-row span { font-size: .875rem; color: rgba(255,255,255,.45); }
.btn-email {
  background: var(--green-pale); color: #2e4228;
  font-size: .875rem; font-weight: 600; padding: 9px 18px;
  border-radius: 8px;
}
.social-platforms-label {
  font-size: .75rem; color: var(--green-pale);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.social-grid-icons { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.social-grid-icons2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 9px; }
.soc-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px 8px; text-align: center;
  transition: background .15s, transform .15s; cursor: pointer;
}
.soc-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.soc-btn .icon { font-size: 1.5rem; display: block; margin-bottom: 5px; }
.soc-btn .name { font-size: .75rem; color: rgba(255,255,255,.7); }
.soc-btn .handle { font-size: .65rem; color: rgba(255,255,255,.35); margin-top: 2px; }
.soc-btn.coming { background: rgba(255,255,255,.04); border-style: dashed; }
.soc-btn.coming .name { color: rgba(255,255,255,.3); }

/* ── БЛОК ПАРТНЁРА (перед футером, на всех страницах) ──── */
.ct-partner {
  background: #1a3518; padding: 36px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.ct-partner-label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(150,210,110,.55); margin-bottom: 8px;
}
.ct-partner-name {
  font-family: var(--serif); font-size: 1.125rem; color: rgba(255,255,255,.9);
  line-height: 1.4; max-width: 640px;
}
.ct-partner-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 24px; flex-shrink: 0;
  border: 1.5px solid rgba(120,180,90,.4);
  color: rgba(150,210,120,.9); font-weight: 700; font-size: .9375rem;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.ct-partner-link:hover { background: rgba(120,180,90,.12); border-color: rgba(120,180,90,.7); color: #a0e070; }
@media (max-width: 760px) {
  .ct-partner { padding: 28px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── ФУТЕР ─────────────────────────────────────────────── */
footer { background: #1a2a10; }
.footer-main { padding: 56px 52px 44px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { font-family: var(--serif); font-size: 1.375rem; color: #fff; margin-bottom: 14px; }
.footer-logo em { color: rgba(200,235,180,.65); font-style: normal; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.36); line-height: 1.75; margin-bottom: 28px; max-width: 340px; }
.footer-soc-label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.22); margin-bottom: 14px; font-weight: 700; }
.footer-soc-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-soc {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.32); font-size: .9375rem; text-decoration: none;
  transition: color .18s;
}
.footer-soc i { font-size: 1.125rem; }
.footer-soc span { font-size: .8rem; color: rgba(255,255,255,.26); }
.footer-soc:hover { color: rgba(255,255,255,.65); }
.footer-soc:hover span { color: rgba(255,255,255,.55); }
.footer-contacts-title { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.28); margin-bottom: 24px; font-weight: 700; }
.footer-citem { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.footer-citem > i { font-size: 1rem; color: rgba(255,255,255,.28); flex-shrink: 0; margin-top: 3px; }
.footer-clink { display: block; font-size: .9375rem; color: rgba(255,255,255,.68); text-decoration: none; margin-bottom: 3px; transition: color .15s; }
.footer-clink:hover, a.footer-clink:hover { color: #fff; }
.footer-clabel { font-size: .75rem; color: rgba(255,255,255,.26); }
.footer-pages { display: flex; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.footer-pages a { font-size: .8rem; color: rgba(255,255,255,.26); text-decoration: none; transition: color .15s; }
.footer-pages a:hover { color: rgba(255,255,255,.6); }

/* ── РГНКЦ ПОЛОСА В ФУТЕРЕ ───────────────────────────── */
.footer-rgnkc {
  background: #0f1a09;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 28px 52px;
}
.footer-rgnkc-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.footer-rgnkc-eyebrow {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(122,170,98,.55); font-weight: 700; margin-bottom: 6px;
}
.footer-rgnkc-name {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: #fff; letter-spacing: .02em; margin-bottom: 4px; line-height: 1;
}
.footer-rgnkc-full {
  font-size: .8rem; color: rgba(255,255,255,.28); line-height: 1.55; max-width: 440px;
}
.footer-rgnkc-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 28px; white-space: nowrap; flex-shrink: 0;
  border: 1.5px solid rgba(122,170,98,.4); color: rgba(122,170,98,.75);
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: all .18s;
}
.footer-rgnkc-link:hover { border-color: #7aaa62; color: #7aaa62; background: rgba(122,170,98,.07); }
.footer-bar { background: #0a1205; padding: 16px 52px; font-size: .75rem; color: rgba(255,255,255,.16); text-align: center; }
.footer-bar-link { color: rgba(150,210,120,.7); text-decoration: none; transition: color .15s; }
.footer-bar-link:hover { color: #a0e070; }

@media (max-width: 900px) {
  .footer-main { padding: 40px 28px 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-rgnkc { padding: 24px 28px; }
  .footer-rgnkc-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-bar { padding: 14px 28px; }
}

/* ── FONT SIZE CONTROLS ────────────────────────────────── */
body.font-sm { font-size: 15px; }
body.font-lg { font-size: 20px; }

/* ── АНИМАЦИИ КАРТЫ ──────────────────────────────────── */
@keyframes pdot-pulse-open {
  0%   { r: 12; opacity: .5; }
  60%  { r: 22; opacity: 0; }
  100% { r: 12; opacity: 0; }
}
@keyframes pdot-pulse-soon {
  0%   { r: 9; opacity: .45; }
  60%  { r: 18; opacity: 0; }
  100% { r: 9; opacity: 0; }
}
.pdot-open { animation: pdot-pulse-open 2.4s ease-out infinite; }
.pdot-soon { animation: pdot-pulse-soon 2.8s ease-out infinite; }

/* ── АДАПТИВНОСТЬ ─────────────────────────────────────── */
@media (max-width: 900px) {
  html { font-size: 17px; }
  .nav { padding: 12px 18px; gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .72rem; }
  .nav-links a.nav-cta-green { padding: 0; font-size: .72rem; }
  .nav-logo { font-size: 1.1rem; }
  .section { padding: 36px 24px; }
  .hero { padding: 52px 24px 44px; min-height: 520px; }
  .hero-title { font-size: 2.4rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-cta-card { min-height: 200px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .social-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hp-features { grid-template-columns: 1fr 1fr; }
  .hp-feature { border-bottom: 1px solid var(--border); }
  .geriatrics-new-header { flex-direction: column; gap: 16px; }
  .geriatrics-cities { grid-template-columns: repeat(2, 1fr); }
  .sp-inner { grid-template-columns: 1fr; gap: 16px; }
  .sp-decoration { font-size: 4rem; }
}
/* Полное меню с крупными кнопками требует ~1430px. На более узких
   экранах показываем бургер, чтобы кнопки не сжимались до нечитаемых. */
@media (max-width: 1450px) {
  .nav-links { display: none; }
  .nav-sub { display: none !important; }
  .nav-burger { display: flex; }
  .nav { justify-content: space-between; }
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  .nav { padding: 12px 16px; }
  .section { padding: 28px 16px; }
  .hero { padding: 44px 18px 36px; min-height: 460px; }
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: .75rem; }
  .hero-stats { gap: 12px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .btn-hero-main, .btn-hero-sec { width: 100%; text-align: center; justify-content: center; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-cta-card { margin-top: 0; }
  .geriatrics-cities { grid-template-columns: 1fr 1fr; }
  .geriatrics-cta { flex-direction: column; gap: 16px; text-align: center; }
  .g-counter { padding: 12px 18px; }
  .g-counter .num { font-size: 1.8rem; }
  .geriatrics-new-header h2 { font-size: 1.4rem; }
  .geriatrics-map-svg { max-height: 200px; }
  .social-grid-icons { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.25rem; }
  .sp-inner { padding: 28px 24px; }
  .sp-title { font-size: 1.5rem; }
  .sp-desc { font-size: .875rem; }
}

/* ══ СПЕЦПРОЕКТ ═══════════════════════════════════════════ */
.special-project {
  position: relative; overflow: hidden;
  padding: 0 40px;
}
.sp-inner {
  border-radius: 20px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 32px; padding: 40px 44px;
}
/* Сезонные темы */
.sp-summer .sp-inner { background: linear-gradient(125deg,#7a3010 0%,#c86020 55%,#e89030 100%); }
.sp-autumn .sp-inner { background: linear-gradient(125deg,#5c2c08 0%,#9e4a18 55%,#c87028 100%); }
.sp-winter .sp-inner { background: linear-gradient(125deg,#1a2c4a 0%,#2c4870 55%,#3c6898 100%); }
.sp-spring .sp-inner { background: linear-gradient(125deg,#2a4a10 0%,#4a8028 55%,#88b848 100%); }

.sp-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px; padding: 4px 14px;
  font-size: .7rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.sp-season-icon { font-size: 1rem; }
.sp-title {
  font-family: var(--serif); font-size: 2rem; color: #fff;
  line-height: 1.15; margin-bottom: 12px;
}
.sp-desc { font-size: .9375rem; color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 22px; max-width: 560px; }
.sp-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px; padding: 11px 22px;
  font-size: .875rem; font-weight: 700; transition: box-shadow .15s, transform .15s;
}
.sp-summer .sp-btn { color: #7a3010; }
.sp-autumn .sp-btn { color: #5c2c08; }
.sp-winter .sp-btn { color: #1a2c4a; }
.sp-spring .sp-btn { color: #2a4a10; }
.sp-btn:hover { box-shadow: 0 6px 24px rgba(0,0,0,.2); transform: translateY(-1px); }
.sp-tag {
  background: rgba(255,255,255,.12); border-radius: 6px;
  padding: 5px 12px; font-size: .8rem; color: rgba(255,255,255,.7);
}
.sp-decoration {
  flex-shrink: 0; font-size: 7rem; line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.2));
  user-select: none; pointer-events: none;
}
.sp-ambient {
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.sp-ambient2 {
  position: absolute; bottom: -80px; left: 30%;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}

/* ══ ПОИСК ════════════════════════════════════════════════ */
.search-trigger {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.search-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20,35,15,.88); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box {
  width: 100%; max-width: 680px; margin: 0 20px;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 14px 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.search-input-wrap i { font-size: 1.375rem; color: #7a9060; flex-shrink: 0; }
.search-input-wrap input {
  flex: 1 1 0; min-width: 0;   /* без min-width:0 поле не сжимается и рвёт вёрстку на узких экранах */
  border: none; outline: none;
  font-size: 1.125rem; color: var(--ink);
  font-family: var(--sans); background: transparent;
}
.search-input-wrap input::placeholder { color: #b0a890; }
.search-close {
  background: rgba(255,255,255,.15); border: none; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; color: #fff;
  font-size: .875rem; flex-shrink: 0; transition: background .15s;
}
.search-close:hover { background: rgba(255,255,255,.25); }
@media (max-width: 420px) {
  .search-box { margin: 0 12px; }
  .search-input-wrap { padding: 12px 14px; gap: 8px; }
  .search-input-wrap input { font-size: 1rem; }
  .search-close { padding: 8px; font-size: .8rem; }
}
.search-results {
  margin-top: 12px; background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.3);
  max-height: 420px; overflow-y: auto;
}
.search-results:empty { display: none; }
.sr-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid #f0ece4;
  cursor: pointer; transition: background .1s;
  text-decoration: none; color: inherit;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #f8f5ef; }
.sr-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.sr-title { font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.sr-title mark { background: #fff0b0; border-radius: 2px; padding: 0 2px; color: var(--ink); }
.sr-meta { font-size: .75rem; color: #9a8870; }
.sr-empty { padding: 32px 20px; text-align: center; color: #9a8870; font-size: .9375rem; }
.search-hint {
  margin-top: 12px; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.4);
}

/* ══════════════════════════════════════════
   SUB-PAGE PHOTO HERO — full photo, no crop
══════════════════════════════════════════ */
.sub-hero {
  position: relative; overflow: hidden;
  background: #1a3018; color: #fff;
}
.sub-hero-bg {
  position: relative; z-index: 0; line-height: 0;
}
.sub-hero-bg img {
  width: 100%; height: auto; display: block;
  min-height: 340px; object-fit: cover; object-position: center 25%;
}
.sub-hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(10,22,8,0.86) 0%, rgba(10,22,8,0.65) 38%, rgba(10,22,8,0.22) 62%, transparent 82%);
}
.sub-hero.tint-red .sub-hero-bg::before {
  background: linear-gradient(to right, rgba(38,4,12,0.90) 0%, rgba(38,4,12,0.68) 38%, rgba(38,4,12,0.22) 62%, transparent 82%);
}
.sub-hero.tint-purple .sub-hero-bg::before {
  background: linear-gradient(to right, rgba(18,6,42,0.90) 0%, rgba(18,6,42,0.68) 38%, rgba(18,6,42,0.22) 62%, transparent 82%);
}
.sub-hero.tint-amber .sub-hero-bg::before {
  background: linear-gradient(to right, rgba(38,20,0,0.90) 0%, rgba(38,20,0,0.70) 38%, rgba(38,20,0,0.22) 62%, transparent 82%);
}
.sub-hero.tint-violet .sub-hero-bg::before {
  background: linear-gradient(to right, rgba(22,4,44,0.90) 0%, rgba(22,4,44,0.68) 38%, rgba(22,4,44,0.22) 62%, transparent 82%);
}
.sub-hero-text {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 52px; max-width: 54%;
}
.sub-hero .eyebrow {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: #90cc60; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.sub-hero h1 {
  font-family: var(--serif); font-size: 2.75rem; margin-bottom: 14px;
  line-height: 1.1; color: #fff;
}
.sub-hero p {
  font-size: 1rem; color: rgba(255,255,255,.82); max-width: 480px; line-height: 1.65;
}
@media (max-width: 900px) {
  .sub-hero-bg img { min-height: 300px; }
  .sub-hero-text { max-width: 66%; padding: 44px 32px; }
  .sub-hero h1 { font-size: 2rem; }
}
/* На телефоне текст уезжает ПОД фотографию, а не поверх неё:
   поверх снимка он читается плохо, особенно на светлых участках. */
@media (max-width: 640px) {
  .sub-hero { display: flex; flex-direction: column; }
  .sub-hero-bg img { min-height: 200px; max-height: 240px; object-fit: cover; }
  .sub-hero-bg::before { display: none; }   /* затемнение больше не нужно */
  .sub-hero-text {
    position: static;
    max-width: 100%;
    padding: 26px 20px 30px;
    background: var(--ink);
  }
  .sub-hero.tint-red    .sub-hero-text { background: #260410; }
  .sub-hero.tint-purple .sub-hero-text { background: #14062c; }
  .sub-hero.tint-amber  .sub-hero-text { background: #2a1600; }
  .sub-hero.tint-violet .sub-hero-text { background: #17042c; }
  .sub-hero h1 { font-size: 1.7rem; margin-bottom: 10px; }
  .sub-hero p { font-size: .95rem; max-width: none; }
}

/* ══════════════════════════════════════════
   NEXT SECTION NAVIGATION
══════════════════════════════════════════ */
.next-sec {
  display: flex; align-items: center; justify-content: space-between;
  background: #f0f7e8; border-top: 4px solid #bcd89a;
  padding: 36px 52px; text-decoration: none; color: inherit;
  transition: background .2s, padding-right .2s; gap: 24px;
}
.next-sec:hover { background: #e4f0d8; padding-right: 44px; }
.next-sec-label {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: #538a3e; margin-bottom: 8px;
}
.next-sec-title {
  font-family: var(--serif); font-size: 1.875rem; color: var(--ink);
  margin-bottom: 6px; line-height: 1.1;
}
.next-sec-desc { font-size: .9375rem; color: #5a6a50; }
.next-sec-arrow {
  font-size: 2.25rem; color: #538a3e; flex-shrink: 0;
  transition: transform .2s;
}
.next-sec:hover .next-sec-arrow { transform: translateX(6px); }
@media (max-width: 640px) {
  .next-sec { padding: 28px 24px; }
  .next-sec:hover { padding-right: 28px; }
  .next-sec-title { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════
   CATEGORY TILE NAV — full-width, large
══════════════════════════════════════════ */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #fff;
  border-bottom: 3px solid var(--border);
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 24px;
  text-align: center; text-decoration: none; color: inherit;
  border-right: 1px solid var(--border);
  border-bottom: 4px solid transparent;
  transition: border-color .18s, background .18s;
  cursor: pointer;
}
.cat-tile:last-child { border-right: none; }
.cat-tile:hover,
.cat-tile.active {
  border-bottom-color: var(--cat-accent, #538a3e);
  background: var(--cat-bg, #f0fae8);
}
.cat-tile-em { font-size: 2.25rem; margin-bottom: 10px; display: block; line-height: 1; }
.cat-tile-name {
  font-family: var(--serif); font-size: 1.0625rem; color: var(--ink);
  line-height: 1.2; font-weight: 700;
}
@media (max-width: 900px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .cat-tile:nth-child(3) { border-right: none; }
}
@media (max-width: 480px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-tile:nth-child(even) { border-right: none; }
  .cat-tile:nth-child(3) { border-right: 1px solid var(--border); }
  .cat-tile-name { font-size: .9375rem; }
  .cat-tile-em { font-size: 1.875rem; }
}

/* ── Полоса навигации на страницах тестов ── */
.quiz-strip {
  background: #fff;
  border-bottom: 3px solid var(--border);
  padding: 16px 40px;
}
.quiz-strip-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: color .15s;
}
.quiz-back:hover { color: var(--green-dark); text-decoration: underline; }
.quiz-strip-note {
  font-size: .8rem;
  color: #9a8870;
  max-width: 400px;
  text-align: right;
}
.quiz-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 24px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: #fff;
  color: #6a7a60;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.quiz-back-link:hover {
  border-color: var(--green);
  color: var(--green);
}
@media (max-width: 640px) {
  .quiz-strip { padding: 14px 20px; }
  .quiz-strip-note { display: none; }
}


/* ── Page info strip (below hero, all pages) ── */
.page-info-strip {
  display: flex;
  background: #fff;
  border-bottom: 3px solid var(--border);
}
.pis-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.pis-item:last-child { border-right: none; }
.pis-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.pis-icon {
  font-size: 1.5rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.pis-title {
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink);
  line-height: 1.35;
}
.pis-sub {
  font-size: .8rem;
  color: #6a7a60;
  margin-top: 3px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .page-info-strip { flex-wrap: wrap; }
  /* последний пункт при нечётном количестве занимает всю ширину,
     иначе рядом с ним остаётся пустая половина */
  .pis-item:last-child:nth-child(odd) { flex: 0 0 100%; border-right: none; }
  .pis-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pis-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .pis-item:last-child { border-bottom: none; }
  .pis-num { font-size: 2rem; }
}

/* ── Page info strip variants ── */
.page-info-strip--cream {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-info-strip--cream .pis-item {
  border-color: var(--border);
}

.page-info-strip--dark {
  background: var(--ink);
  border-bottom: none;
}
.page-info-strip--dark .pis-item {
  border-color: rgba(255,255,255,.12);
}
.page-info-strip--dark .pis-num {
  color: #fff;
}
.page-info-strip--dark .pis-icon {
  color: rgba(255,255,255,.7);
}
.page-info-strip--dark .pis-title {
  color: #fff;
}
.page-info-strip--dark .pis-sub {
  color: rgba(255,255,255,.55);
}

/* Сетка карточек: три колонки на широком экране, две на планшете,
   одна на телефоне. Раньше число колонок было задано инлайном —
   и медиазапросы не могли его перебить, отчего страница уезжала вбок. */
.auto-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .auto-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .auto-grid-3 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   БЛОК «ЗАДАТЬ ВОПРОС ВРАЧУ» — единый на всех страницах
══════════════════════════════════════════════════════════ */

/* Подпись только для скринридеров (визуально скрыта) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.ask-sec {
  background: #f5f1ea;
  padding: 88px 40px;
  border-top: 1px solid var(--border);
}
.ask-wrap { max-width: 860px; margin: 0 auto; }
.ask-header { text-align: center; margin-bottom: 44px; }
.ask-icon-wrap {
  width: 72px; height: 72px;
  background: var(--green-light);
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ask-icon-wrap i { font-size: 2rem; color: var(--green); }
.ask-title {
  font-family: var(--serif); font-size: 2.25rem; font-weight: 400;
  color: var(--ink); margin-bottom: 10px; line-height: 1.2;
}
.ask-subtitle { font-size: 1.0625rem; color: #7a9a68; line-height: 1.6; }
.ask-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px 52px;
  border: 1px solid rgba(122,170,98,.2);
  box-shadow: 0 4px 40px rgba(46,66,40,.07);
}
.ask-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.ask-form input,
.ask-form select,
.ask-form textarea {
  background: #f7f4ee; border: 1.5px solid #e0d8c8;
  border-radius: 12px; padding: 14px 18px;
  font-size: 1rem; font-family: var(--sans);
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%; box-sizing: border-box;
}
.ask-form input:focus,
.ask-form select:focus,
.ask-form textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(83,138,62,.12);
}
.ask-form textarea {
  grid-column: 1 / -1; height: 110px; resize: none; line-height: 1.6;
}
.ask-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ask-submit {
  background: var(--green); color: #fff; border: none;
  border-radius: 28px; padding: 15px 40px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: var(--sans); transition: background .15s, transform .1s, box-shadow .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.ask-submit:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(66,114,47,.28);
}
.ask-note { font-size: .8125rem; color: #9aaa88; line-height: 1.6; }
.ask-success {
  display: none; text-align: center; padding: 32px 0;
  font-family: var(--serif); font-size: 1.375rem; color: var(--green);
}
@media (max-width: 900px) {
  .ask-form { grid-template-columns: 1fr 1fr; }
  .ask-card { padding: 36px 32px; }
  .ask-title { font-size: 1.875rem; }
}
@media (max-width: 580px) {
  .ask-form { grid-template-columns: 1fr; }
  .ask-card { padding: 28px 24px; }
  .ask-sec { padding: 64px 24px; }
  .ask-bottom { flex-direction: column; align-items: flex-start; }
  .ask-title { font-size: 1.625rem; }
  .ask-submit { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   АНИМАЦИИ
══════════════════════════════════════════════════════════ */

/* ── Появление блоков при прокрутке ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .62s cubic-bezier(.22,.68,.35,1),
              transform .62s cubic-bezier(.22,.68,.35,1);
  will-change: opacity, transform;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}
.scroll-stagger > .scroll-reveal:nth-child(2)  { transition-delay: .07s; }
.scroll-stagger > .scroll-reveal:nth-child(3)  { transition-delay: .14s; }
.scroll-stagger > .scroll-reveal:nth-child(4)  { transition-delay: .21s; }
.scroll-stagger > .scroll-reveal:nth-child(5)  { transition-delay: .28s; }
.scroll-stagger > .scroll-reveal:nth-child(6)  { transition-delay: .35s; }
.scroll-stagger > .scroll-reveal:nth-child(7)  { transition-delay: .42s; }
.scroll-stagger > .scroll-reveal:nth-child(8)  { transition-delay: .49s; }
.scroll-stagger > .scroll-reveal:nth-child(9)  { transition-delay: .56s; }
.scroll-stagger > .scroll-reveal:nth-child(10) { transition-delay: .63s; }
.scroll-stagger > .scroll-reveal:nth-child(n+11) { transition-delay: .7s; }

/* ── Индикатор прокрутки страницы ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 900; pointer-events: none; background: transparent;
}
.scroll-progress > span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--green) 0%, #8fc76a 60%, var(--terra) 100%);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}
/* Современные браузеры считают прогресс средствами CSS — без участия JS.
   Там, где это не поддерживается, ширину задаёт скрипт в components.js. */
@supports (animation-timeline: scroll()) {
  .scroll-progress > span {
    animation: scrollProgress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes scrollProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Переход между страницами ── */
body {
  animation: pageIn .46s cubic-bezier(.22,.68,.35,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
html.page-leaving body {
  animation: pageOut .24s ease both;
}
@keyframes pageOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ── Параллакс фото в шапке (двигает скрипт) ── */
.sub-hero-bg img, .page-hero-bg img {
  transition: transform .05s linear;
}

/* ── Шахматные блоки на главной: при появлении «выходят» вперёд,
      при наведении карточка приподнимается и фото приближается ── */
.hs-block {
  transition: box-shadow .45s ease, transform .45s cubic-bezier(.22,.68,.35,1);
}
.hs-block.scroll-reveal {
  opacity: 0;
  transform: perspective(1400px) rotateX(4deg) translateY(38px) scale(.975);
  transform-origin: 50% 100%;
  transition: opacity .75s cubic-bezier(.22,.68,.35,1),
              transform .75s cubic-bezier(.22,.68,.35,1),
              box-shadow .75s ease;
}
.hs-block.scroll-reveal.visible {
  opacity: 1;
  transform: perspective(1400px) rotateX(0) translateY(0) scale(1);
  box-shadow: 0 22px 60px rgba(26,48,20,.13);
}
.hs-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 72px rgba(26,48,20,.2);
}
.hs-block-img { overflow: hidden; }
.hs-block-img img { transition: transform .7s cubic-bezier(.22,.68,.35,1); }
.hs-block:hover .hs-block-img img { transform: scale(1.05); }
/* кнопка внутри блока тоже оживает */
.hs-cta { transition: transform .25s cubic-bezier(.34,1.4,.5,1), box-shadow .25s ease, filter .2s ease; }
.hs-block:hover .hs-cta { transform: translateX(5px); box-shadow: 0 8px 22px rgba(26,48,20,.24); }

@media (prefers-reduced-motion: reduce) {
  .hs-block, .hs-block.scroll-reveal, .hs-block-img img, .hs-cta { transition: none; }
  .hs-block.scroll-reveal { opacity: 1; transform: none; }
  .hs-block:hover, .hs-block:hover .hs-block-img img, .hs-block:hover .hs-cta { transform: none; }
}

/* ── Фотографии в контенте слегка плывут при прокрутке ──
   Считается браузером по положению блока в окне, без участия JS.
   Двигаем object-position, а не transform, — чтобы не мешать
   эффектам наведения, которые уже используют transform. */
@supports (animation-timeline: view()) {
  .hs-block-img img,
  .sp-photo-divider img,
  .ac-thumb img,
  [data-photo-drift] img {
    object-fit: cover;
    animation: photoDrift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes photoDrift {
  from { object-position: center 34%; }
  to   { object-position: center 66%; }
}

@media (prefers-reduced-motion: reduce) {
  body, html.page-leaving body { animation: none; }
  .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-progress { display: none; }
  .sub-hero-bg img, .page-hero-bg img { transform: none !important; }
  .hs-block-img img, .sp-photo-divider img, .ac-thumb img,
  [data-photo-drift] img { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА (перенос из встроенного <style> index.html)
══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hp-hero {
    position: relative;
    background: #1a3018;
    overflow: hidden;
}
.hp-hero-left {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 54%;
    max-width: 660px;
    padding: 80px 64px 80px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}
.hp-eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-size: .6875rem; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase; color: #90cc60; margin-bottom: 22px;
}
.hp-eyebrow::before { content: ''; width: 24px; height: 1.5px; background: #90cc60; }
.hp-hero h1 {
    font-family: var(--serif); font-size: 3.375rem; font-weight: 400;
    line-height: 1.08; color: #fff; margin-bottom: 20px; letter-spacing: -.01em;
}
.hp-hero h1 em { font-style: italic; color: #a0e060; }
.hp-hero-desc {
    font-size: 1.0625rem; color: rgba(255,255,255,.82); line-height: 1.75;
    margin-bottom: 36px; max-width: 420px;
}
.hp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hp-hero-right {
    position: relative;
    overflow: hidden;
    z-index: 0;
    line-height: 0;
}
.hp-hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 22, 8, 0.84) 0%, rgba(10, 22, 8, 0.62) 36%, rgba(10, 22, 8, 0.20) 58%, rgba(10, 22, 8, 0.0) 78%);
    z-index: 1;
}
.hp-hero-right img {
    width: 100%; height: auto; display: block;
    min-height: 520px; object-fit: cover; object-position: center center;
}

/* ── Кнопки hero ── */
.btn-primary {
    background: var(--green); color: #fff; padding: 15px 32px;
    border-radius: 30px; font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: background .15s, transform .1s; white-space: nowrap;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); color: #fff; }
.btn-outline {
    border: 2px solid rgba(255,255,255,.6); color: #fff; padding: 13px 28px;
    border-radius: 30px; font-weight: 600; font-size: 1rem;
    text-decoration: none; white-space: nowrap; transition: background .15s;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ── ШАХМАТНЫЕ БЛОКИ ── */
.hs-block {
    width: 100%;
    overflow: hidden;
    border-bottom: 3px solid rgba(26, 48, 24, .07);
}
.hs-block-inner {
    display: flex;
    min-height: 480px;
}
.hs-block-img {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}
.hs-block-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform .6s ease;
}
.hs-block:hover .hs-block-img img { transform: scale(1.03); }

.hs-block-text {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 72px 72px 72px 64px;
    box-sizing: border-box;
}
.hs-block--rev .hs-block-inner { flex-direction: row-reverse; }
.hs-block--rev .hs-block-text { padding: 72px 64px 72px 72px; }

.hs-text-inner {
    max-width: 540px;
    width: 100%;
}
.hs-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .6875rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; margin-bottom: 18px;
}
.hs-eyebrow i { font-size: .875rem; }
.hs-h2 {
    font-family: var(--serif); font-size: 2.5rem; font-weight: 400;
    line-height: 1.12; margin-bottom: 18px;
}
.hs-desc {
    font-size: 1.0625rem; line-height: 1.78; margin-bottom: 32px;
}
.hs-list {
    list-style: none; padding: 0; margin: 0 0 32px;
    display: flex; flex-direction: column; gap: 10px;
}
.hs-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 1rem; line-height: 1.55;
}
.hs-list li i { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.hs-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    padding: 13px 28px; border-radius: 28px;
    transition: transform .15s, box-shadow .15s;
}
.hs-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Фоны блоков */
.hs-block--green   { background: #f0f7e8; border-top: 6px solid #7ab85a; }
.hs-block--cream   { background: #fdf8f2; border-top: 6px solid #d4895a; }
.hs-block--blue    { background: #f2f6ff; border-top: 6px solid #4a70c0; }
.hs-block--white   { background: #f7f4f0; border-top: 6px solid #8a6040; }
.hs-block--sage    { background: #eef5ec; border-top: 6px solid #5a9048; }
.hs-block--dark    { background: #152812; border-top: 6px solid #4a7a38; }

.hs-block--dark .hs-h2 { color: #ffffff; }
.hs-block--dark .hs-desc { color: rgba(255,255,255,.72); }
.hs-block--dark .hs-list li { color: rgba(255,255,255,.78); }

/* ── АДАПТИВНОСТЬ ГЛАВНОЙ ── */
@media (max-width: 1100px) {
    .hs-block-text { padding: 60px 48px 60px 52px; }
    .hs-block--rev .hs-block-text { padding: 60px 52px 60px 48px; }
    .hs-h2 { font-size: 2.125rem; }
}
@media (max-width: 860px) {
    .hp-hero-left { width: 90%; max-width: none; padding: 52px 32px 56px; }
    .hp-hero h1 { font-size: 2.5rem; }

    .hs-block-inner,
    .hs-block--rev .hs-block-inner { flex-direction: column; }
    .hs-block-img { flex: none; height: 280px; }
    .hs-block-img,
    .hs-block--rev .hs-block-img { flex: 0 0 280px; height: 280px; }
    .hs-block-text,
    .hs-block--rev .hs-block-text { flex: none; padding: 52px 32px 56px; }
    .hs-h2 { font-size: 1.875rem; }
    .hs-desc { font-size: 1rem; }
}
@media (max-width: 580px) {
    .hp-hero h1 { font-size: 2rem; }
    .hp-hero-left { width: 100%; padding: 44px 24px 48px; }
    .hs-block-text,
    .hs-block--rev .hs-block-text { padding: 44px 24px 48px; }
    .hs-h2 { font-size: 1.625rem; }
}

/* ══════════════════════════════════════════════════════════
   КАРТОЧКИ СТАТЕЙ (.ac-*)
══════════════════════════════════════════════════════════ */
.article-card-lg {
    background: #fff; border-radius: 16px; border: 1px solid var(--border);
    overflow: hidden; transition: box-shadow .18s, transform .18s;
    cursor: pointer; color: inherit; display: block;
    text-decoration: none;
}
.article-card-lg:hover {
    box-shadow: 0 8px 28px rgba(46,66,40,.1);
    transform: translateY(-2px);
}
.ac-thumb {
    height: 130px; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative; overflow: hidden;
}
.ac-body { padding: 18px 20px 20px; }
.ac-tag {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 8px;
}
.ac-title {
    font-family: var(--serif); font-size: 1.0625rem; line-height: 1.35;
    margin-bottom: 10px; color: var(--ink);
}
.ac-meta {
    font-size: .8rem; color: #9a8870; display: flex;
    align-items: center; gap: 10px; flex-wrap: wrap;
}

/* Пагинация */
.pagination,
.navigation.pagination {
    margin-top: 40px; text-align: center;
}
.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 4px;
    border-radius: 8px; background: #fff; border: 1.5px solid var(--border);
    color: var(--ink); text-decoration: none; font-weight: 600;
    transition: all .15s;
}
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    border-color: var(--green); color: var(--green);
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--green); border-color: var(--green); color: #fff;
}

/* ══════════════════════════════════════════════════════════
   КОНТЕНТ СТАТЬИ (.art-content) — как в модалке
══════════════════════════════════════════════════════════ */
.art-content {
    font-size: .9375rem;
    color: #3a4a30;
    line-height: 1.85;
}

/* Параграфы */
.art-content p {
    margin-bottom: 16px;
}
.art-content p:last-child {
    margin-bottom: 0;
}

/* Заголовки */
.art-content h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 28px 0 10px;
    line-height: 1.3;
}
.art-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0 8px;
    line-height: 1.4;
}
.art-content h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    margin: 32px 0 14px;
    line-height: 1.25;
}

/* Маркированные списки */
.art-content ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
    list-style: disc;
}
.art-content ul li {
    margin-bottom: 8px;
    padding-left: 4px;
    line-height: 1.75;
}
.art-content ul ul {
    margin-top: 8px;
    margin-bottom: 0;
    list-style: circle;
}

/* Нумерованные списки — исправляем «съехавшие» цифры */
.art-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;   /* ← левый отступ для цифр */
    list-style: decimal;
}
.art-content ol li {
    margin-bottom: 8px;
    padding-left: 4px;    /* ← отступ от цифры до текста */
    line-height: 1.75;
}
.art-content ol ol {
    margin-top: 8px;
    margin-bottom: 0;
    list-style: lower-alpha;
}

/* Выделения */
.art-content strong {
    color: var(--ink);
    font-weight: 700;
}
.art-content em {
    font-style: italic;
    color: #6a7a60;
}

/* Ссылки */
.art-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(83,138,62,.3);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}
.art-content a:hover {
    text-decoration-color: var(--green);
}

/* Цитаты */
.art-content blockquote {
    border-left: 3px solid var(--green);
    padding: 8px 0 8px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #5a6a50;
}

/* Картинки */
.art-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Таблицы (если будут) */
.art-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .9375rem;
}
.art-content th,
.art-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.art-content th {
    background: var(--cream);
    font-weight: 700;
}
/* ══════════════════════════════════════════════════════════
   СЕКЦИИ КАТЕГОРИЙ (.cat-sec) — для zdorovye.php
══════════════════════════════════════════════════════════ */
.cat-sec { border-bottom: 2px solid var(--border); }

.cat-sec-head {
    display: flex; align-items: center; gap: 18px;
    padding: 28px 40px 22px; border-bottom: 1px solid var(--border);
    background: #fff; border-left: 5px solid transparent;
}
.cat-sec-emoji { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.cat-sec-h {
    font-family: var(--serif); font-size: 1.625rem;
    color: var(--ink); margin-bottom: 4px; line-height: 1.2;
}
.cat-sec-lead { font-size: .875rem; color: var(--ink-soft); margin: 0; }

.cat-see-all {
    margin-left: auto; flex-shrink: 0;
    font-size: .8125rem; font-weight: 700; color: var(--green);
    text-decoration: none; display: flex; align-items: center; gap: 5px;
    padding: 8px 18px; border: 1.5px solid var(--green);
    border-radius: 20px; transition: background .15s, color .15s;
    white-space: nowrap;
}
.cat-see-all:hover { background: var(--green); color: #fff; }

.cat-sec-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    padding: 22px 40px 30px; background: var(--cream);
}

@media (max-width: 900px) {
    .cat-sec-head { padding: 20px 24px; }
    .cat-sec-grid { grid-template-columns: 1fr 1fr; padding: 18px 20px 24px; }
}
@media (max-width: 640px) {
    .cat-sec-grid { grid-template-columns: 1fr; padding: 14px 16px 20px; }
    .cat-see-all { display: none; }
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO (для zdorovye.php)
══════════════════════════════════════════════════════════ */
.page-hero {
    position: relative; overflow: hidden;
    background: #1a3018; color: #fff;
}
.page-hero-bg {
    position: relative; z-index: 0; line-height: 0;
}
.page-hero-bg img {
    width: 100%; height: auto; display: block;
    min-height: 320px; object-fit: cover; object-position: center 25%;
}
.page-hero-bg::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(10,22,8,0.86) 0%, rgba(10,22,8,0.64) 38%, rgba(10,22,8,0.22) 62%, transparent 82%);
}
.page-hero-text {
    position: absolute; top: 0; left: 0; bottom: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
    padding: 64px 52px; max-width: 54%;
}
.page-hero .eyebrow {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
    color: #90cc60; margin-bottom: 12px;
}
.page-hero h1 {
    font-family: var(--serif); font-size: 2.75rem; margin-bottom: 14px;
    line-height: 1.1; color: #fff;
}
.page-hero p {
    font-size: 1rem; color: rgba(255,255,255,.82); max-width: 480px;
    line-height: 1.65;
}
@media (max-width: 900px) {
    .page-hero-bg img { min-height: 280px; }
    .page-hero-text { max-width: 66%; padding: 48px 32px; }
    .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
    .page-hero-bg img { min-height: 240px; }
    .page-hero-text { max-width: 100%; padding: 40px 20px; }
    .page-hero h1 { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════════════
   СПЕЦИАЛИСТЫ РГНКЦ (.specialists-section)
══════════════════════════════════════════════════════════ */
.specialists-section {
    background: #1a2e44; padding: 56px 40px 72px;
    border-bottom: 6px solid #0d1828;
}
.specialists-inner { max-width: 1100px; margin: 0 auto; }
.specialists-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.specialists-sup {
    font-size: .6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: rgba(120,180,240,.7); margin-bottom: 8px;
}
.specialists-h {
    font-family: var(--serif); font-size: 2rem; font-weight: 400;
    color: #fff; margin-bottom: 8px; line-height: 1.2;
}
.specialists-lead { font-size: .9375rem; color: rgba(255,255,255,.5); }
.specialists-cta { flex-shrink: 0; white-space: nowrap; margin-top: 4px; }
.specialists-groups {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-bottom: 28px;
}
.spec-group {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: 18px 16px;
    transition: background .15s;
}
.spec-group:hover { background: rgba(255,255,255,.1); }
.spec-group-icon { font-size: 1.375rem; margin-bottom: 8px; }
.spec-group-title {
    font-size: .8125rem; font-weight: 700; color: rgba(255,255,255,.75);
    margin-bottom: 10px; line-height: 1.3;
}
.spec-links { display: flex; flex-direction: column; gap: 4px; }
.spec-links a {
    font-size: .8125rem; color: rgba(255,255,255,.42);
    text-decoration: none; transition: color .15s; line-height: 1.4;
}
.spec-links a:hover { color: #7abaff; }
.specialists-footer-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.specialists-all-link {
    font-size: .875rem; color: rgba(255,255,255,.35);
    text-decoration: none; display: flex; align-items: center; gap: 6px;
    transition: color .15s;
}
.specialists-all-link:hover { color: rgba(255,255,255,.7); }
.specialists-book-btn {
    background: var(--green); color: #fff; padding: 10px 22px;
    border-radius: 20px; font-weight: 700; font-size: .875rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: background .15s;
}
.specialists-book-btn:hover { background: var(--green-dark); }
@media (max-width: 900px) {
    .specialists-section { padding: 40px 24px; }
    .specialists-groups { grid-template-columns: repeat(2, 1fr); }
    .specialists-h { font-size: 1.6rem; }
}
@media (max-width: 640px) {
    .specialists-groups { grid-template-columns: 1fr; }
    .specialists-header { flex-direction: column; }
}/* ══════════════════════════════════════════════════════════
   PRIVACY PAGE
══════════════════════════════════════════════════════════ */
.privacy-hero {
    background: #f5f1ea;
    padding: 52px 52px 44px;
    border-bottom: 1px solid var(--border);
}
.privacy-hero .eyebrow {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--green);
    margin-bottom: 14px;
}
.privacy-hero h1 {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 10px;
}
.privacy-hero .upd {
    font-size: .875rem;
    color: #9a8870;
}

.privacy-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 40px;
}
.privacy-body h2 {
    font-family: var(--serif);
    font-size: 1.375rem;
    color: var(--ink);
    margin: 36px 0 12px;
}
.privacy-body p,
.privacy-body li {
    font-size: .9375rem;
    color: #4a5a40;
    line-height: 1.78;
    margin-bottom: 10px;
}
.privacy-body ul {
    padding-left: 1.25em;
}
.privacy-body li {
    margin-bottom: 6px;
}
.privacy-body a {
    color: var(--green);
}

@media (max-width: 900px) {
    .privacy-hero { padding: 36px 24px; }
    .privacy-hero h1 { font-size: 1.75rem; }
    .privacy-body { padding: 36px 24px; }
}

/* ══════════════════════════════════════════════════════════
   О ПРОЕКТЕ (page-o-proekte.php)
══════════════════════════════════════════════════════════ */
.about-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 40px;
}
.about-section {
    margin-bottom: 56px;
}
.about-section h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.about-section p {
    font-size: 1rem;
    color: #4a5a40;
    line-height: 1.78;
    margin-bottom: 14px;
}
.about-section ul {
    padding-left: 1.25em;
}
.about-section li {
    font-size: 1rem;
    color: #4a5a40;
    line-height: 1.78;
    margin-bottom: 8px;
}

/* Партнёр */
.partner-card {
    background: #1a3018;
    border-radius: 20px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    gap: 40px;
    color: #fff;
    margin-bottom: 56px;
}
.partner-logo-block { flex-shrink: 0; }
.partner-acronym {
    font-family: var(--serif);
    font-size: 3.5rem;
    font-weight: 400;
    color: #7aaa60;
    line-height: 1;
    margin-bottom: 4px;
}
.partner-fullname {
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
    line-height: 1.5;
    max-width: 220px;
}
.partner-text h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 10px;
}
.partner-text p {
    font-size: .9375rem;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 22px;
}
.team-card-role {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
    margin-bottom: 6px;
}
.team-card-name {
    font-family: var(--serif);
    font-size: 1.0625rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.team-card-desc {
    font-size: .875rem;
    color: #7a8870;
    line-height: 1.6;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.contact-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 26px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s;
}
.contact-item:hover { box-shadow: 0 6px 20px rgba(46,66,40,.08); }
.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #edf6e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--green);
    flex-shrink: 0;
}
.contact-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9a8870;
    margin-bottom: 4px;
}
.contact-value {
    font-size: 1rem;
    color: var(--ink);
    font-weight: 500;
}
.contact-note {
    font-size: .8125rem;
    color: #9a8870;
    margin-top: 3px;
}

/* Ценности */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.value-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
}
.value-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.value-title {
    font-family: var(--serif);
    font-size: 1.0625rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.value-desc {
    font-size: .875rem;
    color: #6a7a60;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .about-body { padding: 36px 24px; }
    .partner-card { flex-direction: column; gap: 24px; padding: 32px 28px; }
    .partner-acronym { font-size: 2.5rem; }
    .team-grid { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════════
   ВИДЕО (page-video.php)
══════════════════════════════════════════════════════════ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 36px 40px;
    background: var(--cream);
}
.video-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow .18s, transform .18s;
}
.video-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.video-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}
.play-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.play-btn i {
    color: #1a1a2e;
    font-size: 1.25rem;
    margin-left: 3px;
}
.video-body { padding: 16px 18px 18px; }
.video-tag {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #4a4a90;
    margin-bottom: 6px;
}
.video-title {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--ink);
}
.video-meta {
    font-size: .8rem;
    color: #9a8870;
    display: flex;
    align-items: center;
    gap: 8px;
}
.duration-badge {
    background: #e8e8ff;
    color: #4a4a90;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .7rem;
    font-weight: 700;
}
.load-more-wrap {
    padding: 8px 40px 48px;
    text-align: center;
    background: var(--cream);
}

@media (max-width: 900px) {
    .video-grid { grid-template-columns: 1fr 1fr; padding: 24px 20px; }
}
@media (max-width: 640px) {
    .video-grid { grid-template-columns: 1fr; padding: 20px 16px; }
}
/* ══════════════════════════════════════════════════════════
   ИССЛЕДОВАНИЯ (page-issledovaniya.php)
══════════════════════════════════════════════════════════ */
.research-section {
    background: var(--cream);
    padding: 52px 40px 72px;
}
.research-inner {
    max-width: 860px;
    margin: 0 auto;
}
.research-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 40px 48px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(46,66,40,.04);
    transition: box-shadow .18s;
}
.research-card:last-child { margin-bottom: 0; }
.research-card:hover {
    box-shadow: 0 8px 32px rgba(46,66,40,.09);
}

.research-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.research-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 6px;
    padding: 3px 10px;
}
.research-badge-neuro { background: #f0eeff; color: #6040a0; }
.research-badge-micro { background: #e8f8ee; color: #2a7a50; }
.research-badge-prev  { background: #f0fae8; color: #538a3e; }

.research-date {
    font-size: .8125rem;
    color: #9a8870;
}

.research-title {
    font-family: var(--serif);
    font-size: 1.625rem;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 24px;
}

.research-divider {
    border: none;
    border-top: 1.5px solid var(--border);
    margin: 28px 0;
}

.research-body {
    font-size: .9375rem;
    color: #3a4a30;
    line-height: 1.85;
}
.research-body p { margin-bottom: 16px; }
.research-body p:last-child { margin-bottom: 0; }

.research-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--cream);
    border-radius: 10px;
    font-size: .8125rem;
    color: #7a8870;
    line-height: 1.6;
    border-left: 3px solid var(--border);
}

@media (max-width: 900px) {
    .research-section { padding: 40px 24px 52px; }
    .research-card { padding: 28px 28px; }
}
@media (max-width: 640px) {
    .research-title { font-size: 1.375rem; }
    .research-card { padding: 22px 20px; }
}

/* ══════════════════════════════════════════════════════════
   ОБЩЕСТВО (page-obshchestvo.php)
══════════════════════════════════════════════════════════ */
.articles-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 36px 40px;
    background: var(--cream);
}

@media (max-width: 900px) {
    .articles-full {
        grid-template-columns: 1fr 1fr;
        padding: 24px 20px;
    }
}
@media (max-width: 640px) {
    .articles-full {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }
}

/* ══════════════════════════════════════════════════════════
   БИБЛИОТЕКА (page-biblioteka.php)
══════════════════════════════════════════════════════════ */
.lib-toolbar {
    background: #fff;
    border-bottom: 3px solid var(--border);
    padding: 28px 52px;
}
.lib-toolbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.lib-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    flex: 0 1 360px;
    min-width: 200px;
}
.lib-search i { color: #9aaa88; font-size: 1.125rem; flex-shrink: 0; }
.lib-search input {
    border: none; outline: none;
    font-size: 1rem; font-family: var(--sans);
    color: var(--ink); background: transparent; width: 100%;
}
.lib-search input::placeholder { color: #b0b8a0; }
.lib-toolbar-sep {
    width: 1px; height: 36px;
    background: var(--border); flex-shrink: 0;
}
.lib-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-chip {
    padding: 10px 22px;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: .9375rem; font-weight: 600;
    color: #6a7a60; cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: var(--sans);
}
.lib-chip:hover,
.lib-chip.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.bro-section {
    background: #fff;
    padding: 56px 52px 64px;
    border-bottom: 3px solid var(--border);
}
.bro-wrap { max-width: 1160px; margin: 0 auto; }
.bro-header { margin-bottom: 40px; }
.bro-tag {
    font-size: .6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--green); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.bro-tag::before {
    content: ''; width: 16px; height: 1.5px;
    background: var(--green);
}
.bro-title {
    font-family: var(--serif);
    font-size: 2rem; font-weight: 400;
    color: var(--ink); margin-bottom: 10px; line-height: 1.2;
}
.bro-lead {
    font-size: .9375rem; color: #6a7a60;
    line-height: 1.7; max-width: 640px;
}
.bro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bro-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: 14px;
    padding: 22px 20px;
    transition: box-shadow .3s, transform .3s, background .3s;
}
.bro-card:hover {
    box-shadow: 0 16px 36px rgba(46,66,40,.14);
    transform: translateY(-7px);
    background: #fff;
}
.bro-card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.bro-card-icon { font-size: 1.25rem; }
.bro-card-title { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.bro-pdf-list { display: flex; flex-direction: column; gap: 2px; }
.bro-pdf-link {
    display: flex; align-items: flex-start; gap: 8px;
    text-decoration: none; padding: 7px 8px; border-radius: 8px;
    transition: background .22s, transform .26s;
}
.bro-pdf-link:hover {
    background: rgba(83,138,62,.09);
    transform: translateX(5px);
}
.bro-pdf-link i {
    color: #c0392b; font-size: .9375rem;
    flex-shrink: 0; margin-top: 2px;
}
.bro-pdf-link span {
    font-size: .8125rem; color: #5a6a50;
    line-height: 1.45;
}
.bro-pdf-link:hover span { color: var(--ink); }

.lib-body {
    padding: 48px 52px;
    background: var(--cream);
}
.lib-body-inner { max-width: 1160px; margin: 0 auto; }
.lib-section-title {
    font-family: var(--serif);
    font-size: 1.5rem; font-weight: 400;
    color: var(--ink); margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}
.lib-section-title::after {
    content: ''; flex: 1;
    height: 1px; background: var(--border);
}
.lib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.lib-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .28s, transform .28s, border-color .28s;
}
.lib-card:hover {
    box-shadow: 0 14px 34px rgba(46,66,40,.13);
    transform: translateY(-6px);
    border-color: #cfe0bd;
}
.lib-card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 10px;
    border-radius: 8px;
    align-self: flex-start;
}
.lib-card-type.pdf { background: #fde8e8; color: #c0392b; }
.lib-card-type.video { background: #e8f5e0; color: var(--green); }
.lib-card-type.article { background: #e8eeff; color: #4a68cc; }
.lib-card-type.guide { background: #fdf5ee; color: var(--terra); }
.lib-card-title {
    font-family: var(--serif);
    font-size: 1.0625rem; line-height: 1.35;
    color: var(--ink);
}
.lib-card-meta {
    font-size: .8125rem; color: #9aaa88;
    margin-top: auto;
    display: flex; align-items: center; gap: 8px;
}

@media (max-width: 900px) {
    .lib-toolbar { padding: 20px 24px; }
    .lib-body { padding: 32px 24px; }
    .lib-grid { grid-template-columns: 1fr 1fr; }
    .bro-section { padding: 40px 24px 48px; }
    .bro-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .lib-toolbar-sep { display: none; }
}
@media (max-width: 640px) {
    .lib-grid { grid-template-columns: 1fr; }
    .bro-grid { grid-template-columns: 1fr; }
    .bro-title { font-size: 1.625rem; }
}

/* ══════════════════════════════════════════════════════════
   КОНТАКТЫ (page-kontakty.php)
══════════════════════════════════════════════════════════ */
.article-section {
    padding: 64px 52px;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
}
.article-inner {
    max-width: 1040px;
    margin: 0 auto;
}
.article-inner h2 {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 8px;
}
.article-inner .lead {
    font-size: 1.125rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 700px;
}

/* Карточки контактов */
.ct-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ct-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ct-card:hover {
    border-color: #cdd8bc;
    box-shadow: 0 8px 26px rgba(26,48,20,.07);
    transform: translateY(-2px);
}
.ct-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #eef6e4;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.ct-card-label {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--terra);
}
.ct-card-main {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
    transition: color .15s;
}
a.ct-card-main:hover { color: var(--green); }
.ct-card-sub {
    font-size: .875rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* Как добраться */
.ct-route {
    background: var(--ink);
    padding: 72px 52px;
}
.ct-route-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}
.ct-route h2 {
    font-family: var(--serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 14px;
}
.ct-route-lead {
    font-size: 1rem;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: 28px;
}
.ct-route-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
    padding: 0;
}
.ct-route-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ct-route-list i {
    color: #90cc60;
    font-size: 1.15rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.ct-route-list strong {
    display: block;
    color: #fff;
    font-size: .9375rem;
    margin-bottom: 3px;
    font-weight: 600;
}
.ct-route-list span {
    font-size: .9375rem;
    color: rgba(255,255,255,.68);
    line-height: 1.6;
}
.ct-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 28px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    transition: background .15s;
}
.ct-route-btn:hover { background: #6aa54e; }
.ct-map-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ct-map-frame {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
    background: #24401f;
}
.ct-map-foot {
    padding: 16px 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ct-map-foot i {
    color: #90cc60;
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.ct-map-foot span {
    font-size: .875rem;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .article-section { padding: 52px 32px; }
    .ct-route { padding: 56px 32px; }
    .ct-route-inner { grid-template-columns: 1fr; gap: 32px; }
    .ct-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .article-section { padding: 40px 20px; }
    .ct-route { padding: 44px 20px; }
    .article-inner h2, .ct-route h2 { font-size: 1.6rem; }
    .ct-map-frame { height: 260px; }
}
/* ══════════════════════════════════════════════════════════
   ГЕРИАТРИЯ (page-geriatriya.php)
══════════════════════════════════════════════════════════ */
.article-section--intro {
    padding: 48px 52px;
}
.article-section--intro .article-inner {
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
}
.article-section--intro .lead {
    max-width: none;
    margin-bottom: 0;
}
.article-section--intro .article-inner h2 {
    margin-bottom: 12px;
}

/* Секция центров */
.centers-section {
    padding: 64px 52px;
    background: #f5f1ea;
}
.centers-inner {
    max-width: 1040px;
    margin: 0 auto;
}
.centers-inner h2 {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 8px;
}
.centers-inner > p {
    color: var(--ink-soft);
    margin-bottom: 28px;
    font-size: 1rem;
}
.map-wrap {
    width: 100%;
    height: 500px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    background: #e8e0d0;
}
.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.centers-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.centers-search {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 12px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--sans);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}
.centers-search:focus { border-color: var(--terra); }
.fo-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: .875rem;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .18s;
    font-family: var(--sans);
}
.fo-btn:hover,
.fo-btn.active {
    background: var(--terra);
    color: #fff;
    border-color: var(--terra);
}

/* Аккордеон ФО */
.fo-group {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
.fo-group:hover {
    border-color: #e2cdb4;
    box-shadow: 0 6px 20px rgba(46,66,40,.07);
}
.fo-group.open {
    border-color: rgba(181,110,58,.4);
    box-shadow: 0 8px 24px rgba(46,66,40,.09);
}
.fo-group.hidden { display: none; }
.fo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    background: #fff;
    user-select: none;
    gap: 12px;
    transition: background .2s;
}
.fo-header:hover { background: #fdfaf5; }
.fo-title {
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
}
.fo-count {
    background: var(--terra);
    color: #fff;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 10px;
    font-family: var(--sans);
}
.fo-chevron {
    color: var(--terra);
    font-size: 1.25rem;
    transition: transform .25s;
}
.fo-group.open .fo-chevron { transform: rotate(180deg); }
.fo-body {
    display: none;
    border-top: 1px solid var(--border);
}
.fo-group.open .fo-body { display: block; }
.center-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.center-row:last-child { border-bottom: none; }
.center-row.hidden { display: none; }
.center-region {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--terra);
    font-weight: 600;
    margin-bottom: 4px;
}
.center-name {
    font-size: .9375rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.45;
}
.center-addr {
    font-size: .875rem;
    color: var(--ink-soft);
    line-height: 1.5;
    padding-top: 2px;
}

/* Когда обратиться */
.when-section {
    background: var(--ink);
    padding: 72px 52px;
}
.when-section-inner {
    max-width: 1160px;
    margin: 0 auto;
}
.when-section h2 {
    font-family: var(--serif);
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}
.when-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.when-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 28px 24px;
    transition: background .3s, border-color .3s, transform .3s;
}
.when-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(144,204,96,.45);
    transform: translateY(-6px);
}
.when-card .wc-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.when-card h4 {
    font-family: var(--serif);
    font-size: 1.0625rem;
    color: #fff;
    margin-bottom: 8px;
}
.when-card p {
    font-size: .9375rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    margin: 0;
}

/* Шаги «Как попасть» */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
}
.step-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--terra);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
}
.step-body h4 {
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.step-body p {
    font-size: .9375rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}
.step-body a {
    color: var(--terra);
    text-decoration: none;
    border-bottom: 1px solid rgba(181,110,58,.3);
}
.step-body a:hover { border-bottom-color: var(--terra); }
.info-box {
    background: #fff8f2;
    border: 1px solid rgba(181,110,58,.25);
    border-left: 4px solid var(--terra);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: .9375rem;
    color: var(--ink-soft);
    line-height: 1.65;
}
.info-box strong { color: var(--terra); }

@media (max-width: 900px) {
    .centers-section { padding: 48px 24px; }
    .when-section { padding: 48px 24px; }
    .when-grid { grid-template-columns: 1fr 1fr; }
    .center-row { grid-template-columns: 1fr; gap: 6px; }
    .article-section--intro { padding: 40px 24px; }
}
@media (max-width: 600px) {
    .when-grid { grid-template-columns: 1fr; }
    .map-wrap { height: 320px; }
}

/* ══════════════════════════════════════════════════════════
   СПЕЦПРОЕКТЫ (page-spets-proekt.php)
══════════════════════════════════════════════════════════ */
.sp-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.sp-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.sp-chip {
    padding: 14px 22px;
    border-radius: 14px;
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all .18s;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 200px;
}
.sp-chip .proj-num {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.sp-chip .proj-chip-info { display: flex; flex-direction: column; gap: 3px; }
.sp-chip .proj-chip-label {
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .5;
}
.sp-chip .proj-chip-name {
    font-size: .9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sp-chip.terra { border-color: #e8aabb; color: #7a2848; }
.sp-chip.terra .proj-num { color: var(--terra); }
.sp-chip.terra:hover { background: #fff0f5; border-color: var(--terra); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(176,88,112,.14); }
.sp-chip.blue { border-color: #b0c8e8; color: #1a3a6a; }
.sp-chip.blue .proj-num { color: #2a5090; }
.sp-chip.blue:hover { background: #f0f5ff; border-color: #2a5090; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,80,144,.14); }
.sp-chip.teal { border-color: #a0cc80; color: #1a3e08; }
.sp-chip.teal .proj-num { color: #3c7e20; }
.sp-chip.teal:hover { background: #f0f9e8; border-color: #3c7e20; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(60,126,32,.14); }

/* Секции */
.sp-section { padding: 0; }
.sp-section.sp-section--terra { background: #fff5f8; border-top: 4px solid var(--terra); }
.sp-section.sp-section--blue  { background: #f5f8ff; border-top: 4px solid #2a5090; }
.sp-section.sp-section--teal  { background: #f2f9ec; border-top: 4px solid #3c7e20; }

.sp-project-header {
    padding: 44px 0;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sp-project-header::after {
    content: attr(data-decor);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7rem;
    opacity: .12;
    pointer-events: none;
    line-height: 1;
}
.proj-terra { background: linear-gradient(125deg, #3a1825 0%, #7a3a52 55%, #b07078 100%); }
.proj-blue  { background: linear-gradient(125deg, #112a54 0%, #1e3e7a 55%, #2e58a8 100%); }
.proj-teal  { background: linear-gradient(125deg, #1a3808 0%, #2c6018 55%, #449028 100%); }

.sp-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
    width: 100%;
}
.proj-header-num {
    font-family: var(--serif);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    opacity: .22;
    flex-shrink: 0;
    letter-spacing: -.02em;
}
.proj-header-label {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .65;
    margin-bottom: 10px;
}
.proj-header-title {
    font-family: var(--serif);
    font-size: 2.375rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.15;
}

.sp-section-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 52px 40px 64px;
    box-sizing: border-box;
}
.sp-section-body .lead {
    font-size: 1.0625rem;
    color: #5a6a50;
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 36px;
}
.sp-section-body h3.block-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 22px;
    margin-top: 40px;
}

.sp-photo-divider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #1a2a15;
}
.sp-photo-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    opacity: .85;
}
.sp-photo-divider-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sp-photo-divider-label {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.65);
}
.sp-photo-divider-next {
    font-size: .875rem;
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Проект 1 */
.dms-banner {
    background: linear-gradient(125deg, #7a3848 0%, #b06070 55%, #ce8888 100%);
    border-radius: 20px;
    padding: 40px 44px;
    color: #fff;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}
.dms-banner::after {
    content: '🌻';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7rem;
    opacity: .18;
    pointer-events: none;
}
.dms-banner h3 { font-family: var(--serif); font-size: 1.875rem; font-weight: 400; margin-bottom: 10px; }
.dms-banner p { font-size: .9375rem; opacity: .78; max-width: 460px; line-height: 1.65; }

.against-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.against-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    border-top: 3px solid #b06070;
}
.against-icon { font-size: 1.75rem; margin-bottom: 10px; }
.against-title { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.against-desc { font-size: .8125rem; color: #7a6850; line-height: 1.6; }

.stories-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.story-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, transform .18s;
}
.story-card:hover {
    box-shadow: 0 8px 28px rgba(176,88,112,.1);
    transform: translateY(-3px);
}
.story-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.story-body { padding: 18px 20px 22px; }
.story-age {
    font-size: .75rem;
    font-weight: 700;
    color: #b06070;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.story-name { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); margin-bottom: 8px; }
.story-quote { font-size: .875rem; color: #6a5840; line-height: 1.65; font-style: italic; }

.submit-block {
    background: #fff0f5;
    border: 1px solid #ecc0cc;
    border-radius: 18px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.submit-block h3 { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); margin-bottom: 6px; }
.submit-block p { font-size: .9375rem; color: #7a6850; max-width: 480px; line-height: 1.6; }
.btn-terra {
    background: var(--terra);
    color: #fff;
    padding: 13px 28px;
    border-radius: 24px;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.btn-terra:hover { background: #9a4858; }

/* Проект 2 */
.disp-banner {
    background: linear-gradient(125deg, #1a3a6a 0%, #2a5090 55%, #4070c0 100%);
    border-radius: 20px;
    padding: 40px 44px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}
.disp-banner::after {
    content: '🏥';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6rem;
    opacity: .18;
    pointer-events: none;
}
.disp-banner h3 { font-family: var(--serif); font-size: 1.875rem; font-weight: 400; margin-bottom: 10px; }
.disp-banner p { font-size: .9375rem; opacity: .78; max-width: 460px; line-height: 1.65; }
.disp-banner-cta {
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.disp-banner-cta:hover { background: rgba(255,255,255,.28); }

.disp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.disp-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border-top: 3px solid #2a5090;
}
.disp-stat strong {
    display: block;
    font-family: var(--serif);
    font-size: 2.25rem;
    color: #2a5090;
    line-height: 1;
    margin-bottom: 8px;
}
.disp-stat span { font-size: .875rem; color: #6a7a90; line-height: 1.5; }

.disp-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.disp-type {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
}
.disp-type-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2a5090;
    margin-bottom: 8px;
}
.disp-type h4 { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); margin-bottom: 8px; }
.disp-type p { font-size: .875rem; color: #6a7a90; line-height: 1.65; }
.disp-type .freq {
    margin-top: 12px;
    font-size: .8rem;
    font-weight: 700;
    color: #2a5090;
    background: #e8eeff;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
}

.faq-block { margin-bottom: 40px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-q {
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-weight: 500;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.5;
}
.faq-q .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.faq-q .chevron {
    margin-left: auto;
    color: #9a8870;
    transition: transform .2s;
    font-size: 1rem;
    padding-top: 2px;
}
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 24px 0 74px;
}
.faq-item.open .faq-a {
    max-height: 500px;
    padding-bottom: 22px;
}
.faq-a-doctor {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--green);
    margin-bottom: 8px;
}
.faq-a p { font-size: .9375rem; color: #4a5a40; line-height: 1.75; }

.work-day-block {
    background: #eef3ff;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.work-day-icon { font-size: 2.5rem; flex-shrink: 0; }
.work-day-block h4 { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); margin-bottom: 6px; }
.work-day-block p { font-size: .9rem; color: #4a5090; line-height: 1.65; }

/* Проект 3 */
.teal-banner {
    background: linear-gradient(125deg, #1a3808 0%, #2c6016 55%, #409028 100%);
    border-radius: 20px;
    padding: 40px 44px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}
.teal-banner::after {
    content: '🌿';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7rem;
    opacity: .18;
    pointer-events: none;
}
.teal-banner h3 { font-family: var(--serif); font-size: 1.875rem; font-weight: 400; margin-bottom: 10px; }
.teal-banner p { font-size: .9375rem; opacity: .78; max-width: 460px; line-height: 1.65; }
.teal-banner-cta {
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.teal-banner-cta:hover { background: rgba(255,255,255,.28); }

.teal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.teal-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border-top: 3px solid #3c7e20;
}
.teal-stat strong {
    display: block;
    font-family: var(--serif);
    font-size: 2.25rem;
    color: #3c7e20;
    line-height: 1;
    margin-bottom: 8px;
}
.teal-stat span { font-size: .875rem; color: #507038; line-height: 1.5; }

.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.pillar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
    border-top: 3px solid #3c7e20;
}
.pillar-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #3c7e20;
    margin-bottom: 8px;
}
.pillar-card h4 { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); margin-bottom: 8px; }
.pillar-card p { font-size: .875rem; color: #507038; line-height: 1.65; }
.pillar-freq {
    margin-top: 12px;
    font-size: .8rem;
    font-weight: 700;
    color: #3c7e20;
    background: #d8f0c0;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
}

.teal-submit {
    background: #e8f5d8;
    border: 1px solid #acd880;
    border-radius: 18px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.teal-submit h3 { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); margin-bottom: 6px; }
.teal-submit p { font-size: .9375rem; color: #3a5828; max-width: 480px; line-height: 1.6; }
.btn-teal {
    background: #3c7e20;
    color: #fff;
    padding: 13px 28px;
    border-radius: 24px;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s;
}
.btn-teal:hover { background: #2c6018; }

@media (max-width: 1100px) {
    .sp-nav-inner, .sp-header-inner, .sp-section-body { padding-left: 32px; padding-right: 32px; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .sp-nav-inner, .sp-header-inner, .sp-section-body { padding-left: 24px; padding-right: 24px; }
    .proj-header-num { font-size: 3.5rem; }
    .proj-header-title { font-size: 1.875rem; }
    .sp-project-header::after { display: none; }
    .dms-banner, .disp-banner, .teal-banner { flex-direction: column; padding: 32px 28px; }
    .dms-banner::after, .disp-banner::after, .teal-banner::after { display: none; }
    .dms-banner-cta, .disp-banner-cta, .teal-banner-cta { align-self: flex-start; }
    .against-grid { grid-template-columns: 1fr 1fr; }
    .stories-row { grid-template-columns: 1fr; }
    .disp-stats, .teal-stats { grid-template-columns: 1fr 1fr; }
    .disp-types { grid-template-columns: 1fr; }
    .submit-block, .teal-submit { flex-direction: column; align-items: flex-start; }
    .sp-photo-divider { height: 340px; }
}
@media (max-width: 580px) {
    .against-grid { grid-template-columns: 1fr; }
    .disp-stats, .teal-stats { grid-template-columns: 1fr; }
    .sp-chip { flex: 1 1 100%; }
    .proj-header-num { font-size: 2.75rem; }
    .proj-header-title { font-size: 1.5rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .sp-photo-divider { height: 260px; }
}

/* ══════════════════════════════════════════════════════════
   ТЕСТЫ — ЛЕНДИНГ (page-testy.php)
══════════════════════════════════════════════════════════ */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 36px 40px;
    background: var(--cream);
}
.test-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 28px 24px;
    cursor: pointer;
    transition: box-shadow .18s, transform .18s;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
}
.test-card:hover {
    box-shadow: 0 8px 28px rgba(112,80,21,.12);
    transform: translateY(-3px);
}
.test-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}
.test-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #a87828;
    margin-bottom: 8px;
}
.test-title {
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--ink);
}
.test-desc {
    font-size: .875rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 16px;
}
.test-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: .875rem;
    font-weight: 600;
}
.test-meta {
    font-size: .8rem;
    color: #9a8870;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .tests-grid { grid-template-columns: 1fr 1fr; padding: 24px 20px; }
}
@media (max-width: 640px) {
    .tests-grid { grid-template-columns: 1fr; padding: 20px 16px; }
}
/* ══════════════════════════════════════════════════════════
   ТЕСТЫ — ОБЩИЕ СТИЛИ (page-test-*.php)
══════════════════════════════════════════════════════════ */
.quiz-hero {
    padding: 52px 40px 44px;
    color: #fff;
}
.quiz-hero .eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .65;
    margin-bottom: 10px;
}
.quiz-hero h1 {
    font-family: var(--serif);
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1.25;
}
.quiz-hero p {
    font-size: 1rem;
    opacity: .8;
    max-width: 560px;
    line-height: 1.65;
}

.quiz-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.quiz-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.quiz-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--ink-soft);
}

/* Вопросы */
.q-block {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 28px 24px;
    margin-bottom: 16px;
}
.q-num {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7860c8;
    margin-bottom: 8px;
}
.q-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 18px;
    font-family: var(--serif);
}
.q-note {
    font-size: .85rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 14px;
}

/* Кнопки Да/Нет */
.btn-row {
    display: flex;
    gap: 10px;
}
.btn-ans {
    flex: 1;
    padding: 12px 10px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: #fff;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    color: var(--ink);
    font-family: var(--sans);
}
.btn-ans:hover {
    border-color: #7860c8;
    background: #f0eeff;
}
.btn-ans.selected-yes {
    border-color: #7860c8;
    background: #7860c8;
    color: #fff;
}
.btn-ans.selected-no {
    border-color: #538a3e;
    background: #538a3e;
    color: #fff;
}

/* Кнопка отправки */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #7860c8;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: background .18s;
    font-family: var(--sans);
}
.btn-submit:hover { background: #5040a0; }
.btn-submit:disabled { opacity: .45; cursor: default; }

/* Прогресс-бар */
.progress-bar {
    height: 4px;
    background: #e8e0d0;
    border-radius: 4px;
    margin-bottom: 28px;
}
.progress-fill {
    height: 100%;
    background: #7860c8;
    border-radius: 4px;
    transition: width .3s;
}
.progress-count {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

/* Результат */
.result-box {
    display: none;
    background: #fff;
    border-radius: 20px;
    border: 2px solid var(--border);
    padding: 36px 32px;
    margin-top: 32px;
    text-align: center;
}
.result-box.show { display: block; }
.result-icon { font-size: 3.5rem; margin-bottom: 12px; }
.result-score { font-size: 1rem; color: var(--ink-soft); margin-bottom: 8px; }
.result-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--ink);
}
.result-text {
    font-size: .95rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 20px;
}
.result-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.result-alert.danger { background: #fee2e2; border: 1.5px solid #ef4444; color: #7f1d1d; }
.result-alert.warn   { background: #fef3cd; border: 1.5px solid #fbbf24; color: #7c4a00; }
.result-alert.ok     { background: #eef7e8; border: 1.5px solid #538a3e; color: #2a5018; }
.result-alert.red    { background: #ffeeee; border: 1.5px solid #e04040; color: #7a0000; }
.result-alert.med    { background: #fff0e8; border: 1.5px solid #f59e0b; color: #7c3a00; }
.btn-retry {
    padding: 12px 28px;
    border-radius: 10px;
    border: 2px solid #7860c8;
    background: #fff;
    color: #7860c8;
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
    font-family: var(--sans);
}
.btn-retry:hover { background: #f0eeff; }

/* Прочие блоки */
.notice-box {
    background: #fef3cd;
    border: 1.5px solid #fbbf24;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: .9rem;
    color: #7c4a00;
    line-height: 1.6;
}
.notice-box strong { display: block; margin-bottom: 4px; }

.info-box {
    background: #eef3fa;
    border-radius: 14px;
    border: 1.5px solid #c8d8f0;
    padding: 20px 22px;
    margin-bottom: 28px;
}
.info-box h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #2e4880;
    margin-bottom: 10px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.info-item {
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.info-item strong { display: block; color: var(--ink); font-size: .9rem; }

.freq-legend {
    font-size: .8rem;
    color: #9a8870;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #f8f5f0;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .quiz-hero { padding: 36px 20px; }
    .quiz-hero h1 { font-size: 1.6rem; }
    .quiz-wrap { padding: 24px 16px 60px; }
    .q-block { padding: 20px 16px; }
    .info-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   ТЕСТЫ — ДОПОЛНИТЕЛЬНЫЕ КОМПОНЕНТЫ
══════════════════════════════════════════════════════════ */

/* Варианты ответов (для ГМП, Саркопении, Тревожности) */
.opt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.opt-btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: #fff;
    font-size: .9rem;
    cursor: pointer;
    transition: all .18s;
    color: var(--ink);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
}
.opt-btn:hover {
    border-color: #2e4880;
    background: #eef1fa;
}
.opt-btn.selected {
    border-color: #2e4880;
    background: #2e4880;
    color: #fff;
}
.opt-btn .pts {
    font-size: .78rem;
    font-weight: 700;
    opacity: .6;
    margin-left: 8px;
    white-space: nowrap;
}
.opt-btn.selected .pts { opacity: .85; }

/* Вопросы с 3-4 кнопками (саркопения, тревожность) */
.btn-row--multi { flex-wrap: wrap; }
.btn-row--multi .btn-ans {
    flex: 1;
    min-width: 120px;
    font-size: .85rem;
    padding: 11px 8px;
}
.btn-row--4 .btn-ans {
    flex: 1;
    min-width: 110px;
    font-size: .82rem;
    padding: 10px 6px;
}

/* Баллы (для падений) */
.q-pts {
    font-size: .78rem;
    color: #9a8870;
    margin-top: -12px;
    margin-bottom: 14px;
}

/* BMI-калькулятор (для питания) */
.bmi-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.bmi-field {
    flex: 1;
    min-width: 120px;
}
.bmi-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.bmi-field input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    transition: border-color .18s;
    font-family: var(--sans);
}
.bmi-field input:focus {
    outline: none;
    border-color: var(--green);
}
.bmi-result {
    padding: 10px 14px;
    border-radius: 8px;
    background: #eef7e8;
    border: 1.5px solid var(--green);
    font-size: .9rem;
    color: #2a5018;
    margin-bottom: 16px;
    display: none;
}
.q-hint {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* SAGE — специальные блоки */
.q-block.paper-task {
    background: #fffdf0;
    border-color: #e8d870;
}
.q-tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.q-tag.digital { background: #e8f5e0; color: #2e6040; }
.q-tag.paper   { background: #fef9c3; color: #854d0e; }
.q-sub {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 16px;
    line-height: 1.5;
}
.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.score-label { font-size: .85rem; color: var(--ink-soft); }
.score-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.score-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    color: var(--ink);
    min-width: 44px;
    text-align: center;
    font-family: var(--sans);
}
.score-btn:hover {
    border-color: #2e6040;
    background: #eef7e8;
}
.score-btn.selected {
    border-color: #2e6040;
    background: #2e6040;
    color: #fff;
}
.paper-note {
    font-size: .82rem;
    color: #7c4a00;
    background: #fef9c3;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.ans-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-size: 1rem;
    color: var(--ink);
    margin-top: 4px;
    transition: border-color .18s;
    font-family: var(--sans);
}
.ans-input:focus {
    outline: none;
    border-color: #2e6040;
}
.btn-check {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #2e6040;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    font-family: var(--sans);
}
.check-result {
    margin-top: 8px;
    font-size: .85rem;
    padding: 6px 12px;
    border-radius: 8px;
}
.check-result.correct { background: #eef7e8; color: #2a5018; }
.check-result.wrong   { background: #fee2e2; color: #7f1d1d; }
.score-display {
    font-size: .85rem;
    font-weight: 700;
    color: #2e6040;
    margin-left: 4px;
}
.total-section {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #2e6040;
    padding: 24px;
    margin-top: 24px;
}
.total-section h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #2e6040;
}
.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.task-row:last-child { border-bottom: none; }
.task-name { color: var(--ink); }
.task-pts { font-weight: 700; color: #2e6040; }
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   CF7: стилизация формы «Задать вопрос врачу»
   ═══════════════════════════════════════════════ */

/* ─── Убираем лишние обёртки CF7 ─── */
.ask-card .wpcf7,
.ask-card .wpcf7 form {
    display: contents;
}
.ask-card .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.ask-card .wpcf7-form > p {
    margin: 0;
}
.ask-card .wpcf7 br {
    display: none;
}

/* ─── Сетка полей ─── */
.ask-card .ask-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.ask-card .ask-form > div {
    display: block;
}

/* Первые два поля — по половине ширины */
.ask-card .ask-form > div:nth-child(1),
.ask-card .ask-form > div:nth-child(2) {
    grid-column: auto;
}

/* Все остальные — на всю ширину (email, textarea, span и т.д.) */
.ask-card .ask-form > *:not(:nth-child(1)):not(:nth-child(2)) {
    grid-column: 1 / -1;
}

/* ─── Поля ввода ─── */
.ask-card input[type="text"],
.ask-card input[type="number"],
.ask-card input[type="email"],
.ask-card input[type="tel"],
.ask-card textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border, #e0d8c8);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--sans, system-ui, sans-serif);
    background: #fff;
    color: var(--ink, #2a3a20);
    transition: border-color .15s;
    box-sizing: border-box;
}
.ask-card input:focus,
.ask-card textarea:focus {
    outline: none;
    border-color: var(--green, #538a3e);
}
.ask-card textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--sans, system-ui, sans-serif);
}

/* Убираем стрелки у number */
.ask-card input[type="number"]::-webkit-outer-spin-button,
.ask-card input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ask-card input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ─── Нижний блок: кнопка + примечание ─── */
.ask-card .ask-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ask-card .ask-bottom > p {
    margin: 0;
}

/* ─── Кнопка отправки ─── */
.ask-card .ask-submit,
.ask-card input[type="submit"] {
    background: var(--green, #538a3e);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--sans, system-ui, sans-serif);
    cursor: pointer;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.ask-card .ask-submit:hover,
.ask-card input[type="submit"]:hover {
    background: var(--green-dark, #3a6a28);
}

/* ─── Примечание под кнопкой ─── */
.ask-card .ask-note {
    font-size: .8125rem;
    color: #9a8870;
    line-height: 1.5;
    margin: 0;
}
.ask-card .ask-note br {
    display: inline;
}

/* ─── Сообщения CF7 ─── */
.ask-card .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: .875rem;
    border: 1.5px solid var(--border, #e0d8c8);
    background: #f9f9f5;
    color: var(--ink, #2a3a20);
}
.ask-card .wpcf7-mail-sent-ok {
    border-color: var(--green, #538a3e);
    background: #f0fae8;
    color: var(--green-dark, #3a6a28);
}
.ask-card .wpcf7-mail-sent-ng,
.ask-card .wpcf7-validation-errors,
.ask-card .wpcf7-aborted {
    border-color: #c0392b;
    background: #fdecea;
    color: #c0392b;
}
.ask-card .wpcf7-not-valid-tip {
    color: #c0392b;
    font-size: .8125rem;
    margin-top: 4px;
    display: block;
}
.ask-card .wpcf7-not-valid {
    border-color: #c0392b !important;
}

/* ─── Мобильная адаптация ─── */
@media (max-width: 640px) {
    .ask-card .ask-form {
        grid-template-columns: 1fr;
    }
    .ask-card .ask-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}