/* AI Managers — общий стиль лендингов (главная + Битрикс24) */

:root {
    --bg: #0b0f1a;
    --bg-soft: #111827;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #ffffff;
    --text-soft: #d1d5db;
    --text-muted: #9ca3af;
    --blue: #2563eb;
    --violet: #7c3aed;
    --green: #22c55e;
    --cyan: #38bdf8;
    --white: #ffffff;
    --radius-card: 20px;
    --radius-button: 14px;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 18px 48px rgba(37, 99, 235, 0.26);
    --container: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 84% 8%, rgba(37, 99, 235, 0.22), transparent 36%),
        radial-gradient(circle at 12% 28%, rgba(124, 58, 237, 0.15), transparent 30%),
        radial-gradient(circle at 60% 90%, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
    background-size: 76px 76px, 76px 76px, auto, auto, auto, auto;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin-top: 0; }
img { max-width: 100%; }
.page { overflow: clip; }
.container { width: min(100% - 48px, var(--container)); margin: 0 auto; }

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 15, 26, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav { position: relative; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(37, 99, 235, 0.24));
}
.brand span:last-child { font-size: 15px; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--text-soft); font-size: 14px; font-weight: 600; }
.nav-links a { transition: color 180ms var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: transform 220ms var(--ease), opacity 220ms var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Кнопки ---------- */

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: var(--white); box-shadow: var(--shadow-glow); }
.button-primary:hover { box-shadow: 0 22px 56px rgba(124, 58, 237, 0.32); }
.button-secondary { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: var(--white); }
.button-secondary:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
.button-light { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: var(--white); }
.button-light:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(600px, calc(100svh - 120px), 800px);
    padding: 96px 0 110px;
}
.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(11, 15, 26, 0.98) 0%, rgba(11, 15, 26, 0.84) 46%, rgba(11, 15, 26, 0.3) 100%),
        linear-gradient(180deg, rgba(11, 15, 26, 0) 70%, rgba(11, 15, 26, 1) 100%),
        url("/images/ai-managers-hero.png") right center / min(760px, 58vw) auto no-repeat;
}
.hero-content { width: min(820px, 100%); animation: rise 700ms var(--ease) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12); content: ""; animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { margin: 26px 0 26px; font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.text-grad { background: linear-gradient(120deg, var(--cyan), var(--blue) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-lead { max-width: 680px; margin-bottom: 38px; color: var(--text-soft); font-size: clamp(17px, 2vw, 21px); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); }
.hero-stat { flex: 1 1 180px; padding: 22px 26px; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line); }
.hero-stat b { display: block; margin-bottom: 6px; font-size: 30px; font-weight: 800; line-height: 1; }
.hero-stat span { color: var(--text-muted); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ---------- Секции ---------- */

.section { padding: clamp(80px, 9vw, 130px) 0; }
.section-light { border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(11, 15, 26, 0.98)); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.section-kicker::before { width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); content: ""; }
.section h2 { max-width: 780px; margin-bottom: 0; font-size: clamp(30px, 4vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
.section-description { max-width: 440px; margin-bottom: 0; color: var(--text-soft); font-size: 17px; line-height: 1.66; }

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

/* ---------- Карточки ---------- */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    padding: 30px;
    transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)); box-shadow: var(--shadow-soft); }
.card-label { display: inline-flex; min-height: 32px; align-items: center; border-radius: 999px; padding: 0 13px; background: rgba(37, 99, 235, 0.16); color: #bfdbfe; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.card h3 { margin: 20px 0 12px; font-size: 21px; font-weight: 800; line-height: 1.24; }
.card p { margin-bottom: 0; color: var(--text-soft); font-size: 15px; line-height: 1.68; }

.pain-card h3 { margin-top: 0; }
.pain-emoji { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 24px; }

/* ---------- Этапы ---------- */

.process { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.process-panel { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px; background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.12)), rgba(255, 255, 255, 0.04); }
.process-panel h2 { margin-bottom: 18px; }
.process-panel p { margin-bottom: 0; color: var(--text-soft); font-size: 16px; line-height: 1.72; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; background: rgba(255, 255, 255, 0.04); transition: border-color 220ms var(--ease), background 220ms var(--ease); }
.step:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.step-number { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--violet)); color: var(--white); font-size: 15px; font-weight: 800; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28); }
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { margin-bottom: 0; color: var(--text-soft); font-size: 15px; line-height: 1.62; }

/* ---------- Список возможностей ---------- */

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 17px 20px; background: rgba(255, 255, 255, 0.05); font-size: 15px; font-weight: 700; line-height: 1.4; transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.feature-list li:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.feature-list li::before { flex: none; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 999px; background: rgba(34, 197, 94, 0.16); color: var(--green); font-size: 13px; content: "✓"; }

/* ---------- Сравнение ---------- */

