/* =====================================================================
   maxmanual.ru — мануалы по установке мессенджера Макс.
   Стили: светлая тема по умолчанию + автоматическая тёмная (prefers-color-scheme).
   ===================================================================== */

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

html { scroll-behavior: smooth; }

:root {
    --font: 'Max Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Light tokens */
    --sign-primary: #272727;
    --sign-secondary: #49494b;
    --sign-tertiary: #8b8b8b;
    --sign-button: #ffffff;

    --bg-ground: #f8f8f8;
    --bg-object-primary: #ebebeb;
    --bg-object-secondary: #ffffff;
    --bg-top-bar-glass: rgba(255, 255, 255, 0.82);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-surface: #ffffff;

    --btn-fill-1: #5340ff;
    --btn-fill-2: #b821ff;
    --btn-hover-1: #00d2ff;
    --btn-hover-2: #6b6cff;
    --btn-hover-3: #ff5fcb;
    --btn-secondary-bg: #ececf6;
    --btn-danger: #ff334d;

    --grad-text-1: #6b6cff;
    --grad-text-2: #43d6ff;
    --grad-text-3: #ff5fcb;

    --gb-color-1: #b478ff;
    --gb-color-2: #6b6cff;
    --gb-color-3: #43d6ff;
    --gb-color-4: #ff5fcb;

    --neon-1: #6b6cff;
    --neon-2: #b821ff;
    --neon-3: #ff5fcb;
    --neon-4: #43d6ff;

    --divider: rgba(12, 13, 14, 0.16);
    --shadow-soft: 0 40px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 20px 40px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);

    --radius-s: 12px;
    --radius-m: 16px;
    --radius-l: 20px;
    --radius-xl: 28px;
    --radius-xxl: 32px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --sign-primary: #ffffff;
        --sign-secondary: #c3c3c3;
        --sign-tertiary: #b5b5b5;
        --sign-button: #ffffff;

        --bg-ground: #0d0d0d;
        --bg-object-primary: #1f1f23;
        --bg-object-secondary: #181818;
        --bg-top-bar-glass: rgba(40, 29, 57, 0.7);
        --bg-glass: rgba(13, 13, 13, 0.8);
        --bg-surface: #17181c;

        --btn-secondary-bg: #2f2f33;
        --divider: rgba(255, 255, 255, 0.12);

        --gb-color-1: #b478ff;
        --gb-color-2: #6b6cff;
        --gb-color-3: #43d6ff;
        --gb-color-4: #ff5fcb;

        --shadow-soft: 0 40px 25px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.4);
        --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .feature-card,
    .requirement-card,
    .review-card,
    .panel,
    .manual-card,
    .manual-block,
    .manual-info-card,
    .manual-problems .faq-item,
    .manuals-cta .btn-primary,
    .manuals-cta .download-btn,
    .manuals-cta .btn-secondary {
        background: linear-gradient(145deg, rgba(34, 34, 42, 0.78), rgba(20, 20, 28, 0.54));
        border-color: rgba(180, 120, 255, 0.28);
        box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .manual-step-body,
    .manual-list li,
    .requirement-list li {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(180, 120, 255, 0.20);
    }

    .manual-tip {
        background: linear-gradient(135deg, rgba(67, 214, 255, 0.12), rgba(255, 95, 203, 0.10));
        border-color: rgba(180, 120, 255, 0.30);
    }

    .manual-step-num,
    .manual-card-icon {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(180, 120, 255, 0.24);
    }
}

body {
    font-family: var(--font);
    background: var(--bg-ground);
    color: var(--sign-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

body.manual-page {
    background:
        radial-gradient(circle at 15% 0%, rgba(67, 214, 255, 0.16), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(255, 95, 203, 0.14), transparent 32%),
        linear-gradient(135deg, #0d0d1f 0%, #171735 46%, #111122 100%);
    color: #fff;
}

.manual-page .page-main,
.manual-page .manual-section,
.manual-page .manuals-section,
.manual-page .manuals-faq,
.manual-page .seo-section {
    background: transparent;
}

.manual-page .section-title,
.manual-page .manual-title {
    color: #fff;
}

.manual-page .section-subtitle,
.manual-page .manual-meta {
    color: rgba(255, 255, 255, 0.76);
}

.manual-page .footer,
.manual-page .panel,
.manual-page .faq-item {
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.88), rgba(42, 42, 85, 0.66));
    border-color: rgba(180, 120, 255, 0.28);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.manual-page .faq-question,
.manual-page .panel-title,
.manual-page .footer-logo,
.manual-page .footer-links h4 {
    color: #fff;
}

.manual-page .faq-answer,
.manual-page .footer-copy,
.manual-page .footer-links a,
.manual-page .form-hint {
    color: rgba(255, 255, 255, 0.72);
}

.manual-page .footer-links a:hover {
    color: #43d6ff;
}

.manual-page .breadcrumbs {
    padding: 0 0 18px;
    margin: -6px 0 0;
}

.manual-page .breadcrumbs .container {
    max-width: 980px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(180, 120, 255, 0.34);
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.88), rgba(42, 42, 85, 0.68));
    box-shadow: 0 14px 32px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.manual-page .breadcrumbs a,
.manual-page .breadcrumbs span {
    color: rgba(255, 255, 255, 0.78);
    font: 600 0.92rem/1.25 var(--font);
    text-decoration: none;
}

.manual-page .breadcrumbs a:hover {
    color: #43d6ff;
}

.manual-page .breadcrumbs .bc-sep {
    color: rgba(255, 255, 255, 0.42);
}

img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 790px) {
    .container { padding: 0 16px; }
}

/* ===== Анимированные градиентные «орбы» фона ===== */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Контейнер-орб: внутри 4 элемента (см. HTML), весь блюрится */
.gradient-sphere {
    position: absolute;
    --size: 520px;
    width: var(--size);
    height: var(--size);
    max-width: 90vw;
    aspect-ratio: 1;
    filter: blur(calc(var(--size) / 3));
    transform-origin: center;
    animation: orbScale 24s linear infinite;
}

.gradient-sphere .orb-el {
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    animation: orbRotate 12s linear infinite;
}

.gradient-sphere .orb-el:nth-child(1) {
    background: var(--gb-color-1);
    top: 25%; left: 0;
    transform-origin: right center;
}
.gradient-sphere .orb-el:nth-child(2) {
    background: var(--gb-color-2);
    top: 50%; left: 25%;
    transform-origin: center top;
}
.gradient-sphere .orb-el:nth-child(3) {
    background: var(--gb-color-3);
    top: 25%; left: 50%;
    transform-origin: left center;
}
.gradient-sphere .orb-el:nth-child(4) {
    background: var(--gb-color-4);
    top: 0; left: 25%;
    transform-origin: center bottom;
}

@keyframes orbScale {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(.85); }
}

@keyframes orbRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sphere-1 { top: -180px; left: -160px; --size: 620px; }
.sphere-2 { top: 40%;    right: -200px; --size: 520px; }
.sphere-3 { bottom: -200px; left: 25%;  --size: 480px; }

/* Старый maxlogo-bg больше не используется, но классу
   оставим скрытое состояние, чтобы не было видимых артефактов. */
.maxlogo-bg { display: none; }

/* ===== Шапка (glass, rounded 32px, fixed) ===== */
.header {
    position: fixed;
    top: 16px;
    left: 40px;
    right: 40px;
    z-index: 100;
    max-width: 1260px;
    margin: 0 auto;
    border-radius: var(--radius-xxl);
    background: var(--bg-top-bar-glass);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    transition: top .25s ease, border-radius .25s ease;
}

.header.scrolled {
    top: 8px;
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 78px;
    padding: 0 32px;
    gap: 32px;
    font: 500 16px/1.4 var(--font);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sign-primary);
}

.logo-icon { display: inline-flex; align-items: center; justify-content: center; }

.logo-icon-img {
    width: 38px;
    height: 38px;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 6px 18px rgba(22, 31, 138, 0.18));
}

.logo-text {
    background: linear-gradient(96deg, var(--grad-text-1) 0%, var(--grad-text-2) 50%, var(--grad-text-3) 99.6%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--sign-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sign-primary);
}

