/* ===================================================================
   ИП РЯМБОВ С. А. — СЕРОВ. Светлая природная система.
   Фон: берёзы + солнце. Контент на translucent-подложках.
   =================================================================== */

:root {
  /* палитра: тёплая, природная */
  --bg: #dfe6d1;              /* светло-оливковый фон — чтобы белые карточки читались контрастом */
  --paper: #fbf5e8;           /* молочная бумага подложек */
  --paper-strong: #ffffff;    /* чистая подложка для акцентов */
  --paper-tint: rgba(251, 245, 232, 0.985);  /* почти непрозрачная — паттерн не просвечивает внутри секций, только в промежутках */
  --paper-tint-strong: rgba(255, 255, 255, 0.98);

  --ink: #2a2420;             /* тёплый графит — основной текст */
  --ink-soft: #5a4e42;        /* приглушённый текст */
  --muted: #8a7d6c;           /* метки, подписи */

  --forest: #3b5a3a;          /* тёмно-зелёный — главный акцент (спецовка, листва) */
  --forest-ink: #ffffff;      /* текст на зелёном */
  --moss: #6a8559;            /* мягкий зелёный — hover/light */

  --amber: #c47a2e;           /* янтарно-медовый — второй акцент (свежий спиливание) */
  --amber-soft: #e9b476;      /* светлый янтарь — подсветки */

  --sky: #c8d6cc;             /* небесно-зелёный — тонкие рамки */
  --line: rgba(42, 36, 32, 0.12);
  --line-strong: rgba(42, 36, 32, 0.22);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(72, 48, 28, 0.06), 0 14px 36px -18px rgba(72, 48, 28, 0.22);
  --shadow-raised: 0 2px 8px rgba(72, 48, 28, 0.08), 0 28px 64px -24px rgba(72, 48, 28, 0.28);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
  padding-bottom: 72px;
  background: var(--bg);
  position: relative;
}

/* фон: однотонный кремовый + тематический SVG-паттерн (вышка, фреза, пила, каска…) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-color: var(--bg);
  background-image: url("../img/bg-pattern.svg?v=12");
  background-position: 0 0;
  background-size: 560px 560px;
  background-repeat: repeat;
  z-index: -2;
}
/* лёгкая световая виньетка сверху — очень мягкая, чтобы не глушить паттерн */
body::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
  color: var(--ink);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; line-height: 1.25; font-weight: 600; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; text-wrap: pretty; color: var(--ink-soft); }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-soft); color: var(--ink); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--amber); font-style: italic; font-family: var(--font-head); font-weight: 500; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }

/* ======= Эйрбрашированные подложки ======= */
.panel {
  background: var(--paper-tint);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.panel-strong {
  background: var(--paper-tint-strong);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
}

/* ======= Моно-метка (мягкая, не техно) ======= */
.label {
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--forest);
  font-style: italic;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 500;
}
.label::first-letter { text-transform: uppercase; }
.label::before { content: ""; width: 24px; height: 1px; background: var(--amber); display: block; }
.fill { background: rgba(196, 122, 46, 0.14); color: var(--amber); padding: 0 6px; border-radius: 4px; font-size: 0.9em; }