.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare-column { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 34px; background: rgba(255, 255, 255, 0.04); }
.compare-column.is-accent { border-color: rgba(56, 189, 248, 0.32); background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.07)); }
.compare-column h3 { margin-bottom: 22px; font-size: 23px; }
.compare-column ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.compare-column li { display: flex; gap: 12px; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.compare-column li::before { flex: none; margin-top: 1px; color: var(--text-muted); font-weight: 800; content: "✕"; }
.compare-column.is-accent li::before { color: var(--green); content: "✓"; }

/* ---------- Чипы отраслей ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; background: rgba(255, 255, 255, 0.05); color: var(--text-soft); font-size: 14px; font-weight: 800; transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease); }
.chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); color: var(--white); }

/* ---------- Кейсы / метрики ---------- */

.case-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 250px; }
.metric { font-size: 44px; font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Кейсы до/после ---------- */

.cases { display: grid; gap: 24px; }
.case-study { border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); padding: clamp(24px, 3.4vw, 40px); transition: border-color 220ms var(--ease); }
.case-study:hover { border-color: var(--line-strong); }
.case-top { margin-bottom: 26px; }
.case-top h3 { margin: 16px 0 6px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.case-top p { margin-bottom: 0; color: var(--text-muted); font-size: 15px; }
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-block { border-radius: 16px; padding: 26px; }
.case-before { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.case-after { border: 1px solid rgba(34, 197, 94, 0.3); background: linear-gradient(160deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.06)); }
.case-label { display: inline-flex; margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.case-before .case-label { color: var(--text-muted); }
.case-after .case-label { color: var(--green); }
.case-block ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.case-block li { display: flex; gap: 12px; color: var(--text-soft); font-size: 15px; line-height: 1.62; }
.case-block li::before { flex: none; margin-top: 1px; font-weight: 800; }
.case-before li::before { color: var(--text-muted); content: "✕"; }
.case-after li::before { color: var(--green); content: "✓"; }
.case-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.case-result { display: flex; align-items: center; gap: 16px; }
.case-result b { font-size: 38px; font-weight: 800; line-height: 1; white-space: nowrap; background: linear-gradient(120deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.case-result span { max-width: 360px; color: var(--text-soft); font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ---------- Итоги (страница Битрикс24) ---------- */

.result-panel { border: 1px solid rgba(56, 189, 248, 0.28); border-radius: var(--radius-card); padding: clamp(28px, 4vw, 44px); background: linear-gradient(160deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.1)), rgba(255, 255, 255, 0.03); }
.result-panel .feature-list { margin-top: 8px; }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: rgba(255, 255, 255, 0.04); transition: border-color 200ms var(--ease), background 200ms var(--ease); overflow: hidden; }
.faq-list details[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font-size: 17px; font-weight: 800; line-height: 1.4; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: none; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font-size: 17px; font-weight: 600; content: "+"; transition: transform 220ms var(--ease), background 220ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); background: rgba(255, 255, 255, 0.08); }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--text-soft); font-size: 15px; line-height: 1.7; }

/* ---------- CTA ---------- */

.cta { padding: clamp(64px, 7vw, 100px) 0 clamp(80px, 9vw, 130px); }
.cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    border-radius: 28px;
    padding: clamp(40px, 6vw, 72px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(124, 58, 237, 0.8)), var(--bg-soft);
    box-shadow: 0 30px 90px rgba(37, 99, 235, 0.22);
    overflow: hidden;
}
.cta-panel::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16), transparent 42%); pointer-events: none; }
.cta-panel h2 { position: relative; max-width: 720px; margin-bottom: 16px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.015em; }
.cta-panel p { position: relative; max-width: 620px; margin-bottom: 0; color: rgba(255, 255, 255, 0.88); font-size: 17px; line-height: 1.66; }
.cta-panel .button { position: relative; }

/* ---------- Подвал ---------- */

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 48px 0; background: #070a12; color: var(--text-muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { transition: color 180ms var(--ease); }
.footer-links a:hover { color: var(--white); }

/* ---------- Анимации ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14); } 50% { box-shadow: 0 0 0 11px rgba(34, 197, 94, 0.05); } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
    .nav-links { gap: 22px; }
}

@media (max-width: 980px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(11, 15, 26, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .nav-open .nav-links { display: flex; }
    .nav-links a { padding: 17px 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 16px; }

    .hero { min-height: auto; padding: 64px 0 72px; }
    .hero::before { background: linear-gradient(180deg, rgba(11, 15, 26, 0.9) 0%, rgba(11, 15, 26, 0.72) 45%, rgba(11, 15, 26, 1) 100%), url("/images/ai-managers-hero.png") center -20px / min(620px, 130vw) auto no-repeat; }
    .hero-content { padding-top: 150px; }

    .section-header { display: grid; grid-template-columns: 1fr; align-items: start; gap: 18px; }
    .process, .faq { grid-template-columns: 1fr; }
    .process-panel { position: static; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .comparison, .case-columns { grid-template-columns: 1fr; }
    .cta-panel { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 32px, var(--container)); }
    .nav { min-height: 72px; }
    .nav-actions .button { min-height: 46px; padding: 0 16px; font-size: 14px; }

    .hero-content { padding-top: 120px; }
    .hero h1 { font-size: clamp(34px, 10.5vw, 48px); }
    .hero-actions { display: grid; width: 100%; }
    .hero-actions .button { width: 100%; }
    .hero-stats { flex-direction: column; margin-top: 40px; }
    .hero-stat + .hero-stat { border-left: 0; border-top: 1px solid var(--line); }

    .grid-3 { grid-template-columns: 1fr; }
    .card, .compare-column { padding: 24px; }
    .process-panel { padding: 26px; }
    .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
    .feature-list { grid-template-columns: 1fr; }
    .case-block { padding: 20px; }
    .case-footer { flex-direction: column; align-items: stretch; }
    .case-footer .button { width: 100%; }
    .case-result b { font-size: 32px; }
    .faq-list summary { padding: 19px 18px; font-size: 16px; }
    .faq-list details p { padding: 0 18px 20px; }
    .cta-panel .button { width: 100%; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