.nav-link-download {
    background: linear-gradient(96deg, var(--grad-text-1), var(--grad-text-2) 50%, var(--grad-text-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.nav-link-download:hover { opacity: .85; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--sign-primary);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--sign-primary);
    border-radius: 3px;
    transition: transform .3s ease, opacity .3s ease;
}

.profile-fab {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--divider);
    background: var(--bg-object-secondary);
    color: var(--sign-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    justify-self: end;
}

.profile-fab:hover {
    transform: translateY(-1px);
    border-color: var(--grad-text-1);
    box-shadow: 0 14px 40px rgba(22, 31, 138, 0.18);
}

.profile-fab-icon {
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: auto 36%;
    gap: 24px;
    align-items: center;
    color: var(--sign-primary);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-title {
    font: 500 72px/1 var(--font);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--grad-text-1) -16%, var(--grad-text-2) 16%, var(--grad-text-3) 76%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font: 400 26px/1.3 var(--font);
    color: var(--sign-secondary);
    max-width: 600px;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    height: 60px;
    border-radius: var(--radius-l);
    font: 500 22px/1.3 var(--font);
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    border: 0;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-fill-1) 0%, var(--btn-fill-2) 100%);
    color: var(--sign-button);
    box-shadow: 0 18px 40px rgba(22, 31, 138, 0.22);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1;
    background: linear-gradient(97deg, var(--btn-hover-1), var(--btn-hover-2) 44%, var(--btn-hover-3) 70%);
    transition: opacity .15s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(22, 31, 138, 0.28);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--sign-primary);
}

.btn-secondary:hover {
    background: var(--bg-object-primary);
}

.btn-icon { font-size: 1.1em; line-height: 1; }

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    display: block;
    font: 700 2.4rem/1 var(--font);
    background: linear-gradient(90deg, var(--grad-text-1), var(--grad-text-3));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--sign-tertiary);
}

/* Макет телефона */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 322px;
    aspect-ratio: 322 / 660;
    background: linear-gradient(180deg, #1f1f23 0%, #0d0d0d 100%);
    border-radius: 40px;
    padding: 11px;
    box-shadow:
        0 40px 80px rgba(15, 23, 42, 0.22),
        0 10px 22px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1e3f 0%, #2d2d5a 100%);
    border-radius: 30px;
    overflow: hidden;
}

.max-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.max-illustration-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 26px;
}

.max-illustration-svg { width: 100%; height: 100%; display: block; }

/* legacy chat preview (на случай старой разметки) */
.chat-preview { height: 100%; display: flex; flex-direction: column; }
.chat-header-preview {
    display: flex; align-items: center; gap: 10px; padding: 14px;
    background: rgba(22, 31, 138, 0.12);
}
.chat-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--btn-fill-1) 0%, var(--btn-fill-2) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}
.chat-messages { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 0.9rem; }
.message.received { background: var(--bg-object-primary); color: var(--sign-primary); align-self: flex-start; }
.message.sent {
    background: linear-gradient(135deg, var(--btn-fill-1) 0%, var(--btn-fill-2) 100%);
    color: #fff;
    align-self: flex-end;
}

