/* BOTIX — Landing Page
 * Лёгкий, воздушный дизайн. Синий акцент.
 * tokens.css → base vars, здесь → brand + landing overrides
 */

:root {
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-light: #60A5FA;
    --accent-bg: rgba(37, 99, 235, 0.08);

    /* Override ui-primary for this page */
    --ui-primary: var(--accent);
    --ui-primary-dark: var(--accent-dark);
    --ui-primary-light: var(--accent-light);

    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 16px;
    --radius-sm: 10px;

    --header-bg: rgba(255, 255, 255, 0.85);
    --gap: 120px;
}

[data-theme="dark"] {
    --accent-bg: rgba(37, 99, 235, 0.12);
    --bg: #0F172A;
    --bg-card: #1E293B;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #334155;
    --header-bg: rgba(15, 23, 42, 0.85);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ========================
   HEADER
   ======================== */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex; align-items: center;
    flex-shrink: 0;
}

/* BOTIX Logo (PNG) */
.logo-img {
    display: block;
    height: auto;
    object-fit: contain;
}
.logo-img-md { width: 90px; }

.nav {
    display: flex; gap: 28px; margin-right: auto;
}

.nav a {
    font-size: 14px; color: var(--text-muted);
    transition: color .2s;
}
.nav a:hover { color: var(--text); }

.header-right {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}

.theme-btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border); border-radius: 50%;
    cursor: pointer; font-size: 15px; color: var(--text-muted);
    transition: all .2s;
}
.theme-btn:hover { background: var(--bg-card); color: var(--text); }

.burger {
    display: none;
    flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 1px;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    cursor: pointer; border: none;
    transition: all .2s; white-space: nowrap;
}

.btn-primary {
    background: var(--accent); color: #fff;
}
.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg-card); border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent; color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
    padding: 14px 36px; font-size: 16px;
    border-radius: var(--radius);
}

.btn-full { width: 100%; }

.btn-studio {
    background: var(--text); color: var(--bg-card);
}
.btn-studio:hover {
    opacity: .85;
}

/* ========================
   TAB (pill)
   ======================== */
.tab {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
[data-theme="dark"] .tab.active {
    background: #334155;
    color: #F1F5F9;
}

/* ========================
   НОВЫЙ HERO (видео-фон)
   ======================== */
.hero-new {
    position: relative;
    height: 80vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}
.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.hero-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.1);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.hero-new-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--w-page);
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.hero-offer {
    max-width: var(--w-narrow);
}
.hero-offer--left {
    align-self: flex-start;
}
.hero-offer--left .hero-offer-title,
.hero-offer--left .hero-offer-text {
    text-align: left;
}
.hero-offer--right {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.hero-offer--right .hero-offer-title,
.hero-offer--right .hero-offer-text {
    text-align: right;
}
.hero-offer-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-offer-text {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 24px;
}
.btn-hero {
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}
.btn-hero:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* ========================
   HERO (демо-боты)
   ======================== */
.hero {
    padding: 64px 0 48px;
    text-align: center;
    background: var(--bg);
}

[data-theme="dark"] .hero {
    background: var(--bg);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.hero-title .accent {
    color: var(--text);
}

.hero-block {
    max-width: var(--w-content);
    margin: 0 auto;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 16px;
}

/* Avatar column */
.hero-avatar-col {
    flex-shrink: 0;
    width: 260px;
}

.hero-avatar {
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,.08));
    transition: opacity .3s;
}

[data-theme="dark"] .hero-avatar {
    filter: drop-shadow(0 16px 32px rgba(0,0,0,.25));
}

/* Info card */
.hero-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: left;
    min-width: 0;
    flex: 1;
    height: 370px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
}