/* ======= Кнопки ======= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0; text-decoration: none; cursor: pointer;
  border: 1px solid var(--forest); border-radius: 999px;
  background: var(--forest); color: var(--forest-ink);
  transition: transform 160ms var(--ease), background-color 180ms var(--ease),
              border-color 180ms var(--ease), box-shadow 220ms var(--ease);
  touch-action: manipulation; text-align: center;
  box-shadow: 0 2px 6px rgba(59, 90, 58, 0.18);
}
.btn svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); flex: none; }
.btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--moss); border-color: var(--moss); box-shadow: 0 6px 18px rgba(59, 90, 58, 0.28); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--paper-strong); border-color: var(--forest); color: var(--forest); }
}
.btn--amber {
  background: var(--amber); border-color: var(--amber); color: #fff;
  box-shadow: 0 2px 6px rgba(196, 122, 46, 0.22);
}
@media (hover: hover) and (pointer: fine) {
  .btn--amber:hover { background: #a86526; border-color: #a86526; }
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

.link {
  color: var(--forest); text-decoration: underline;
  text-decoration-color: var(--amber-soft);
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}

/* ======= Header ======= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-tint-strong);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink);
}
.logo i {
  width: 18px; height: 18px; background: var(--forest); display: block;
  border-radius: 50%; position: relative;
}
.logo i::after {
  content: ""; position: absolute; inset: 4px; background: var(--amber-soft); border-radius: 50%;
}
.logo small {
  font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 500;
  display: block; letter-spacing: 0.01em;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-strong); margin-left: auto; border-radius: 999px;
  background: var(--paper-strong);
}
.burger svg { width: 20px; height: 20px; color: var(--ink); }
.nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--paper-tint-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
}
.nav-toggle:checked ~ .nav { display: block; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  text-decoration: none; font-family: var(--font-body); font-weight: 500;
  border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink);
}
.nav a[aria-current="page"] { color: var(--forest); font-weight: 600; }
.nav a.soon { color: var(--muted); }
.nav a.soon::after {
  content: "скоро"; font-family: var(--font-body); font-size: 11px; margin-left: 10px;
  border: 1px solid var(--line-strong); padding: 2px 7px; border-radius: 999px; font-weight: 500;
}
.header-tel { display: none; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; color: var(--ink); transition: color 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .header-tel:hover { color: var(--forest); } }
.header-cta { display: none; }

/* ======= Секции ======= */
.sec { padding: 48px 0; position: relative; }
.sec__inner,
.sec:not(:has(.sec__inner, .cta-block, .form)) > .wrap {
  background: var(--paper-tint);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow-card);
}
/* fallback для браузеров без :has() — все .sec > .wrap получают подложку,
   главная переопределяет через .sec__inner */
@supports not selector(:has(*)) {
  .sec > .wrap {
    background: var(--paper-tint);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 24px;
    box-shadow: var(--shadow-card);
  }
  .sec__inner { background: transparent; backdrop-filter: none; border: 0; box-shadow: none; padding: 0; }
}
.sec--open { padding: 48px 0; }
.sec--open .sec__inner,
.sec--open > .wrap { background: transparent; backdrop-filter: none; border: 0; box-shadow: none; padding: 0; }
.sec__head { margin-bottom: 28px; max-width: 900px; }