/* ===== Секции ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font: 500 56px/1 var(--font);
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: var(--sign-primary);
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--sign-secondary);
    font: 400 22px/1.4 var(--font);
    margin-bottom: 56px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Карточки-фичи ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card,
.requirement-card,
.review-card,
.panel {
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: var(--shadow-card);
}

.feature-card { text-align: center; }

.feature-card:hover,
.requirement-card:hover,
.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(90, 140, 255, 0.4);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.10), 0 8px 20px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-card h3 {
    font: 600 1.15rem/1.3 var(--font);
    margin-bottom: 8px;
    color: var(--sign-primary);
}

.feature-card p {
    color: var(--sign-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ===== Системные требования ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.requirement-icon { font-size: 2.2rem; margin-bottom: 12px; line-height: 1; }

.requirement-card h3 {
    font: 600 1.2rem/1.3 var(--font);
    margin-bottom: 18px;
    color: var(--sign-primary);
}

.requirement-list { list-style: none; }

.requirement-list li {
    padding: 10px 0;
    color: var(--sign-secondary);
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.96rem;
}

.requirement-list li::before {
    content: '✓';
    color: var(--btn-hover-2);
    font-weight: 700;
}

.requirement-list li:last-child { border-bottom: 0; }

/* ===== Скриншоты-слайдер ===== */
.screenshots-slider {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.screenshots-container {
    display: flex;
    gap: 30px;
    overflow: hidden;
    max-width: 720px;
    justify-content: center;
}

.screenshot-item {
    text-align: center;
    opacity: 0.4;
    transform: scale(0.9);
    transition: opacity .5s ease, transform .5s ease;
    display: none;
}

.screenshot-item.active {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.screenshot-mockup {
    width: 260px;
    height: 480px;
    background: linear-gradient(180deg, #1f1f23 0%, #0d0d0d 100%);
    border-radius: 36px;
    padding: 12px;
    margin: 0 auto 20px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}

.screenshot-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ebebeb 0%, #f8f8f8 100%);
    color: #272727;
    border-radius: 26px;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.screenshot-caption {
    color: var(--sign-secondary);
    font-size: 1rem;
    margin-top: 8px;
}

.slider-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    color: var(--sign-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    box-shadow: var(--shadow-card);
}

.slider-btn:hover {
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--divider);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, width .2s ease;
}

.slider-dot.active {
    background: linear-gradient(90deg, var(--grad-text-1), var(--grad-text-3));
    width: 28px;
    border-radius: 999px;
}

/* ===== Внутри экрана-скриншота ===== */
.ss-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px;
    background: linear-gradient(180deg, rgba(22,31,138,0.08), transparent);
    border-radius: 14px 14px 0 0;
    color: #272727;
}

.ss-back, .ss-call { font-size: 1.2rem; }

.ss-user { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #272727; }

.ss-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600;
}

.ss-avatar.blue   { background: linear-gradient(135deg, #4facfe 0%, #00a3ff 100%); }
.ss-avatar.green  { background: linear-gradient(135deg, #43e97b 0%, #2bc48a 100%); }
.ss-avatar.purple { background: linear-gradient(135deg, #a26bff 0%, #6c4cff 100%); }

.ss-messages { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.ss-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.78rem;
}

.ss-msg.received {
    background: #ffffff;
    color: #272727;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.ss-msg.sent {
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    align-self: flex-end;
}

.ss-input {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    color: #8b8b8b;
    margin: 8px 8px 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.ss-header-main {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 12px;
    color: #272727;
}

.ss-title { font-size: 1.05rem; font-weight: 700; }
.ss-search { font-size: 1.1rem; }

.ss-chat-list { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; }

.ss-chat-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    color: #272727;
}

.ss-chat-info { flex: 1; display: flex; flex-direction: column; }
.ss-name { font-size: 0.85rem; font-weight: 600; }
.ss-preview { font-size: 0.72rem; color: #8b8b8b; }
.ss-time { font-size: 0.7rem; color: #8b8b8b; }

.video-call {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #14133a 0%, #060814 100%) !important;
    color: #ffffff;
}

.ss-video-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ss-video-avatar { font-size: 4rem; margin-bottom: 10px; }
.ss-video-name { font-size: 0.95rem; color: #fff; }

.ss-video-self {
    position: absolute; bottom: 90px; right: 16px;
    width: 56px; height: 80px;
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
}

.ss-video-controls { display: flex; gap: 18px; padding: 18px; }

.ss-control {
    width: 46px; height: 46px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    backdrop-filter: blur(6px);
}

.ss-control.end { background: #ff303c; }

.ss-settings-list { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }

.ss-setting-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #272727;
}

.ss-toggle {
    width: 40px; height: 22px;
    background: #d8d8d8;
    border-radius: 11px;
    position: relative;
}

.ss-toggle::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: left .25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.ss-toggle.on { background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2)); }
.ss-toggle.on::after { left: 20px; }

/* ===== Отзывы ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}

.review-avatar {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700;
}

.review-info h4 {
    font: 600 1.05rem/1.3 var(--font);
    margin-bottom: 4px;
    color: var(--sign-primary);
}

.review-stars { color: #f5b500; font-size: 0.95rem; }

.review-text {
    color: var(--sign-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Скачать (главная download-секция) ===== */
.download {
    position: relative;
    padding: 100px 0 120px;
}

.download::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; width: 70%; height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
}

.download-category {
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xxl);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.download-category h3 {
    font: 600 1.4rem/1.2 var(--font);
    margin-bottom: 20px;
    text-align: center;
    color: var(--sign-primary);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--sign-primary);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
}

.download-btn:hover {
    background: var(--bg-object-secondary);
    border-color: var(--grad-text-1);
    box-shadow: 0 18px 32px rgba(22, 31, 138, 0.12);
    transform: translateX(6px);
}

.download-btn:active { transform: translateX(2px); }

/* Hover-стиль кнопки Windows — выделяем "первичной" градиентной кнопкой */
.download-btn.windows {
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-color: transparent;
}

.download-btn.windows .download-size { color: rgba(255,255,255,0.7); }

.download-btn.windows:hover {
    background: linear-gradient(97deg, var(--btn-hover-1), var(--btn-hover-2) 44%, var(--btn-hover-3) 70%);
    box-shadow: 0 22px 40px rgba(22, 31, 138, 0.25);
}

.download-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-banner {
    width: 100%;
    margin-top: 12px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

.download-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

.download-platform {
    font-size: 1.05rem;
    font-weight: 600;
}

.download-size {
    font-size: 0.9rem;
    color: var(--sign-tertiary);
}

.download-note {
    text-align: center;
    margin-top: 36px;
    padding: 18px 22px;
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
}

.download-note p {
    font-size: 1.05rem;
    color: var(--sign-secondary);
}

/* ===== О мессенджере ===== */
.about-max {
    padding: 100px 0;
    background: var(--bg-object-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--sign-secondary);
    margin-bottom: 18px;
}

/* ===== Аккаунт + Сообщество ===== */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel:hover { border-color: rgba(90, 140, 255, 0.4); }

.panel-title {
    font: 700 1.15rem/1.3 var(--font);
    margin-bottom: 14px;
    color: var(--sign-primary);
}

/* ===== Формы ===== */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }

.field-label {
    color: var(--sign-secondary);
    font-size: 0.95rem;
}

.checkbox-field {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin: 6px 0;
}

.checkbox {
    margin-top: 2px;
    min-width: 16px;
    height: 16px;
    accent-color: var(--btn-fill-1);
}

.checkbox-label {
    color: var(--sign-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.checkbox-label a {
    color: var(--btn-hover-2);
    text-decoration: none;
}
.checkbox-label a:hover { text-decoration: underline; }

.input,
.textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-m);
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    color: var(--sign-primary);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    font: 400 1rem/1.4 var(--font);
}

.textarea { resize: vertical; min-height: 120px; }

.input:focus,
.textarea:focus {
    border-color: var(--btn-hover-2);
    box-shadow: 0 0 0 4px rgba(4, 110, 244, 0.15);
    background: var(--bg-object-secondary);
}

.form-btn {
    width: 100%;
    justify-content: center;
    height: 54px;
    font-size: 1.05rem;
}

.form-hint {
    min-height: 20px;
    font-size: 0.92rem;
    color: var(--sign-tertiary);
}

.form-hint.ok { color: #16a34a; }
.form-hint.err { color: var(--btn-danger); }

.profile { display: flex; flex-direction: column; gap: 10px; }

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    border-radius: var(--radius-m);
}

.profile-label { color: var(--sign-tertiary); }
.profile-value { font-weight: 600; text-align: right; color: var(--sign-primary); }

.profile-fab-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.profile-fab-icon svg { display: block; }

.admin { margin-top: 30px; }

.comment-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.admin-head {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-btn { padding: 10px 16px; height: 44px; font-size: 0.95rem; }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.admin-item {
    padding: 14px;
    border-radius: var(--radius-m);
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid var(--divider);
    background: var(--bg-object-secondary);
    color: var(--sign-tertiary);
}

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-small {
    height: auto;
    padding: 10px 16px;
    border-radius: var(--radius-s);
    font: 600 0.95rem/1 var(--font);
}

.btn-danger {
    background: rgba(255, 48, 60, 0.12);
    border: 1px solid rgba(255, 48, 60, 0.3);
    color: var(--btn-danger);
}

.btn-danger:hover {
    background: rgba(255, 48, 60, 0.18);
    color: var(--btn-danger);
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}

.comment {
    padding: 16px;
    border-radius: var(--radius-m);
    background: var(--bg-ground);
    border: 1px solid var(--divider);
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.comment-title { font-weight: 700; color: var(--sign-primary); }
.comment-meta { color: var(--sign-tertiary); font-size: 0.85rem; }
.comment-text { color: var(--sign-secondary); line-height: 1.65; }

/* ===== Модальные окна ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal.open {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-dialog {
    position: relative;
    width: min(1100px, calc(100% - 28px));
    margin: 90px auto 30px;
    border-radius: var(--radius-xxl);
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.30);
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-object-secondary);
    border-bottom: 1px solid var(--divider);
}

.modal-title {
    font: 700 1.25rem/1.3 var(--font);
    color: var(--sign-primary);
}

.modal-close {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-m);
    border: 1px solid var(--divider);
    background: var(--bg-ground);
    color: var(--sign-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: border-color .2s ease, transform .2s ease;
}

.modal-close:hover {
    border-color: var(--btn-fill-1);
    transform: rotate(90deg);
}

.modal-body { padding: 24px; }

.modal-install .modal-overlay {
    background: rgba(13, 13, 13, 0.5);
    backdrop-filter: blur(10px);
}

.install-dialog {
    width: min(680px, calc(100% - 32px));
    margin: 80px auto 40px;
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xxl);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.30);
}

.install-head { background: var(--bg-object-secondary); }

.install-head .modal-title {
    font: 700 1.3rem/1.3 var(--font);
    color: var(--sign-primary);
}

.install-body {
    padding: 28px;
    color: var(--sign-secondary);
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.install-step {
    padding: 16px 18px;
    border-radius: var(--radius-m);
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    color: var(--sign-primary);
    line-height: 1.6;
    font-size: 0.98rem;
}

.install-step span {
    font-weight: 600;
    color: var(--btn-fill-1);
}

.install-step strong {
    color: var(--btn-hover-2);
    margin-right: 4px;
}

.install-step-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.10), rgba(16, 185, 129, 0.10));
    border-color: rgba(22, 163, 74, 0.30);
}

.install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.install-action {
    min-width: 240px;
    text-align: center;
    font-size: 1.05rem;
    height: 54px;
    padding: 14px 26px;
}

.install-note {
    text-align: center;
    color: var(--sign-tertiary);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .install-body { padding: 22px 18px; }
    .install-step { font-size: 0.94rem; }
    .install-action { width: 100%; }
}

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

/* ===== FAQ (отдельная страница) ===== */
.faq-page { padding-top: 90px; }

.faq-hero { padding: 140px 0 40px; }

.faq-title {
    font: 600 56px/1.05 var(--font);
    text-align: center;
    margin-bottom: 10px;
    color: var(--sign-primary);
}

.faq-subtitle {
    text-align: center;
    color: var(--sign-secondary);
    font-size: 1.1rem;
}

.faq-section { padding: 40px 0 100px; }

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    border-radius: var(--radius-l);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-card);
}

.faq-item[open] {
    border-color: rgba(90, 140, 255, 0.45);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font: 600 1.05rem/1.4 var(--font);
    color: var(--sign-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    width: 32px;
    height: 32px;
    border-radius: var(--radius-s);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    flex: 0 0 auto;
    transition: transform 0.25s ease;
    font-size: 1.1rem;
    color: var(--sign-primary);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-color: transparent;
}

.faq-answer {
    padding: 0 24px 22px;
    color: var(--sign-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-back {
    max-width: 900px;
    margin: 30px auto 0;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Футер ===== */
.footer {
    background: var(--bg-object-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--divider);
    color: var(--sign-tertiary);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand .logo-icon { font-size: 2.5rem; }

.footer-brand .logo-icon-img {
    width: 46px;
    height: 46px;
}

.footer-brand .logo-text { font-size: 1.6rem; }

.footer-brand p {
    color: var(--sign-tertiary);
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.footer-links h4 {
    font: 700 1.05rem/1.3 var(--font);
    margin-bottom: 18px;
    color: var(--sign-primary);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--sign-tertiary);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a:hover { color: var(--sign-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid var(--divider);
    color: var(--sign-tertiary);
    font-size: 0.92rem;
}

/* ===== Инструкция скачивания (модалка) ===== */
.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dl-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    border-radius: var(--radius-m);
}

.dl-step-num {
    flex: 0 0 40px;
    height: 40px;
    border-radius: var(--radius-s);
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.dl-step-content { flex: 1; }

.dl-step-content h4 {
    font: 600 1.05rem/1.3 var(--font);
    color: var(--sign-primary);
    margin-bottom: 6px;
}

.dl-step-content p {
    color: var(--sign-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.dl-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.dl-yandex-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    height: 48px;
    border-radius: var(--radius-m);
    font: 600 0.98rem/1 var(--font);
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #fc3f1d 0%, #ff6b4a 100%);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    border: 0;
}

.dl-yandex-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(252, 63, 29, 0.35);
}

.dl-success {
    padding: 22px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(16, 185, 129, 0.10));
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: var(--radius-m);
    text-align: center;
}

.dl-success h4 {
    color: #16a34a;
    margin-bottom: 8px;
    font: 700 1.1rem/1.3 var(--font);
}

.dl-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 26px;
    height: 50px;
    border-radius: var(--radius-m);
    font: 600 1rem/1 var(--font);
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    border: 0;
}

.dl-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(22, 31, 138, 0.30);
}

.dl-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 193, 7, 0.12));
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: var(--radius-m);
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--sign-primary);
}

.dl-notice-icon { font-size: 1.4rem; flex-shrink: 0; }

.dl-site-url {
    margin-top: 10px;
    padding: 12px 16px;
    background: var(--bg-object-secondary);
    border: 1px dashed rgba(22, 31, 138, 0.45);
    border-radius: var(--radius-s);
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9rem;
    color: var(--btn-fill-1);
    cursor: pointer;
    word-break: break-all;
    transition: background .2s ease, border-color .2s ease;
    user-select: all;
}

.dl-site-url:hover {
    background: rgba(22, 31, 138, 0.06);
    border-color: var(--btn-fill-1);
    border-style: solid;
}

.dl-copy-hint {
    display: block;
    margin-top: 6px;
    font-family: var(--font);
    font-size: 0.8rem;
    color: var(--sign-tertiary);
}

/* ===== Адаптивность ===== */
@media (max-width: 1160px) {
    .header { left: 16px; right: 16px; border-radius: var(--radius-xl); }
    .nav { height: 68px; padding: 0 20px; gap: 20px; }
    .logo-icon-img { width: 34px; height: 34px; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 56px; }
    .hero-subtitle { font-size: 22px; }
    .section-title { font-size: 44px; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .requirements-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 1060px) {
    .hero-title { font-size: 48px; }
    .section-title { font-size: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .btn { height: 52px; font-size: 1.15rem; padding: 10px 22px; }
    .form-btn, .install-action { height: 50px; }
}

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { align-items: center; }
    .hero-subtitle { max-width: 600px; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
    .phone-mockup { max-width: 280px; }
    .download-grid { grid-template-columns: 1fr; }
    .download-banner { max-width: 420px; margin: 12px auto 0; }
    .community-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 790px) {
    .header { top: 10px; left: 12px; right: 12px; border-radius: 24px; }
    .nav { grid-template-columns: 1fr auto auto; gap: 12px; padding: 0 16px; }
    .nav-menu {
        position: fixed;
        top: 78px; left: 12px; right: 12px;
        flex-direction: column;
        background: var(--bg-object-secondary);
        border: 1px solid var(--divider);
        border-radius: var(--radius-xl);
        padding: 24px;
        gap: 18px;
        transform: translateY(-150%);
        transition: transform .3s ease, opacity .3s ease;
        box-shadow: var(--shadow-soft);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .profile-fab { width: 42px; height: 42px; border-radius: 14px; }
    .hero { padding: 110px 0 40px; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 18px; }
    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 17px; margin-bottom: 36px; }
    section { padding: 70px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .footer-brand { align-items: center; }
    .footer-brand p { max-width: 100%; }
    .modal-dialog { margin: 80px 8px 20px; border-radius: var(--radius-xl); }
    .modal-body { padding: 16px; }
    .modal-grid { grid-template-columns: 1fr; }
    .comments { max-height: 360px; }
    .faq-title { font-size: 36px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 28px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .btn { font-size: 1rem; padding: 10px 20px; height: 48px; }
    .screenshot-mockup { width: 220px; height: 420px; }
    .slider-btn { width: 44px; height: 44px; }
    .download-category { padding: 22px; }
    .download-btn { padding: 14px 18px; }
}

/* ============================================================
   ===== Новые секции (приоритет в каскаде) =====
   ============================================================ */

.page-main {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1260px;
    padding: 0 32px 32px;
    position: relative;
    z-index: 1;
}

.logoLink { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.nav-actions { display: flex; gap: 12px; align-items: center; justify-self: end; }

/* ===== First screen ===== */
.firstScreen {
    padding: 130px 0 60px;
    position: relative;
}

.firstScreen-grid {
    display: grid;
    grid-template-columns: 1fr 38%;
    gap: 24px;
    align-items: center;
    max-width: 100%;
    padding: 0;
}

.firstScreen-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.firstScreen-heading {
    font: 600 72px/1.02 var(--font);
    letter-spacing: -0.015em;
    color: var(--sign-primary);
    margin: 0;
}

.title-gradient {
    background: linear-gradient(90deg, var(--grad-text-1) -10%, var(--grad-text-2) 30%, var(--grad-text-3) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.firstScreen-description {
    font: 400 24px/1.35 var(--font);
    color: var(--sign-secondary);
    max-width: 620px;
    margin: 0;
}

/* Store-badges */
.firstScreen-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    height: 56px;
    border-radius: 16px;
    background: #0d0d0d;
    color: #fff;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    font-family: inherit;
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.20);
    background: #1f1f23;
}

.store-badge-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1;
}

.store-badge-text small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.store-badge-text strong {
    font-size: 1.05rem;
    font-weight: 600;
}

.store-badge.store-desktop {
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
}

.store-badge.store-desktop:hover {
    background: linear-gradient(97deg, var(--btn-hover-1), var(--btn-hover-2) 44%, var(--btn-hover-3) 70%);
}

/* Phone with video (макет телефона с воспроизводящимся видео) */
.firstScreen-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phoneVideoWrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 360px;
}

.orb-bg {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 460px;
    height: 460px;
    max-width: 90%;
    aspect-ratio: 1;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: orbScale 24s linear infinite;
}

.orb-bg.sm { width: 320px; height: 320px; filter: blur(55px); }
.orb-bg.lg { width: 700px; height: 700px; filter: blur(120px); }

.orb-bg .orb-el {
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    animation: orbRotate 14s linear infinite;
}

.orb-bg .orb-el:nth-child(1) { background: var(--gb-color-1); top: 25%; left: 0; transform-origin: right center; }
.orb-bg .orb-el:nth-child(2) { background: var(--gb-color-2); top: 50%; left: 25%; transform-origin: center top; }
.orb-bg .orb-el:nth-child(3) { background: var(--gb-color-3); top: 25%; left: 50%; transform-origin: left center; }
.orb-bg .orb-el:nth-child(4) { background: var(--gb-color-4); top: 0; left: 25%; transform-origin: center bottom; }

/* Контейнер с phone-body PNG и видео внутри */
.phone-with-video {
    position: relative;
    width: 100%;
    max-width: 322px;
    aspect-ratio: 322 / 660;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.phone-with-video.sm { max-width: 240px; }

.phone-body {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
    /* Если phone-body.png не загрузится — fallback на CSS-рамку */
    background: transparent;
}

/* Fallback CSS-рамка, если хост-картинки нет */
.phone-with-video::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 38px;
    border: 12px solid #0d0d0d;
    background: transparent;
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.22),
        0 10px 22px rgba(15, 23, 42, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 0;
    pointer-events: none;
}

.phone-with-video .phone-video {
    position: absolute;
    top: 2.2%;
    left: 5%;
    width: 90%;
    height: 95.6%;
    border-radius: 8% / 4%;
    object-fit: cover;
    z-index: 1;
    background: #1e1e3f;
}

/* ===== Возможности (alternating rows) ===== */
.possibilities {
    width: 100%;
    position: relative;
    padding: 80px 0;
    color: var(--sign-primary);
    z-index: 0;
}

.possibilities::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100vw;
    height: 100%;
    background: var(--bg-object-secondary);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    z-index: -1;
    opacity: 0.5;
}

.possibilities .section-title { margin-top: 40px; }
.possibilities .section-subtitle { margin-bottom: 60px; }

.row {
    margin: 80px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.row-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.row-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.row .first { order: 1; }
.row .second { order: 2; }

.row-title {
    font: 600 48px/1.05 var(--font);
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: var(--sign-primary);
}

.row-text {
    font: 400 22px/1.45 var(--font);
    color: var(--sign-secondary);
    max-width: 520px;
}

.row-text a {
    color: var(--btn-hover-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.row-text a:hover { color: var(--btn-fill-1); }

/* ===== Блок скачивания ===== */
.download-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 80px 0 160px;
    overflow: hidden;
    z-index: 0;
}

.download-cta::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -50vw;
    width: 100vw;
    height: 100%;
    z-index: -1;
    -webkit-backdrop-filter: blur(33px);
    backdrop-filter: blur(33px);
}

.download-cta::before {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--divider) 50%, transparent);
}

.cta-orb {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 720px;
    height: 720px;
    max-width: 90vw;
    pointer-events: none;
}

.cta-logo {
    width: 360px;
    height: 360px;
    overflow: hidden;
    border-radius: 78px;
    margin-top: 24px;
    transform: rotate(15deg) translateY(10%);
    transition: transform .6s ease;
    will-change: transform;
    box-shadow: 0 40px 80px rgba(22, 31, 138, 0.22);
}

.cta-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    padding: 56px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 0;
}

.cta-title {
    font: 600 64px/1.02 var(--font);
    text-align: center;
    color: var(--sign-primary);
    margin: 0;
    letter-spacing: -0.01em;
    width: 90%;
    max-width: 700px;
}

.cta-subtext {
    text-align: center;
    color: var(--sign-tertiary);
    font: 400 1rem/1.55 var(--font);
    max-width: 580px;
}

.cta-subtext a {
    color: var(--btn-hover-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.downloadButtonWrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
}

.downloadButton {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-stretched { width: 100%; }

/* Главная кнопка скачивания всегда остается в центре download-блока */
@media (max-width: 790px) {
    .downloadButton--sticky {
        position: static;
        padding: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-top: 0;
    }
    body { padding-bottom: 0; }
}

/* ===== Футер ===== */
.footer-info {
    width: 100%;
    max-width: 1200px;
    padding: 0 44px;
    gap: 24px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    justify-content: space-between;
    color: var(--sign-tertiary);
}

.footer-branding {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 30px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sign-primary);
    font-size: 1.35rem;
    font-weight: 700;
}

.footer-logo .logo-icon-img { width: 42px; height: 42px; }

.footer-copy {
    font-size: 0.92rem;
    color: var(--sign-tertiary);
    line-height: 1.55;
    margin: 0;
}

.footer-disclaimer {
    max-width: 360px;
    margin: -18px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-info .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info .footer-links h4 {
    color: var(--sign-primary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.footer-info .footer-links a {
    color: var(--sign-tertiary);
    transition: color .15s ease;
}

.footer-info .footer-links a:hover { color: var(--sign-primary); }

/* Адаптив для новых секций */
@media (max-width: 1160px) {
    .firstScreen-heading { font-size: 56px; }
    .firstScreen-description { font-size: 22px; }
    .row-title { font-size: 40px; }
    .row-text { font-size: 18px; }
    .row { margin: 80px 32px; }
    .cta-title { font-size: 48px; }
    .cta-logo { width: 300px; height: 300px; border-radius: 64px; }
    .footer-info { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 0 24px; }
}

@media (max-width: 1060px) {
    .firstScreen-heading { font-size: 48px; }
    .firstScreen-description { font-size: 20px; }
    .row-title { font-size: 36px; margin-bottom: 14px; }
    .row-text { font-size: 17px; }
    .row { margin: 80px 16px 0; }
    .cta-title { font-size: 42px; }
    .cta-logo { width: 250px; height: 250px; border-radius: 56px; }
    .firstScreen-grid { grid-template-columns: 1fr 40%; }
    .footer-info {
        grid-template-columns: 1fr repeat(2, minmax(auto, max-content));
        grid-template-rows: repeat(2, minmax(auto, max-content));
        gap: 40px;
    }
    .footer-info .docs-links { grid-column: 3 / -1; }
    .footer-info .footer-branding { grid-row: 1 / -1; }
}

@media (max-width: 900px) {
    .page-main { padding: 0 16px 16px; }
    .firstScreen { padding: 110px 0 40px; }
    .firstScreen-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; gap: 40px; }
    .firstScreen-left { align-items: center; }
    .firstScreen-description { max-width: 560px; margin: 0 auto; }
    .firstScreen-buttons { justify-content: center; }
    .firstScreen-right { max-width: 360px; margin: 0 auto; order: 2; }
}

@media (max-width: 790px) {
    .firstScreen-heading { font-size: 40px; }
    .firstScreen-description { font-size: 18px; }
    .row { margin: 0 16px 100px; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 32px; }
    .row .first { order: 1; }
    .row .second { order: 2; }
    .row-image { order: 2; }
    .row-content { order: 1; max-width: 480px; margin: 0 auto; align-items: center; text-align: center; }
    .row-title { font-size: 30px; }
    .row-text { font-size: 16px; max-width: 100%; }
    .download-cta { padding: 60px 0 100px; }
    .cta-content { padding: 40px 16px 0; gap: 28px; }
    .cta-title { font-size: 34px; }
    .footer-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 0 16px;
        text-align: center;
    }
    .footer-info .footer-links { align-items: center; }
    .footer-info .footer-branding { grid-row-start: 4; align-items: center; }
}

@media (max-width: 420px) {
    .firstScreen-heading { font-size: 32px; }
    .row-title { font-size: 26px; }
    .cta-title { font-size: 28px; }
    .cta-logo { width: 200px; height: 200px; border-radius: 44px; }
    .store-badge { width: 100%; }
    .store-badge-text { flex: 1; }
}

/* ============================================================
   ===== Страница мануалов (manuals.html) =====
   ============================================================ */

.manuals-hero { padding: 140px 0 40px; }

.manuals-hero-grid { align-items: center; }

.manuals-hero-art {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manuals-hero-logo {
    width: 70%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    transform: rotate(-8deg);
    filter: drop-shadow(0 30px 60px rgba(22, 31, 138, 0.20));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50%       { transform: rotate(-4deg) translateY(-12px); }
}

/* Карточки выбора платформы */
.manuals-section {
    width: 100%;
    padding: 80px 0;
    position: relative;
}

.manual-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 920px;
    margin: 0 auto 80px;
}

.manual-platforms-detailed {
    max-width: 1120px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.manual-card {
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.88), rgba(42, 42, 85, 0.66));
    border: 1px solid rgba(180, 120, 255, 0.28);
    border-radius: var(--radius-l);
    padding: 22px 20px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.manual-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 140, 255, 0.45);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
}

.manual-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.manual-card-icon img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    display: block;
}

.manual-card strong {
    font: 600 1.15rem/1.3 var(--font);
}

.manual-card small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.45;
}

.manual-hub-section {
    padding-top: 20px;
}

.manual-toc-wrap {
    padding: 34px 0 18px;
}

.manual-toc {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(180, 120, 255, 0.34);
    background:
        linear-gradient(145deg, rgba(29, 29, 61, 0.90), rgba(42, 42, 85, 0.78)),
        radial-gradient(circle at 12% 0%, rgba(67, 214, 255, 0.22), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 95, 203, 0.20), transparent 42%);
    box-shadow: 0 24px 60px rgba(91, 26, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.manual-toc-title {
    color: #fff;
    font: 700 1.15rem/1.2 var(--font);
    margin-bottom: 14px;
}

.manual-toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
}

.manual-toc-list a {
    display: block;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.manual-toc-list a:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(67, 214, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
}

.manual-section {
    padding: 72px 0;
    position: relative;
}

.manual-narrow {
    max-width: 980px;
}

.manual-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

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

.req-card {
    min-height: 132px;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid rgba(180, 120, 255, 0.34);
    background:
        linear-gradient(145deg, rgba(29, 29, 61, 0.92), rgba(42, 42, 85, 0.76)),
        radial-gradient(circle at 20% 0%, rgba(67, 214, 255, 0.18), transparent 42%);
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.req-card-label {
    color: rgba(255, 255, 255, 0.72);
    font: 600 0.86rem/1.3 var(--font);
    margin-bottom: 10px;
}

.req-card-value {
    color: #fff;
    font: 600 1.02rem/1.5 var(--font);
}

.manual-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1120px;
    margin: 40px auto 0;
}

.manual-info-card {
    padding: 22px;
    border: 1px solid rgba(180, 120, 255, 0.32);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.88), rgba(42, 42, 85, 0.72));
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.manual-info-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font: 600 1.08rem/1.3 var(--font);
}

.manual-info-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    line-height: 1.62;
}

/* Большой блок инструкции */
.manual-block {
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.88), rgba(42, 42, 85, 0.66));
    border: 1px solid rgba(180, 120, 255, 0.28);
    border-radius: 36px;
    padding: 32px;
    margin: 0 auto 24px;
    max-width: 900px;
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    scroll-margin-top: 120px;
}

