/* ============================================================
   IMD ALGOTECT AI — LANDING STYLES
   Premium Fintech Dark Theme
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- 2. CSS VARIABLES (палитра + размеры) ---------- */
:root {
    /* Backgrounds */
    --bg-base: #0d1424;
    --bg-section-alt: #111a2e;
    --bg-section-deep: #0a1020;
    --bg-card: #1a2540;
    --bg-card-hover: #1f2c4d;

    /* Text */
    --text-primary: #e8eef9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border: #2a3552;
    --border-light: #334066;

    /* Accents */
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #00d4ff 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.25);
    --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
}

/* ---------- 3. TYPOGRAPHY (единая система H1/H2/H3) ---------- */
h1,
h2,
h3,
h4 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 4. UTILITIES ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

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

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

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl);
}

.section__subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--space-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.badge--warm {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-orange);
}

.badge--green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-cyan);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.45);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn--secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn--block {
    width: 100%;
}

/* ---------- 6. HEADER ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 20, 36, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    gap: var(--space-md);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.header__logo-icon {
    height: 96px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

/* На мобилке — гарантированно видно */
@media (max-width: 768px) {
    .header__logo-icon {
        height: 72px;
        max-width: 220px;
    }
}

.header__nav {
    display: flex;
    gap: var(--space-md);
    margin-left: auto;
    margin-right: var(--space-md);
}

.header__nav a {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.header__nav a:hover {
    color: var(--accent-cyan);
}

.header__cta {
    flex-shrink: 0;
}

/* Бургер-кнопка (по умолчанию скрыта) */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
}
.header__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.header__burger--open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.header__burger--open span:nth-child(2) {
    opacity: 0;
}
.header__burger--open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header__inner {
        height: 64px;
    }
    .header__burger {
        display: flex;
    }
    .header__cta {
        display: none; /* скрываем верхнюю CTA — она дублируется в hero */
    }
    .header__nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: var(--space-sm) 0;
        background: rgba(13, 20, 36, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .header__nav--open {
        max-height: 400px;
        padding: var(--space-sm) 0;
    }
    .header__nav a {
        padding: 14px var(--space-md);
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .header__nav a:last-child {
        border-bottom: 0;
    }
}

/* ---------- 7. HERO ---------- */
.hero {
    position: relative;
    padding: var(--space-2xl) 0 var(--space-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        var(--bg-base);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: var(--space-md);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero__feature-icon {
    color: var(--accent-green);
    font-weight: 700;
}

.hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero__disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--accent-orange);
    line-height: 1.4;
}

.hero__visual {
    position: relative;
    width: 110%;
    max-width: 820px;
    margin-left: auto;
    margin-right: -120px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    background-image: url("/legal-static/img/robot-head.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    filter:
        drop-shadow(0 0 55px rgba(0, 212, 255, 0.55))
        drop-shadow(0 25px 60px rgba(255, 0, 200, 0.30))
        drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65));
    animation: floatY 6s ease-in-out infinite;
    will-change: transform, filter;
}

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

/* === Планшет === */
@media (max-width: 1023px) {
    .hero__visual {
        max-width: 560px;
    }
}

/* === Мобила: картинка превращается в фон всего hero под текстом === */
@media (max-width: 968px) {
    .hero__inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    .hero__visual {
        order: -1;
        background-image: url("/legal-static/img/robot-head-500.png");
        width: 90%;
        max-width: 460px;
        margin: 0 auto;
        filter:
            drop-shadow(0 0 35px rgba(0, 212, 255, 0.55))
            drop-shadow(0 18px 35px rgba(255, 0, 200, 0.28))
            drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
    }
    .hero__content {
        order: 1;
        max-width: 100%;
    }
    .hero__features,
    .hero__cta-row {
        justify-content: center;
    }
}

/* === Маленькие телефоны === */
@media (max-width: 480px) {
    .hero__visual {
        max-width: 340px;
    }
}