/* ======= Модалка-overlay для страниц ======= */
.page-modal {
  position: fixed; inset: 0;
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.page-modal.open { opacity: 1; visibility: visible; }
.page-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-family: inherit;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 180ms var(--ease);
}
.page-modal__close:hover { transform: scale(1.08) rotate(90deg); }
.page-modal__close svg { width: 18px; height: 18px; }
.page-modal__frame {
  width: 100%; flex: 1;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
@media (min-width: 900px) {
  .page-modal { padding: 12px; }
  .page-modal__close { top: 18px; right: 18px; width: 46px; height: 46px; }
}

/* Внутри iframe-режима скрываем хедер и футер (контент занимает всё окно модалки) */
body.in-modal .site-header,
body.in-modal .site-footer,
body.in-modal .page-modal { display: none !important; }
body.in-modal { padding-bottom: 0; }
body.in-modal main > .sec:first-child,
body.in-modal main > .hero { padding-top: 24px; }
.sec__head h2 + p { margin-top: 14px; }
.grid { display: grid; gap: var(--gutter); grid-template-columns: minmax(0, 1fr); }

/* ======= Hero (главная) ======= */
.hero { padding: 32px 0 56px; }
.hero__panel {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
  background: var(--paper-tint-strong);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.hero__text { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { margin: 4px 0 10px; }
.hero h1 em {
  font-style: italic; color: var(--forest);
  font-family: var(--font-head); font-weight: 500;
}
.hero .lead { margin: 0 0 10px; font-size: 1.12rem; }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@media (min-width: 520px) { .hero__ctas { flex-direction: row; flex-wrap: wrap; } }

.hero__photo {
  margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: var(--paper-tint-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.82rem; color: var(--ink); line-height: 1.4;
}
.hero__photo figcaption b { color: var(--forest); font-weight: 600; }

.hero__bullets {
  display: grid; gap: 10px; margin: 14px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.hero__bullets li { display: flex; align-items: start; gap: 12px; font-size: 0.98rem; color: var(--ink); }
.hero__bullets li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); flex: none; margin-top: 10px;
}

/* ======= Бейджи доверия ======= */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  background: var(--paper-strong); border: 1px solid var(--line-strong);
  padding: 7px 12px; border-radius: 999px; color: var(--ink);
}
.badge b { color: var(--forest); font-weight: 600; margin-right: 4px; }

/* ======= Карточки ======= */
.card {
  background: var(--paper-tint-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.card__meta {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 8px; font-weight: 500;
}
.card__meta b { color: var(--amber); font-weight: 600; }
.card__more {
  margin-top: auto; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  color: var(--forest); display: inline-flex; align-items: center; gap: 6px;
}
.card__more::after { content: "→"; transition: transform 200ms var(--ease); }
.card:active { transform: scale(0.98); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-3px); border-color: var(--forest); box-shadow: var(--shadow-raised); }
  a.card:hover .card__more::after { transform: translateX(4px); }
}
.card--accent { border-color: var(--forest); background: var(--paper-strong); }
.card--amber { border-color: var(--amber); background: linear-gradient(135deg, rgba(233, 180, 118, 0.22), rgba(196, 122, 46, 0.08)); }
.card--highlight { grid-column: span 2; }
.card--highlight h3 { font-size: 1.6rem; }
.card--highlight p { font-size: 1.05rem; }
@media (max-width: 720px) { .card--highlight { grid-column: span 1; } }

/* ======= Фото-бенто (магазинная сетка) ======= */
.photo-bento { display: grid; gap: 16px; grid-template-columns: 1fr; grid-auto-rows: 320px; }
.photo-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  color: #fff; text-decoration: none;
  min-height: 320px;
  box-shadow: var(--shadow-card);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.photo-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 28%, rgba(0,0,0,0) 55%);
}
.photo-card__body { position: relative; padding: 18px 22px 20px; width: 100%; }
.photo-card:active { transform: scale(0.985); transition-duration: 100ms; }
.photo-card h3 { color: #fff; font-size: 1.35rem; line-height: 1.2; margin: 0 0 6px; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.photo-card p { color: rgba(255,255,255,0.95); font-size: 0.93rem; line-height: 1.45; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.photo-card__tag {
  display: inline-block; font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: var(--amber);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
}
@media (min-width: 720px) {
  .photo-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 340px; }
}
@media (min-width: 1024px) {
  .photo-bento { grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: 340px; }
  .photo-bento .photo-card--lg { grid-row: span 2; min-height: 696px; }
  .photo-bento .photo-card--lg h3 { font-size: 2.1rem; }
  .photo-bento .photo-card--lg p { font-size: 1.05rem; max-width: 46ch; }
}