/* Capabilities list */
.hero-capabilities {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-capabilities li {
    display: none;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.hero-capabilities li.active {
    display: flex;
}

.hero-capabilities li::before {
    content: '';
    flex-shrink: 0;
    width: 10px; height: 10px;
    background: #10B981;
    border-radius: 50%;
    margin-top: 6px;
}

/* Hero demo CTA (ready solution) */
.hero-demo-cta {
    display: none;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hero-demo-cta p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.hero-demo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hero-demo-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    text-decoration: none;
}

.hero-demo-buttons .btn svg {
    flex-shrink: 0;
}

.hero-demo-buttons .btn-connect {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.hero-demo-buttons .btn-connect:hover {
    opacity: .85;
}

@media (max-width: 480px) {
    .hero-demo-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .hero-demo-buttons .btn {
        padding: 7px 8px;
        font-size: 12px;
        gap: 4px;
    }
}

/* Hero tabs */
.hero-tabs {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--border);
    border-radius: 10px;
    padding: 3px;
    width: auto;
    margin: 0 auto;
}

/* ========================
   SECTIONS
   ======================== */
.section {
    padding: var(--gap) 0;
}

.section-alt {
    background: var(--bg-card);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* ========================
   CARDS
   ======================== */
.cards-4, .cards-3 {
    display: grid;
    gap: 20px;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s, box-shadow .2s;
}

.section-alt .card {
    background: var(--bg);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.card-dot {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.55;
}

/* ========================
   INDUSTRY TABS + STATS
   ======================== */
.industry-tabs {
    display: flex; gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.industry-panel { display: none; }
.industry-panel.active { display: block; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

/* Первые две карточки — крупнее */
.stat:nth-child(1),
.stat:nth-child(2) {
    grid-column: span 1;
}

.stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
}

.section-alt .stat {
    background: var(--bg-card);
}

[data-theme="dark"] .section-alt .stat {
    background: var(--bg);
}

.stat-val {
    display: block;
    font-size: 28px; font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.stat-lbl {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.4;
}

/* ========================
   TEMPLATES (V18 — Compact cards)
   ======================== */
.tpl-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tpl-industry-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.tpl-industry-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tpl-industry-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tpl-industry-tab.active {
    background: #3a3a3c;
    color: #fff;
    border-color: #3a3a3c;
}

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

.tpl-card {
    position: relative;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all .3s;
}

.section-alt .tpl-card {
    background: var(--bg-card);
}

[data-theme="dark"] .section-alt .tpl-card {
    background: var(--bg);
}

.tpl-card:hover {
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(0,0,0,.07);
    transform: translateY(-2px);
}

[data-theme="dark"] .tpl-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

.tpl-card--soon {
    opacity: .6;
    cursor: default;
}

.tpl-card--soon:hover {
    border-color: var(--border);
    box-shadow: none;
}


.tpl-body {
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding: 14px 20px 0;
    gap: 16px;
}

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

.tpl-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-right: -50px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpl-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl-link {
    position: absolute;
    bottom: 5px;
    left: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity .3s;
}

.tpl-card:hover .tpl-link {
    opacity: 1;
}

.tpl-soon {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-block;
}

.tpl-ava {
    width: 113px;
    flex-shrink: 0;
    align-self: flex-end;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.tpl-ava img {
    width: 113px;
    height: 113px;
    object-fit: contain;
    transition: transform .3s;
}

.tpl-card:hover .tpl-ava img {
    transform: translateY(-3px);
}

.tpl-card--soon:hover .tpl-ava img {
    transform: none;
}

/* ========================
   METRICS
   ======================== */
.metrics {
    padding: 80px 0;
    background: #1E293B;
    color: #fff;
}

[data-theme="dark"] .metrics {
    background: #0B1120;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-val {
    display: block;
    font-size: 52px; font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--accent-light);
}

.metric-lbl {
    font-size: 15px;
    opacity: .85;
}

/* ========================
   STEPS
   ======================== */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.step {
    text-align: center;
    padding: 24px 16px;
}

.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 50%;
    font-size: 15px; font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 15px; font-weight: 700;
    margin-bottom: 6px;
}

.step p {
    font-size: 14px; color: var(--text-muted);
}

.steps-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================
   GUARANTEE
   ======================== */
.guarantee-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.guarantee-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.section-alt .guarantee-card {
    background: var(--bg-card);
}

[data-theme="dark"] .section-alt .guarantee-card {
    background: var(--bg);
}

.guarantee-card h3 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 16px;
}

.guarantee-card ul { list-style: none; }

.guarantee-card li {
    padding: 7px 0; font-size: 14px;
    color: var(--text-muted);
    padding-left: 22px; position: relative;
}

.guarantee-card li::before {
    content: '\2713'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700;
}

/* ========================
   DEMO
   ======================== */
.demo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-text h2 {
    font-size: 32px; font-weight: 800;
    margin-bottom: 14px;
}

.demo-text p {
    color: var(--text-muted); font-size: 16px;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    margin-bottom: 24px;
}

.check-list li {
    padding: 5px 0; font-size: 15px;
    padding-left: 22px; position: relative;
}

.check-list li::before {
    content: '\2713'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700;
}

/* Widget mock */
.demo-widget {
    width: 300px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

[data-theme="dark"] .demo-widget {
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.widget-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: var(--accent); color: #fff;
}

.widget-dot {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.2);
    border-radius: 50%; font-weight: 700; font-size: 14px;
}

.widget-head strong { font-size: 13px; }
.widget-head small { font-size: 11px; opacity: .8; }

.widget-body {
    padding: 14px;
    display: flex; flex-direction: column; gap: 8px;
    min-height: 150px;
}

.msg {
    padding: 9px 12px; border-radius: 12px;
    font-size: 12px; line-height: 1.5;
    max-width: 85%;
}

.msg-bot {
    background: var(--bg); color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

[data-theme="dark"] .msg-bot { background: var(--bg); }

.msg-user {
    background: var(--accent); color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.widget-foot {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-muted);
}

/* ========================
   PRICING
   ======================== */
#pricing .section-desc {
    margin-bottom: 20px;
}

/* Controls row: period toggle + category tabs on one line */
.pricing-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pricing-period-toggle,
.pricing-tabs {
    display: flex;
    gap: 2px;
    background: var(--border);
    border-radius: 10px;
    padding: 3px;
    margin: 0;
    width: auto;
}

.period-btn,
.pricing-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.period-btn:hover,
.pricing-tab:hover {
    color: var(--text);
}

.period-btn.active,
.pricing-tab.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

[data-theme="dark"] .period-btn.active,
[data-theme="dark"] .pricing-tab.active {
    background: #334155;
    color: #F1F5F9;
}

.period-save {
    font-size: 11px;
    font-weight: 700;
    background: #10B981;
    color: #fff;
    padding: 2px 7px;
    border-radius: 100px;
}

.price-old {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
}

.pricing-panel {
    display: none;
}

.pricing-panel.active {
    display: block;
}

.pricing-hint {
    text-align: center;
    font-size: var(--fs-body);
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: var(--w-narrow);
    margin-left: auto;
    margin-right: auto;
}

.pricing-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--w-page);
    margin: 0 auto;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .price-card {
    background: var(--bg);
}

.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.price-card.popular {
    background: var(--bg-card);
    border-color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

[data-theme="dark"] .price-card.popular {
    background: #1E293B;
    border-color: #94A3B8;
}

.badge {
    position: absolute; top: -11px; left: 50%;
    transform: translateX(-50%);
    background: var(--text); color: var(--bg-card);
    padding: 3px 14px; border-radius: 100px;
    font-size: 11px; font-weight: 600;
}

.badge-ai {
    background: #E53935;
    color: #fff;
}

.price-card.ai-bot-card {
    border-color: #E53935;
    box-shadow: 0 4px 16px rgba(229,57,53,.15);
}

[data-theme="dark"] .price-card.ai-bot-card {
    background: #2B1215;
    border-color: #E53935;
}

.price-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 36px;
}

.price-val {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 2px;
    white-space: nowrap;
}

.price-cur {
    font-size: 18px;
    font-weight: 800;
}

.price-from {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}

.price-period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.price-card .btn {
    padding: 8px 16px;
    margin-bottom: 14px;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 0;
    flex: 1;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.price-card li {
    padding: 3px 0; font-size: 13px;
    color: var(--text-muted);
    padding-left: 20px; position: relative;
}

.price-card li::before {
    content: '\2713'; position: absolute; left: 0;
    color: #10B981; font-weight: 600; font-size: 12px;
}

.price-card li:last-child { border-bottom: none; }

/* ========================
   CONTACT
   ======================== */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-left h2 {
    font-size: 28px; font-weight: 800;
    margin-bottom: 28px;
}

.contact-item {
    display: flex; gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-dot {
    flex-shrink: 0;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 6px;
}

.contact-item strong { font-size: 15px; display: block; margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: var(--text-muted); }

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
}

.section-alt .contact-form {
    background: var(--bg-card);
}

[data-theme="dark"] .section-alt .contact-form {
    background: var(--bg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    color: var(--text); transition: border-color .2s;
}

.section-alt .contact-form input,
.section-alt .contact-form textarea {
    background: var(--bg);
}

[data-theme="dark"] .section-alt .contact-form input,
[data-theme="dark"] .section-alt .contact-form textarea {
    background: var(--bg-card);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea { resize: vertical; }

/* ========================
   CTA BOTTOM
   ======================== */
.cta-bottom {
    padding: 80px 0;
    background: var(--bg);
}

[data-theme="dark"] .cta-bottom {
    background: var(--bg);
}

.cta-bottom h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 28px;
    line-height: 1.2;
}

.cta-bottom .accent {
    color: var(--text);
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    padding: 56px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 10px; }

.footer-products {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.footer-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.footer-product-link:hover {
    color: var(--accent);
}

.footer-cols h4 {
    font-size: 12px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-cols a {
    display: block; font-size: 13px;
    color: var(--text-muted); padding: 3px 0;
    transition: color .2s;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Платёжные карты в подвале (требование банка-эквайера ВТБ).
   ВАЖНО: без fill: currentColor — SVG карт остаются в фирменных цветах. */
.footer-cards {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.footer-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(28px * var(--icon-scale, 1));
    width: auto;
    color: inherit;
    text-decoration: none;
    line-height: 1;
}
.footer-card svg, .footer-card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    transition: color .2s;
}

.social-link:hover {
    color: var(--accent);
}

.social-icon {
    width: auto;
    height: calc(32px * var(--icon-scale, 1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-icon svg, .social-icon img {
    height: 100%;
    width: auto;
    fill: currentColor;
}
/* Legacy-классы оставлены на случай если где-то ещё используются */
.social-icon--tg { height: calc(32px * var(--icon-scale, 1.1)); }
.social-icon--max { height: calc(32px * var(--icon-scale, 1)); }
.social-icon--vk { height: calc(32px * var(--icon-scale, 1.5)); }

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

/* ========================
   DEMO MODAL
   ======================== */
.demo-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-modal-overlay.open {
    display: flex;
}

.demo-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: var(--w-modal-sm);
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

[data-theme="dark"] .demo-modal {
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.demo-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none;
    font-size: 24px; color: var(--text-muted);
    cursor: pointer; line-height: 1;
}
.demo-modal-close:hover { color: var(--text); }

.demo-modal h3 {
    font-size: 22px; font-weight: 800;
    margin-bottom: 8px;
}

.demo-modal-desc {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 28px; line-height: 1.5;
}

.demo-modal-options {
    display: flex; flex-direction: column;
    gap: 12px; margin-bottom: 24px;
}

.demo-option {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .2s;
    text-decoration: none; color: inherit;
}

[data-theme="dark"] .demo-option {
    background: var(--bg);
}

.demo-option:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}

.demo-option-icon {
    font-size: 24px; flex-shrink: 0;
    margin-top: 2px;
}

.demo-option strong {
    display: block; font-size: 15px;
    margin-bottom: 4px;
}

.demo-option p {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.4; margin: 0;
}

.demo-modal-channels {
    display: flex; align-items: center; gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.demo-channels-label {
    font-size: 12px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .5px;
}

.demo-channel {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    font-size: 13px; font-weight: 500;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    transition: all .2s;
    text-decoration: none;
}

.demo-channel:hover {
    border-color: var(--primary); color: var(--primary);
}

.demo-channel-soon {
    opacity: .5; cursor: default;
    pointer-events: none;
}

.demo-channel-active {
    background: none;
    cursor: pointer;
    border-color: var(--accent, var(--accent));
    color: var(--accent, var(--accent));
}

.demo-channel-active:hover {
    background: var(--accent, var(--accent));
    color: #fff;
    border-color: var(--accent, var(--accent));
}

/* Demo modal — showcase variant (Apple-style) */
.demo-modal--showcase {
    max-width: var(--w-modal-md);
    padding: 40px 36px 28px;
}

.demo-showcase-head {
    text-align: center;
    margin-bottom: 28px;
}

.demo-showcase-head h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.demo-showcase-head p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Cards grid */
.demo-showcase-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Card base */
.demo-showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 22px;
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    font-family: inherit;
    color: var(--text);
    overflow: hidden;
}

[data-theme="dark"] .demo-showcase-card {
    box-shadow: 0 2px 16px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.06);
}

.demo-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.06);
}

[data-theme="dark"] .demo-showcase-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
}

/* Color accent bar at top */
.demo-showcase-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.demo-showcase-card--client .demo-showcase-accent {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.demo-showcase-card--admin .demo-showcase-accent {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

/* Icon */
.demo-showcase-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* Title */
.demo-showcase-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Intro line */
.demo-showcase-intro {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.4;
}

/* Feature list */
.demo-showcase-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    text-align: left;
    width: 100%;
}

.demo-showcase-card li {
    font-size: 12px;
    color: var(--text);
    padding: 3px 0 3px 18px;
    position: relative;
    line-height: 1.5;
}

.demo-showcase-card--client li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 11px;
}

.demo-showcase-card--admin li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: 700;
    font-size: 11px;
}

/* CTA button */
.demo-showcase-cta {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-align: center;
    transition: filter .2s;
    margin-top: auto;
}

.demo-showcase-card:hover .demo-showcase-cta {
    filter: brightness(1.1);
}

.demo-showcase-card--client .demo-showcase-cta {
    background: var(--primary);
    color: #fff;
}

.demo-showcase-card--admin .demo-showcase-cta {
    background: #F59E0B;
    color: #fff;
}

/* Cabinet link under cards */
.demo-cabinet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.demo-cabinet-link:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .demo-showcase-cards { grid-template-columns: 1fr; gap: 12px; }
    .demo-modal--showcase { max-width: 100%; padding: 28px 20px 20px; }
    .demo-showcase-head h3 { font-size: 20px; }
}

/* ========================
   DEMO CHAT (centered modal)
   ======================== */
.demo-chat-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 300;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-chat-overlay.open {
    display: flex;
}

.demo-chat-window {
    width: 400px;
    height: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: modalIn .25s ease;
}

[data-theme="dark"] .demo-chat-window {
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

/* Header */
.demo-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
}

.demo-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-chat-avatar {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    font-weight: 700; font-size: 15px;
}

.demo-chat-header-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.demo-chat-header-info small {
    font-size: 11px;
    opacity: .8;
}

.demo-chat-close {
    background: none; border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
    padding: 0 4px;
}

.demo-chat-close:hover { opacity: 1; }

/* Messages */
.demo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

[data-theme="dark"] .demo-chat-messages {
    background: #0B1120;
}

/* Scrollbar */
.demo-chat-messages::-webkit-scrollbar { width: 4px; }
.demo-chat-messages::-webkit-scrollbar-track { background: transparent; }
.demo-chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Message bubbles */
.demo-chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    word-wrap: break-word;
    animation: msgIn .2s ease;
}

.demo-chat-msg.history { animation: none; }

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

.demo-chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

[data-theme="dark"] .demo-chat-msg.bot {
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.demo-chat-msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Bot inline buttons */
.demo-chat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.demo-chat-btn {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.demo-chat-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
}

.demo-chat-btn:disabled {
    border-color: var(--border);
    color: var(--text-muted);
}

/* Input area */
.demo-chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.demo-chat-input-area input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}

.demo-chat-input-area input:focus {
    border-color: var(--accent);
}

.demo-chat-input-area input::placeholder {
    color: var(--text-muted);
}

.demo-chat-input-area button {
    width: 36px; height: 36px;
    border: none;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .2s, opacity .2s;
}

.demo-chat-input-area button:hover:not(:disabled) {
    background: var(--accent-dark);
}

.demo-chat-input-area button:disabled {
    opacity: .4;
    cursor: default;
}

/* Typing indicator */
.demo-chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.demo-chat-typing span {
    width: 7px; height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.2s infinite;
}

.demo-chat-typing span:nth-child(2) { animation-delay: .2s; }
.demo-chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 1024px) {
    .hero-layout { flex-direction: column; gap: 24px; }
    .hero-avatar-col { width: 200px; }
    .hero-info-card { max-width: var(--w-narrow); margin: 0 auto; }
    .templates-grid { grid-template-columns: 1fr 1fr; }
    .tpl-ava { width: 100px; }
    .tpl-ava img { width: 100px; height: 100px; }
    .cards-4 { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .steps-row { grid-template-columns: 1fr 1fr; }
    .pricing-row, .ai-pricing-row { grid-template-columns: 1fr 1fr; max-width: 100%; }
    .demo-row { grid-template-columns: 1fr; text-align: center; }
    .demo-widget { margin: 0 auto; }
    .contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --gap: 80px; }

    .hero-new { min-height: 480px; height: auto; padding: 60px 0; }
    .hero-new-content { gap: 40px; }
    .hero-offer-title { font-size: 28px; }
    .hero-offer-text { font-size: 16px; }
    .hero-offer--right { align-self: flex-start; align-items: flex-start; }
    .hero-offer--right .hero-offer-title,
    .hero-offer--right .hero-offer-text { text-align: left; }

    /* fix-1 (жалоба «бургер слева»): justify-content на .header-inner.
       Было: на десктопе бургер уходил вправо за счёт .nav { margin-right: auto }.
       На мобайле .nav { display: none } → margin-auto не работает → .header-right
       прилипал к .logo через gap. space-between прижимает .logo влево, .header-right
       (с бургером) — вправо без специфичности-костылей. */
    .header-inner { justify-content: space-between; }

    .nav { display: none; }
    /* fix-2 (жалоба «меню прозрачное»): солидный фон var(--bg-card) вместо
       rgba(255,255,255,.85) + убран backdrop-filter blur(14px) — он размывал
       фон, но 15% прозрачности всё равно показывало контент под меню. */
    .nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--bg-card);
        backdrop-filter: none;
        padding: 20px 24px; gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 99;
    }
    .nav.open a {
        font-size: 16px;
        padding: 10px 0;
        min-height: 44px;
        display: flex; align-items: center;
    }
    .burger { display: flex; }
    /* fix-3 (жалоба «Войти невидима»): кнопки в .header-right видимы по умолчанию.
       Было: .header-right .btn { display: none } + костыль .nav.open ~ .btn —
       кнопка появлялась только при открытом меню. Демо-кабинет прячем на мобайле
       (узкий экран не вмещает обе), доступен через /demo/ напрямую. */
    .header-right .btn {
        display: inline-flex;
        padding: 7px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    .header-right .btn-demo-cabinet { display: none; }
    .header-right .theme-btn { display: inline-flex; }

    .hero { padding: 100px 0 48px; }
    .hero-title { font-size: 34px; margin-bottom: 32px; }
    .hero-layout { flex-direction: column; gap: 0; }
    .hero-avatar-col { width: 200px; order: 2; }
    .hero-info-card { order: 1; margin-bottom: 20px; }
    .tab { padding: 8px 16px; font-size: 13px; }

    .section-title { font-size: 28px; }

    .templates-grid { grid-template-columns: 1fr 1fr; }
    .tpl-card { height: 130px; }
    .tpl-ava { width: 90px; }
    .tpl-ava img { width: 90px; height: 90px; }
    .tpl-link { opacity: 1; }
    .cards-4 { grid-template-columns: 1fr 1fr; }
    .cards-3 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .metrics-row { grid-template-columns: 1fr; gap: 20px; }
    .metric-val { font-size: 40px; }
    .steps-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .guarantee-row { grid-template-columns: 1fr; }
    .pricing-controls { flex-direction: column; gap: 10px; }
    .period-btn, .pricing-tab { padding: 7px 14px; font-size: 12px; }
    .pricing-row, .ai-pricing-row, .ai-pricing-row--ext { grid-template-columns: 1fr; max-width: 100%; }

    .hero-tabs { gap: 6px; }

    .cta-bottom h2 { font-size: 28px; }

    .demo-modal { padding: 24px; }
    .demo-modal h3 { font-size: 18px; }
    .demo-modal-overlay { padding: 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .container { padding: 0 16px; }
    .hero-avatar-col { width: 160px; }
    .hero-info-card { padding: 20px; }
    .tab { padding: 7px 14px; font-size: 12px; }
    .templates-grid { grid-template-columns: 1fr; }
    .tpl-card { height: 120px; }
    .tpl-ava { width: 80px; }
    .tpl-ava img { width: 80px; height: 80px; }
    .tpl-info h3 { font-size: 14px; }
    .cards-4 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .cta-bottom h2 { font-size: 24px; }

    /* Demo chat — fullscreen on mobile */
    .demo-chat-overlay { padding: 0; }
    .demo-chat-window {
        width: 100%; height: 100%;
        border-radius: 0;
        border: none;
    }
    .demo-chat-header { border-radius: 0; }
}


/* =============================================
   AI-АССИСТЕНТ — блок на главной + страница
   ============================================= */

/* Ссылка в навигации */
.header .nav a.nav-ai {
    font-weight: 600;
}

/* Блок на главной */
.ai-section {
    padding: 48px 0;
    background: #4B5563;
    color: #fff;
}

.ai-section .section-title {
    color: #fff;
}

.ai-section .section-desc {
    color: #fff;
}

.ai-section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 0 24px calc((100% - 720px) / 2);
    text-align: left;
    line-height: 1.6;
}