/* ---------- 8. FEATURES (Что вы получаете) ---------- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.feature-card--cyan::before { background: linear-gradient(90deg, #00d4ff, #3b82f6); }
.feature-card--purple::before { background: linear-gradient(90deg, #7c3aed, #ec4899); }
.feature-card--green::before { background: linear-gradient(90deg, #10b981, #00d4ff); }
.feature-card--orange::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 56px;
    height: 72px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.feature-card--cyan .feature-card__icon {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-cyan);
}
.feature-card--purple .feature-card__icon {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
}
.feature-card--green .feature-card__icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}
.feature-card--orange .feature-card__icon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-orange);
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.feature-card__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- 9. TWO TOOLS (Часть А — два столбца с роботом) ---------- */
.tools-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.tool-pillar {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tool-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.tool-pillar--algo::before {
    background: linear-gradient(90deg, #00d4ff, #3b82f6);
}

.tool-pillar--ai::before {
    background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.tool-pillar:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.tool-pillar__icon {
    width: 72px;
    height: 96px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.tool-pillar--algo .tool-pillar__icon {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.tool-pillar--ai .tool-pillar__icon {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
    box-shadow: var(--shadow-glow-purple);
}

.tool-pillar__icon svg {
    width: 36px;
    height: 36px;
}

.tool-pillar__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.tool-pillar__desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

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

.tool-pillar__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.tool-pillar__list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ---------- 10. TELEGRAM MOCKUPS (Часть Б) ---------- */
.tg-mockups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.tg-mockup {
    background: #17212b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #243340;
    transition: transform 0.3s ease;
}

.tg-mockup:hover {
    transform: translateY(-4px);
}

.tg-mockup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #232e3c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-mockup__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tg-mockup__title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.tg-mockup__subtitle {
    font-size: 12px;
    color: #6c7883;
}

.tg-mockup__subtitle--online::before {
    content: '●';
    color: var(--accent-green);
    margin-right: 4px;
}

.tg-mockup__body {
    padding: 18px 16px;
    min-height: 280px;
    background:
        radial-gradient(circle at 25% 15%, rgba(0, 212, 255, 0.04), transparent 40%),
        #17212b;
}

/* Сообщение "сделка" — стиль ленты канала */
.tg-trade {
    background: #2b5278;
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.tg-trade__head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tg-trade__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.tg-trade__action {
    color: #fff;
    letter-spacing: 0.02em;
}

.tg-trade__pair {
    margin-left: auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 16px;
    color: #fff;
    background: rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 6px;
}

.tg-trade__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.tg-trade__row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.tg-trade__row-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
}

.tg-trade__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-trade__tag {
    font-size: 13px;
    color: #82b1ff;
}

/* ---------- 10. TELEGRAM MOCKUPS — продолжение (чат AI) ---------- */
.tg-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-chat__msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.tg-chat__msg--user {
    align-self: flex-end;
    background: #2b5278;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.tg-chat__msg--bot {
    align-self: flex-start;
    background: #182533;
    color: #e8eef9;
    border: 1px solid #243340;
    border-bottom-left-radius: 4px;
    max-width: 92%;
}

.tg-chat__msg-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.85;
}

.tg-chat__msg-author--user {
    color: #82b1ff;
}

.tg-chat__msg-author--bot {
    color: #a78bfa;
}

.tg-chat__msg p {
    color: inherit;
    font-size: 14px;
    margin-bottom: 6px;
}

.tg-chat__msg p:last-child {
    margin-bottom: 0;
}

.tg-chat__msg-block {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-chat__msg-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.tg-chat__msg-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 4px;
}

.tg-chat__msg-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 12px;
    position: relative;
}

.tg-chat__msg-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00d4ff;
}

.tg-chat__msg-final {
    margin-top: 10px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Footer мокапа (дисклеймер ИИР) */
.tg-mockup__footer {
    padding: 10px 16px;
    background: #1d2733;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11.5px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

/* Адаптив для мокапов и tools-hero */
@media (max-width: 768px) {
    .tools-hero {
        grid-template-columns: 1fr;
    }
    .tg-mockups {
        grid-template-columns: 1fr;
    }
}

/* ---------- 11. STEPS (Три шага) ---------- */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.step-card__num {
    position: absolute;
    top: -16px;
    left: var(--space-lg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-cyan);
}

.step-card__title {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.step-card__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ---------- 12. COMPARE (До / После) ---------- */
.compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.compare__col {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.compare__col--bad {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
    border-color: rgba(239, 68, 68, 0.25);
}

.compare__col--good {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
    border-color: rgba(16, 185, 129, 0.25);
}

.compare__col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare__col--bad .compare__col-title {
    color: var(--accent-red);
}

.compare__col--good .compare__col-title {
    color: var(--accent-green);
}

.compare__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.compare__list li::before {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

.compare__col--bad .compare__list li::before {
    content: '✕';
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.compare__col--good .compare__list li::before {
    content: '✓';
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.compare__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    color: var(--accent-cyan);
    font-size: 28px;
}

@media (max-width: 880px) {
    .compare {
        grid-template-columns: 1fr;
    }
    .compare__arrow {
        width: auto;
        height: 48px;
        transform: rotate(90deg);
    }
}

/* ---------- 13. PROOF (MyFXBook реальная статистика) ---------- */
.proof {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.proof::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.proof__inner {
    position: relative;
    z-index: 1;
}

.proof__title {
    margin-bottom: var(--space-sm);
}

.proof__subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: var(--space-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.proof__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.proof__stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.proof__stat-value--ok {
    color: var(--accent-green);
}

.proof__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ---------- 14. PRICING ---------- */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

.pricing-card--featured {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: scale(1.02);
}

.pricing-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card__title {
    font-size: 20px;
    margin-bottom: var(--space-xs);
}

.pricing-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.pricing-card__price-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.pricing-card__price-period {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-card__features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.pricing-card__features li::before {
    content: '✓';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ---------- 15. FAQ ---------- */
.faq {
    max-width: 840px;
    margin: 0 auto;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq__item[open] {
    border-color: var(--accent-cyan);
}

.faq__item summary {
    padding: 18px var(--space-md);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.faq__item summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 var(--space-md) 18px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- 16. FINAL CTA ---------- */
.final-cta {
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.15), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.15), transparent 60%),
        var(--bg-section-deep);
    padding: var(--space-2xl) var(--space-md);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

.final-cta__title {
    margin-bottom: var(--space-sm);
}

.final-cta__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 17. FOOTER ---------- */
.footer {
    padding: var(--space-lg) 0 var(--space-md);
    background: var(--bg-section-deep);
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-md);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--accent-cyan);
}

.footer__disclaimer {
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 12px;
}

.footer__disclaimer p + p {
    margin-top: 8px;
}

.footer__bottom {
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- 18. ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out both;
}

/* ---------- 19. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-section-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}
/* ====== Hero image (фото робота) ====== */
.hero__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .hero__image { max-width: 90%; }
}


/* === Features grid 3 columns === */
.features__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .features__grid--3 {
        grid-template-columns: 1fr;
    }
}

/* === Кликабельная карточка === */
.feature-card--link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card--link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.2);
}
.feature-card__link-text {
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-weight: 600;
    font-size: 14px;
}
.feature-card--link:hover .feature-card__link-text {
    color: #4ade80;
}




/* ====== UI fix v2 ====== */

/* Десктоп: меню прижато к CTA справа */
@media (min-width: 769px) {
    .header__nav {
        flex: 1;
        justify-content: flex-end;
        gap: var(--space-lg);
        margin-left: 0;
        padding-right: var(--space-md);
    }
}

/* Футер ссылки на десктопе */
.footer__links {
    flex: 1;
    justify-content: flex-end;
    gap: var(--space-lg);
}

/* Мобилка */
@media (max-width: 768px) {
    /* Шапка */
    .header .container {
        padding-left: 4px;
        padding-right: var(--space-sm);
    }
    .header__inner {
        height: 96px;
    }
    .header__logo {
        margin-left: 0;
        margin-right: auto;
    }
    .header__logo-icon {
        height: 84px;
        max-width: 260px;
    }
    .header__nav {
        top: 96px;
    }

    /* Подвал: контейнер с padding для текста, но лого вытаскиваем к 4px */
    .footer .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    .footer__logo {
        margin-left: calc(4px - var(--space-sm));
    }
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        width: 100%;
        justify-content: flex-start;
        padding-left: 0;
    }
}

/* ====== FOOTER LOGO FIX (лого подвала использует .header__logo) ====== */
@media (max-width: 768px) {
    .footer .header__logo {
        margin-left: -12px !important;   /* container даёт padding 16px → выравниваем к 4px */
        margin-right: 0 !important;
    }
    .footer .header__logo-icon {
        height: 64px !important;          /* в подвале не нужно 84px */
        max-width: 220px !important;
        width: auto !important;
    }
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 520px;
    margin-left: auto;
    background: rgba(20, 24, 32, 0.96);
    color: #e8ecf3;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.45;
    backdrop-filter: blur(8px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1; }
.cookie-banner__text a { color: #4ea3ff; text-decoration: underline; }
.cookie-banner__btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #4ea3ff;
    color: #0b0f17;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}
.cookie-banner__btn:hover { background: #6db4ff; }

@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .cookie-banner__btn { width: 100%; padding: 10px; }
}
