/* ══════════════════════════════════════════════════════════
   Energeo Design System — Warm Gradient
   Fonts: DM Sans (body), Outfit (headings)
   ══════════════════════════════════════════════════════════ */

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

:root {
    --peach: #FFECD2;
    --coral: #FCB69F;
    --amber: #FFEAA7;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text: #2C1810;
    --accent: #E07A5F;
    --accent-hover: #d06a4f;
    --muted: #7A6B58; /* ≥4.5:1 на --cream (WCAG AA) */
    --success: #6B8E5A;
    --dark: #2C1810;
    --cream: #FFF5EE;
    --radius-card: 20px;
    --radius-img: 24px;
    --shadow-card: 0 8px 32px rgba(44, 24, 16, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(44, 24, 16, 0.14);
}

/* clip, не hidden: hidden на html делает его scroll-контейнером и ломает
   прокрутку к якорям (#leadForm) в iOS Safari/Chrome; clip — только обрезка */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* sticky-футер: на коротких страницах main растягивается, футер прижат к низу */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }
/* воздух между контентом и футером на страницах без финальной секции */
main > .container:last-child { padding-bottom: 64px; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* iOS: убирает задержку/пропуск первого тапа (double-tap-zoom эвристика) */
a, button, select, input, textarea, label, summary { touch-action: manipulation; }

/* Прокрутка к якорю: не прятать начало секции под фикс-шапкой */
[id] { scroll-margin-top: 84px; }

.gradient-bg {
    background: var(--cream);
}

/* ── Layout ──────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }

.section-title { text-align: center; font-size: 2.4rem; margin-bottom: 16px; }

.section-subtitle {
    text-align: center; color: var(--muted); font-weight: 300; font-size: 1.05rem;
    margin-bottom: 56px; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(44, 24, 16, 0.08);
    backdrop-filter: blur(10px);
}

.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.nav-logo {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.6rem;
    color: #fff; text-decoration: none; transition: color 0.4s ease;
    margin-right: auto;
}
.nav.scrolled .nav-logo { color: var(--text); }
.page-inner .nav .nav-logo,
.page-inner .nav .nav-links a,
.page-inner .nav .nav-phone { color: var(--text); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
    font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9); text-decoration: none; transition: color 0.4s ease;
    white-space: nowrap;
}

.nav-phone {
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9); text-decoration: none; transition: color 0.4s ease;
    white-space: nowrap;
}
.nav.scrolled .nav-phone { color: var(--text); }
.nav-phone:hover { color: var(--accent); }
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
    display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
}
.nav.scrolled .nav-burger span { background: var(--text); }
.page-inner .nav .nav-burger span { background: var(--text); }

/* ── Buttons ─────────────────────────────────────────────── */

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff; padding: 16px 36px;
    border-radius: 50px; border: none;
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover { color: #fff; transform: scale(1.04); box-shadow: 0 8px 24px rgba(224,122,95,0.35); }

.btn-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--accent); padding: 16px 36px;
    border-radius: 50px; border: none;
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-white:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--accent); padding: 14px 34px;
    border-radius: 50px; border: 2px solid var(--accent);
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem;
    cursor: pointer; text-decoration: none; transition: all 0.3s ease;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
/* На hero акцентный контур сливается со светлым фото — поверх оверлея кнопка белая */
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.9); }
.hero .btn-outline:hover { background: #fff; color: var(--accent); border-color: #fff; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; text-align: center; overflow: hidden;
    /* фикс-шапка 72px: без отступа контент уходит под неё на невысоких экранах */
    padding: 88px 0 48px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,24,16,0.35) 0%, rgba(44,24,16,0.55) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; }
.hero-content h1 { font-size: 3.6rem; color: #fff; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-content p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; font-weight: 300; line-height: 1.7; }

/* ── Cards ───────────────────────────────────────────────── */

.card {
    background: var(--card-bg); border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.03); }