.ai-promo-block {
    max-width: var(--w-content);
    margin: 24px auto 0;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

[data-theme="dark"] .ai-promo-block {
    background: none;
}

.ai-promo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.ai-promo-badge {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-promo-heading {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-align: center;
    color: #fff;
}

.ai-promo-text {
    font-size: 15px;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.5;
}

.ai-promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ai-promo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 15px;
    color: #E2E8F0;
}

.ai-promo-content .btn {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

.ai-promo-content .btn:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
}

.ai-feat-icon {
    color: #fff;
    flex-shrink: 0;
}

/* Страница AI-ассистента: hero */
.ai-hero {
    padding: 120px 0 64px;
    text-align: center;
}

.ai-hero-desc {
    max-width: var(--w-content);
    margin: 24px auto 16px;
    font-size: var(--fs-lg);
    color: var(--text);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.ai-hero-sub {
    max-width: var(--w-content);
    margin: 0 auto;
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.7;
}

.ai-hero-h2 {
    font-size: var(--fs-3xl);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--heading);
    margin: 48px 0 12px;
}

.ai-hero-desc2 {
    max-width: var(--w-content);
    margin: 0 auto;
    font-size: var(--fs-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

.ai-hero-accent {
    max-width: var(--w-content);
    margin: 12px auto 0;
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

/* Заголовок с зачёркиванием */
.ai-strike-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ai-strike-word {
    position: relative;
    display: inline-block;
    color: var(--text-muted);
}
.ai-strike-line {
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 20px;
    width: calc(100% + 8px);
    transform: translateY(-50%) rotate(-2deg);
    pointer-events: none;
}
.ai-strike-word:nth-child(2) .ai-strike-line {
    transform: translateY(-50%) rotate(1.5deg);
}
.ai-strike-word:nth-child(3) .ai-strike-line {
    transform: translateY(-50%) rotate(-1deg);
}

/* Шаги подключения */
.ai-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 48px 0 36px;
}

.ai-step {
    text-align: center;
    padding: 24px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

[data-theme="dark"] .section-alt .ai-step {
    background: var(--bg-card);
    border-color: var(--border);
}

.ai-step-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.ai-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.ai-step p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.ai-data-note {
    text-align: center;
    font-size: var(--fs-base);
    color: var(--text-muted);
    max-width: var(--w-text);
    margin: 0 auto;
    line-height: 1.7;
}

/* Сравнение: два столбца */
/* Таблица сравнения */
.ai-vs-wrap {
    max-width: var(--w-content);
    margin: 40px auto 0;
    overflow: visible;
}

.ai-vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.4;
}

.ai-vs-table thead th {
    padding: 12px 20px 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--border);
    color: var(--text);
    vertical-align: bottom;
}

.ai-vs-table thead th:first-child {
    text-align: left;
    width: 160px;
}

.ai-vs-th-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.ai-vs-table thead th.ai-vs-th--other {
    color: var(--text-muted);
    font-weight: 600;
}

.ai-vs-table thead th.ai-vs-th--botix {
    color: var(--text);
    background: var(--bg-card);
    border-radius: 12px 12px 0 0;
    text-align: center;
}
.ai-vs-th--botix img {
    display: block;
    height: 22px;
    margin: 4px auto 0;
}

.text-alert {
    color: #E53935;
}

.pricing-controls--center {
    justify-content: center;
}

.ai-vs-table tbody td {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    text-align: center;
}

.ai-vs-table tbody td:first-child {
    text-align: left;
}

[data-theme="dark"] .ai-vs-table tbody td {
    border-bottom-color: var(--border);
}

.ai-vs-label {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    font-size: 14px;
}

.ai-vs-td--other {
    color: var(--text-muted);
    font-size: 13px;
}

.ai-vs-td--botix {
    color: var(--text);
    font-weight: 600;
    background: var(--bg-card);
}

.ai-vs-table tbody tr:last-child .ai-vs-td--botix {
    border-radius: 0 0 12px 12px;
}

/* Кейсы экономии */
.ai-cases {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--w-content);
    margin: 36px auto 0;
}

.ai-case {
    display: grid;
    grid-template-columns: 1fr 170px 170px 160px;
    align-items: center;
    gap: 0;
    background: var(--bg-card, #fff);
    border-radius: 14px;
    padding: 20px 28px;
}

[data-theme="dark"] .ai-case {
    background: var(--bg-elevated, #1c1c1e);
}

.ai-case-left {
    padding-right: 24px;
}

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

.ai-case-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ai-case-col {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid var(--border);
}

[data-theme="dark"] .ai-case-col {
    border-left-color: var(--border);
}

.ai-case-col-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.ai-case-col-price {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.ai-case-price--other {
    color: var(--text-muted);
}

.ai-case-price--botix {
    color: var(--text);
}

.ai-case-col--save {
    min-width: 140px;
}

.ai-case-save {
    font-size: 15px;
    font-weight: 700;
    color: #34C759;
    white-space: nowrap;
}

/* Тултип-вопросик */
.ai-tooltip-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}
.ai-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,.08);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: help;
}
[data-theme="dark"] .ai-tooltip-icon {
    background: rgba(255,255,255,.12);
}
.ai-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg, #fff);
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 100;
    transition: opacity .15s;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    border: 1px solid var(--border);
}
.ai-tooltip-wrap:hover .ai-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.ai-calc-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 28px;
}