.manual-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider);
}

.manual-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-m);
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.manual-title {
    font: 600 1.5rem/1.25 var(--font);
    color: var(--sign-primary);
    margin: 0 0 4px;
}

.manual-meta {
    font-size: 0.92rem;
    color: var(--sign-tertiary);
    margin: 0;
}

.manual-meta code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1px 6px;
    border-radius: 6px;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.88rem;
    color: #43d6ff;
}

.manual-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.manual-step-num {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.manual-step-body { flex: 1; }

.manual-step-body h4 {
    font: 600 1.1rem/1.3 var(--font);
    color: var(--sign-primary);
    margin: 0 0 6px;
}

.manual-step-body p {
    color: var(--sign-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 8px;
}

.manual-step-body {
    padding: 18px 20px;
    border: 1px solid rgba(180, 120, 255, 0.26);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.88), rgba(42, 42, 85, 0.70));
    box-shadow: 0 14px 32px rgba(91, 26, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.manual-step-body h4 { color: #fff; }

.manual-step-body p { color: rgba(255, 255, 255, 0.78); }

.manual-step-body p:last-child { margin-bottom: 0; }

.manual-step-body code {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1px 6px;
    border-radius: 6px;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.88em;
    color: #43d6ff;
}

.manual-step-body a {
    color: #43d6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.manual-step-body a:hover { color: #ff5fcb; }

.manual-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.manual-list li {
    display: block;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
}

.manual-list li strong {
    color: #43d6ff;
    margin-right: 6px;
}

.manual-code {
    background: #0d0d0d;
    color: #f8f8f8;
    padding: 14px 18px;
    border-radius: var(--radius-s);
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    overflow-x: auto;
    margin: 8px 0;
    white-space: pre;
}

.manual-tip {
    background: linear-gradient(135deg, rgba(67, 214, 255, 0.18), rgba(255, 95, 203, 0.14));
    border: 1px solid rgba(67, 214, 255, 0.32);
    border-radius: 22px;
    padding: 12px 16px;
    font-size: 0.92rem;
    color: #fff;
    margin: 8px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.manual-problems {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manual-problems .faq-item {
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.86), rgba(42, 42, 85, 0.68));
    border-color: rgba(180, 120, 255, 0.28);
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(91, 26, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.manual-problems .faq-question {
    padding: 14px 18px;
    font-size: 0.98rem;
    color: #fff;
}

.manual-problems .faq-answer {
    padding: 0 18px 16px;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.78);
}

/* FAQ блок страницы мануалов */
.manuals-faq {
    padding: 80px 0 40px;
}

.manuals-faq .faq-list {
    max-width: 900px;
}

/* Нижний блок страниц мануалов */
.manuals-cta {
    text-align: center;
    padding: 80px 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.manuals-cta .cta-title { font-size: 48px; }

.manuals-cta .btn-primary,
.manuals-cta .download-btn,
.manuals-cta .btn-secondary {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    box-shadow: 0 18px 40px rgba(91, 26, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.manuals-cta .btn-primary:hover,
.manuals-cta .download-btn:hover,
.manuals-cta .btn-secondary:hover {
    border-color: rgba(184, 33, 255, 0.42);
    background: linear-gradient(120deg, var(--btn-hover-1), var(--btn-hover-2) 45%, var(--btn-hover-3));
    color: #fff;
    box-shadow: 0 24px 50px rgba(184, 33, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

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

@media (max-width: 1060px) {
    .manual-platforms,
    .manual-platforms-detailed,
    .manual-detail-grid,
    .manual-cards,
    .req-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 790px) {
    .manuals-hero { padding: 110px 0 30px; }
    .manuals-section { padding: 50px 0; }
    .manual-platforms,
    .manual-platforms-detailed,
    .manual-detail-grid,
    .manual-cards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 48px; }
    .manual-toc-list,
    .req-grid { grid-template-columns: 1fr; }
    .manual-block { padding: 22px; margin-bottom: 18px; }
    .manual-section { padding: 48px 0; }
    .manual-step-body { padding: 16px; border-radius: 20px; }
    .manual-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .manual-icon { width: 48px; height: 48px; font-size: 1.4rem; }
    .manual-title { font-size: 1.25rem; }
    .manuals-cta { padding: 60px 0 90px; }
    .manuals-cta .cta-title { font-size: 32px; }
}

/* ============================================================
   ===== Hero buttons 3+2
   ============================================================ */

.hero-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    max-width: 560px;
}

.hero-buttons-grid .store-badge {
    height: 60px;
    padding: 10px 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1d1d3d, #2a2a55);
    color: #fff;
    width: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.hero-buttons-grid .store-badge .store-badge-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.hero-buttons-grid .store-badge .store-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-buttons-grid .store-badge .store-badge-text small {
    font-size: 0.65rem;
    opacity: 0.78;
    letter-spacing: 0.02em;
}

.hero-buttons-grid .store-badge .store-badge-text strong {
    font-size: 0.95rem;
    line-height: 1.15;
}

.hero-buttons-grid .store-badge:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #28285a, #393980);
    box-shadow: 0 18px 38px rgba(56, 56, 128, 0.32);
}

/* Цветовые варианты */
.hero-buttons-grid .store-android   { background: linear-gradient(135deg, #1d1d3d, #2a2a55); }
.hero-buttons-grid .store-desktop   { background: linear-gradient(135deg, #1d1d3d, #2a2a55); }
.hero-buttons-grid .store-more      { background: linear-gradient(135deg, #232348, #353578); }
.hero-buttons-grid .store-qr        { background: linear-gradient(135deg, #1d1d3d, #2a2a55); }
.hero-buttons-grid .store-share     { background: linear-gradient(135deg, #2c2c66, #4a4ab0); }

.hero-buttons-grid .store-badge-icon-qr,
.hero-buttons-grid .store-badge-icon-share {
    color: #ffffff;
}

.hero-buttons-grid .store-badge-icon-qr svg,
.hero-buttons-grid .store-badge-icon-share svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Кнопка скачивания в шапке */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 6px 18px rgba(56, 56, 128, 0.22);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(97deg, var(--btn-hover-1), var(--btn-hover-2) 44%, var(--btn-hover-3) 70%);
    box-shadow: 0 14px 26px rgba(56, 56, 128, 0.34);
}

/* ===== Иконки-картинки в downloads-секции ===== */
.download-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    vertical-align: middle;
}
.download-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.download-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-ground);
    border: 1px solid var(--divider);
    overflow: hidden;
}
.download-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}

/* ===== Усиленный blur под иллюстрацией ===== */
.phoneVideoWrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -120px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 540px;
    height: 220px;
    background:
      radial-gradient(50% 60% at 50% 50%, rgba(120, 122, 220, 0.45), rgba(120, 122, 220, 0) 70%),
      radial-gradient(50% 60% at 30% 60%, rgba(67, 214, 255, 0.30), rgba(67, 214, 255, 0) 70%),
      radial-gradient(50% 60% at 70% 60%, rgba(255, 90, 200, 0.30), rgba(255, 90, 200, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.85;
    animation: phoneBlurPulse 8s ease-in-out infinite;
}

@keyframes phoneBlurPulse {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.65; transform: translateX(-50%) scale(1.08); }
}

.row-image.first .phone-with-video::after,
.row-image.second .phone-with-video::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -60px;
    transform: translateX(-50%);
    width: 85%;
    height: 120px;
    background:
      radial-gradient(50% 60% at 50% 50%, rgba(120, 122, 220, 0.40), rgba(120, 122, 220, 0) 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================
   ===== QR modal
   ============================================================ */
.qr-dialog {
    max-width: 560px !important;
}

.qr-body {
    display: grid;
    grid-template-columns: 344px 1fr;
    gap: 24px;
    align-items: center;
    padding: 8px 4px;
}

.qr-canvas-wrap {
    position: relative;
    width: 344px;
    height: 344px;
    background: #fff;
    border-radius: 24px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 50px rgba(30, 32, 95, 0.22);
}

.qr-canvas-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 14px;
}

.qr-canvas-wrap > #qr-image {
    width: 320px;
    height: 320px;
}

.qr-info-title {
    font: 600 1.2rem/1.3 var(--font);
    color: var(--sign-primary);
    margin: 0 0 10px;
}
.qr-info-desc {
    font-size: 0.96rem;
    color: var(--sign-secondary);
    line-height: 1.55;
    margin: 0 0 18px;
}
.qr-info-desc strong { color: var(--btn-fill-1); }

.qr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 620px) {
    .qr-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .qr-canvas-wrap {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }
    .qr-actions { justify-content: center; }
}

/* ============================================================
   ===== Toast (всплывающее сообщение)
   ============================================================ */
.max-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(20, 20, 50, 0.95);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}
.max-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.max-toast.toast-ok { background: linear-gradient(135deg, #1ea75a, #28c473); }
.max-toast.toast-err { background: linear-gradient(135deg, #e6334d, #ff5b6b); }

.error-page {
    min-height: 100vh;
    padding-top: 92px;
}

.error-404 {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 56px;
    padding: 56px 24px 80px;
}

.error-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-image img {
    width: min(100%, 440px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 60px rgba(91, 26, 255, 0.30));
}

.error-content {
    max-width: 560px;
}

.error-title {
    font: 700 clamp(2.2rem, 5vw, 4rem)/1.05 var(--font);
    margin: 10px 0 18px;
    color: #fff;
}

.error-description {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
    margin: 0 0 28px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.error-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
}

.error-quick strong {
    color: rgba(255, 255, 255, 0.86);
}

.error-quick a {
    color: #43d6ff;
    text-decoration: none;
}

.error-quick a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-proof {
    max-width: 1040px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.download-proof-item {
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid rgba(180, 120, 255, 0.30);
    border-radius: var(--radius-m);
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.78), rgba(42, 42, 85, 0.58));
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.download-proof-item strong {
    color: #fff;
    font: 700 0.98rem/1.25 var(--font);
}

.download-proof-item span {
    color: rgba(255, 255, 255, 0.72);
    font: 500 0.9rem/1.45 var(--font);
}

.home-faq {
    width: 100%;
    padding: 90px 0;
    background: transparent;
}

.home-faq .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.home-faq .faq-answer a,
.seo-disclaimer a {
    color: var(--btn-fill-1);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-panel + .legal-panel {
    margin-top: 18px;
}

/* ============================================================
   ===== Раздел о мессенджере
   ============================================================ */
.seo-section {
    width: 100%;
    padding: 90px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 247, 255, 0.6) 100%);
}

body:not(.manual-page) #about-max {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: transparent;
}

body:not(.manual-page) #about-max::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background:
      radial-gradient(70% 80% at 16% 12%, rgba(107, 108, 255, 0.26), transparent 62%),
      radial-gradient(62% 72% at 84% 16%, rgba(255, 95, 203, 0.20), transparent 62%),
      radial-gradient(80% 90% at 50% 92%, rgba(67, 214, 255, 0.20), transparent 64%),
      linear-gradient(135deg, rgba(13, 13, 31, 0.96), rgba(23, 23, 53, 0.92));
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
}

body:not(.manual-page) #about-max .section-title {
    color: #fff;
}

body:not(.manual-page) #about-max .section-subtitle {
    color: rgba(255, 255, 255, 0.76);
}

body:not(.manual-page) #about-max .seo-card {
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.86), rgba(42, 42, 85, 0.66));
    border-color: rgba(180, 120, 255, 0.28);
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

body:not(.manual-page) #about-max .seo-card h3 {
    color: #fff;
}

body:not(.manual-page) #about-max .seo-card p {
    color: rgba(255, 255, 255, 0.76);
}

body:not(.manual-page) #about-max .seo-card p a {
    color: #43d6ff;
}

body:not(.manual-page) #about-max .seo-disclaimer {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(180, 120, 255, 0.28);
}

body:not(.manual-page) #about-max .seo-disclaimer p {
    color: rgba(255, 255, 255, 0.76);
}

body:not(.manual-page) #about-max .seo-disclaimer strong,
body:not(.manual-page) #about-max .seo-disclaimer a {
    color: #43d6ff;
}

.seo-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.seo-card {
    background: var(--bg-object-secondary);
    border: 1px solid var(--divider);
    border-radius: var(--radius-l);
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.seo-card h3 {
    font: 600 1.2rem/1.3 var(--font);
    color: var(--sign-primary);
    margin: 0 0 12px;
}

.seo-card p {
    color: var(--sign-secondary);
    font-size: 0.97rem;
    line-height: 1.65;
    margin: 0;
}

.seo-card p a {
    color: var(--btn-fill-1);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.seo-card p a:hover { color: var(--btn-hover-2); }

.seo-wide-text {
    padding: 28px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(180, 120, 255, 0.26);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.12);
}

.seo-wide-text h3 {
    margin: 0 0 14px;
    color: #fff;
    font: 600 1.35rem/1.3 var(--font);
}

.seo-wide-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.72;
}

.seo-wide-text p + p {
    margin-top: 14px;
}

.seo-wide-text a {
    color: #43d6ff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-disclaimer {
    background: linear-gradient(135deg, rgba(67, 214, 255, 0.08), rgba(120, 122, 220, 0.10));
    border: 1px solid rgba(120, 122, 220, 0.22);
    border-radius: var(--radius-l);
    padding: 22px 26px;
    margin-top: 12px;
}

.seo-disclaimer p {
    margin: 0;
    color: var(--sign-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

.seo-disclaimer strong { color: var(--btn-fill-1); }

@media (max-width: 820px) {
    .seo-section { padding: 60px 0; }
    .seo-grid { grid-template-columns: 1fr; gap: 14px; margin: 30px 0; }
    .seo-card { padding: 20px; }
    .seo-wide-text { padding: 22px; }
    .download-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-faq { padding: 64px 0; }
    .error-404 {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
        padding-top: 36px;
    }
    .error-image { order: -1; }
    .error-actions,
    .error-quick {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .download-proof { grid-template-columns: 1fr; }
    .download-proof-item { min-height: 82px; }
}

/* ============================================================
   ===== Адаптив для новых hero-кнопок
   ============================================================ */
@media (max-width: 720px) {
    .hero-buttons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 100%;
    }
    .hero-buttons-grid .store-badge {
        height: 56px;
        padding: 8px 12px;
    }
    .hero-buttons-grid .store-badge .store-badge-icon {
        width: 32px;
        height: 32px;
    }
    .hero-buttons-grid .store-badge .store-badge-text strong { font-size: 0.88rem; }
    .hero-buttons-grid .store-badge .store-badge-text small { font-size: 0.6rem; }

    .nav-cta { padding: 8px 16px; font-size: 0.86rem; }
}

@media (max-width: 420px) {
    .nav-actions .nav-cta { display: none; }
    .hero-buttons-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hero-buttons-grid .store-badge { height: 60px; }
}

/* ============================================================
   ===== ИЛЛЮСТРАЦИИ HERO + FEATURES (1-5.png)
   ============================================================ */

.hero-illustration,
.feature-illustration {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(91, 26, 255, 0.32))
            drop-shadow(0 0 80px rgba(255, 95, 203, 0.18));
    animation: illustrationFloat 6s ease-in-out infinite;
}

.hero-illustration-img,
.feature-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.feature-illustration {
    max-width: 380px;
    animation-duration: 7s;
}

.row-image.first .feature-illustration { animation-delay: -1s; }
.row-image.second .feature-illustration { animation-delay: -2.5s; }

@keyframes illustrationFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-14px) rotate(-1.2deg); }
}

