/* =====================================================================
   ПАЛИТРА «СОСНОВЫЙ БОР» — меняйте цвета здесь, остальное подстроится.
   Взята с листовки: тёмная хвоя, мох, тёплый серо-коричневый (кора),
   янтарный акцент (ромбики на листовке) и светлый «льняной» фон.
   ===================================================================== */
:root {
  --pine: #1f3a2b;          /* тёмная хвоя: шапка, тёмные блоки, заголовки */
  --pine-deep: #152a1f;     /* ещё темнее: верхняя полоса, подвал */
  --forest: #2e5a3c;        /* основные кнопки */
  --moss: #8db255;          /* мох: акценты, иконки (как «СОСНОВЫЙ БОР» на листовке) */
  --moss-soft: #e3ecd3;     /* светлый мох: плашки, бейджи */
  --bark: #4b4245;          /* кора: блок цен (как фон листовки) */
  --amber: #e8963a;         /* янтарь: кнопка «Позвонить», цены */
  --amber-dark: #d27f22;
  --cream: #f5f1e8;         /* льняной фон секций */
  --sand: #e6dfcf;          /* рамки */
  --white: #ffffff;
  --text: #23271f;
  --muted: #6b6c61;

  --radius: 12px;
  --radius-big: 22px;
  --shadow: 0 10px 30px rgba(21, 42, 31, .12);
  --font: "Commissioner", "Segoe UI", Arial, sans-serif;
  --font-head: "Lora", Georgia, serif;
  --container: 1240px;
  --treeline: 70px;         /* высота силуэта леса */
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--white); }
a { color: var(--forest); }
img { max-width: 100%; display: block; }
p { margin: 0 0 14px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

/* ---------- Заголовки ---------- */
.h1, .h2, .h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 18px; color: var(--pine); }
.h1 { font-size: 52px; }
.h2 { font-size: 38px; }
.h2--small { font-size: 28px; margin-top: 60px; }
.h3 { font-size: 21px; }
.h1--light, .h2--light { color: var(--white); }
.h2--center { text-align: center; }
.h2__badge { display: inline-block; background: var(--moss); color: var(--white); padding: 6px 30px; border-radius: 6px;
  font-family: var(--font); font-weight: 800; font-size: 30px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--radius); font: 700 15px var(--font); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; text-align: center; white-space: nowrap; }