@media (max-width: 900px) {
    .ai-case {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px 0;
        padding: 16px 20px;
    }
    .ai-case-left {
        grid-column: 1 / -1;
        padding-right: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
    .ai-case-col {
        border-left: none;
        padding: 0;
        text-align: left;
    }
    .ai-case-col--save {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
}

/* Блок внедрения */
#ai-pricing .section-title {
    margin-bottom: 4px;
}
#ai-pricing .section-desc {
    margin-bottom: 16px;
}
.ai-pricing-intro {
    text-align: center;
    margin: 0 auto 8px;
    max-width: var(--w-content);
}
.ai-pricing-headline {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: -8px;
}
.ai-pricing-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* Тарифы AI — переключение табов */
.ai-pricing-panel {
    display: none;
}
.ai-pricing-panel.active {
    display: block;
}

/* Экономия — переключение табов */
.ai-economy-panel {
    display: none;
}
.ai-economy-panel.active {
    display: block;
}

/* Тарифы AI — сетки */
.ai-pricing-panel .pricing-row {
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--w-content);
}

.price-period-inline {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.ai-enterprise-note {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-muted);
}

.ai-enterprise-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.ai-enterprise-note a:hover {
    text-decoration: underline;
}

/* Форма обратного звонка */
.ai-callback-form {
    max-width: var(--w-narrow);
    margin: 36px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-callback-form .form-control {
    padding: 14px 18px;
    font-size: 15px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ai-callback-form .form-control:focus {
    border-color: var(--accent);
}

.ai-callback-success {
    text-align: center;
    padding: 40px;
}

.ai-callback-success h3 {
    font-size: 20px;
    margin: 16px 0 8px;
    color: var(--text);
}

.ai-callback-success p {
    color: var(--text-muted);
}

/* Скрытие колонок на мобильных */
.col-mob-hide {
    /* видны по умолчанию */
}

/* Адаптив AI */
@media (max-width: 900px) {
    .ai-steps-row {
        grid-template-columns: 1fr;
    }

    .ai-vs-table {
        font-size: 12px;
    }

    .ai-vs-table thead th,
    .ai-vs-table tbody td {
        padding: 10px 10px;
    }

    .ai-vs-table thead th {
        font-size: 13px;
    }

    .ai-vs-th-sub {
        font-size: 10px;
    }

    .ai-vs-label {
        white-space: normal;
    }
}

/* Кликабельная карточка отраслей */
.ai-step--link {
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
}
.ai-step--link:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0,122,255,.1);
}
.ai-step--link a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
}