/* ======= Services-бенто (главная) ======= */
.services-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card--featured { padding: 28px; gap: 14px; }
.card--featured h3 { font-size: 1.5rem; }
.card--featured p { font-size: 1rem; }
.card__tag {
  display: inline-block; width: fit-content;
  font-family: var(--font-body); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  color: var(--amber);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(196, 122, 46, 0.14);
  border: 1px solid rgba(196, 122, 46, 0.35);
}
@media (min-width: 720px) {
  .services-bento { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(190px, auto); grid-auto-flow: dense; }
  .services-bento .card--featured { grid-column: span 2; grid-row: span 2; }
  .services-bento .card--featured h3 { font-size: 1.9rem; max-width: 18ch; }
  .services-bento .card--featured p { font-size: 1.05rem; max-width: 50ch; }
  /* Последняя карточка (Сварка) — горизонтальный full-width финальный аккорд */
  .services-bento > a.card.card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 22px 28px;
    min-height: 0;
  }
  .services-bento > a.card.card--wide h3 { font-size: 1.4rem; margin: 0; flex: 0 0 auto; min-width: 160px; letter-spacing: -0.01em; }
  .services-bento > a.card.card--wide p { flex: 1; margin: 0; max-width: 60ch; font-size: 1rem; }
  .services-bento > a.card.card--wide .card__more { margin: 0; flex: 0 0 auto; }
}
/* Акцент для wide-карточки на всех размерах */
.card--wide {
  border-color: rgba(60, 92, 60, 0.45);
  background: linear-gradient(135deg, rgba(60, 92, 60, 0.08), rgba(233, 180, 118, 0.06) 70%, transparent);
}

/* ======= Второй номер (hero) ======= */
.hero__alt-tel {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--muted);
  margin: -2px 0 0; font-weight: 500;
}
.hero__alt-tel a {
  color: var(--ink-soft); text-decoration: underline;
  text-decoration-color: var(--amber-soft);
  text-underline-offset: 4px; text-decoration-thickness: 2px;
  font-weight: 600;
}
.hero__alt-tel a:hover { color: var(--forest); }

/* ======= Stats — ведущий тайл ======= */
.stats.stats--hero .stat--lead strong { font-size: clamp(2.6rem, 9vw, 4rem); }
.stats.stats--hero .stat--lead { background: var(--paper-strong); }
.stats.stats--hero .stat--lead span { font-size: 0.92rem; color: var(--ink-soft); }
@media (min-width: 768px) {
  .stats.stats--hero { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ======= Хлебные крошки ======= */
.crumbs { font-family: var(--font-body); font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--forest); }

/* ======= Усиленный блок (пни) ======= */
.stump {
  background: var(--paper-strong);
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-raised);
}
.stump__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.stump__offer {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 4vw, 1.8rem); line-height: 1.2;
  font-weight: 600; margin-bottom: 16px; color: var(--ink);
}
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ======= Списки ======= */
.ticks li {
  padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative;
  color: var(--ink);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber-soft);
  border: 2px solid var(--amber);
}

/* ======= ТТХ-таблица ======= */
.spec {
  width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--paper-tint-strong); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.spec th, .spec td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { color: var(--muted); font-weight: 500; width: 55%; }
.spec td { text-align: right; color: var(--ink); font-weight: 600; }

/* ======= Статистика ======= */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 22px 18px; background: var(--paper-tint-strong); }
.stat strong {
  display: block; font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3rem); line-height: 1; color: var(--forest);
  font-weight: 700; letter-spacing: -0.02em;
}
.stat strong i { font-style: italic; font-size: 0.5em; color: var(--amber); font-weight: 500; margin-left: 2px; }
.stat span { font-family: var(--font-body); font-size: 0.84rem; color: var(--muted); font-weight: 500; margin-top: 6px; display: block; }

/* ======= Шаги ======= */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  counter-increment: s; padding: 22px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start;
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 500; font-style: italic;
  color: var(--amber); font-size: 1.6rem; line-height: 1;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ======= FAQ ======= */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  position: relative; min-height: 48px; color: var(--ink);
  transition: color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--forest); }
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-family: var(--font-body); font-size: 1.6rem; color: var(--amber);
  font-weight: 300; transition: transform 240ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* ======= Цитаты ======= */