.btn--primary { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: var(--pine); }
.btn--accent { background: var(--amber); color: var(--pine-deep); }
.btn--accent:hover { background: var(--amber-dark); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn__icon { width: 20px; height: 20px; margin-right: 10px; flex: none; }

/* ---------- Силуэт леса (разделитель) ----------
   --bottom: внутри секции снизу, цвет = фон следующей секции (--tl)
   --top / --band / --footer: над секцией, цвет = её собственный фон */
.treeline { display: block; width: 100%; height: var(--treeline); fill: var(--tl, var(--white)); pointer-events: none; }
.treeline--bottom { position: absolute; left: 0; bottom: -1px; }
.treeline--top, .treeline--band, .treeline--footer { position: absolute; left: 0; bottom: calc(100% - 1px); z-index: 2; }
.treeline--bottom { z-index: 2; }

/* =====================================================================
   ШАПКА
   ===================================================================== */
.topbar { background: var(--pine-deep); color: #cdd8c6; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__place { display: inline-flex; align-items: center; gap: 6px; }
.topbar__icon { width: 16px; height: 16px; color: var(--moss); }
.topbar a { color: var(--white); text-decoration: none; margin-left: 16px; font-weight: 600; }

.header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(21,42,31,.08); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__img { max-height: 56px; width: auto; }
.logo__mark { width: 50px; height: 50px; border-radius: 50%; background: var(--pine); display: grid; place-items: center; flex: none; }
.logo__mark svg { width: 30px; height: 30px; color: var(--moss); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font: 700 22px var(--font-head); color: var(--pine); text-transform: uppercase; letter-spacing: .04em; }
.logo__kind { font-size: 12px; color: var(--muted); }
.logo--light .logo__name { color: var(--white); }
.logo--light .logo__kind { color: #b7c4b0; }
.logo--light .logo__mark { background: var(--forest); }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--pine); font-weight: 600; font-size: 15px; text-decoration: none; padding: 26px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.is-active { border-color: var(--amber); }
.nav__phone { display: none; }
.header__contacts { text-align: right; flex: none; }
.header__phone { display: block; font: 800 21px var(--font); color: var(--pine); text-decoration: none; white-space: nowrap; }
.header__note { color: var(--muted); font-size: 12px; }

.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: var(--radius);
  background: var(--pine); cursor: pointer; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; background: var(--white); border-radius: 2px; }

/* =====================================================================
   ПЕРВЫЙ ЭКРАН
   ===================================================================== */
.hero { position: relative; color: var(--white); --tl: var(--cream);
  background: linear-gradient(90deg, rgba(16,32,23,.92) 0%, rgba(16,32,23,.7) 45%, rgba(16,32,23,.25) 100%), var(--bg) center / cover no-repeat;
  padding: 80px 0 calc(var(--treeline) + 70px); }
.hero__grid { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.hero__kicker { font-size: 18px; letter-spacing: .04em; opacity: .9; }
.hero__kicker::before, .hero__kicker::after { content: " — — "; color: var(--moss); }
.hero__title { font: 700 84px/1 var(--font-head); color: var(--moss); text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 20px; }
.hero__subtitle { font-size: 18px; max-width: 600px; opacity: .92; margin-bottom: 34px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 680px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.feature__icon { width: 36px; height: 36px; color: var(--moss); flex: none; }
.feature__top { font-weight: 800; }
.feature__bottom { font-size: 13px; opacity: .85; }

.call-card { background: var(--white); color: var(--text); border-radius: var(--radius-big); padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3); border-top: 6px solid var(--amber); }
.call-card__title { font-weight: 700; font-size: 17px; color: var(--pine); margin-bottom: 8px; }
.call-card__phone { display: block; font: 800 36px/1.15 var(--font); color: var(--pine); text-decoration: none; white-space: nowrap; }
.call-card__phone:hover { color: var(--forest); }
.call-card__note { color: var(--muted); margin: 6px 0 20px; }
.call-card__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.call-card__buttons .btn { flex: 1 1 auto; }

/* =====================================================================
   СЕКЦИИ
   ===================================================================== */
.section { position: relative; padding: 80px 0; }
.section--tight { padding: 50px 0; }
.section--cream { background: var(--cream); --tl: var(--cream); }
.section--bark { background: var(--bark); color: #ece6dc; --tl: var(--bark); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.section__head .h2 { margin-bottom: 8px; }
.section__subtitle { color: var(--muted); max-width: 720px; margin-bottom: 30px; }
.section__head .section__subtitle { margin-bottom: 0; }

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

/* ---------- Текст + фото ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-big); box-shadow: var(--shadow); }
.note { background: var(--moss-soft); border-left: 4px solid var(--moss); padding: 14px 18px; border-radius: 8px; margin-top: 22px; font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat { text-align: center; padding: 22px 10px; border-top: 3px solid var(--moss); }
.stat__value { font: 700 36px var(--font-head); color: var(--forest); }
.stat__label { color: var(--muted); font-size: 15px; }

/* ---------- Кому помогаем ---------- */
/* Карточки-кнопки: сброс стандартного вида <button> */
.help-card, .activity--link, .price--link { font: inherit; text-align: left; cursor: pointer; appearance: none; }

.help-card { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 30px; border-radius: var(--radius-big);
  background: var(--white); border: 1px solid var(--sand); color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s; }
.help-card:hover, .help-card:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--moss); outline: none; }
.help-card__title { display: block; }
.help-card__text { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 18px; }
.more-link { color: var(--forest); font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--moss); padding-bottom: 2px; }
.help-card:hover .more-link { color: var(--pine); border-color: var(--amber); }
.help-card__icon { width: 56px; height: 56px; color: var(--forest); margin-bottom: 18px; padding: 10px; border-radius: 50%; background: var(--moss-soft); }

