/* ============================================================
   LANDING — ТукДом Premium
   Палитра: тёмно-зелёный #0d3b3a, персиковый #f0a080, кремовый #faf8f5
   ============================================================ */

/* Шрифт Manrope (variable, 400–800) — локально, чтобы не зависеть
   от стороннего CDN и работать без запросов вовне. Два сабсета:
   cyrillic — заголовки и текст (русский), latin — цифры и англ.
   Фолбэк — прежний системный стек, стилистика не ломается. */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: normal;
    font-display: swap;
    src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: normal;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --brand-dark:    #0d3b3a;
    --brand-dark-2:  #15524f;
    --brand-peach:   #f0a080;
    --brand-peach-2: #e88b68;
    --brand-cream:   #faf8f5;
    --brand-mint:    #7fb8a8;

    --primary: var(--brand-dark);
    --accent: var(--brand-peach);
    --accent-hover: var(--brand-peach-2);

    --bg: #0a1f1e;
    --bg-soft: #0f2a28;
    --bg-card: #13312f;
    --bg-elevated: #173a37;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);

    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --gradient: linear-gradient(135deg, #0d3b3a 0%, #1a5a56 40%, #f0a080 100%);
    --gradient-soft: linear-gradient(135deg, #15524f 0%, #f0a080 100%);
    --gradient-accent: linear-gradient(135deg, #f0a080 0%, #e88b68 100%);
    --gradient-warm: linear-gradient(135deg, #7fb8a8 0%, #f0a080 100%);
}

html[data-theme="light"] {
    --primary: var(--brand-dark);
    --accent: var(--brand-peach);
    --accent-hover: var(--brand-peach-2);

    --bg: var(--brand-cream);
    --bg-soft: #f2ede6;
    --bg-card: #ffffff;
    --bg-elevated: #faf8f5;
    --border: rgba(13, 59, 58, 0.10);
    --border-strong: rgba(13, 59, 58, 0.18);
    --text: #0d3b3a;
    --text-muted: #4a6b69;
    --text-dim: #6b8683;

    --shadow-sm: 0 2px 8px rgba(13, 59, 58, 0.06);
    --shadow-md: 0 8px 30px rgba(13, 59, 58, 0.10);
    --shadow-lg: 0 20px 60px rgba(13, 59, 58, 0.15);
}

html {
    background: #0a1f1e;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
html[data-theme="light"] {
    background: var(--brand-cream);
}

body.landing {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'tnum' off;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 
        opacity .9s cubic-bezier(.16,1,.3,1),
        transform .9s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--gradient);
    z-index: 9999;
    transition: width .1s linear;
    box-shadow: 0 0 10px rgba(240, 160, 128, 0.5);
}

/* ============================================================
   БАННЕР «СЕРВИС В РАЗРАБОТКЕ»
   ============================================================ */
/* Фон намеренно НЕпрозрачный: баннер зафиксирован поверх контента, и при
   прокрутке под ним оказываются цветные секции (зелёный hero, картинки).
   Полупрозрачный янтарный + blur давали зелёный фон, на котором тёмный
   текст в светлой теме переставал читаться. */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #33270f;
    border-bottom: 1px solid rgba(245, 158, 11, 0.45);
    font-size: 13px;
    line-height: 1.4;
    color: #fde9c8;
}
html[data-theme="light"] .dev-banner {
    background: #fdf1d8;
    border-bottom-color: rgba(180, 83, 9, 0.30);
    color: #6b4406;
}
.dev-banner-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dev-banner-inner svg {
    flex-shrink: 0;
    color: #f59e0b;
}
html[data-theme="light"] .dev-banner-inner svg {
    color: #b45309;
}
/* Фиксированная навигация и контент съезжают вниз на высоту баннера */
.dev-banner ~ .nav { top: 35px; }
.dev-banner ~ .calc-main { padding-top: 136px; }
@media (max-width: 700px) {
    .dev-banner { font-size: 12px; line-height: 1.35; }
    .dev-banner-inner { padding: 8px 16px; }
    .dev-banner ~ .nav { top: 70px; }
    .dev-banner ~ .calc-main { padding-top: 138px; }
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0 10px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s, backdrop-filter .3s;
    box-sizing: border-box;
}
.nav.scrolled {
    background: rgba(10, 31, 30, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: var(--border);
}
html[data-theme="light"] .nav.scrolled {
    background: rgba(250, 248, 245, 0.85);
}
/* Ширина и отступы те же, что у .container/.header-inner основного сайта
   (max-width 1600px + 24px), иначе шапка лэндинга не совпадает по краям
   с шапкой приложения. */
.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
    /* wrap оставлен осознанно: на промежуточных ширинах (900–1100px,
       когда ссылок уже не видно, а бургера ещё нет) nav-links
       переносится на второй ряд, а не ломает вёрстку */
    flex-wrap: wrap;
}
.nav-logo {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    order: 1;
}
.nav-logo img {
    display: block;
    flex-shrink: 0;
}
.logo-icon-img {
    height: 44px;
    width: auto;
    content: url('../icons/logo-icon.svg');
}
html[data-theme="dark"] .logo-icon-img {
    content: url('../icons/logo-icon-light.svg');
}
.logo-text-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    content: url('../icons/logo-text.png');
}
html[data-theme="dark"] .logo-text-img {
    content: url('../icons/logo-text-light.png');
}

.nav-links {
    display: flex;
    gap: 26px;
    /* Один ряд: ссылки между лого и действиями. Было два ряда
       (flex:1 0 100% + border-top) — визуально тяжело; с 10 ссылками
       в один ряд помещается при 1600px-контейнере, на узких экранах
       уходит в бургер (см. @900px). */
    order: 2;
    justify-content: center;
    margin: 0;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color .2s;
    position: relative;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-soft);
    transform: scaleX(0);
    transition: transform .3s;
    transform-origin: left;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 3;
    margin-left: auto;
}
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
}
.nav-burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .15s;
}
.nav-burger:hover { background: var(--bg-card); }
.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.btn-primary {
    background: var(--gradient);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(13, 59, 58, 0.35);
    animation: gradient-shift 6s ease infinite;
}
.btn-primary:hover {
    box-shadow: 0 10px 34px rgba(240, 160, 128, 0.5);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}
html[data-theme="light"] .btn-ghost:hover {
    background: var(--brand-dark);
    color: #ffffff;
    border-color: var(--brand-dark);
}
.btn-lg {
    padding: 15px 30px;
    font-size: 15px;
    border-radius: 12px;
}
.btn-block { width: 100%; }

.magnetic {
    transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .25s;
    will-change: transform;
}

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
   ============================================================ */