@media (max-width: 790px) {
    .hero-illustration,
    .feature-illustration { max-width: 320px; }
}

/* ============================================================
   ===== ПЕРЕЛИВАЮЩИЙСЯ ФОН СЕКЦИИ #download
   ============================================================ */

.download-cta {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.download-cta::after {
    /* Заменяем глухой белый/чёрный backdrop на переливающийся градиент */
    background:
      radial-gradient(60% 70% at 20% 20%, rgba(107, 108, 255, 0.32), transparent 60%),
      radial-gradient(55% 65% at 80% 30%, rgba(255, 95, 203, 0.28), transparent 60%),
      radial-gradient(70% 80% at 50% 90%, rgba(67, 214, 255, 0.30), transparent 60%),
      linear-gradient(135deg, rgba(83, 64, 255, 0.18), rgba(184, 33, 255, 0.18) 40%, rgba(255, 95, 203, 0.16) 80%);
    background-size: 220% 220%, 220% 220%, 220% 220%, 300% 300%;
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
    animation: shimmerBg 16s ease-in-out infinite;
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.download-cta::after,
.download-cta::before {
    left: 50%;
    width: 100vw;
    margin-left: 0;
    transform: translateX(-50%);
}

@keyframes shimmerBg {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
    }
    33% {
        background-position: 60% 30%, 40% 60%, 80% 20%, 50% 100%;
    }
    66% {
        background-position: 80% 80%, 20% 20%, 30% 80%, 100% 50%;
    }
}

/* Светящаяся обводка вокруг download-grid карточек */
.download-category {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
      0 24px 60px rgba(91, 26, 255, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
    .download-category {
        background: rgba(20, 18, 40, 0.55);
        border-color: rgba(180, 120, 255, 0.22);
        box-shadow:
          0 24px 60px rgba(91, 26, 255, 0.20),
          inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
}

/* Сами .download-btn — переливающаяся подсветка по hover */
.download-btn {
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.download-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2), var(--neon-3), var(--neon-4));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s ease;
    animation: shimmerBg 6s ease-in-out infinite;
    pointer-events: none;
}
.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(91, 26, 255, 0.20);
}
.download-btn:hover::before { opacity: 1; }