/* ---------- Программа ---------- */
.activity { display: flex; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid transparent; color: var(--text); width: 100%; }
.activity--link { transition: border-color .2s, box-shadow .2s; }
.activity--link:hover, .activity--link:focus-visible { border-color: var(--moss); box-shadow: var(--shadow); outline: none; }
.activity__body { flex: 1; display: flex; flex-direction: column; }
.activity__text { color: var(--muted); font-size: 15px; }
.activity__arrow { align-self: center; color: var(--moss); transition: transform .2s; }
.activity__arrow svg { width: 22px; height: 22px; display: block; }
.activity--link:hover .activity__arrow { transform: translateX(4px); color: var(--forest); }
.activity__icon { width: 30px; height: 30px; color: var(--moss); flex: none; margin-top: 2px; }
.activity__title { font-weight: 700; color: var(--pine); margin-bottom: 4px; }
.activity p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { content: ""; position: absolute; top: 21px; left: 44px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--moss) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step__num { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine); color: var(--moss); font: 700 20px var(--font-head); }
.step__title { font-weight: 800; color: var(--pine); margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Цены (тёмный блок как листовка) ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.price { border-radius: var(--radius-big); padding: 28px 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; }
.price--featured { background: var(--pine); border: 2px solid var(--moss); }
.price__term { color: var(--moss); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.price__name { font: 700 20px/1.25 var(--font-head); color: var(--white); margin: 8px 0 16px; min-height: 50px; }
.price__value { font: 800 32px var(--font); color: var(--amber); margin-bottom: 12px; }
.price > span { display: block; }
.price__text { font-size: 14px; opacity: .8; margin: 0; flex: 1; }
.price--link { color: #ece6dc; transition: transform .2s, border-color .2s, background .2s; }
.price--link:hover, .price--link:focus-visible { transform: translateY(-4px); border-color: var(--amber); outline: none; }
.price__more { margin-top: 18px; color: var(--amber); font-weight: 700; font-size: 14px; }
.prices__note { text-align: center; margin: 32px 0 0; opacity: .9; }
.prices__note a { color: var(--amber); font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ---------- Галереи ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery--preview { grid-template-columns: repeat(3, 1fr); }
.gallery--masonry { display: block; columns: 3 320px; column-gap: 14px; }
.gallery--masonry .gallery__item { margin-bottom: 14px; break-inside: avoid; }
.gallery--masonry .gallery__img { aspect-ratio: auto; }
.gallery--docs { grid-template-columns: repeat(4, 1fr); }
.gallery--docs .gallery__img { aspect-ratio: 3 / 4; }
.gallery__item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery__item:hover .gallery__img { transform: scale(1.05); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: var(--white); font-size: 14px; font-weight: 600;
  background: linear-gradient(transparent, rgba(16,32,23,.8)); opacity: 0; transition: opacity .25s; }
.gallery__item:hover .gallery__caption { opacity: 1; }

/* ---------- Превью «Окрестности» ---------- */
.nature { position: relative; padding: 110px 0 calc(var(--treeline) + 110px);
  background: linear-gradient(rgba(16,32,23,.35), rgba(16,32,23,.55)), var(--bg) center / cover no-repeat; }
.nature__inner { display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: center; }
.nature__card { background: var(--cream); padding: 36px; border-radius: var(--radius-big); box-shadow: var(--shadow); }
.nature__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nature__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); border: 4px solid rgba(255,255,255,.85); transition: transform .3s; }
.nature__thumbs a:hover .nature__img { transform: translateY(-6px); }

/* ---------- Тёмно-зелёные блоки «Позвоните нам» ---------- */
.band { position: relative; background: var(--pine); color: var(--white); padding: 50px 0 70px; --tl: var(--pine); }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band__text { font-size: 17px; max-width: 460px; margin: 0; opacity: .85; }
.band__call { border-left: 1px solid rgba(255,255,255,.25); padding-left: 40px; }
.band__phone { display: inline-flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; font: 800 42px/1.1 var(--font); white-space: nowrap; }
.band__phone-icon { width: 36px; height: 36px; color: var(--moss); }
.band__note { opacity: .75; margin: 6px 0 20px; }
.band__buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Карусель и специалисты ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--forest); background: var(--white);
  color: var(--forest); cursor: pointer; display: grid; place-items: center; padding: 0; }
.carousel__btn:hover { background: var(--forest); color: var(--white); }
.carousel__btn svg { width: 22px; height: 22px; }