/* Модал отраслей */
.ind-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.ind-modal-overlay.active {
    display: flex;
}
.ind-modal {
    position: relative;
    background: var(--bg);
    border-radius: 20px;
    max-width: var(--w-modal-lg);
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 36px 36px;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
[data-theme="dark"] .ind-modal {
    background: var(--bg-card);
}
.ind-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.ind-modal-close:hover {
    color: var(--text);
}
.ind-modal-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text);
}
.ind-modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
}
.ind-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ind-tag {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: rgba(0,0,0,.04);
    border-radius: 20px;
    white-space: nowrap;
}
[data-theme="dark"] .ind-tag {
    background: rgba(255,255,255,.08);
}

/* Компактная модалка */
.ind-modal--compact {
    max-width: var(--w-modal-md);
}
.ind-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ind-list li {
    padding: 14px 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.ind-list li:last-child {
    border-bottom: none;
}
.ind-list li strong {
    font-weight: 600;
}

/* FAQ */
.ai-faq {
    max-width: var(--w-content);
    margin: 0 auto;
}
.ai-faq-item {
    border-bottom: 1px solid var(--border);
}
.ai-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}
.ai-faq-item summary::-webkit-details-marker { display: none; }
.ai-faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.ai-faq-item[open] summary::after {
    content: '\2212';
}
.ai-faq-item p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    padding-right: 38px;
}