.btn-theme {
    background: transparent;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s, border-color .2s;
}
.btn-theme:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-theme:active { transform: scale(0.94); }
.btn-theme svg { display: block; width: 18px; height: 18px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 200px 0 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}
.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 59, 58, 0.8) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: orb-float 20s ease-in-out infinite;
}
.hero-orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(240, 160, 128, 0.35) 0%, transparent 70%);
    top: 100px;
    right: -250px;
    animation: orb-float 25s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(127, 184, 168, 0.25) 0%, transparent 70%);
    bottom: -200px;
    left: 30%;
    animation: orb-float 30s ease-in-out infinite;
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(240, 160, 128, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 160, 128, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
html[data-theme="light"] .hero-grid-overlay {
    background-image: 
        linear-gradient(rgba(13, 59, 58, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 59, 58, 0.05) 1px, transparent 1px);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    width: 100%;
    padding: 20px 24px 60px 24px;
    margin: 0 auto;
}

.hero-2col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(240, 160, 128, 0.08);
    border: 1px solid rgba(240, 160, 128, 0.2);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--accent);
}
.hero-title {
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.hero-title .line {
    display: block;
}
.gradient-text {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
}
.hero-subtitle {
    font-size: clamp(15px, 1.3vw, 17px);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 0 28px 0;
    line-height: 1.6;
}
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.hero-trust-dot { color: var(--accent); opacity: 0.5; }

/* Честная граница сервиса */
.hero-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 620px;
    margin: 20px 0 0 0;
    padding: 11px 16px;
    text-align: left;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}
.hero-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}
.hero-disclaimer strong { color: var(--text); font-weight: 700; }
html[data-theme="light"] .hero-disclaimer {
    background: #ffffff;
    border-color: rgba(13, 59, 58, 0.14);
}

/* ============================================================
   HERO LIVE DEMO WIDGET (ВАРИАНТ 1 ВМЕСТО КАРТИНКИ)
   ============================================================ */
.hero-demo-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    width: 100%;
    box-sizing: border-box;
}

html[data-theme="light"] .hero-demo-widget {
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(13, 59, 58, 0.12), 0 0 0 1px rgba(13, 59, 58, 0.05);
}

.hero-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.hero-widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
}

.hero-widget-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meters-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-meter-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.hero-meter-card:hover {
    border-color: var(--accent);
}

.hero-meter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.hero-meter-prev {
    font-size: 11.5px;
    color: var(--text-muted);
}

.hero-meter-input-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0 10px;
    height: 42px;
    transition: border-color 0.2s ease;
}

.hero-meter-input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 160, 128, 0.15);
}

.hero-meter-input-box input {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    width: 100%;
    outline: none;
}

.hero-meter-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-meter-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
    padding-top: 4px;
}

.hero-meter-calc-row strong {
    color: var(--text);
}