.card-body { padding: 28px 24px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card-body p { color: var(--muted); font-weight: 300; font-size: 0.95rem; line-height: 1.65; }
.card-body a { color: var(--text); text-decoration: none; }
.card-body a:hover { color: var(--accent); }

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

/* ── Feature Split ───────────────────────────────────────── */

.feature-card { background: var(--card-bg); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.feature-card-inner { display: grid; grid-template-columns: 1fr 1fr; }
.feature-card-inner.reversed { direction: rtl; }
.feature-card-inner.reversed > * { direction: ltr; }
.feature-img-wrap { overflow: hidden; }
.feature-img-wrap img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; transition: transform 0.5s ease; }
.feature-card:hover .feature-img-wrap img { transform: scale(1.03); }
.feature-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.feature-label { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.feature-text h2 { font-size: 2rem; margin-bottom: 18px; }
.feature-text p { color: var(--muted); font-weight: 300; line-height: 1.7; }
.feature-text ul { list-style: none; margin-top: 20px; }
.feature-text ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--muted); font-weight: 300; font-size: 0.95rem; }
.feature-text ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--success); }

/* ── Stats ───────────────────────────────────────────────── */

.stats { padding: 80px 0; background: var(--dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 3rem; background: linear-gradient(135deg, var(--peach), var(--amber)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.stat-label { color: var(--cream); font-weight: 300; font-size: 0.95rem; opacity: 0.85; }

/* ── Testimonials ────────────────────────────────────────── */

.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testimonial-card { background: var(--card-bg); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 40px 36px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.testimonial-quote { font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 12px; font-family: 'Outfit', sans-serif; }
.testimonial-card p { color: var(--muted); font-weight: 300; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); }
.testimonial-role { font-size: 0.85rem; color: var(--muted); font-weight: 300; margin-top: 2px; }

/* ── CTA ─────────────────────────────────────────────────── */

.cta-card { position: relative; border-radius: var(--radius-card); overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; }
.cta-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44,24,16,0.75) 0%, rgba(224,122,95,0.55) 100%); }
.cta-content { position: relative; z-index: 2; padding: 48px; }
.cta-content h2 { font-size: 2.6rem; color: #fff; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.85); font-weight: 300; font-size: 1.1rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }

/* ── Page Header ─────────────────────────────────────────── */

.page-header { padding: 120px 0 48px; text-align: center; }
.page-header h1 { font-size: 2.8rem; margin-bottom: 12px; }
.page-header p { color: var(--muted); font-weight: 300; font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── Breadcrumbs ─────────────────────────────────────────── */

.breadcrumbs { padding: 96px 0 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ── Rich Text ───────────────────────────────────────────── */

.rich-text { max-width: 800px; margin: 0 auto; }
.rich-text p { margin-bottom: 1em; font-weight: 300; line-height: 1.7; }
.rich-text h2 { font-size: 1.8rem; margin: 2em 0 0.5em; }
.rich-text h3 { font-size: 1.4rem; margin: 1.5em 0 0.5em; }
.rich-text img { border-radius: var(--radius-img); margin: 1.5em 0; }
.rich-text ul, .rich-text ol { padding-left: 24px; margin-bottom: 1em; }

/* Legacy-таблицы (тех. характеристики): шире вьюпорта — скроллятся сами, не тянут страницу */
.rich-text table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
/* Обёртка из |wrap_tables: iOS Safari не скроллит overflow на самой таблице,
   нужен настоящий блочный контейнер. Тени у краёв — подсказка, что таблица
   скроллится вбок; cream-слои (local) едут с контентом и прикрывают тень
   у достигнутого края */
.rich-text .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
    background-image:
        linear-gradient(90deg, var(--cream) 30%, rgba(255, 245, 238, 0)),
        linear-gradient(270deg, var(--cream) 30%, rgba(255, 245, 238, 0)),
        radial-gradient(farthest-side at 0 50%, rgba(44, 24, 16, 0.18), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(44, 24, 16, 0.18), transparent);
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
}
.rich-text .table-scroll > table {
    display: table;
    width: auto;
    max-width: none;
    overflow: visible;
    margin: 0;
    background: none;
}
.rich-text th, .rich-text td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(44, 24, 16, 0.08);
    text-align: left;
    vertical-align: top;
}
.rich-text th:first-child, .rich-text td:first-child { padding-left: 0; }
.rich-text th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    border-bottom-color: rgba(44, 24, 16, 0.2);
}
.rich-text th:first-child { white-space: normal; min-width: 150px; }
.rich-text td p, .rich-text th p { margin-bottom: 0; }

/* ── Forms ───────────────────────────────────────────────── */