.person { text-align: center; display: flex; flex-direction: column; }
.person__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-big); margin-bottom: 16px; }
.person__name { font-weight: 700; font-size: 18px; color: var(--pine); }
.person__role { color: var(--muted); font-size: 15px; margin: 4px 0 12px; flex: 1; }
.person__exp { align-self: center; background: var(--moss-soft); color: var(--forest); font-weight: 700; padding: 6px 16px; border-radius: 30px; font-size: 14px; }

/* ---------- Отзывы, вопросы ---------- */
.review { margin: 0; background: var(--white); border-radius: var(--radius-big); padding: 30px; position: relative; }
.review::before { content: "“"; position: absolute; top: 4px; right: 22px; font: 700 80px var(--font-head); color: var(--moss-soft); }
.review cite { display: block; font-style: normal; font-weight: 700; color: var(--forest); margin-top: 10px; }

.faq { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--pine); padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--moss); font-size: 28px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: 20px; margin: 0; color: var(--muted); }

/* ---------- Статьи ---------- */
.article-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-big); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s; }
.article-card:hover { box-shadow: var(--shadow); }
.article-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.article-card__title { font: 700 20px/1.3 var(--font-head); color: var(--pine); flex: 1; }
.article-card__lead { color: var(--muted); font-size: 15px; }
.article-card__more { color: var(--forest); font-weight: 700; font-size: 14px; }
.article__lead { font-size: 19px; color: var(--muted); margin: -4px 0 26px; }
.article__cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 24px 28px; background: var(--pine); color: var(--white); border-radius: var(--radius-big); }
.article__cta b { display: block; font: 700 22px var(--font-head); }
.article__cta span { opacity: .8; }
.article__date { color: var(--muted); margin: -8px 0 20px; }
.article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-big); margin-bottom: 30px; }
.text-block .h2 { font-size: 28px; margin-top: 36px; }

.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.breadcrumbs a { color: inherit; }
.breadcrumbs--light { color: rgba(255,255,255,.75); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.contacts > div { display: flex; gap: 14px; align-items: flex-start; background: var(--cream); border-radius: var(--radius); padding: 20px; }
.contacts b { display: block; color: var(--pine); }
.contacts__icon { width: 28px; height: 28px; color: var(--forest); flex: none; }
.map { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--radius-big); }

/* ---------- Шапка внутренних страниц ---------- */
.page-head { position: relative; color: var(--white); --tl: var(--white);
  background: linear-gradient(90deg, rgba(16,32,23,.88), rgba(16,32,23,.4)), var(--bg) center / cover no-repeat;
  padding: 80px 0 calc(var(--treeline) + 60px); }
.page-head__intro { font-size: 18px; max-width: 640px; opacity: .92; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 30px; }
.chip { padding: 10px 18px; border-radius: 30px; background: var(--moss-soft); color: var(--pine); font-weight: 600; text-decoration: none; }
.chip small { color: var(--forest); opacity: .7; margin-left: 4px; }
.chip:hover { background: var(--moss); color: var(--white); }
.group-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.group-head .h2 { margin: 0; }
.group-head p { margin: 0; color: var(--muted); }

/* ---------- Заглушка вместо картинки ---------- */
.ph { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ebe7dc 0 14px, #e3ddcf 14px 28px);
  color: #8a8a78; text-align: center; font-weight: 600; }
.ph small { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.map.ph { height: 300px; }

/* ---------- Форматированный текст (окна, статьи) ---------- */
.rich { line-height: 1.65; }
.rich p { margin: 0 0 12px; }
.rich h3 { font: 700 22px/1.3 var(--font-head); color: var(--pine); margin: 26px 0 10px; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 0; list-style: none; }
.rich li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.rich ul > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--moss); transform: rotate(45deg); }
.rich ol { counter-reset: n; }
.rich ol > li { counter-increment: n; }
.rich ol > li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--pine); color: var(--moss); font: 700 12px/20px var(--font); text-align: center; }
.rich b { color: var(--pine); }
.rich hr { border: 0; border-top: 1px solid var(--sand); margin: 24px 0; }
.rich__note { background: var(--moss-soft); border-left: 4px solid var(--moss); padding: 14px 18px; border-radius: 8px; margin: 20px 0 6px; }
.rich__table { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--sand); border-radius: var(--radius); }
.rich table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rich th, .rich td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--sand); vertical-align: top; }
.rich tbody tr:last-child td { border-bottom: 0; }
.rich th { background: var(--cream); color: var(--pine); font-weight: 700; }
.rich th:last-child, .rich td:last-child { background: rgba(141,178,85,.12); }
.rich td:first-child { font-weight: 600; color: var(--pine); }
.rich--article { font-size: 17px; }
.rich--article h3 { font-size: 26px; margin-top: 36px; }