.download-btn.windows {
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    color: #fff;
    border-color: transparent;
}
.download-btn.windows:hover {
    background: linear-gradient(120deg, var(--btn-hover-1), var(--btn-hover-2) 40%, var(--btn-hover-3) 80%);
}

/* ============================================================
   ===== HERO КНОПКИ — ЯРКИЕ С ПЕРЕЛИВАМИ
   ============================================================ */

.hero-buttons-grid .store-badge {
    position: relative;
    overflow: hidden;
    z-index: 0;
    background: linear-gradient(135deg,
        var(--neon-1) 0%,
        var(--neon-2) 35%,
        var(--neon-3) 65%,
        var(--neon-4) 100%);
    background-size: 280% 280%;
    background-position: 0% 0%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
      0 14px 32px rgba(91, 26, 255, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform .25s ease, box-shadow .25s ease, background-position .8s ease;
}

/* Светящееся внутреннее «стекло» */
.hero-buttons-grid .store-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.36), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-buttons-grid .store-badge > * { position: relative; z-index: 2; }

.hero-buttons-grid .store-badge:hover {
    transform: translateY(-4px);
    background-position: 100% 100%;
    box-shadow:
      0 22px 50px rgba(184, 33, 255, 0.40),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero-buttons-grid .store-badge:active {
    transform: translateY(-1px);
}

/* Цветовые варианты — теперь это лишь смещение фоновой позиции */
.hero-buttons-grid .store-android   { background-position: 0% 0%; }
.hero-buttons-grid .store-desktop   { background-position: 25% 0%; }
.hero-buttons-grid .store-more      { background-position: 50% 50%; }
.hero-buttons-grid .store-qr        { background-position: 75% 100%; }
.hero-buttons-grid .store-share     { background-position: 100% 100%; }

.hero-buttons-grid .store-badge .store-badge-icon {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.manual-page .hero-buttons-grid .store-badge,
.manual-page .hero-buttons-grid .store-android,
.manual-page .hero-buttons-grid .store-desktop,
.manual-page .hero-buttons-grid .store-more,
.manual-page .hero-buttons-grid .store-qr,
.manual-page .hero-buttons-grid .store-share {
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2), var(--neon-3), var(--neon-4));
    background-size: 280% 280%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.manual-page .hero-buttons-grid .store-badge:hover {
    background-position: 100% 100%;
    color: #fff;
    border-color: rgba(184, 33, 255, 0.44);
}

.manual-page .hero-buttons-grid .store-badge .store-badge-icon {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

@media (prefers-color-scheme: dark) {
    .manual-page .hero-buttons-grid .store-badge,
    .manual-page .hero-buttons-grid .store-android,
    .manual-page .hero-buttons-grid .store-desktop,
    .manual-page .hero-buttons-grid .store-more,
    .manual-page .hero-buttons-grid .store-qr,
    .manual-page .hero-buttons-grid .store-share {
        background: linear-gradient(135deg, var(--neon-1), var(--neon-2), var(--neon-3), var(--neon-4));
        color: #fff;
        border-color: rgba(180, 120, 255, 0.32);
        box-shadow: 0 18px 42px rgba(91, 26, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .manual-page .hero-buttons-grid .store-badge .store-badge-icon {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(180, 120, 255, 0.24);
    }
}

/* nav-cta тоже делаем переливающейся */
.nav-cta {
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2), var(--neon-3));
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: background-position .8s ease, transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(184, 33, 255, 0.40);
}

/* btn-primary — общий стиль для всего сайта */
.btn-primary {
    background: linear-gradient(135deg, var(--btn-fill-1), var(--btn-fill-2));
    background-size: 200% 200%;
    background-position: 0% 0%;
    color: var(--sign-button);
    box-shadow: 0 18px 40px rgba(91, 26, 255, 0.22);
    transition: background-position .6s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(184, 33, 255, 0.30);
}

/* title-gradient — обновлённая палитра */
.title-gradient {
    background: linear-gradient(120deg, var(--grad-text-1) 0%, var(--grad-text-2) 50%, var(--grad-text-3) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: titleShine 8s ease-in-out infinite;
}
@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================================
   ===== Уменьшение производительностного износа
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-illustration,
    .feature-illustration,
    .download-cta::after,
    .nav-cta,
    .btn-primary,
    .hero-buttons-grid .store-badge,
    .title-gradient {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== Каталоги каналов MAX ===== */
body.catalog-page {
    background:
        radial-gradient(circle at 16% 4%, rgba(67, 214, 255, 0.14), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(255, 95, 203, 0.12), transparent 28%),
        linear-gradient(135deg, #0d0d1f 0%, #171735 48%, #101021 100%);
    color: #fff;
}

.catalog-page .page-main,
.catalog-page .footer {
    background: transparent;
}

.catalog-hero {
    padding: 150px 0 38px;
}

.catalog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 42px;
    align-items: end;
}

.catalog-hero-copy {
    min-width: 0;
}

.catalog-page .firstScreen-heading {
    font-size: clamp(3.6rem, 8vw, 5.1rem);
}

.catalog-page .firstScreen-heading .title-gradient {
    display: inline-block;
}

.catalog-page .firstScreen-description {
    max-width: 620px;
    overflow-wrap: anywhere;
}

.catalog-eyebrow {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.68);
    font: 700 0.85rem/1.2 var(--font);
    text-transform: uppercase;
    letter-spacing: 0;
}

.catalog-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.catalog-stat {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(180, 120, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.catalog-stat strong {
    display: block;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.catalog-stat span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.catalog-section {
    padding: 22px 0 90px;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 14px;
    margin-bottom: 16px;
}

.catalog-search,
.catalog-select-wrap {
    display: block;
    min-width: 0;
}

.catalog-search input,
.catalog-select-wrap select {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(180, 120, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font: 600 1rem/1.2 var(--font);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.catalog-search input {
    padding: 0 18px;
}

.catalog-select-wrap select {
    padding: 0 14px;
}

.catalog-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.catalog-search input:focus,
.catalog-select-wrap select:focus {
    border-color: rgba(67, 214, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(67, 214, 255, 0.14);
}

.catalog-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.68);
}

.catalog-meta-row p {
    margin: 0;
}

.catalog-csv-link {
    color: #43d6ff;
    font-weight: 700;
    text-decoration: none;
}

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

.catalog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 278px;
    padding: 18px;
    border: 1px solid rgba(180, 120, 255, 0.24);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(34, 34, 42, 0.74), rgba(20, 20, 28, 0.56));
    box-shadow: 0 18px 42px rgba(8, 8, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.catalog-card-top {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.catalog-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.10);
}

.catalog-card-title {
    min-width: 0;
}

.catalog-card-title h2 {
    margin: 0;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.catalog-card-title p {
    margin: 5px 0 0;
    color: #43d6ff;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.catalog-description {
    display: -webkit-box;
    min-height: 62px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.94rem;
    line-height: 1.45;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.inline-mail-icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.18em;
    object-fit: contain;
    margin: 0 0.08em;
}

.catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    margin: 16px 0 0;
}

.catalog-tags span {
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(67, 214, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(67, 214, 255, 0.08);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(96deg, #5340ff, #00d2ff 52%, #ff5fcb);
    font-weight: 800;
    text-decoration: none;
}

.catalog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.catalog-actions .catalog-open {
    margin-top: 0;
}

.catalog-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(180, 120, 255, 0.30);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.catalog-details:hover {
    border-color: rgba(67, 214, 255, 0.48);
    background: rgba(67, 214, 255, 0.10);
}

.catalog-empty {
    padding: 44px 20px;
    text-align: center;
    border: 1px solid rgba(180, 120, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.catalog-empty h2 {
    margin: 0;
    color: #fff;
}

.catalog-empty p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.catalog-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.catalog-more {
    min-width: 190px;
}

.channel-page .page-main {
    padding-top: 96px;
}

.channel-hero {
    padding: 70px 0 42px;
}

.channel-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.channel-avatar-large {
    width: 190px;
    height: 190px;
    border-radius: 42px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(180, 120, 255, 0.32);
    box-shadow: 0 20px 48px rgba(91, 26, 255, 0.20);
}

.channel-kicker {
    margin: 0 0 12px;
    color: #43d6ff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.channel-title {
    margin: 0;
    color: #fff;
    font: 600 56px/1.04 var(--font);
}

.channel-shortname {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.channel-description-box {
    margin-top: 26px;
    padding: 24px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(180, 120, 255, 0.26);
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.86), rgba(42, 42, 85, 0.64));
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.7;
}

.channel-meta,
.channel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-meta span,
.channel-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.channel-actions .btn {
    min-width: 180px;
}

.channel-seo {
    padding: 30px 0 90px;
}

.channel-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.channel-seo-card {
    padding: 22px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(180, 120, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

.channel-seo-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font: 600 1.25rem/1.3 var(--font);
}

.channel-seo-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.65;
}

.channel-article {
    max-width: 980px;
}

.channel-longread {
    padding: 30px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(180, 120, 255, 0.24);
    background: linear-gradient(145deg, rgba(29, 29, 61, 0.82), rgba(42, 42, 85, 0.60));
    box-shadow: 0 18px 42px rgba(91, 26, 255, 0.12);
}

.channel-longread h2 {
    margin: 0 0 18px;
    color: #fff;
    font: 600 1.55rem/1.28 var(--font);
}

.channel-longread p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.78;
}

.channel-longread p + p {
    margin-top: 16px;
}

@media (max-width: 1040px) {
    .catalog-hero-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .channel-layout {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .channel-avatar-large {
        width: 150px;
        height: 150px;
        border-radius: 34px;
    }

    .channel-title {
        font-size: 44px;
    }
}

@media (max-width: 720px) {
    .catalog-hero {
        padding: 118px 0 28px;
    }

    .catalog-page .firstScreen-heading {
        font-size: 2.7rem;
        line-height: 1.08;
    }

    .catalog-page .firstScreen-description,
    .catalog-stats,
    .catalog-toolbar,
    .catalog-meta-row,
    .catalog-grid {
        width: min(100%, calc(100vw - 64px));
        max-width: calc(100vw - 64px);
    }

    .catalog-page .firstScreen-description {
        font-size: 1.05rem;
    }

    .catalog-hero-grid {
        gap: 24px;
    }

    .catalog-stats,
    .catalog-toolbar,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .channel-layout,
    .channel-seo-grid {
        grid-template-columns: 1fr;
    }

    .channel-avatar-large {
        width: 128px;
        height: 128px;
        border-radius: 28px;
    }

    .channel-title {
        font-size: 34px;
    }

    .channel-actions .btn {
        width: 100%;
    }

    .catalog-actions {
        grid-template-columns: 1fr;
    }

    .catalog-stats {
        gap: 10px;
    }

    .catalog-stat {
        padding: 15px;
    }

    .catalog-card {
        min-height: 250px;
    }
}