/* CTA */
.ai-cta {
    text-align: center;
    padding: 48px 0;
}
.ai-cta-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    margin: 0 0 12px;
}
.ai-cta-desc {
    font-size: var(--fs-md);
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: var(--w-narrow);
    margin-left: auto;
    margin-right: auto;
}
.btn-lg {
    padding: 16px 48px;
    font-size: 17px;
    border-radius: 12px;
}

/* ========================
   MODAL: Общие компоненты
   ======================== */
.modal--compact {
    max-width: var(--w-narrow);
}

.modal--request {
    padding: 32px 36px 28px;
    border-radius: 20px;
}

.modal-close--sm {
    top: 16px;
    right: 20px;
    font-size: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.modal-title--md {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}

.modal-subtitle--sm {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header .logo-img {
    margin-bottom: 16px;
}

.modal-alert {
    display: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.modal-alert--error {
    background: rgba(239,68,68,.08);
    color: #DC2626;
    margin-top: 12px;
}

.modal-alert--auth {
    border-radius: 8px;
    background: rgba(239,68,68,.1);
    color: var(--danger);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form--auth {
    gap: 12px;
}

.modal-label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.modal-label--auth {
    margin-bottom: 4px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.modal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.modal-input--auth {
    padding: 10px 14px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 14px;
}

.modal-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    outline: none;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}

.modal-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.modal-btn-full {
    width: 100%;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 15px;
}

.modal-btn-full--mt {
    margin-top: 16px;
}

.consent-block { margin-top: 4px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-label input { display: none; }
.consent-checkbox { width: 22px; height: 22px; border: 2px solid #cbd5e1; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; }
.consent-label input:checked + .consent-checkbox { background: var(--primary); border-color: var(--primary); }
.consent-label input:checked + .consent-checkbox::after { content: '✓'; color: #fff; font-size: 14px; font-weight: bold; }
.consent-text { font-size: 13px; color: #86868b; line-height: 1.4; }
.consent-text a { color: var(--primary); text-decoration: none; font-weight: 500; }
.consent-text a:hover { text-decoration: underline; }

.modal-btn-full--auth {
    width: 100%;
    margin-top: 4px;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-steps-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.modal-dot--active {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background: var(--text);
}

.modal-result-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.modal-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.modal-result-icon--success {
    background: rgba(52,199,89,.12);
}

.modal-result-icon--info {
    background: rgba(0,122,255,.12);
}

.modal-result-icon--lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.modal-result-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-result-title--lg {
    font-size: 18px;
    margin-bottom: 6px;
}

.modal-result-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.modal-back-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
    text-decoration: none;
}

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.modal-footer-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-footer-text--sm {
    margin-top: 8px;
}

.modal-footer-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.modal-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.modal-field-hint {
    display: none;
    font-size: 11px;
    margin-top: 4px;
    color: #DC2626;
}

.modal-btn-close {
    margin-top: 20px;
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .ind-modal {
        padding: 28px 20px 24px;
        max-height: 90vh;
    }
    .ind-modal-title {
        font-size: 20px;
    }
    .ind-tag {
        font-size: 12px;
        padding: 6px 11px;
    }
    .ai-cta-title {
        font-size: 24px;
    }
    .ai-faq-item summary {
        font-size: 15px;
    }

    .ai-promo-block {
        padding: 24px;
    }

    .ai-promo-heading {
        font-size: 20px;
    }

    .ai-hero-desc {
        font-size: 16px;
    }
}

/* ========================
   CHANNELS MODAL — Apple style
   Открывается из карточки тарифа по ссылке «20 каналов связи →»
   ======================== */
.channels-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
}
.channels-link:hover { opacity: .75; }

.channels-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
    animation: channelsModalFade .2s ease-out;
}
.channels-modal-overlay.open { display: flex; }

@keyframes channelsModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.channels-modal {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 22px;
    max-width: var(--w-narrow); width: 100%;
    max-height: 88vh; overflow-y: auto;
    padding: 28px 28px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12),
                0 2px 8px rgba(0,0,0,.04);
    animation: channelsModalSlide .25s ease-out;
}
[data-theme="dark"] .channels-modal {
    background: rgba(30,30,30,.95);
    color: #F5F5F7;
}

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

.channels-modal__head {
    text-align: center;
    margin-bottom: 22px;
    position: relative;
}
.channels-modal__title {
    margin: 0; font-size: 19px; font-weight: 600;
    letter-spacing: -.2px;
    color: inherit;
}
.channels-modal__subtitle {
    color: #86868B; font-size: 13px;
    margin: 4px 0 0; font-weight: 400;
}
.channels-modal__close {
    position: absolute; top: -4px; right: -4px;
    background: rgba(120,120,128,.12); border: none;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 15px; cursor: pointer; color: #6E6E73;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; padding: 0;
}
.channels-modal__close:hover { background: rgba(120,120,128,.2); }

.channels-group { margin-bottom: 20px; }
.channels-group:last-child { margin-bottom: 0; }
.channels-group__title {
    font-size: 12px; font-weight: 600;
    color: #86868B; margin: 0 0 10px;
    padding-left: 2px;
    letter-spacing: -.1px;
}
.channels-list {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.channel-pill {
    display: inline-flex; align-items: center;
    padding: 6px 13px; border-radius: 100px;
    background: rgba(120,120,128,.12);
    font-size: 13px; font-weight: 500;
    color: inherit;
    letter-spacing: -.1px;
}
[data-theme="dark"] .channel-pill {
    background: rgba(255,255,255,.1);
}

/* ========================================================================
   Адаптив под смартфон (Apple-стиль ≤767px) — ТЗ #4 от 2026-05-10
   Фикс №3: footer не должен уходить под фиксированный mobile-nav (70px).
   .footer-bottom уже скрыт через mobile-nav.css при body.has-mobile-nav,
   но padding-bottom нужен чтобы последняя строка .footer-cols
   («Онлайн-консультант») не загораживалась.
   ======================================================================== */
@media (max-width: 767px) {
    body.has-mobile-nav .footer {
        padding-bottom: 80px;
    }
}

/* ============================================================
   ВИЗУАЛЬНАЯ ПЕРЕБОРКА ЛЕНДИНГА НА СМАРТФОНЕ — 2026-05-10
   ТЗ: docs/TZ_LANDING_VISUAL_REDESIGN.md
   Hero — отдельно в hero-v3.css. Здесь: Демо-боты, AI, Интеграции,
   24 канала, Footer.
   Принципы: padding секций 32px 16px, H2 22-24px, без <br>, плотно.
   Apple iOS — токены: #F2F2F7 bg, 16/12/8 radius, 44px touch.
   ============================================================ */
@media (max-width: 767px) {
    /* ──────── Блок 2: Демо-боты (#demo-bots, селектор .hero) ──────── */
    .hero {
        padding: 24px 16px 16px;
    }
    .hero .container {
        padding: 0;
    }
    .hero-title {
        font-size: 20px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 10px;
    }
    .hero-title br { display: none; }

    /* Раскладка на мобайле: grid 2 колонки (1fr / auto).
       Слева — аватар по центру растяжимой левой зоны.
       Справа — узкая колонка под пилюли-чипы столбиком, прижаты вправо.
       Под обоими (grid-column: 1/-1) — список возможностей.
       .hero-layout { display: contents } — переносит детей в .hero-block grid. */
    .hero-block {
        padding: 12px;
        border-radius: 16px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 8px;
        align-items: center;
    }
    .hero-layout { display: contents; }
    .hero-avatar-col {
        grid-column: 1;
        grid-row: 1;
        width: 116px;
        margin: 0;
        justify-self: center;
    }
    .hero-avatar {
        width: 116px;
        height: 116px;
    }
    .hero-tabs {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        background: transparent;
        padding: 0;
        margin: 0;
        overflow: visible;
        flex-wrap: nowrap;
        border-radius: 0;
        justify-content: flex-start;
    }
    .hero-tabs::-webkit-scrollbar { display: none; }
    .hero-tabs .tab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 5px 12px;
        min-height: 0;
        border-radius: 999px;
    }
    .hero-info-card {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0;
        margin: 0;
    }
    .hero-capabilities {
        background: #fff;
        border-radius: 12px;
        padding: 0;
        margin-bottom: 8px;
    }
    .hero-capabilities li {
        font-size: 12.5px;
        line-height: 1.2;
        padding: 2px 14px;
    }

    /* Hero-modes (бот / AI описания внутри карточки) */
    .hero-modes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .hero-mode {
        background: #fff;
        border-radius: 10px;
        padding: 8px 10px;
    }
    .hero-mode-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
    .hero-mode--bot .hero-mode-label { color: #007AFF; }
    .hero-mode--ai .hero-mode-label { color: #E53935; }
    .hero-mode-desc { font-size: 11.5px; line-height: 1.35; color: #6e6e73; margin-top: 4px; }

    /* ──────── Блок 3: AI-ассистент (.ai-section--v3) ──────── */
    /* padding: 32px 0 — горизонтальный отступ даёт .container (16px по бокам).
       Иначе ai-promo-block прилипает к краям экрана. */
    .ai-section.ai-section--v3 {
        padding: 32px 0;
    }
    .ai-section--v3 .container {
        padding: 0 16px;
    }
    .ai-section--v3 .section-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    .ai-section--v3 .section-desc {
        font-size: 14px;
        line-height: 1.5;
        margin: 0 auto 18px;
    }
    .ai-section--v3 .section-desc br { display: none; }
    .ai-section--v3 .ai-promo-block {
        padding: 20px 18px;
        margin: 16px auto 0;
        border-radius: 18px;
    }
    /* Текст в карточке — выравнивание по левому краю (это список, не заголовок-обращение).
       align-items: stretch чтобы текстовые элементы заняли 100% ширины и left сработал.
       Кнопка — отдельно по центру через align-self. */
    .ai-section--v3 .ai-promo-content {
        align-items: stretch;
    }
    .ai-section--v3 .ai-promo-heading {
        font-size: 17px;
        margin-bottom: 8px;
        letter-spacing: -0.01em;
        text-align: left;
    }
    .ai-section--v3 .ai-promo-text {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
        text-align: left;
    }
    .ai-section--v3 .ai-promo-features {
        margin: 0 0 14px;
        max-width: none;
    }
    .ai-section--v3 .ai-promo-features li {
        font-size: 13px;
        line-height: 1.45;
        padding: 6px 0;
        gap: 10px;
        align-items: flex-start;
    }
    .ai-section--v3 .ai-feat-icon {
        width: 12px;
        height: 12px;
        padding: 3px;
        margin-top: 2px;
    }
    /* Кнопка «Как подключить» — выравниваем под эталон .btn-demo-cta:
       padding 9×20, radius 10px (десктоп задаёт 10×22 / 8px — перебиваем). */
    .ai-section--v3 .ai-promo-block .btn {
        align-self: center;
        width: 200px;
        padding: 9px 20px;
        font-size: 14px;
        border-radius: var(--radius-sm);
    }

    /* ──────── Блок 4: Интеграции (#integrations) ──────── */
    #integrations.section.section-alt {
        padding: 32px 16px;
    }
    #integrations .container {
        padding: 0;
    }
    #integrations .section-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    #integrations .section-desc {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 14px;
    }
    #integrations .section-title br,
    #integrations .section-desc br { display: none; }

    .int-wrap .int-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding: 2px 16px;
        margin: 0 -16px 14px;
        justify-content: flex-start;
    }
    .int-wrap .int-filters::-webkit-scrollbar { display: none; }
    .int-wrap .int-filter {
        font-size: 12px;
        padding: 6px 12px;
        flex-shrink: 0;
    }

    /* Springboard — на мобайле без зигзага, плотная сетка с подписями */
    .int-grid {
        gap: 10px;
        padding: 8px 0 6px;
    }
    .int-row {
        gap: 10px;
    }
    .int-row:nth-child(even) {
        margin-left: 0;
    }
    .int-circle {
        width: 48px;
        height: 48px;
        font-size: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,.06);
    }
    .int-tooltip {
        width: 200px;
        font-size: 11px;
        padding: 10px 12px;
    }
    /* CTA-кнопка под grid — выравниваем под эталон .btn-demo-cta:
       padding 9×20, radius 10px (десктоп задаёт 8×20 / 8px — перебиваем). */
    .int-cta-row {
        margin: 24px auto 0;
        gap: 10px;
    }
    .int-cta-text { font-size: 13px; }
    .int-cta-btn {
        width: 200px;
        padding: 9px 20px;
        font-size: 14px;
        border-radius: var(--radius-sm);
    }

    /* ──────── FOOTER — 2 колонки (override 1fr из 768px) ──────── */
    .footer {
        padding: 24px 16px;
    }
    .footer .container {
        padding: 0;
    }
    .footer-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
        margin-bottom: 16px;
        align-items: start;
    }
    /* Бренд занимает обе колонки внизу — лого + соцсети + копирайт в строку */
    .footer-brand {
        grid-column: 1 / -1;
        order: 99;
        padding-top: 12px;
        border-top: 1px solid rgba(0,0,0,.06);
        margin-top: 4px;
    }
    .footer-brand .logo {
        display: inline-block;
        margin-bottom: 8px;
    }
    .footer-brand .footer-products {
        margin-top: 4px;
        gap: 4px;
    }
    .footer-product-link {
        font-size: 12px;
    }
    .footer-cols h4 {
        font-size: 12px;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    .footer-cols a {
        font-size: 13px;
        line-height: 1.5;
        padding: 2px 0;
    }
    .footer-bottom {
        padding-top: 12px;
    }
    .footer-bottom-left {
        gap: 10px;
    }
    .footer-bottom-left .social-link {
        width: 32px;
        height: 32px;
    }
    .footer-bottom-right { gap: 10px; }
    .footer-card { height: calc(24px * var(--icon-scale, 1)); }
    .footer-copy { font-size: 11px; color: var(--text-muted); }
}