.hero-widget-bill-bar {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.hero-bill-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-bill-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.hero-bill-sum {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.hero-btn-pay-demo {
    background: var(--primary, #0d3b3a);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-btn-pay-demo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-btn-pay-demo.is-paid {
    background: #10b981;
    color: #ffffff;
    cursor: default;
}

.hero-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.hero-sparkline-mini {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
}

.hero-spark-bar {
    width: 6px;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.4;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.hero-spark-bar:hover,
.hero-spark-bar.current {
    opacity: 1;
}

@media (max-width: 1024px) {
    .hero-2col {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-left-col {
        align-items: center;
        text-align: center;
    }
    .hero-cta,
    .hero-trust,
    .hero-disclaimer {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .hero-meters-live-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.mockup-badge-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(127, 184, 168, 0.15);
    color: #7fb8a8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mockup-badge-icon-warn {
    background: rgba(240, 160, 128, 0.16);
    color: var(--accent);
}
.mockup-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
}
.mockup-badge-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.mockup-badge-text span {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
}
html[data-theme="light"] .mockup-window {
    box-shadow: 
        0 40px 100px rgba(13, 59, 58, 0.15),
        0 0 0 1px rgba(240, 160, 128, 0.15);
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}
.mockup-dots span:nth-child(1) { background: #f0a080; }
.mockup-dots span:nth-child(2) { background: #f5c76e; }
.mockup-dots span:nth-child(3) { background: #7fb8a8; }
.mockup-url {
    font-size: 12px;
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.mockup-body {
    position: relative;
    background: var(--bg);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.mockup-body img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transform: scale(1.4);
    transform-origin: left top;
}
/* Тема: в тёмной показываем обычный скриншот, в светлой — светлый.
   Два <img> (.mockup-screen) лежат друг на друге, переключаем по data-theme.
   Используем два элемента, а не content:url, потому что у картинки задан
   object-fit: cover — он надёжнее работает с реальными <img>, чем с
   подменой содержимого. */
.mockup-body .mockup-screen {
    position: absolute;
    inset: 0;
}
.mockup-body .mockup-screen-light { display: none; }
html[data-theme="light"] .mockup-body .mockup-screen-dark { display: none; }
html[data-theme="light"] .mockup-body .mockup-screen-light { display: block; }
/* Если скриншот не загрузился — прячем обе картинки и показываем
   текстовую таблицу-заглушку (см. onerror в разметке). */
.mockup-fallback .mockup-screen { display: none !important; }
.mockup-fallback-content {
    display: none;
    padding: 20px;
    font-size: 13px;
}
.mockup-fallback .mockup-fallback-content { display: block; }
.mockup-fallback-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.mockup-fallback-row:first-child {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}
.mockup-fallback-row.total {
    font-weight: 700;
    color: var(--accent);
    background: rgba(240, 160, 128, 0.06);
    border-radius: 8px;
    margin-top: 6px;
    border-bottom: none;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section {
    padding: 110px 0;
    position: relative;
}
.section-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}
/* ============================================================
   ШИРИНА БЛОКОВ — ДВА РАЗМЕРА, И ТОЛЬКО ДВА
   ============================================================
   Широкие блоки идут на всю ширину контейнера (1600px, как шапка и подвал):
   .features-row, .calc-landing-grid, .hero-mockup, .pricing-grid, .faq-list.

   Узкие ограничены 1240px и центрируются: .hero-inner, .section-head,
   .split-layout, .stats-showcase, .family-hero, .family-roles,
   .family-features.

   Промежуточных значений (1360, 1400, 1000, 900, 780) быть не должно: со
   стороны это выглядело как три разных ширины на одной странице. Если
   блоку нужна своя ширина — значит, ему нужна одна из этих двух.
   ============================================================ */
.section-head {
    text-align: center;
    max-width: 1240px;
    margin: 0 auto 72px;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 18px;
}
.section-head h2 {
    font-size: clamp(30px, 4.2vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}
.section-head p {
    color: var(--text-muted);
    font-size: 17px;
    /* Блок заголовка — 1240px, но строка текста такой длины нечитаема,
       поэтому подзаголовок держим в 720px по центру */
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================================
   ВОЗМОЖНОСТИ
   ============================================================ */
/* Bento-сетка: две крупные карточки (графики и счётчики — ядро
   сервиса) занимают по 2 колонки и 2 ряда, остальные — обычные.
   Сетка 4 колонки: [A A B B] / [A A b b] ... — визуально живее,
   чем 12 одинаковых плиток. */
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
}
.feature-item-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}
.feature-item-large .feature-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 24px;
}
.feature-item-large .feature-item-icon svg { width: 26px; height: 26px; }
.feature-item-large h3 {
    font-size: 20px;
    letter-spacing: -0.02em;
}
.feature-item-large p {
    font-size: 14.5px;
    line-height: 1.6;
}
.feature-item-large .feature-item-demo {
    margin-top: auto;
    padding-top: 20px;
}
/* Мини-визуализация внутри крупной карточки «Счётчики» */
.meter-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
}
.meter-demo span { color: var(--text-muted); }
.meter-demo strong {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.meter-demo .meter-demo-result {
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}
/* Мини-график внутри крупной карточки «Графики и тренды» */
.chart-demo {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 72px;
    padding: 0 2px;
}
.chart-demo span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(240, 160, 128, 0.75), rgba(240, 160, 128, 0.15));
    min-height: 6px;
}
.chart-demo span:nth-child(odd) { opacity: 0.55; }
.chart-demo span:last-child {
    background: linear-gradient(180deg, #f0a080, rgba(240, 160, 128, 0.2));
    opacity: 1;
}
/* Точки слайдера нужны только на телефоне (см. медиазапрос ниже) */
.features-dots { display: none; }
.feature-item {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.feature-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity .3s;
}
.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 160, 128, 0.35);
    box-shadow: var(--shadow-md);
}
.feature-item:hover::before { opacity: 1; }
.feature-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(240, 160, 128, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
html[data-theme="light"] .feature-item-icon {
    background: rgba(13, 59, 58, 0.08);
    color: var(--brand-dark);
}
.feature-item-icon svg { width: 22px; height: 22px; }
.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.feature-item p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   SPLIT LAYOUT (СЧЁТЧИКИ)
   ============================================================ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    /* Контейнер лэндинга — 1600px, как у основного сайта, но двум колонкам
       такая ширина не нужна: при 1520px в каждой было по 724px, то есть
       строка текста ~90 знаков — читать тяжело. Ограничиваем блок. */
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
.split-content .section-label {
    margin-bottom: 16px;
}
.split-content h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}
.split-lead {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 32px;
}
/* Уточнение «сервис не проводит платежи» — в секции про оплаты это самое
   частое заблуждение, поэтому сноска стоит рядом с лидом. */
.split-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -16px 0 32px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.split-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}
.split-note strong { color: var(--text); font-weight: 700; }
html[data-theme="light"] .split-note {
    background: rgba(13, 59, 58, 0.045);
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feature-list .check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(240, 160, 128, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-top: 1px;
}
html[data-theme="light"] .feature-list .check {
    background: rgba(13, 59, 58, 0.1);
    color: var(--brand-dark);
}
.feature-list li strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
    font-weight: 600;
}
.feature-list li span:not(.check) {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Плашка «Премиум» в заголовке пункта списка: фича доступна
   только на платном тарифе — помечаем честно, без мелкого шрифта */
.plan-hint {
    display: inline-block;
    vertical-align: 2px;
    margin: 6px 6px 6px 0;
    padding: 1px 8px;
    border-radius: 5px;
    background: rgba(240, 160, 128, 0.14);
    border: 1px solid rgba(240, 160, 128, 0.3);
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.5;
}
html[data-theme="light"] .plan-hint {
    background: rgba(13, 59, 58, 0.07);
    border-color: rgba(13, 59, 58, 0.25);
    color: var(--brand-dark);
}

.split-visual {
    position: relative;
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
html[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 30px 80px rgba(13, 59, 58, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.glass-card:hover {
    transform: translateY(-6px);
}
.glass-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   PWA — ВЕРТИКАЛЬНАЯ КАРТОЧКА-ТЕЛЕФОН
   ============================================================ */
.app-phone {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
}
.app-phone img {
    border-radius: 20px;
    display: block;
    width: 100%;
    height: auto;
	padding: 30px 0 0 0;
}
/* Светлая тема: подменяем скриншот телефона на светлую версию.
   Здесь нет object-fit, поэтому безопасен приём content:url —
   тот же, что у логотипа в шапке. */
html[data-theme="light"] .app-phone img {
    content: url('../icons/screenshot-pwa-light.png');
}
.app-phone::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    border-radius: 3px;
    background: var(--border-strong);
    z-index: 2;
    pointer-events: none;
}

/* ============================================================
   PWA — КНОПКИ В СЕКЦИИ «ПРИЛОЖЕНИЕ»
   ============================================================ */
.app-cta {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: stretch;
    /* Узкий блок — 1240px, как остальные */
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stats-summary-item {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.stats-summary-item:last-child { border-bottom: none; }
.stats-summary-item:hover {
    background: rgba(240, 160, 128, 0.04);
}
.stats-summary-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.stats-summary-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stats-summary-value span {
    font-size: 0.6em;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}
.stats-summary-delta {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.stats-summary-delta.delta-down {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.stats-summary-delta.delta-up {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.stats-summary-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stats-chart-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}
.stats-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.stats-chart-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.stats-chart-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}
.stats-chart-legend {
    display: flex;
    gap: 16px;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-current { background: var(--accent); }
.legend-prev { background: var(--text-dim); }

.stats-chart-bars {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    align-items: end;
    flex: 1;
    min-height: 260px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 8px;
    position: relative;
}
.chart-bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(240, 160, 128, 0.4) 100%);
    border-radius: 6px 6px 0 0;
    transition: height 1.2s cubic-bezier(.16,1,.3,1), opacity .3s;
    min-height: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
html[data-theme="light"] .chart-bar-fill {
    background: linear-gradient(180deg, #0d3b3a 0%, rgba(13, 59, 58, 0.4) 100%);
}
.chart-bar-fill-small {
    opacity: 0.35;
}
.chart-bar-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.chart-bar-empty .chart-bar-label {
    opacity: 0.4;
}
.chart-bar:hover .chart-bar-fill {
    filter: brightness(1.15);
}

/* ============================================================
   ТАРИФЫ
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    /* Широкий блок — как .features-row и .calc-landing-grid: своего max-width
       нет, блок заполняет .section-inner (1600px минус отступы 0 24px, то есть
       1552px; карточка ~501px). Здесь стоял 1240px (карточки по 397px), но
       владелец решил, что тарифам нужна полная ширина блоков, как у соседних
       секций. Центрировать нечего: блок и так во всю ширину контейнера. */
    margin-bottom: 40px;
}
.pricing-demo-note {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.pricing-demo-note svg { flex-shrink: 0; color: #b45309; }
.pricing-demo-note strong { color: var(--text); }
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 160, 128, 0.4);
    box-shadow: var(--shadow-md);
}
.price-card-featured {
    background: linear-gradient(180deg, rgba(240, 160, 128, 0.08) 0%, var(--bg-card) 40%);
    border-color: rgba(240, 160, 128, 0.4);
}
.price-card-popular {
    border-color: rgba(127, 184, 168, 0.3);
    background: linear-gradient(180deg, rgba(127, 184, 168, 0.06) 0%, var(--bg-card) 40%);
}
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(240, 160, 128, 0.4);
}
.price-badge-popular {
    background: linear-gradient(135deg, #7fb8a8, #15524f);
    box-shadow: 0 4px 16px rgba(127, 184, 168, 0.4);
}
.price-name {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 16px;
}
.price-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.price-value span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}
.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}
.price-features li {
    padding: 10px 0;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 26px;
    line-height: 1.5;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}
html[data-theme="light"] .price-features li::before {
    color: var(--brand-dark);
}
.price-features li.feature-no {
    color: var(--text-dim);
    opacity: 0.6;
}
.price-features li.feature-no::before {
    content: '—';
    color: var(--text-dim);
    font-weight: 400;
}

/* ============================================================
   ТАРИФЫ: ЧЕТЫРЕ КАРТОЧКИ
   ============================================================
   .pricing-grid рассчитан на три колонки. С четвёртым тарифом
   («Аренда») карточки на десктопе становятся заметно уже, поэтому
   класс .pricing-grid-4 добавляется РЯДОМ с .pricing-grid: общие
   отступы, выравнивание и hover остаются из базового правила, а
   здесь меняется только число колонок и адаптив.

   Порядок брейкпоинтов:
     > 1250px — 4 колонки (примерно по 370px на карточку);
     ≤ 1250px — 2 колонки (планшет);
     ≤ 900px  — 1 колонка (правило .pricing-grid в мобильном блоке ниже). */
.pricing-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
/* В четырёх колонках карточка ~370px: боковые отступы уменьшаем,
   иначе текст возможностей рвётся почти на каждой строке. */
.pricing-grid-4 .price-card { padding: 36px 26px; }

@media (max-width: 1250px) {
    .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pricing-grid-4 { gap: 40px; }
    /* Как у трёх карточек: возвращаем обычные отступы карточки */
    .pricing-grid-4 .price-card { padding: 40px 32px; }
}
@media (max-width: 500px) {
    .pricing-grid-4 .price-card { padding: 32px 22px; }
}

/* ============================================================
   FAQ
   ============================================================ */
/* FAQ: одиннадцать вопросов в один столбик давали узкую «простыню» 780px
   шириной и 870px высотой. Теперь две колонки: вдвое короче и шире.
   Номера вопросов рисует счётчик — разметку менять не пришлось.
   Широкий блок — как .features-row: своего max-width нет (стоял 1240px),
   блок заполняет .section-inner целиком — 1552px, колонка ~770px. */
.faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    counter-reset: faq;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .3s, background .3s;
    counter-increment: faq;
}
.faq-item:hover {
    border-color: var(--border-strong);
}
.faq-item[open] {
    border-color: rgba(240, 160, 128, 0.4);
    background: rgba(240, 160, 128, 0.03);
}
.faq-item summary {
    padding: 16px 52px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    list-style: none;
    position: relative;
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Номер вопроса — аккуратная метка слева */
.faq-item summary::before {
    content: counter(faq, decimal-leading-zero);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform .3s, color .3s;
}
.faq-item[open] summary::after {
    content: '−';
    color: var(--accent);
}
.faq-item p {
    padding: 0 20px 16px 52px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}



/* ============================================================
   ФУТЕР
   ============================================================ */
.landing-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-soft);
}
/* Ширина и отступ — как у .app-footer основного сайта (см. privacy.php):
   max-width 1600px + 24px. Так подвал лэндинга совпадает по краям с подвалом
   приложения. */
.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}
/* Раскладка подвала: копирайт слева, ссылки ровно по центру, логотип
   справа. В разметке порядок — лого, копирайт, ссылки, поэтому расставляем
   order; копирайт и логотип растягиваем поровну (flex:1), чтобы ссылки
   встали по центру, а не по «остатку» между блоками разной ширины.
   Селекторы заскоплены на .footer-inner — шапка с её .nav-logo не затронута. */
.footer-inner .footer-copy {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
}
.footer-inner .footer-links {
    order: 2;
}
.footer-inner .nav-logo {
    order: 3;
    flex: 1 1 0;
    justify-content: flex-end;
    min-width: 0;
}
/* flex-wrap обязателен: без него шесть ссылок в одну строку вылезали
   за экран на телефоне (это и был баг «подвал не влезает»). */
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a svg { flex-shrink: 0; }
.footer-links a:hover { color: var(--accent); }

.footer-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text-muted);
}
.footer-version {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
    cursor: help;
}
.footer-version a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.footer-version a:hover {
    opacity: 1;
    color: var(--accent);
}

/* На телефоне подписи ссылок прячутся, остаются только иконки — ровно те же
   правила и тот же порог 768px, что у футера приложения (см.
   15-icons-svg.css: .footer-links a span { display: none }). Порог именно 768,
   а не 900, хотя каркас лэндинга становится мобильным с 900: на одной и той же
   ширине окна подвал лэндинга и подвал приложения должны выглядеть одинаково.
   Отступ по 10px нужен для пальца: без него цель попадания — только иконка
   14×14. */
@media (max-width: 768px) {
    .footer-links a { padding: 6px 10px; }
    .footer-links a span { display: none; }
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 1500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.mobile-menu-close:hover { background: var(--bg-soft); }
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    flex: 1;
}
.mobile-menu-links a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    background: var(--bg-soft);
    color: var(--accent);
}
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.mobile-menu-actions .btn-primary,
.mobile-menu-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
}

@media (min-width: 1251px) {
    .mobile-menu,
    .mobile-menu-overlay { display: none !important; }

    /* Центрирование ссылок в шапке для ПК: логотип и блок кнопок
       растягиваются поровну, поэтому nav-links стоит ровно по центру
       контейнера, а не по «остатку» между элементами разной ширины.
       Селекторы заскоплены на .nav-inner — иначе flex:1 утечёт и на
       логотип в футере (тот же класс .nav-logo), и он растянется. */
    .nav-inner .nav-logo { flex: 1 1 0; min-width: 0; }
    .nav-inner .nav-actions { flex: 1 1 0; justify-content: flex-end; margin-left: 0; }
}

/* ============================================================
   ПЛАНШЕТ
   ============================================================ */
@media (max-width: 1250px) {
    /* Ссылки не влезают в один ряд с лого и кнопками — прячем до
       бургера, как на телефоне (меню то же, что в @900px). */
    .nav-links { display: none; }
    .nav-mobile-actions { display: flex; }
    .nav-burger { display: flex; }
}
@media (max-width: 1100px) {
    /* Bento: на 3 колонках крупные карточки остаются на 2 кол. */
    .features-row { grid-template-columns: repeat(3, 1fr); }
    .split-layout { gap: 48px; }
    .stats-showcase { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   МОБИЛЬНАЯ
   ============================================================ */
@media (max-width: 900px) {
    /* Горизонтальные отступы живут на -inner (см. правило ширины выше):
       если оставить их и здесь, по краям наберётся 40-44px вместо 24. */
    .nav {
        padding: 12px 0 10px;
    }
    .nav-inner {
        gap: 12px;
    }
    .nav-logo {
        min-width: 0;
        flex-shrink: 1;
    }
    .nav-logo .logo-icon-img { height: 36px; }
    .nav-logo .logo-text-img { height: 60px; max-width: 120px; }
    .nav-burger {
        flex-shrink: 0;
    }

    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-mobile-actions { display: flex; }
    .nav-burger { display: flex; }
    .nav-mobile-actions .btn-theme { padding: 9px 11px; }

    .hero { padding: 170px 0 40px; }
    .hero-title { font-size: clamp(34px, 9vw, 48px); }
    .hero-subtitle { font-size: 15px; }
    .hero-mockup { margin: 40px auto 0; }
    .mockup-window { transform: rotateX(0); }

    .section { padding: 72px 0; }
    .section-head { margin-bottom: 48px; }

    /* «Что умеет Тук.дом» — слайдер. Двенадцать карточек в столбик
       растягивали секцию на несколько экранов; теперь это лента с
       прилипанием карточек, край следующей виден — понятно, что листается.
       Отрицательный отступ выпускает ленту до краёв экрана. */
    .features-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -24px;
        padding: 4px 24px 10px;
    }
    .features-row::-webkit-scrollbar { display: none; }
    .feature-item {
        flex: 0 0 76%;
        scroll-snap-align: center;
        padding: 22px 18px;
    }
    /* Крупные bento-карточки на телефоне — обычные плитки ленты */
    .feature-item-large {
        grid-column: auto;
        grid-row: auto;
        flex: 0 0 86%;
    }
    .feature-item-large .feature-item-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 16px;
    }
    .feature-item-large h3 { font-size: 16px; }
    .feature-item-large p { font-size: 13px; }
    .chart-demo { height: 56px; }
    .feature-item-icon { width: 42px; height: 42px; margin-bottom: 16px; }
    .feature-item h3 { font-size: 15px; }
    .feature-item p { font-size: 13px; }

    /* Точки слайдера: заполняются скриптом, видны только здесь */
    .features-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
    }
    .features-dots button {
        width: 6px;
        height: 6px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--border-strong);
        cursor: pointer;
        transition: background .25s, transform .25s;
    }
    .features-dots button.active {
        background: var(--accent);
        transform: scale(1.4);
    }

    /* FAQ: в две колонки на телефоне не помещается */
    .faq-list { grid-template-columns: 1fr; gap: 10px; }
    .faq-item summary { padding: 14px 46px 14px 46px; font-size: 14px; }
    .faq-item p { padding: 0 16px 14px 46px; font-size: 13px; }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .split-visual { order: -1; }

    .stats-chart-preview { padding: 24px 20px; min-height: 340px; }
    .stats-chart-bars { min-height: 200px; gap: 4px; }
    .chart-bar-fill { max-width: 24px; }
    .chart-bar-label { font-size: 9px; }
    .stats-summary-item { padding: 20px 22px; }
    .stats-summary-value { font-size: 24px; }

    .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
    .price-card-featured { transform: none; }

    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    /* Ссылки в подвале на телефоне: переносим и ужимаем отступы,
       чтобы подвал не выходил за границы экрана */
    .footer-links { gap: 10px 18px; justify-content: center; }
    .footer-copy { justify-content: center; }
}