.quote {
  border-left: 3px solid var(--amber); padding: 6px 0 6px 20px;
  background: var(--paper-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 0;
}
.quote p { font-size: 1.05rem; color: var(--ink); font-family: var(--font-head); font-style: italic; font-weight: 500; }
.quote cite { font-family: var(--font-body); font-size: 0.85rem; font-style: normal; color: var(--muted); font-weight: 500; }

/* ======= Форма ======= */
.form {
  background: var(--paper-tint-strong);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 16px;
  box-shadow: var(--shadow-raised);
}
.form h3 { margin: 0 0 4px; font-size: 1.3rem; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper-strong); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(59, 90, 58, 0.15);
}
.hp { position: absolute; left: -9999px; }
.form__note {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--muted);
  text-align: center; margin: 0; line-height: 1.5;
}
.form__consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-soft);
  line-height: 1.5; cursor: pointer; user-select: none;
  margin: -4px 0 4px;
}
.form__consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 18px; height: 18px;
  margin: 1px 0 0; border-radius: 4px;
  border: 1.5px solid var(--line);
  background: #fff; cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
  position: relative;
}
.form__consent input[type="checkbox"]:hover { border-color: var(--forest); }
.form__consent input[type="checkbox"]:focus-visible {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(59, 90, 58, 0.18);
}
.form__consent input[type="checkbox"]:checked {
  background: var(--forest); border-color: var(--forest);
}
.form__consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute;
  left: 5px; top: 1.5px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form__consent a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.form__consent a:hover { color: var(--amber); }

/* ======= CTA-блок ======= */
.cta-block {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
  background: var(--paper-tint-strong);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-raised);
}