.form-input {
    width: 100%; padding: 14px 20px; border: 1px solid rgba(44,24,16,0.12);
    border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 1rem;
    background: var(--card-bg); color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; margin-bottom: 16px;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,122,95,0.15); }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-group { margin-bottom: 4px; }
.form-error { color: var(--accent); font-size: 0.85rem; margin-top: -12px; margin-bottom: 12px; }

/* Honeypot: уводим за экран, не display:none — боты его распознают */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ── Product Grid ────────────────────────────────────────── */

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

/* ── Two Columns ─────────────────────────────────────────── */

.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
/* min-width:auto у грид-элементов даёт широкому контенту (таблицам) распирать колонку */
.two-columns > div { min-width: 0; }

/* ── Pagination ──────────────────────────────────────────── */

.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0; list-style: none; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease; }
.pagination a { background: var(--card-bg); color: var(--text); box-shadow: var(--shadow-card); }
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .current { background: var(--accent); color: #fff; font-weight: 600; }

/* ── Tags ────────────────────────────────────────────────── */

.tag { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; background: rgba(224,122,95,0.1); color: var(--accent); transition: all 0.3s ease; }
.tag:hover, .tag.active { background: var(--accent); color: #fff; }

/* ── Footer ──────────────────────────────────────────────── */

.footer { background: var(--dark); color: var(--cream); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: var(--cream); display: inline-block; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,245,238,0.65); font-weight: 300; font-size: 0.95rem; line-height: 1.65; max-width: 320px; }
.footer h4 { font-size: 1rem; margin-bottom: 20px; color: var(--cream); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255,245,238,0.65); text-decoration: none; font-weight: 300; font-size: 0.9rem; transition: color 0.3s ease; }
.footer ul a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,245,238,0.12); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,245,238,0.45); font-weight: 300; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,245,238,0.25); color: rgba(255,245,238,0.65); transition: color 0.3s ease, border-color 0.3s ease; }
.footer-social a:hover { color: var(--cream); border-color: var(--cream); }

/* ── Scroll Animations ───────────────────────────────────── */

/* Скрываем контент до появления только при работающем JS (класс .js ставит инлайн-скрипт в base.html) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
/* именно none, а не translateY(0): остаточный transform создаёт containing block,
   а iOS Safari глючит с попапом select внутри трансформированных контейнеров */
.js .reveal.visible { opacity: 1; transform: none; }
/* карточки с формами: только fade, без сдвига — попап select/клавиатура
   на iOS не дружат с transform-анимацией предка */
.js .calc-inputs.reveal, .js .calc-lead.reveal { transform: none; transition-property: opacity; }