@media (max-width: 500px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn-lg { width: 100%; }

    .app-cta { flex-direction: column; width: 100%; }
    .app-cta .btn-primary,
    .app-cta .btn-ghost { width: 100%; justify-content: center; }

    /* Слайдер остаётся слайдером: карточка чуть уже, чтобы был виден край следующей */
    .feature-item { flex: 0 0 82%; }
    .stats-chart-bars { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .chart-bar:nth-child(n+7) { display: none; }

    .mobile-menu { width: 100%; max-width: 100%; }

    /* Подвал на узких экранах: компактнее, но с переносом */
    .footer-links { gap: 8px 14px; font-size: 13px; }
}

/* ============================================================
   УВАЖЕНИЕ К prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   СЕМЕЙНЫЙ ДОСТУП
   ============================================================ */
.family-section {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.family-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Узкий блок — 1240px, как остальные */
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
.family-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient);
}
.family-hero-avatars {
    display: flex;
    gap: -8px;
    position: relative;
}
.family-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    border: 3px solid var(--bg-card);
    margin-left: -14px;
    transition: transform .25s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.family-avatar-circle:first-child { margin-left: 0; }
.family-avatar-circle:hover { transform: translateY(-4px) scale(1.05); z-index: 2; }
.family-avatar-1 { background: linear-gradient(135deg, #0d3b3a, #1a5a56); }
.family-avatar-2 { background: linear-gradient(135deg, #f0a080, #e88b68); }
.family-avatar-3 { background: linear-gradient(135deg, #7fb8a8, #15524f); }
.family-avatar-plus {
    background: transparent;
    border: 2px dashed var(--border-strong);
    color: var(--text-muted);
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
}
.family-avatar-plus:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240, 160, 128, 0.08);
}
.family-hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.family-hero-text strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.family-hero-text span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.family-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Как и тарифы: три карточки по 500px на ширине 1600 — растянуто */
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}
.family-role-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.family-role-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity .3s;
}
.family-role-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 160, 128, 0.4);
    box-shadow: var(--shadow-md);
}
.family-role-card:hover::before { opacity: 1; }
.family-role-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    flex-shrink: 0;
}
.family-role-icon svg { width: 26px; height: 26px; }
.family-role-icon-owner {
    background: linear-gradient(135deg, rgba(240, 160, 128, 0.2), rgba(240, 160, 128, 0.08));
    color: #f0a080;
}
.family-role-icon-editor {
    background: linear-gradient(135deg, rgba(127, 184, 168, 0.2), rgba(127, 184, 168, 0.08));
    color: #7fb8a8;
}
.family-role-icon-viewer {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.08));
    color: #94a3b8;
}
html[data-theme="light"] .family-role-icon-owner {
    background: rgba(240, 160, 128, 0.15);
    color: #b04a2a;
}
html[data-theme="light"] .family-role-icon-editor {
    background: rgba(13, 59, 58, 0.1);
    color: #0d3b3a;
}
html[data-theme="light"] .family-role-icon-viewer {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}
.family-role-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.family-role-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.family-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    max-width: 1240px;
    margin: 0 auto 48px;
}
.family-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.family-feature-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(240, 160, 128, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    margin-top: 1px;
}
html[data-theme="light"] .family-feature-check {
    background: rgba(13, 59, 58, 0.1);
    color: var(--brand-dark);
}
.family-feature strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
    font-weight: 600;
}
.family-feature span:not(.family-feature-check) {
    display: block;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.family-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.family-cta .btn-primary svg,
.family-cta .btn-ghost svg {
    margin-right: 6px;
    margin-top: -2px;
    vertical-align: middle;
}

/* Мобильная версия */
@media (max-width: 900px) {
    .family-hero {
        padding: 22px 20px;
        gap: 20px;
    }
    .family-avatar-circle { width: 48px; height: 48px; font-size: 16px; }
    .family-hero-text strong { font-size: 16px; }
    .family-hero-text span { font-size: 13px; }

    .family-roles { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
    .family-role-card { padding: 24px 20px; }
    .family-role-card h3 { font-size: 16px; }

    .family-features { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
}

@media (max-width: 500px) {
    .family-cta { flex-direction: column; width: 100%; }
    .family-cta .btn-lg { width: 100%; }
}
/* ============================================================
   АРЕНДА
   ============================================================
   Секция #rental: переключатель роли и два списка возможностей.
   Списки используют общий .feature-list (кружок с галочкой, strong
   + пояснение), а .rental-list добавляет только раскладку в две
   колонки — на телефоне она снова одна. */
.rental-switch {
    display: flex;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.rental-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s, color .25s;
}
.rental-switch-btn svg { flex-shrink: 0; width: 16px; height: 16px; }
.rental-switch-btn:hover { color: var(--text); background: var(--bg-soft); }
/* Активная вкладка — тот же акцентный градиент, что у бейджей тарифов */
.rental-switch-btn.active {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(240, 160, 128, 0.35);
}
.rental-switch-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Панель вкладки. display не задаём: неактивную панель прячет
   атрибут hidden (его ставит скрипт в index.php). */
.rental-panel[hidden] { display: none; }

.rental-lead {
    max-width: 1240px;
    margin: 0 auto 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.rental-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 32px;
    max-width: 1240px;
    margin: 0 auto;
}

/* Подпись про тариф — по образцу .pricing-demo-note, но в цвете
   тарифа «Аренда» (тот же тил, что у иконки тарифа в приложении). */
.rental-note {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 48px auto 0;
    padding: 14px 18px;
    background: rgba(13, 148, 136, 0.10);
    border: 1px solid rgba(13, 148, 136, 0.30);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.rental-note svg { flex-shrink: 0; color: #0d9488; }
.rental-note strong { color: var(--text); }

.rental-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.rental-cta .btn-primary svg,
.rental-cta .btn-ghost svg {
    margin-right: 6px;
    margin-top: -2px;
    vertical-align: middle;
}

/* Мобильная версия */
@media (max-width: 900px) {
    .rental-switch {
        /* На телефоне переключатель — на всю ширину, кнопки поровну */
        width: 100%;
        margin-bottom: 32px;
    }
    .rental-switch-btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: 14px; }
    .rental-list { grid-template-columns: 1fr; gap: 16px; }
    .rental-note { margin-top: 36px; }
}

@media (max-width: 500px) {
    .rental-cta { flex-direction: column; width: 100%; }
    .rental-cta .btn-lg { width: 100%; }
    .rental-lead { font-size: 14px; }
}

/* ============================================================
   БЛОК КАЛЬКУЛЯТОРОВ НА ЛЕНДИНГЕ
   ============================================================ */
.calc-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* На десктопе — три колонки в ряд (шесть калькуляторов по три). */
@media (min-width: 1024px) {
    .calc-landing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.calc-landing-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.calc-landing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity .25s;
}
.calc-landing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 160, 128, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.calc-landing-card:hover::before { opacity: 1; }

.calc-landing-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(240, 160, 128, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .25s;
}
html[data-theme="light"] .calc-landing-icon {
    background: rgba(13, 59, 58, 0.08);
    color: var(--brand-dark);
}
.calc-landing-card:hover .calc-landing-icon {
    background: rgba(240, 160, 128, 0.2);
    transform: scale(1.05);
}

.calc-landing-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.calc-landing-body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.calc-landing-body span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.calc-landing-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg);
    transition: color .25s, background .25s, transform .25s;
}
.calc-landing-card:hover .calc-landing-arrow {
    color: var(--accent);
    background: rgba(240, 160, 128, 0.15);
    transform: translateX(3px);
}

.calc-landing-cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.calc-landing-cta .btn-primary svg {
    margin-right: 6px;
    margin-top: -2px;
    vertical-align: middle;
}

/* Мобильная */
@media (max-width: 700px) {
    .calc-landing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .calc-landing-card {
        padding: 16px 18px;
        gap: 14px;
    }
    .calc-landing-icon {
        width: 42px;
        height: 42px;
    }
    .calc-landing-icon svg { width: 20px; height: 20px; }
    .calc-landing-body strong { font-size: 14px; }
    .calc-landing-body span { font-size: 12px; }
    .calc-landing-arrow {
        width: 28px;
        height: 28px;
    }
}
/* ============================================================
   СЕКЦИЯ «СТАТУСЫ ОПЛАТ» — превью на лендинге
   ============================================================ */
.payments-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 480px;
    margin: 0 auto;
}
html[data-theme="light"] .payments-preview {
    box-shadow: 
        0 30px 80px rgba(13, 59, 58, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.payments-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.payments-preview-title svg { color: var(--accent); }

.payments-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payments-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.payments-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.payments-preview-dot {
    font-size: 14px;
    line-height: 1;
}

.payments-preview-sum {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

/* Цвета статусов — как в приложении */
.payments-preview-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.payments-preview-overpaid {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.payments-preview-partial {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.payments-preview-overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.payments-preview-unpaid {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* ============================================================
   СЕКЦИЯ «БЫСТРЫЙ ВВОД» — превью на лендинге
   ============================================================ */
.quick-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 520px;
    margin: 0 auto;
}
html[data-theme="light"] .quick-preview {
    box-shadow: 
        0 30px 80px rgba(13, 59, 58, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quick-preview-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.quick-preview-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}
.quick-preview-chip-active {
    background: rgba(240, 160, 128, 0.15);
    border-color: rgba(240, 160, 128, 0.35);
    color: var(--accent);
    font-weight: 600;
}

.quick-preview-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-preview-head {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 10px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.quick-preview-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    font-size: 13px;
}
.quick-preview-row > span:first-child {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.quick-preview-row > span:nth-child(2) {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.quick-preview-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    justify-self: end;
}
.quick-preview-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.quick-preview-partial {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.quick-preview-overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* В тёмной теме — те же цвета, что и в приложении */
html[data-theme="dark"] .payments-preview-paid { color: #34d399; }
html[data-theme="dark"] .payments-preview-overpaid { color: #60a5fa; }
html[data-theme="dark"] .payments-preview-partial { color: #fbbf24; }
html[data-theme="dark"] .payments-preview-overdue { color: #f87171; }
html[data-theme="dark"] .payments-preview-unpaid { color: #cbd5e1; }

html[data-theme="dark"] .quick-preview-paid { color: #34d399; }
html[data-theme="dark"] .quick-preview-partial { color: #fbbf24; }
html[data-theme="dark"] .quick-preview-overdue { color: #f87171; }

/* Мобильная версия */
@media (max-width: 900px) {
    .payments-preview,
    .quick-preview {
        max-width: 100%;
        padding: 18px;
    }
    .payments-preview-row {
        padding: 10px 12px;
    }
    .payments-preview-status {
        font-size: 12px;
        padding: 3px 8px;
    }
    .payments-preview-sum {
        font-size: 12px;
    }
    .quick-preview-head,
    .quick-preview-row {
        grid-template-columns: 1.2fr 0.9fr 1fr;
        gap: 6px;
    }
    .quick-preview-row {
        font-size: 12px;
        padding: 10px;
    }
    .quick-preview-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 500px) {
    .payments-preview-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .payments-preview-sum {
        text-align: left;
    }
    .quick-preview-head {
        display: none;
    }
    .quick-preview-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .quick-preview-row > span:nth-child(2) {
        text-align: left;
    }
    .quick-preview-badge {
        justify-self: start;
    }
}

/* ============================================================
   TELEGRAM-БОТ — ИНТЕРАКТИВНЫЙ СМАРТФОН С ЧАТОМ
   ============================================================ */
.tg-smartphone-device {
    max-width: 440px;
    margin: 0 auto;
    background: #17212b;
    border: 10px solid #242f3d;
    border-radius: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

html[data-theme="light"] .tg-smartphone-device {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 25px 60px rgba(13, 59, 58, 0.15), 0 0 0 1px rgba(13, 59, 58, 0.08);
}

.tg-phone-header {
    background: #242f3d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .tg-phone-header {
    background: #f1f5f9;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.tg-phone-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tg-phone-info {
    flex: 1;
    min-width: 0;
}

.tg-phone-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
}

html[data-theme="light"] .tg-phone-name {
    color: #0f172a;
}

.tg-phone-status {
    font-size: 12px;
    color: #2AABEE;
}

.tg-phone-chat-body {
    padding: 16px;
    background: #0e1621;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

html[data-theme="light"] .tg-phone-chat-body {
    background: #f8fafc;
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.tg-phone-msg {
    display: flex;
    width: 100%;
    animation: tgMsgAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tgMsgAppear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tg-phone-msg-in {
    justify-content: flex-start;
}

.tg-phone-msg-out {
    justify-content: flex-end;
}

.tg-phone-bubble {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}

.tg-phone-msg-in .tg-phone-bubble {
    background: #182533;
    color: #f8fafc;
    border-bottom-left-radius: 4px;
}

html[data-theme="light"] .tg-phone-msg-in .tg-phone-bubble {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tg-phone-msg-out .tg-phone-bubble {
    background: #2b5278;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

html[data-theme="light"] .tg-phone-msg-out .tg-phone-bubble {
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tg-phone-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
}

html[data-theme="light"] .tg-phone-msg-in .tg-phone-time {
    color: #94a3b8;
}

html[data-theme="light"] .tg-phone-msg-out .tg-phone-time {
    color: #38bdf8;
}

.tg-phone-actions {
    background: #242f3d;
    padding: 10px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .tg-phone-actions {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.06);
}

.tg-phone-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.tg-phone-action-btn {
    background: #2e3c4e;
    color: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.tg-phone-action-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
}

html[data-theme="light"] .tg-phone-action-btn {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .tg-phone-action-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

.tg-phone-input-bar {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tg-phone-input-bar input {
    flex: 1;
    background: #182533;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.tg-phone-input-bar input:focus {
    border-color: #2AABEE;
}

html[data-theme="light"] .tg-phone-input-bar input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.tg-phone-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2AABEE;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.tg-phone-send-btn:hover {
    transform: scale(1.08);
}

/* ============================================================
   НОВЫЙ ЛЕНДИНГ (landing.php / V2) СТИЛИ
   ============================================================ */

/* Hero V2 */
.hero-title--v2 {
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero-subtitle--v2 {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 19px;
    line-height: 1.55;
}

.hero-badges-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 24px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-pill svg {
    color: var(--accent);
}

.hero-pill-dot {
    color: var(--text-dim);
    font-size: 12px;
}

html[data-theme="light"] .hero-pill {
    background: rgba(13, 59, 58, 0.04);
    border-color: rgba(13, 59, 58, 0.1);
    color: var(--text);
}

/* Hero Visual Combo: PWA Phone + Telegram Side-by-Side */
.hero-visual-combo {
    position: relative;
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 0 16px;
}

.hero-combo-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(320px, 460px);
    gap: 28px;
    justify-content: center;
    align-items: center;
}

/* PWA Phone Card */
.pwa-phone-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pwa-phone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .pwa-phone-card {
    box-shadow: 0 20px 50px rgba(13, 59, 58, 0.12);
    border-color: rgba(13, 59, 58, 0.12);
}

.phone-card-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.phone-speaker {
    width: 44px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 4px;
    margin-left: 4px;
}

.phone-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-battery {
    width: 18px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 2.5px;
    position: relative;
}

.phone-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 3px;
    background: currentColor;
    border-radius: 0 1px 1px 0;
}

.phone-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.phone-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(240, 160, 128, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-card-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.phone-card-period {
    font-size: 11.5px;
    color: var(--text-muted);
}

.phone-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(127, 184, 168, 0.15);
    color: #7fb8a8;
    border: 1px solid rgba(127, 184, 168, 0.3);
}

.phone-summary-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

html[data-theme="light"] .phone-summary-box {
    background: #f4ede4;
}

.phone-summary-label {
    font-size: 12px;
    color: var(--text-muted);
}

.phone-summary-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 2px 0 4px;
}

.phone-summary-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}

.trend-good {
    color: #7fb8a8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.phone-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.phone-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 13px;
}

html[data-theme="light"] .phone-service-row {
    background: #faf8f5;
}

.phone-service-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
}

.phone-s-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-s-icon.icon-water { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.phone-s-icon.icon-heat  { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.phone-s-icon.icon-light { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.phone-s-icon.icon-mgmt  { background: rgba(127, 184, 168, 0.15); color: #7fb8a8; }

.phone-service-cost {
    font-weight: 700;
    color: var(--text);
}

.phone-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.phone-meter-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-check-tag {
    color: #7fb8a8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Telegram Preview Widget alongside Phone */
.hero-tg-preview {
    background: #1e2936;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

html[data-theme="light"] .hero-tg-preview {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.hero-tg-topbar {
    background: #242f3d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .hero-tg-topbar {
    background: #0d3b3a;
    color: #ffffff;
}

.hero-tg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2AABEE;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-tg-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-tg-meta strong {
    font-size: 14.5px;
    color: #fff;
}

.hero-tg-meta span {
    font-size: 11.5px;
    color: #8da0b3;
}

html[data-theme="light"] .hero-tg-meta span {
    color: #b0d4d0;
}

.hero-tg-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(42, 171, 238, 0.2);
    color: #2AABEE;
    border-radius: 6px;
}

.hero-tg-chat {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #17212b;
}

html[data-theme="light"] .hero-tg-chat {
    background: #e4ebf0;
}

.hero-tg-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.hero-tg-btn {
    background: #2b394a;
    color: #f1f5f9;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .hero-tg-btn {
    background: #ffffff;
    color: #0d3b3a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero-tg-note {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-tg-note svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================================
   2. СТИЛИ БЛОКА «3 ПРОСТЫХ ШАГА»
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.step-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    font-family: inherit;
}

html[data-theme="light"] .step-num {
    color: rgba(13, 59, 58, 0.08);
}

.step-icon-wrap {
    margin-bottom: 20px;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-icon-1 { background: rgba(127, 184, 168, 0.15); color: #7fb8a8; }
.step-icon-2 { background: rgba(42, 171, 238, 0.15); color: #2AABEE; }
.step-icon-3 { background: rgba(240, 160, 128, 0.15); color: var(--accent); }

.step-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.35;
}

.step-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.step-desc code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent);
}

html[data-theme="light"] .step-desc code {
    background: rgba(13, 59, 58, 0.08);
    color: var(--brand-dark);
}

.step-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #7fb8a8;
    background: rgba(127, 184, 168, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    align-self: flex-start;
}

.steps-bottom-cta {
    margin-top: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.steps-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.steps-cta-text strong {
    font-size: 16.5px;
    color: var(--text);
}

.steps-cta-text span {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================
   3. СТИЛИ БЛОКА СУПЕРСИЛ (KEY FEATURES CARDS)
   ============================================================ */
.superpowers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.super-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.super-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.super-card--highlight {
    border-color: rgba(42, 171, 238, 0.4);
    background: linear-gradient(180deg, rgba(42, 171, 238, 0.08) 0%, var(--bg-card) 40%);
}

.super-badge-top {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(42, 171, 238, 0.15);
    color: #2AABEE;
    border: 1px solid rgba(42, 171, 238, 0.3);
}

.super-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-badge-tg     { background: rgba(42, 171, 238, 0.15); color: #2AABEE; }
.icon-badge-bell   { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.icon-badge-family { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-badge-chart  { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.icon-badge-calc   { background: rgba(240, 160, 128, 0.15); color: var(--accent); }
.icon-badge-pwa    { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.super-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.35;
}

.super-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.super-list {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.super-list li {
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.super-list li svg {
    color: #7fb8a8;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   4. СТИЛИ ИНТЕРАКТИВНОГО КАЛЬКУЛЯТОРА
   ============================================================ */
.demo-calc-container {
    max-width: 1600px;
    margin: 40px auto 0;
}

.demo-calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.demo-calc-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.demo-preset-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 4px;
}

.demo-preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.demo-preset-btn.active {
    background: var(--accent);
    color: #0d3b3a;
    border-color: var(--accent);
}

html[data-theme="light"] .demo-preset-btn {
    background: #f0ebe4;
    border-color: rgba(13, 59, 58, 0.12);
}

.demo-slider-group {
    margin-bottom: 20px;
}

.demo-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.demo-slider-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-slider-title svg {
    color: var(--accent);
}

.demo-slider-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.demo-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

html[data-theme="light"] .demo-range {
    background: rgba(13, 59, 58, 0.12);
}

.demo-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
}

.demo-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Result Card */
.demo-result-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.demo-result-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.demo-kpi-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.demo-kpi-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-top: 2px;
}

.demo-kpi-year {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-top: 2px;
}

.demo-bars-wrap {
    margin-bottom: 20px;
}

.demo-bars-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.demo-bars-stacked {
    height: 12px;
    border-radius: 100px;
    display: flex;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

.demo-bar-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.seg-mgmt  { background: #7fb8a8; }
.seg-heat  { background: #fb923c; }
.seg-light { background: #facc15; }
.seg-water { background: #38bdf8; }
.seg-net   { background: #a855f7; }

.demo-bars-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-item strong {
    color: var(--text);
}

.demo-insight-banner {
    background: rgba(240, 160, 128, 0.08);
    border: 1px solid rgba(240, 160, 128, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
    margin-top: auto;
    margin-bottom: 20px;
}

.demo-insight-banner svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.demo-insight-banner strong {
    color: var(--text);
}

/* ============================================================
   5. СТИЛИ БЛОКА ДОВЕРИЯ (TRUST)
   ============================================================ */
.trust-box {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    padding: 44px;
    box-shadow: var(--shadow-md);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
}

.trust-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 8px 0 16px;
}

.trust-lead {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.trust-point-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(127, 184, 168, 0.15);
    color: #7fb8a8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-point strong {
    display: block;
    font-size: 15.5px;
    color: var(--text);
    margin-bottom: 4px;
}

.trust-point p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.trust-stats-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-badge-shield {
    color: var(--accent);
    margin-bottom: 12px;
}

.trust-stats-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

.trust-stats-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.trust-stat-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html[data-theme="light"] .trust-stat-row {
    background: #ffffff;
}

.trust-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.trust-stat-lbl {
    font-size: 12.5px;
    color: var(--text-muted);
}

.price-desc-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: -10px 0 16px;
    text-align: center;
}

/* ============================================================
   RESPONSIVE АДАПТИВНОСТЬ ДЛЯ НОВОГО ЛЕНДИНГА
   ============================================================ */
@media (max-width: 1024px) {
    .hero-combo-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .steps-grid,
    .superpowers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-calc-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .steps-grid,
    .superpowers-grid {
        grid-template-columns: 1fr;
    }

    .steps-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-box {
        padding: 24px 18px;
    }

    .hero-title--v2 {
        font-size: 32px;
    }

    .hero-subtitle--v2 {
        font-size: 16px;
    }
}