/* ======= Разделение аудиторий ======= */
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.split__item {
  background: var(--paper-tint-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.split__item--b2b { border-left: 4px solid var(--forest); }
.split__item--b2c { border-left: 4px solid var(--amber); }

/* ======= Галерея портфолио ======= */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
.gallery figure {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--paper); aspect-ratio: 4 / 3;
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ======= Placeholder (для нехватающих фото) ======= */
.placeholder {
  position: relative; background: var(--paper);
  border: 1px dashed var(--line-strong);
  color: var(--muted); font-family: var(--font-body); font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; width: 100%; border-radius: var(--radius-sm);
}
.r169 { aspect-ratio: 16 / 9; } .r43 { aspect-ratio: 4 / 3; } .r11 { aspect-ratio: 1 / 1; }
.r32 { aspect-ratio: 3 / 2; } .r45 { aspect-ratio: 4 / 5; } .r219 { aspect-ratio: 21 / 9; }

/* ======= Footer ======= */
.site-footer {
  padding: 56px 0 24px; margin-top: 24px;
  background: var(--paper-tint-strong);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-top: 1px solid var(--line);
}
.footer__top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer .logo { font-size: 1rem; }

.footer__tel {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .footer__tel:hover { color: var(--forest); } }

/* Столбцы: «Разделы» и «Контакты» — ссылки в том же стиле, что в хедере */
.footer__cols {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.footer__col h4 {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; font-style: italic;
  color: var(--forest); margin: 0 0 8px;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  text-decoration: none; color: var(--ink); border-radius: 999px;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer__list a:hover { background: var(--paper-strong); color: var(--forest); }
  .footer__list a[aria-current="page"]:hover { background: var(--moss); color: var(--forest-ink); }
}
.footer__list a[aria-current="page"] { background: var(--forest); color: var(--forest-ink); }

.footer__col p { margin: 0 0 10px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }
.footer__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer__contacts a {
  color: var(--ink-soft); text-decoration: none; white-space: nowrap; font-size: 0.9rem;
  transition: color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .footer__contacts a:hover { color: var(--forest); } }

.footer__bottom {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--forest); }
.contacts-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.contacts-row .btn { min-height: 44px; font-size: 0.84rem; padding: 0 14px; }

/* ======= Липкая нижняя панель (мобайл) ======= */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.6fr;
  background: var(--paper-tint-strong);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(42, 36, 32, 0.08);
}
.stickybar a {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-family: var(--font-body); font-weight: 600;
  font-size: 0.92rem; color: var(--ink); touch-action: manipulation;
}
.stickybar a:first-child { border-right: 1px solid var(--line); }
.stickybar a:last-child { background: var(--forest); color: var(--forest-ink); }
.stickybar a:active { opacity: 0.85; }
.stickybar a svg { width: 18px; height: 18px; flex: none; }

/* ======= Брейкпоинты ======= */
@media (min-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .sec { padding: 72px 0; }
  .sec__inner { padding: 48px 40px; }
  .hero { padding: 40px 0 56px; }
  .hero__panel { padding: 36px; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
  .hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
  .hero__photo { aspect-ratio: 4 / 5; }

  .burger { display: none; }
  .nav {
    display: flex; position: static; background: transparent; backdrop-filter: none;
    border: 0; padding: 0; gap: 8px;
  }
  .nav a {
    border: 0; min-height: 44px; padding: 0 12px; font-size: 0.92rem; font-weight: 500;
    border-radius: 999px; transition: background-color 160ms var(--ease), color 160ms var(--ease);
  }
  .nav a:hover { background: var(--paper-strong); color: var(--forest); }
  .nav a[aria-current="page"] { background: var(--forest); color: var(--forest-ink); }
  .nav a[aria-current="page"]:hover { background: var(--moss); color: var(--forest-ink); }
  .header-tel { display: inline-flex; align-items: center; gap: 6px; }
  .header-cta { display: inline-flex; }

  .footer__top { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }

  .stickybar { display: none; }

  .grid--cards-2 { grid-template-columns: 1fr 1fr; }
  .grid--cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .stump__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }

  .cta-block { grid-template-columns: 1.2fr 0.8fr; padding: 48px 40px; align-items: center; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
  .grid--cards-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ======= Акцентные вертикальные линии (деликатно) ======= */
.rule-vert {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(180deg, transparent, var(--amber), transparent);
  margin: 20px auto;
}

/* ======= Immersive hero (фото во весь экран, текст снизу поверх градиента) ======= */
.hero--cover {
  position: relative;
  min-height: min(88vh, 820px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 24px;
}
.hero--cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 25% 100%, rgba(16, 14, 12, 0.78) 0%, rgba(16, 14, 12, 0.45) 40%, rgba(16, 14, 12, 0.12) 65%, transparent 82%),
    linear-gradient(180deg,
      rgba(16, 14, 12, 0.0) 0%,
      rgba(16, 14, 12, 0.0) 48%,
      rgba(16, 14, 12, 0.28) 75%,
      rgba(16, 14, 12, 0.6) 100%);
  z-index: 0;
}
.hero--cover__inner {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 40px 24px 48px;
  max-width: 760px;
  width: 100%;
  text-align: left;
  color: #fff;
}
.hero--cover__inner .label {
  color: #fde6b5;
  font-size: 0.9rem;
}
.hero--cover__inner .label::before { background: #fde6b5; opacity: 0.85; }
.hero--cover__inner h1 {
  color: #fff;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0,0,0,0.65), 0 1px 6px rgba(0,0,0,0.5);
  margin: 10px 0 18px;
  max-width: 16ch;
}
.hero--cover__inner h1 em {
  color: #fde6b5;
  font-style: italic;
  font-weight: 500;
}
.hero--cover__inner .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  max-width: 56ch;
  margin: 0 0 22px;
  font-size: 1.08rem;
}
.hero--cover__inner .hero__ctas { justify-content: flex-start; }
.hero--cover__inner .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero--cover__inner .btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; color: #fff; }
.hero--cover__inner .hero__bullets {
  border-top-color: rgba(255, 255, 255, 0.22);
  margin-top: 20px;
  padding-top: 18px;
}
.hero--cover__inner .hero__bullets li {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero--cover__inner .hero__bullets li::before { background: #fde6b5; }

@media (min-width: 768px) {
  .hero--cover {
    min-height: 90vh;
    padding: 0 40px;
    background-position: center 35%;
  }
  .hero--cover__inner { padding: 60px 28px 72px; }
}
@media (min-width: 1200px) {
  .hero--cover__inner { padding-left: 72px; padding-bottom: 88px; }
}

/* ======= Lightbox ======= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16, 14, 12, 0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  animation: lb-fade 180ms ease;
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  margin: 0;
  max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.lb-media {
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: calc(100vh - 120px);
}
.lb-img, .lb-video {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-video { background: #000; }

/* Свёрнутая галерея — только 6 превью */
.gallery.is-collapsed > figure:nth-child(n+7) { display: none; }
.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.gallery-more .btn {
  min-width: 240px;
}
.gallery-more .btn svg { transition: transform 220ms var(--ease); }
.gallery-more .btn.is-open svg { transform: rotate(180deg); }

/* Видео в галерее */
.gallery figure video {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
}
.gallery figure.is-video { position: relative; }
.gallery figure.is-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, transparent 70%);
}
.gallery figure.is-video::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.gallery figure.is-video .play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  z-index: 2; color: #3b5a3a; pointer-events: none;
}
.lb-count {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 160ms, transform 160ms;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 600px) {
  .lightbox { padding: 20px 10px; }
  .lb-close { top: 10px; right: 10px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ======= Scroll-reveal (data-animate) ======= */
:root {
  --spring-soft: cubic-bezier(0.34, 1.3, 0.5, 1);
  --spring-crisp: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-snap: cubic-bezier(0.16, 1.1, 0.3, 1);
}
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms var(--spring-crisp), transform 720ms var(--spring-crisp);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade"] { transform: none; }
[data-animate="fade"].is-visible { transform: none; }

/* ======= Emil-style card polish ======= */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.42) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 900ms var(--spring-crisp);
  pointer-events: none; z-index: 1;
  mix-blend-mode: overlay; opacity: 0;
}
.card > * { position: relative; z-index: 2; }
@media (hover: hover) and (pointer: fine) {
  a.card { transition: transform 420ms var(--spring-soft), box-shadow 420ms var(--spring-soft), border-color 220ms var(--ease); }
  a.card:hover { transform: translateY(-4px) scale(1.012); }
  a.card:hover::before { transform: translateX(120%); opacity: 1; transition-duration: 1100ms; }
  a.card:hover h3 { transform: translateY(-1px); }
  a.card h3 { transition: transform 320ms var(--spring-soft); }
  a.card:hover .card__more::after { transform: translateX(6px); }
  .card__more::after { transition: transform 320ms var(--spring-snap); }
}

/* ======= Button micro-interactions ======= */
.btn { transition: transform 260ms var(--spring-soft), background 220ms var(--ease), color 220ms var(--ease), box-shadow 260ms var(--spring-soft), border-color 220ms var(--ease); }
.btn svg { transition: transform 300ms var(--spring-snap); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(4px); }
}
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 90ms; }

