/* Outfit покрывает только latin (кириллицы в шрифте нет) — русский текст
   рендерится системным sans-serif, как и раньше. Один вариативный файл на 400-800. */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/outfit-latin-var.woff2') format('woff2');
}

:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #3B82F6;
    --accent: #10B981;
    --bg: #0B0F19; /* Глубокий темный */
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --glass: rgba(15, 23, 42, 0.4); /* Темное стекло */
    --glass-border: rgba(255, 255, 255, 0.05); /* Очень тонкая светлая рамка */
    --container-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3; /* Было 0.6 */
}

/* Client Popup */
.client-popup {
    position: fixed;
    width: 280px;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -120%) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.client-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -120%) scale(1);
}

.client-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* Аватар-инициалы: без внешних картинок, градиент задаёт app.js через CSS-переменные */
.client-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    background: linear-gradient(135deg, var(--avatar-from, var(--primary)), var(--avatar-to, var(--secondary)));
}

.client-info h4 {
    font-size: 1rem;
    margin: 0;
}

.client-info p {
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0;
}

.client-question {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Background Blobs */
.blob-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.blob-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--primary), transparent);
    width: 800px;
    height: 800px;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--secondary), transparent);
    width: 600px;
    height: 600px;
}

/* Interactive Cursor Blob */
.cursor-blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section[id] {
    scroll-margin-top: 7rem;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px; /* Более мягкие углы, было 24px */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

/* Отступ только от картинки: gap на .logo разносил бы и "LTV" со "chat",
   потому что span здесь — тоже флекс-элемент. */
.logo-img {
    margin-right: 0.75rem;
}

.logo span {
    color: var(--primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-icon {
    flex: 0 0 auto;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary); /* Сплошной цвет вместо градиента */
    color: white;
    border: none;
    border-radius: 8px; /* Острые углы */
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: url('dashboard_bg.webp') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    filter: blur(40px);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    margin-right: 6px;
    font-size: 1.2em;
}

.hero h1 {
    font-size: 4rem; /* Увеличить размер */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3); /* Добавить свечение */
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
}

.mockup-panel {
    padding: 1rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.mockup-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-mockup {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.floating-element {
    position: absolute;
    padding: 1rem 1.5rem;
    z-index: 10;
}

.float-1 {
    top: -20px;
    right: -20px;
    animation: float 4s ease-in-out infinite;
}

.float-2 {
    bottom: 20px;
    left: -40px;
    animation: float 4s ease-in-out infinite 2s;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Reveal on scroll (класс снимает app.js через IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-muted);
}

/* Скриншот реального интерфейса под текстом карточки: показываем верх кадра,
   низ уходит под мягкую границу — карточки остаются одной высоты. */
.feature-shot {
    margin-top: 2rem;
    height: 230px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: #0B0F19;
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

/* Кадры показываем крупнее карточки, чтобы подписи в интерфейсе читались:
   лишнее уходит за правый край рамки. */
.feature-shot img {
    display: block;
    width: 145%;
    max-width: none;
    height: auto;
}

/* Вертикальный кадр (лента чатов) уже узкий — помещается целиком по ширине. */
.feature-shot.shot-tall img {
    width: 100%;
}

/* Workflow */
.workflow {
    padding: 8rem 0;
}

.workflow-container {
    padding: 5rem 3.5rem;
}

.workflow-content h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

/* Channels */
.channels {
    padding: 0 0 4rem;
}

.channels-box {
    padding: 2.5rem 3rem;
    text-align: center;
}

.channels-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.channels-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin-bottom: 2rem;
}

.channels-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.channels-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
}

.channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-icon-tg-bot,
.channel-icon-tg-personal {
    color: #229ED9;
    background: rgba(34, 158, 217, 0.1);
    border-color: rgba(34, 158, 217, 0.25);
}

.channels-list li:hover .channel-icon-tg-bot,
.channels-list li:hover .channel-icon-tg-personal {
    background: rgba(34, 158, 217, 0.2);
    border-color: rgba(34, 158, 217, 0.5);
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.35);
}

.channel-icon-max-bot,
.channel-icon-max-personal {
    color: #FF7A00;
    background: rgba(255, 122, 0, 0.1);
    border-color: rgba(255, 122, 0, 0.25);
}

.channels-list li:hover .channel-icon-max-bot,
.channels-list li:hover .channel-icon-max-personal {
    background: rgba(255, 122, 0, 0.2);
    border-color: rgba(255, 122, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.35);
}

.channel-icon-vk-group {
    color: #2787F5;
    background: rgba(39, 135, 245, 0.1);
    border-color: rgba(39, 135, 245, 0.25);
}

.channels-list li:hover .channel-icon-vk-group {
    background: rgba(39, 135, 245, 0.2);
    border-color: rgba(39, 135, 245, 0.5);
    box-shadow: 0 0 20px rgba(39, 135, 245, 0.35);
}

.channel-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.channel-kind {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.channels-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* Comparison */
.comparison {
    padding: 0 0 8rem;
}

.comparison-description {
    max-width: 680px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    text-align: center;
}

.comparison-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 1.25rem;
}

.comparison-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.comparison-group-title {
    margin-bottom: 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.comparison-group-title-product {
    color: var(--primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    flex: 1;
}

.comparison-card {
    padding: 2rem;
    min-width: 0;
}

.comparison-group-product .comparison-card {
    flex: 1;
}

.comparison-card-primary {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.comparison-label {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
}

.comparison-card-primary .comparison-label {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.18);
}

.comparison-card h3 {
    min-height: 3.2rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.comparison-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    list-style: none;
}

.comparison-card li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.comparison-card li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.comparison-card-primary li::before {
    content: "✓";
    color: var(--accent);
}

/* Security */
.security {
    padding: 0 0 8rem;
}

.security-container {
    padding: 5rem 3.5rem;
}

.security-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.security-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.security-intro h2 span {
    color: var(--primary);
}

.security-intro p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.security-item {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
}

.security-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #A78BFA;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.security-item:hover .security-icon {
    transform: scale(1.06);
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.security-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.security-item p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Lead magnet */
.magnet {
    padding: 0 0 8rem;
}

.magnet-box {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    padding: 4rem;
    align-items: center;
}

.magnet-label {
    display: inline-block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.magnet-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.magnet-content h2 span {
    color: var(--primary);
}

.magnet-content > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.magnet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.magnet-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Реальный разворот чеклиста из PDF вместо списка-пересказа. */
.magnet-preview {
    position: relative;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.04);
    cursor: zoom-in;
    overflow: hidden;
}

.magnet-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Бейдж перекрывал заголовок раздела на скрине — показываем только по наведению. */
.magnet-preview .zoom-badge {
    opacity: 0;
}

.magnet-preview:hover .zoom-badge {
    opacity: 0.85;
}

/* Pricing */
.pricing {
    padding: 8rem 0;
}

.pricing-formula {
    max-width: 960px;
    margin: 4rem auto 0;
    padding: 3.5rem;
    text-align: center;
}

.pricing-units {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.pricing-unit {
    min-width: 0;
}

.pricing-unit p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.pricing-plus {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 300;
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.price span {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-owner-note {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 680px;
    margin: 2.5rem auto;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.06);
    text-align: left;
}

.pricing-owner-note > span {
    color: var(--accent);
    font-weight: 800;
}

.pricing-owner-note p {
    color: var(--text-muted);
}

.pricing-owner-note strong {
    color: var(--text);
}

.pricing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* CTA Box */
.cta-section {
    padding: 8rem 0;
}

.cta-box {
    padding: 6rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-row-centered {
    justify-content: center;
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav { display: none; }
    .comparison-groups { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .hero { padding: 9rem 0 6rem; }
    .hero h1 { font-size: 3rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-cta { align-items: center; }
    .hero-image-wrapper { margin-top: 3rem; }
}

@media (max-width: 900px) {
    .magnet-box { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 2rem; }
    .security-container { padding: 4rem 2rem; }
    .channels-box { padding: 2rem 1.5rem; }
    .pricing-formula { padding: 3rem 2rem; }
    .pricing-units { grid-template-columns: 1fr; gap: 1.5rem; }
    .pricing-plus { line-height: 1; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1.0625rem; }
    .features-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .comparison-group-title { font-size: 1.75rem; }
    .comparison-card h3 { min-height: 0; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .cta-row .btn { justify-content: center; }
    .cta-box { padding: 4rem 2rem; }
    .cta-box h2 { font-size: 2.5rem; }
    .footer-container { flex-direction: column; gap: 3rem; }
    .footer-links { gap: 3rem; }
}

@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .header { padding: 1rem 0; }
    .header-actions { gap: 0.5rem; }
    .header-actions .btn { padding: 0.55rem 0.85rem; font-size: 0.875rem; }
    .logo { font-size: 1.25rem; }
    .logo-img { width: 36px; height: 36px; margin-right: 0.55rem; }
    .hero { padding: 8rem 0 5rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero-content p { margin-bottom: 2rem; }
    .section-header { margin-bottom: 3rem; }
    .section-header h2 { font-size: 2.25rem; }
    .features,
    .workflow,
    .pricing,
    .cta-section { padding: 5rem 0; }
    .comparison,
    .security { padding-bottom: 5rem; }
    .workflow-container,
    .security-container,
    .pricing-formula { padding: 2.5rem 1.25rem; }
    .price { font-size: 2.25rem; }
    .pricing-actions { align-items: stretch; flex-direction: column; }
    .pricing-actions .btn { width: 100%; }
    .floating-element { display: none; }
    .cta-box { padding: 3rem 1.25rem; }
    .cta-box h2 { font-size: 2.1rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
}

/* --- Новые стили улучшений лендинга --- */

/* Hero Trust Badges (Пункт 7) */
.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.trust-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Feature Shot Lightbox Zoom Hint (Пункт 6) */
.feature-shot[data-zoomable] {
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.feature-shot[data-zoomable]:hover {
    border-color: var(--primary);
}

.zoom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.75rem;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.85;
    transition: all 0.3s ease;
    pointer-events: none;
}

.feature-shot[data-zoomable]:hover .zoom-badge {
    opacity: 1;
    background: var(--primary);
    border-color: var(--primary);
}

/* Lightbox Modal (Пункт 6) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(12px);
}

.lightbox-box {
    position: relative;
    z-index: 3001;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-box {
    transform: scale(1);
}

.lightbox-box img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-caption {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-align: center;
}

/* Pricing Calculator (Пункт 1) */
.pricing-calculator {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 3rem;
}

.pricing-calculator h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.calc-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.12);
    padding: 0.2rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.calc-slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calc-step {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--primary);
    font-size: 1.125rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.calc-step:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: scale(1.08);
}

.calc-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.calc-field input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-result {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.calc-result-text {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.calc-result-text strong {
    font-size: 2.25rem;
    color: var(--accent);
    margin: 0 0.4rem;
    white-space: nowrap;
}

.calc-result-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.calc-result-price {
    white-space: nowrap;
}

.calc-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Sticky CTA Bar (Пункт 4) */
.sticky-cta-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 0.85rem 0;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

.sticky-cta-bar.visible {
    bottom: 0;
}

.sticky-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-cta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sticky-cta-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.sticky-cta-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sticky-cta-actions {
    display: flex;
    gap: 0.75rem;
}

/* Staggered Scroll Reveal (Пункт 9) */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.45s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.55s; }
.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .calc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pricing-calculator { padding: 2rem 1.25rem; }
    /* «Итоговая стоимость:» отдельной строкой, сумма с «₽» и «/ месяц» — ниже целиком. */
    .calc-result-label { display: block; }
    .calc-result-text strong { margin: 0 0.25rem 0 0; }
    .sticky-cta-desc { display: none; }
    .sticky-cta-actions { gap: 0.5rem; }
    .sticky-cta-actions .btn-small { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
}

/* На узких экранах бренд не влезает рядом с двумя кнопками — прячем его,
   иначе кнопки переносятся в две строки и наезжают на логотип. */
@media (max-width: 560px) {
    .sticky-cta-brand { display: none; }
    .sticky-cta-container { justify-content: center; }
    .sticky-cta-actions .btn-small { white-space: nowrap; }
    .hero-trust-badges { justify-content: center; }
}

/* ==========================================
   Horizontal Panoramic Carousel (Option 6)
   ========================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}

.carousel-track-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 1rem 0.5rem 2rem 0.5rem;
}

.carousel-track-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.carousel-track {
    display: flex !important;
    gap: 1.75rem !important;
    grid-template-columns: none !important;
}

/* Только каналы центрируем: min-content здесь безопасен, потому что слайды
   имеют фиксированную ширину. На остальных каруселях слайды заданы в % —
   min-content раздул бы их до ширины всего трека. */
.channels .carousel-track {
    justify-content: center;
    min-width: min-content;
}

.carousel-slide {
    flex: 0 0 75%;
    max-width: 820px;
    scroll-snap-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    position: relative;
}

.slide-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -20px;
}

.carousel-btn-next {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 100px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Стилизация слайдов Workflow в карусели */
.workflow .step.carousel-slide {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.workflow .step-number {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1.25rem;
}

/* Стилизация слайдов Channels в карусели */
.channels .channel-slide {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.5rem;
}

/* Стилизация слайдов Security в карусели */
.security-grid.carousel-track {
    grid-template-columns: none !important;
}

.security-item.carousel-slide {
    flex: 0 0 320px;
    max-width: 380px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Адаптив для слайдов карусели */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 88%;
    }
    .channels .channel-slide {
        flex: 0 0 260px;
    }
    .security-item.carousel-slide {
        flex: 0 0 290px;
    }
    .carousel-btn-prev { left: 0px; }
    .carousel-btn-next { right: 0px; }
}

@media (max-width: 576px) {
    .carousel-slide {
        flex: 0 0 95%;
    }
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
}