/* ── Nav contacts (мессенджеры + телефон + CTA) ──────────── */
.nav-contacts { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-msg {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: #fff; opacity: 0.85; transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    background: rgba(255,255,255,0.12);
}
.nav-msg:hover { opacity: 1; transform: translateY(-1px); color: #fff; }
.nav-msg--viber { background: rgba(124,82,160,0.22); }
.nav-msg--tg    { background: rgba(0,136,204,0.22); }
.nav-msg--wa    { background: rgba(37,179,93,0.22); }
.nav.scrolled .nav-msg { color: #2C1810; background: rgba(44,24,16,0.06); opacity: 0.85; }
.nav.scrolled .nav-msg--viber:hover { background: #7c52a0; color: #fff; opacity: 1; }
.nav.scrolled .nav-msg--tg:hover    { background: #0088cc; color: #fff; opacity: 1; }
.nav.scrolled .nav-msg--wa:hover    { background: #25b35d; color: #fff; opacity: 1; }
.page-inner .nav .nav-msg { color: var(--text); background: rgba(44,24,16,0.06); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 50px;
    background: var(--accent); color: #fff;
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.nav-cta:hover { color: #fff; transform: scale(1.04); box-shadow: 0 6px 20px rgba(224,122,95,0.32); }

/* ── Плавающая кнопка контактов (FAB + speed-dial) ──────── */
.fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* pointer-events на контейнере НЕ включаем: его невидимый прямоугольник
   (флекс-колонка резервирует место под меню, ~200×330px) лежит поверх контента
   и съедал тапы по селектам/кнопкам. Кликабельны только кнопка и открытое меню */
.fab.visible { opacity: 1; transform: none; }
.fab.visible .fab__toggle { pointer-events: auto; }
.fab__toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 28px rgba(224,122,95,0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}
.fab__toggle:hover { transform: scale(1.06); }
.fab__icon-close { display: none; }
.fab.open .fab__icon-open { display: none; }
.fab.open .fab__icon-close { display: block; }
.fab.open .fab__toggle { background: var(--dark); box-shadow: 0 8px 28px rgba(44,24,16,0.3); }
.fab__menu {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab.open .fab__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab__item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 50px;
    background: #fff; color: var(--text);
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(44,24,16,0.15); white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease;
}
.fab__item:hover { transform: translateX(-3px); color: var(--accent); }
.fab__item--accent { background: var(--accent); color: #fff; }
.fab__item--accent:hover { color: #fff; }

/* ── Hero — eyebrow + actions + metrics ─────────────────── */
.hero { background: var(--dark); }
.hero-eyebrow {
    display: inline-block; margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif; font-size: 0.78rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,245,238,0.7);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 8px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero-metric {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px; padding: 20px 18px; text-align: left; color: #fff;
}
.hero-metric__label {
    font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255,245,238,0.7); margin-bottom: 6px;
}
.hero-metric__value { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.hero-metric__desc { font-size: 0.85rem; color: rgba(255,245,238,0.75); font-weight: 300; line-height: 1.4; }

/* ── Segmentation — 3 пути ──────────────────────────────── */
.segmentation-section { background: var(--cream); }
.segmentation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.segment-card {
    background: var(--card-bg); border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); padding: 32px 28px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.segment-card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(224,122,95,0.1); color: var(--accent);
    margin-bottom: 4px;
}
.segment-card__icon--commercial { background: rgba(0,129,192,0.1); color: #0081C0; }
.segment-card__icon--home-reno { background: rgba(107,142,90,0.12); color: var(--success); }
.segment-card__title { font-size: 1.25rem; }
.segment-card__text { color: var(--muted); font-weight: 300; font-size: 0.95rem; line-height: 1.6; }
.segment-card__list { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.segment-card__list li {
    position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--text); font-weight: 400;
}
.segment-card__list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--success); font-weight: 700;
}
.segment-card__link {
    margin-top: auto; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem;
    color: var(--accent);
}
.segment-card__link:hover { color: var(--accent-hover); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { background: var(--card-bg); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow-card);
    padding: 4px 24px; transition: box-shadow 0.3s ease;
}
.faq-item[open] { box-shadow: var(--shadow-card-hover); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-toggle {
    width: 22px; height: 22px; flex-shrink: 0; position: relative;
}
.faq-toggle::before, .faq-toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 2px; background: var(--accent); border-radius: 2px;
    transform: translate(-50%, -50%); transition: transform 0.25s ease;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
    padding: 0 0 18px; color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 0.95rem;
}
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── Map ────────────────────────────────────────────────── */
.map-section { background: var(--cream); }
.map-card {
    background: var(--card-bg); border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); padding: 16px; overflow: hidden;
}
.map-canvas { height: 480px; width: 100%; border-radius: 16px; overflow: hidden; }
.energeo-pin span {
    display: block; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(224,122,95,0.3), 0 4px 10px rgba(44,24,16,0.25);
}

/* ── Lead-форма (CTA) ───────────────────────────────────── */
.lead-form-section { background: var(--dark); color: var(--cream); }
.lead-form-card {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-card);
    padding: 56px;
}
.lead-form-card__text h2 { color: #fff; font-size: 2.2rem; margin-bottom: 16px; }
.lead-form-card__text p { color: rgba(255,245,238,0.78); font-weight: 300; line-height: 1.6; margin-bottom: 20px; }
.lead-form-card__benefits { list-style: none; padding: 0; display: grid; gap: 10px; }
.lead-form-card__benefits li {
    position: relative; padding-left: 28px; color: rgba(255,245,238,0.85); font-size: 0.95rem;
}
.lead-form-card__benefits li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--accent); font-weight: 700;
}

.lead-form { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.lead-form-card .lead-form label { color: rgba(255,245,238,0.75); }
.lead-form .form-input { background: #fff; color: var(--text); margin: 0; }
.lead-form__submit { margin-top: 4px; width: 100%; justify-content: center; }
.lead-form__consent { font-size: 0.78rem; color: rgba(255,245,238,0.55); font-weight: 300; margin-top: 4px; }
.lead-form__alt { display: flex; gap: 14px; justify-content: center; margin-top: 4px; flex-wrap: wrap; }
.lead-form__alt-link { color: rgba(255,245,238,0.7); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.lead-form__alt-link:hover { color: #fff; }
.lead-form__message {
    padding: 12px 16px; border-radius: 10px;
    background: rgba(107,142,90,0.18); color: #d8f0ca; font-size: 0.9rem;
}
.lead-form__message.error { background: rgba(224,122,95,0.18); color: #ffd0c2; }

/* ── Calc lead-form (под калькулятором) ─────────────────── */
.calc-lead {
    margin-top: 24px;
    display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 32px; align-items: center;
    background: var(--card-bg); border: 1px dashed rgba(224,122,95,0.4);
    border-radius: var(--radius-card); padding: 28px 32px;
}
.calc-lead__text h3 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; margin-bottom: 6px; color: var(--text); }
.calc-lead__text p { color: var(--muted); font-weight: 300; font-size: 0.9rem; line-height: 1.5; }
.calc-lead__form {
    display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: start;
}
.calc-lead__form .form-input { margin: 0; }
.calc-lead__form .btn-primary { padding: 14px 24px; font-size: 0.92rem; }
.calc-lead__form .lead-form__message { grid-column: 1 / -1; }

/* ── Heat-pump scheme block ─────────────────────────────── */
.scheme-section { background: var(--cream); }
.scheme-card {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
    background: var(--card-bg); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
    padding: 48px;
}
.scheme-card__text h2 { font-size: 2rem; margin: 8px 0 16px; }
.scheme-card__text p { color: var(--muted); font-weight: 300; line-height: 1.7; }
.scheme-card__list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.scheme-card__list li {
    position: relative; padding-left: 26px; color: var(--text); font-weight: 400; font-size: 0.95rem;
}
.scheme-card__list li::before {
    content: '→'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}
.scheme-card__svg svg { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 4px 20px rgba(44,24,16,0.08); }

/* ── Responsive ──────────────────────────────────────────── */

/* Меню + контакты не помещаются раньше, чем нужен мобильный макет:
   сначала прячем мессенджеры, потом уводим ссылки в бургер — CTA остаётся всегда */
@media (max-width: 1240px) {
    .nav-inner { gap: 20px; }
    .nav-links { gap: 20px; }
    .nav-msg { display: none; }
}

@media (max-width: 1100px) {
    .nav-links { display: none; position: absolute; top: 72px; left: 0; width: 100%; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); flex-direction: column; padding: 24px; gap: 16px; box-shadow: 0 8px 24px rgba(44,24,16,0.1); }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--text) !important; }
    .nav-burger { display: flex; }
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .segmentation-grid { grid-template-columns: 1fr; }
    .lead-form-card { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
    .calc-lead__form { grid-template-columns: 1fr 1fr; }
    .scheme-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section--sm { padding: 40px 0; }
    .section-subtitle { margin-bottom: 36px; }
    .hero-content h1 { font-size: 2.4rem; }
    .benefits-grid, .product-grid { grid-template-columns: 1fr; }
    .feature-card-inner, .feature-card-inner.reversed { grid-template-columns: 1fr; direction: ltr; }
    .feature-img-wrap img { min-height: 260px; }
    .feature-text { padding: 32px 24px; }
    .section-title { font-size: 1.8rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .two-columns { grid-template-columns: 1fr; gap: 24px; }
    .page-header h1 { font-size: 2rem; }
    .hero-metrics { grid-template-columns: 1fr; }
    .calc-lead { grid-template-columns: 1fr; padding: 24px; }
    .calc-lead__form { grid-template-columns: 1fr; }
    .nav-phone { display: none; }
    .fab { right: 16px; bottom: 16px; }
    .fab__toggle { width: 52px; height: 52px; }
    .map-canvas { height: 360px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2.4rem; }
    .cta-content { padding: 32px 20px; }
    .nav-cta { padding: 10px 16px; font-size: 0.85rem; }
}