/* ======= Hero bullets slide-in stagger ======= */
.hero__bullets li {
  opacity: 0; transform: translateX(-10px);
  transition: opacity 540ms var(--spring-crisp), transform 540ms var(--spring-crisp);
}
.hero.is-ready .hero__bullets li { opacity: 1; transform: translateX(0); }
.hero.is-ready .hero__bullets li:nth-child(1) { transition-delay: 180ms; }
.hero.is-ready .hero__bullets li:nth-child(2) { transition-delay: 260ms; }
.hero.is-ready .hero__bullets li:nth-child(3) { transition-delay: 340ms; }
.hero.is-ready .hero__bullets li:nth-child(4) { transition-delay: 420ms; }

/* ======= Stat count-up pulse ======= */
.stat strong { display: inline-flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.stat.is-counted strong { animation: statPulse 480ms var(--spring-soft); }
@keyframes statPulse {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ======= Section head reveal (label slides, h2 scales) ======= */
.sec__head .label { display: inline-block; transition: transform 620ms var(--spring-soft), opacity 620ms var(--ease); }
.sec__head[data-animate] .label { transform: translateY(8px); opacity: 0; }
.sec__head[data-animate].is-visible .label { transform: translateY(0); opacity: 1; transition-delay: 60ms; }
.sec__head h2 { transition: transform 760ms var(--spring-crisp), opacity 760ms var(--ease); }
.sec__head[data-animate] h2 { transform: translateY(14px) scale(0.985); opacity: 0; }
.sec__head[data-animate].is-visible h2 { transform: translateY(0) scale(1); opacity: 1; transition-delay: 140ms; }
.sec__head .lead { transition: transform 720ms var(--spring-crisp), opacity 720ms var(--ease); }
.sec__head[data-animate] .lead { transform: translateY(10px); opacity: 0; }
.sec__head[data-animate].is-visible .lead { transform: translateY(0); opacity: 1; transition-delay: 240ms; }

/* ======= Magnetic cursor for featured card ======= */
.card--featured { transition: transform 480ms var(--spring-soft), box-shadow 480ms var(--spring-soft); }

/* ======= Gallery figure hover ======= */
.gallery figure { overflow: hidden; }
.gallery figure img { transition: transform 720ms var(--spring-crisp); }
@media (hover: hover) and (pointer: fine) {
  .gallery figure:hover img { transform: scale(1.045); }
}

/* ======= Финальная вычитка: классы, которые использует разметка ======= */
/* .grid--2 / .grid--3 / .steps--3 — те же колонки, что у .grid--cards-* */
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
}

/* Крупный телефон на странице контактов */
.big-tel {
  display: block; width: fit-content; padding: 6px 0;
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  color: var(--ink); text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .big-tel:hover { color: var(--forest); } }

/* История (страница «О себе») */
.timeline {
  list-style: none; margin: 0; padding: 0 0 0 24px; max-width: 720px;
  border-left: 2px solid var(--line-strong);
  display: grid; gap: 28px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber-soft); border: 2px solid var(--amber);
}
.timeline__year {
  display: block; margin-bottom: 4px;
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.15rem; line-height: 1.2; color: var(--amber);
}
.timeline__year:empty { display: none; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; }