/* ---------- Всплывающие окна ---------- */
.modal { padding: 0; border: 0; background: transparent; width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; overflow: visible; }
.modal::backdrop { background: rgba(12, 22, 16, .7); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
body:has(dialog[open]) { overflow: hidden; }
.modal__box { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); background: var(--white); border-radius: var(--radius-big);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 18px;
  background: var(--pine); color: var(--white); }
.modal__kicker { color: var(--moss); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.modal__title { font: 700 28px/1.2 var(--font-head); margin: 0; }
.modal__close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white);
  cursor: pointer; display: grid; place-items: center; padding: 0; }
.modal__close:hover { background: rgba(255,255,255,.25); }
.modal__close svg { width: 22px; height: 22px; }
.modal__body { padding: 24px 28px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 28px; border-top: 1px solid var(--sand); background: var(--cream); }
.modal__foot-text { color: var(--muted); font-size: 14px; }

/* ---------- Литература ---------- */
.btn--small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn--small .btn__icon { width: 18px; height: 18px; margin-right: 8px; }
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.book { display: flex; gap: 22px; padding: 22px; border-radius: var(--radius-big); background: var(--cream); }
.book__cover { flex: none; width: 110px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--forest), var(--pine)); box-shadow: 4px 6px 14px rgba(21,42,31,.25); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__icon { width: 46px; height: 46px; color: var(--moss); }
.book__body { display: flex; flex-direction: column; min-width: 0; }
.book__title { font: 700 20px/1.25 var(--font-head); color: var(--pine); }
.book__author { color: var(--muted); font-size: 14px; margin-top: 2px; }
.book__text { font-size: 15px; margin: 10px 0 14px; flex: 1; }
.book__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.book__missing { font-size: 13px; color: #a5542b; background: #fbe9dc; padding: 6px 10px; border-radius: 6px; }
.links__title { margin-top: 44px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--sand); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.link-card:hover { border-color: var(--moss); box-shadow: var(--shadow); }
.link-card__title { font-weight: 700; color: var(--pine); display: flex; align-items: center; gap: 6px; }
.link-card__icon { width: 15px; height: 15px; color: var(--moss); flex: none; }
.link-card__text { font-size: 14px; color: var(--muted); }

/* =====================================================================
   ПОДВАЛ
   ===================================================================== */
.footer { position: relative; background: var(--pine-deep); color: #cdd8c6; padding-top: 60px; --tl: var(--pine-deep); }
.footer a { color: #e7eee2; text-decoration: none; }
.footer a:hover { color: var(--moss); }
.footer__grid { display: grid; grid-template-columns: 340px 1fr; gap: 70px; }
.footer__left { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__left .logo { margin-bottom: 18px; }
.footer__phone { font-weight: 800; font-size: 22px; }
.footer__muted { font-size: 14px; opacity: .7; }
.footer__left p { margin: 10px 0 0; }
.footer__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer__buttons .btn--accent { color: var(--pine-deep); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-content: start; }
.footer__cols a { display: block; margin-bottom: 10px; }
.footer__title { color: var(--moss); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; margin-bottom: 16px; }
.footer__bottom { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 30px; font-size: 13px; }
.footer__disclaimer { opacity: .6; }
.footer__bottom-row { display: flex; justify-content: space-between; gap: 20px; opacity: .8; }

.call-float { display: none; position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--amber); color: var(--pine-deep); place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; }
.call-float svg { width: 28px; height: 28px; }

/* ---------- Просмотр фото ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,22,16,.98); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox__img { max-width: 90vw; max-height: 84vh; border-radius: 8px; margin: 0 auto; }
.lightbox__caption { color: #e7eee2; margin-top: 12px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12);
  color: var(--white); cursor: pointer; display: grid; place-items: center; padding: 0; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1340px) {
  .header__contacts { display: none; }
}
@media (max-width: 1200px) {
  .prices { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .step:nth-child(3)::before { display: none; }
  .hero__title { font-size: 68px; }
}

@media (max-width: 1000px) {
  .books { grid-template-columns: 1fr; }
  :root { --treeline: 44px; }
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); padding: 10px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border: 0; border-bottom: 1px solid var(--sand); }
  .nav__phone { display: block; font-weight: 800 !important; font-size: 20px !important; border: 0 !important; color: var(--forest) !important; }
  .header__inner { position: relative; min-height: 66px; }

  .hero { padding-top: 50px; }
  .hero__grid, .split, .band__grid, .nature__inner { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 20px) / 2); }
  .band__call { border: 0; padding: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .call-float { display: grid; }
}

@media (max-width: 640px) {
  .modal { width: 100%; max-height: 100dvh; margin: auto 0 0; }
  .modal__box { max-height: 92dvh; border-radius: var(--radius-big) var(--radius-big) 0 0; }
  .modal__head { padding: 18px 20px 14px; }
  .modal__title { font-size: 22px; }
  .modal__body { padding: 20px; }
  .modal__foot { padding: 14px 20px; }
  .modal__foot-text { display: none; }
  .modal__foot .btn { width: 100%; }
  .book { flex-direction: column; }
  .book__cover { width: 90px; }
  .article__cta { padding: 20px; }
  .article__cta .btn { width: 100%; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 30px; }
  .h2__badge { font-size: 22px; padding: 6px 20px; }
  .hero__title { font-size: 48px; }
  .hero__kicker { font-size: 14px; }
  .hero__kicker::before, .hero__kicker::after { content: " — "; }
  .features { grid-template-columns: 1fr; }
  .call-card { padding: 24px 20px; }
  .call-card__phone, .band__phone { font-size: 30px; }
  .band__phone-icon { width: 28px; height: 28px; }
  .call-card__buttons .btn, .band__buttons .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .grid-3, .prices, .footer__cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .gallery, .gallery--preview, .gallery--docs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery__caption { opacity: 1; font-size: 12px; padding: 18px 8px 6px; }
  .carousel { grid-auto-columns: 78%; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head .carousel__nav { display: none; }
  .nature { padding-top: 60px; }
  .nature__card { padding: 26px 22px; }
  .nature__thumbs { gap: 8px; }
  .footer__bottom-row { flex-direction: column; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .topbar__socials { display: none; }
}
.center { text-align: center; }

/* Длинная подпись под логотипом (SITE["kind"]) не должна распирать шапку */
.logo { min-width: 0; flex-shrink: 1; }
.logo__text { min-width: 0; }
.logo__kind { max-width: 230px; line-height: 1.3; }
@media (max-width: 640px) {
  .logo__kind { display: none; }
  .topbar__place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__inner { min-width: 0; }
}

/* ---------- Видео-интервью ---------- */
.video-section { background: var(--pine); color: #e7eee2; }
.video { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; }
.video__kicker { color: var(--moss); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 8px; }
.video__text p { opacity: .88; }
.video__duration { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 30px; background: rgba(255,255,255,.1); font-weight: 700; font-size: 14px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-big); overflow: hidden; background: var(--pine-deep);
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.video__facade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; color: var(--white);
  background: radial-gradient(circle at 50% 45%, var(--forest), var(--pine-deep)); }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(12,22,16,.7)); }
.video__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: var(--pine-deep); box-shadow: 0 0 0 10px rgba(232,150,58,.25); transition: transform .2s, box-shadow .2s; }
.video__play svg { width: 40px; height: 40px; margin-left: 4px; }
.video__hint { position: absolute; z-index: 1; left: 22px; bottom: 18px; font-weight: 700; }
.video__facade:hover .video__play, .video__facade:focus-visible .video__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 14px rgba(232,150,58,.3); }
.video__facade:hover .video__poster { transform: scale(1.03); }
.video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 1000px) { .video { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 640px) { .video__play { width: 68px; height: 68px; } .video__play svg { width: 32px; height: 32px; } }

/* Заголовок первого экрана: <h1> = подзаголовок + название (важно для поисковиков) */
.hero__h1 { margin: 0; font: inherit; }
.hero__h1 .hero__kicker, .hero__h1 .hero__title { display: block; }
