/* ============================================================
   Программы для маркетологов и продвижения бизнеса
   marketing.spektr-ekb.ru — Студия Спектр
   ============================================================ */

:root {
    --bg: #070a14;
    --bg-soft: #0d1220;
    --card: rgba(255, 255, 255, .045);
    --card-solid: #121a2b;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --text: #e9edf7;
    --muted: #9aa6c2;
    --accent: #e64545;
    --accent-2: #f97316;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .45);
    --container: 1180px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ── Фоновые пятна ─────────────────────────────────────────── */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; }
.orb-1 { width: 46vw; height: 46vw; top: -14vw; left: -10vw;  background: #e64545; animation: float1 22s ease-in-out infinite; }
.orb-2 { width: 40vw; height: 40vw; top: 24vw;  right: -12vw; background: #4f46e5; animation: float2 26s ease-in-out infinite; }
.orb-3 { width: 34vw; height: 34vw; bottom: -10vw; left: 26vw; background: #0ea5e9; opacity: .22; animation: float1 30s ease-in-out infinite reverse; }

@keyframes float1 { 50% { transform: translate3d(4vw, 5vw, 0) scale(1.12); } }
@keyframes float2 { 50% { transform: translate3d(-5vw, -4vw, 0) scale(1.08); } }

/* ── Кнопки ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff; box-shadow: 0 12px 34px rgba(230, 69, 69, .34);
}
.btn-outline { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-outline:hover { border-color: #fff; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; box-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}

/* ── Хедер ─────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(14px);
    background: rgba(7, 10, 20, .72);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, #ef4444, #7c3aed); color: #fff; font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .38);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: .72rem; font-weight: 600; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--text); border-radius: 2px; }

/* ── Герой ─────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 118px) 22px clamp(40px, 6vw, 76px); text-align: center; }

.pill {
    display: inline-block; padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .05);
    color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; margin-bottom: 22px;
}

.hero h1 {
    background: linear-gradient(120deg, #ffffff 8%, #ffd9a8 42%, #b9a2ff 78%, #ffffff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    max-width: 20ch; margin: 0 auto .4em;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.13rem); max-width: 62ch; margin: 0 auto 34px; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
    max-width: 940px; margin: 0 auto;
}
.stat {
    padding: 22px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--card);
    backdrop-filter: blur(8px); text-align: center;
}
.stat-value { display: block; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; }
.stat-label { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ── Герой программы (отдельная страница) ──────────────── */
.program-hero { padding: clamp(56px, 9vw, 118px) 22px clamp(30px, 5vw, 60px); text-align: center; }
.program-hero-emoji {
    width: 110px; height: 110px; border-radius: 28px; display: grid; place-items: center;
    font-size: 3.2rem; margin: 0 auto 24px;
    border: 1px solid var(--border);
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(255, 255, 255, .04));
}
.program-hero .badge { margin-bottom: 16px; }
.program-hero h1 { max-width: 20ch; }

/* ── Заголовки секций ──────────────────────────────────────── */
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ── Программы ─────────────────────────────────────────────── */
.programs { padding: clamp(30px, 5vw, 60px) 22px 0; }

.program {
    position: relative; margin-bottom: 74px; padding: clamp(26px, 4vw, 48px);
    border-radius: var(--radius); border: 1px solid var(--border);
    background:
        radial-gradient(1000px 320px at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
        linear-gradient(180deg, var(--card), rgba(255, 255, 255, .02));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.program::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: .9;
}

.program-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 8px; }
.program-emoji {
    flex: none; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
    font-size: 1.85rem; border: 1px solid var(--border);
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(255, 255, 255, .04));
}
.program-titles { flex: 1; }
.badge {
    display: inline-block; padding: 5px 13px; border-radius: 999px; margin-bottom: 10px;
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.program-titles h3 { margin-bottom: 4px; }
.program-titles .btn { margin-top: 12px; }
.program-subtitle { margin: 0; color: var(--muted); }

.program-tagline {
    margin: 18px 0 0; padding-left: 18px; border-left: 3px solid var(--accent);
    font-size: 1.1rem; font-weight: 600; color: var(--text);
}

.program-body { display: block; margin-top: 30px; }
.program-text p { color: #c3ccdf; }

.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 36px; font-size: .96rem; color: var(--text); }
.features li::before {
    content: "✓"; position: absolute; left: 0; top: 1px;
    width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center;
    font-size: .74rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ── Скриншоты ─────────────────────────────────────────────── */
.gallery {
    display: grid; gap: 18px;
    width: calc(100% + 2 * clamp(26px, 4vw, 48px));
    margin-left: calc(-1 * clamp(26px, 4vw, 48px));
    margin-right: calc(-1 * clamp(26px, 4vw, 48px));
}
.shot {
    margin: 0; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border); background: var(--card-solid);
    transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.shot:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 16px 40px rgba(0, 0, 0, .42); }

.shot-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.shot-img img { width: 100%; height: auto; }
.shot-zoom {
    position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(8, 11, 20, .72); color: #fff;
    font-size: 1rem; opacity: 0; transition: opacity .2s; backdrop-filter: blur(4px);
}
.shot:hover .shot-zoom { opacity: 1; }

.shot figcaption {
    padding: 15px 18px; font-size: .94rem; line-height: 1.5; color: #cbd5ea;
    border-top: 1px solid var(--border); background: rgba(0, 0, 0, .22);
}

/* ── Видео ─────────────────────────────────────────────────── */
.program-video { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border); }
.video-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.video-head h4 { margin: 0; }
.video-badge {
    padding: 6px 14px; border-radius: 999px; font-size: .76rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.video-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border); background: #05070f;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.small { aspect-ratio: 16 / 9; }

.video-link {
    display: inline-block; margin-top: 14px; color: var(--muted);
    font-weight: 700; font-size: .92rem; transition: color .15s;
}
.video-link:hover { color: #fff; }

.videos { padding: clamp(40px, 6vw, 80px) 22px 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; }
.video-card {
    padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, .02));
    backdrop-filter: blur(10px);
}
.video-card h4 { margin: 18px 0 6px; }
.video-card p { font-size: .93rem; margin-bottom: 0; }