/* Таблица реквизитов: на узких экранах строки идут стопкой (длинные номера счетов) */
@media (max-width: 519px) {
  .spec--stack, .spec--stack tbody, .spec--stack tr, .spec--stack th, .spec--stack td { display: block; width: 100%; }
  .spec--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .spec--stack tr:last-child { border-bottom: 0; }
  .spec--stack th, .spec--stack td { padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  .spec--stack th { font-size: 0.82rem; margin-bottom: 2px; }
}

/* Ссылка внутри карточки-не-ссылки (напр. «Аренда лесов») */
.card .card__more { text-decoration: none; }

/* Фокус для скрытого чекбокса бургер-меню */
.nav-toggle:focus-visible + .burger,
.nav-toggle:focus-visible ~ .burger { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Тач-экраны: цели нажатия не мельче 44px */
@media (pointer: coarse) {
  .footer__list a { padding: 0 14px; }
}

/* ======= Reduced motion ======= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .card::before { display: none; }
}

/* ======= SEO: хлебные крошки, география в футере, ссылки на города ======= */
.breadcrumbs { margin: 12px 0 0; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: 0.4; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.footer__seo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer__seo-col h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; font-style: italic; color: var(--forest); margin: 0 0 8px; }
.footer__seo-col .footer__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.footer__seo-col .footer__list a { font-size: 0.9rem; }

.areas-line { font-family: var(--font-head); font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-style: italic; color: var(--ink); line-height: 1.6; margin: 0; }
.areas-line a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.areas-line a:hover { color: var(--forest); border-color: var(--forest); }

@media (min-width: 768px) {
  .footer__seo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .footer__seo-col .footer__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 16px; }
}

.doc h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; }