.program-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ── Шаги ──────────────────────────────────────────────────── */
.how { padding: clamp(60px, 8vw, 110px) 22px 0; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step {
    position: relative; padding: 30px 24px 26px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--card); backdrop-filter: blur(8px);
}
.step-num {
    position: absolute; top: -18px; left: 24px;
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    font-weight: 800; color: #fff; font-size: 1.05rem;
    background: linear-gradient(135deg, #ef4444, #7c3aed);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .35);
}
.step h4 { margin-top: 18px; }
.step p { font-size: .93rem; margin: 0; }

/* ── CTA ───────────────────────────────────────────────────── */
.cta { padding: clamp(60px, 8vw, 110px) 22px; }
.cta-card {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center;
    padding: clamp(28px, 4vw, 52px); border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(800px 300px at 100% 0%, rgba(124, 58, 237, .30), transparent 65%),
        radial-gradient(600px 260px at 0% 100%, rgba(230, 69, 69, .26), transparent 65%),
        var(--card-solid);
    box-shadow: var(--shadow);
}
.cta-text p { font-size: 1.03rem; }
.cta-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.cta-list li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--text); }
.cta-list li::before { content: "→"; position: absolute; left: 0; color: #ff9b8a; font-weight: 800; }

.cta-actions { display: grid; gap: 12px; }
.cta-note { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: .88rem; }

/* ── Футер ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, .28); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; align-items: start; }
.site-footer p { margin: 6px 0 0; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-meta { display: grid; gap: 6px; color: var(--muted); font-size: .86rem; }
.muted { opacity: .7; }

/* ── Лайтбокс ──────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 100; display: grid;
    grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px;
    padding: 24px; background: rgba(3, 5, 12, .92); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; }
.lb-figure img { max-width: min(1200px, 92vw); max-height: 78vh; margin: 0 auto; border-radius: 14px; border: 1px solid var(--border-strong); }
.lb-figure figcaption { margin-top: 16px; color: #cbd5ea; font-size: .98rem; max-width: 70ch; margin-inline: auto; }
.lb-close, .lb-prev, .lb-next {
    border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .06); color: #fff;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.35rem; cursor: pointer;
}
.lb-close { position: absolute; top: 22px; right: 24px; }
.lb-prev { justify-self: start; }
.lb-next { justify-self: end; }

/* ── Появление при скролле ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .orb { animation: none; }
    html { scroll-behavior: auto; }
}

/* ── Скачать (программа) ───────────────────────────── */
.download-section { padding: clamp(40px, 6vw, 80px) 22px 0; }
.download-card {
    max-width: 640px; margin: 0 auto; padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius); border: 1px solid var(--border);
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(99, 102, 241, .18), transparent 65%),
        var(--card);
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: var(--shadow);
}
.download-icon { font-size: 3rem; margin-bottom: 16px; }
.download-card h3 { margin-bottom: 6px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.download-meta { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.download-meta span { margin: 0 6px; }
.download-meta span:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--border-strong); }
.download-desc { color: var(--muted); font-size: .96rem; margin-bottom: 24px; }
.download-note { margin-top: 16px; font-size: .88rem; }
.download-note a { color: var(--accent); font-weight: 600; transition: color .15s; }
.download-note a:hover { color: #fff; }
/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 980px) {
    .cta-card { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hide-sm { display: none; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: #0b1020; border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .nav.is-open { max-height: 320px; }
    .nav a { padding: 16px 22px; border-bottom: 1px solid var(--border); }
    .burger { display: block; }
    .program-head { flex-direction: row; }
    .program-emoji { width: 54px; height: 54px; border-radius: 16px; font-size: 1.5rem; }
    .lightbox { grid-template-columns: 1fr; }
    .lb-prev, .lb-next { position: absolute; bottom: 24px; }
    .lb-prev { left: 24px; }
    .lb-next { right: 24px; }
    .download-card { padding: 24px; }
}
