/* ================================================================
   Медвежонок · Главная страница — дизайн v3 «Editorial Bento»
   Светлая база · bento-сетки · крупная типографика · тёмный контраст
   ================================================================ */

:root {
    /* --- Чернила и бумага --- */
    --ink: #0b0a1a;
    --ink-2: #16123a;
    --ink-3: #221a52;
    --paper: #fbfaff;
    --paper-2: #f4f2fd;

    /* --- Бренд --- */
    --accent: #5b3df5;
    --accent-2: #7c3aed;
    --accent-3: #4f46e5;
    --accent-light: #8d7cf8;
    --accent-lighter: #cec6fc;
    --accent-soft: #f1eeff;
    --accent-grad: linear-gradient(135deg, #7c3aed 0%, #5b3df5 52%, #4f46e5 100%);

    --mint: #5eead4;
    --mint-deep: #0d9488;
    --mint-soft: #d6f6f0;
    --mint-grad: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);

    --amber: #d97706;
    --amber-soft: #fef3c7;
    --amber-grad: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

    --rose: #e11d48;
    --rose-soft: #ffe4e6;
    --rose-grad: linear-gradient(135deg, #fb7185 0%, #be123c 100%);

    --green: #059669;
    --green-soft: #d1fae5;
    --green-grad: linear-gradient(135deg, #34d399 0%, #059669 100%);

    --purple: #7c3aed;
    --purple-soft: #ede9fe;

    /* --- Границы и текст --- */
    --line: #e8e5f5;
    --line-2: #d9d5ec;
    --t1: #131129;
    --t2: #5b5878;
    --t3: #9691ab;

    /* --- Стекло и тени --- */
    --glass: rgba(255, 255, 255, .72);
    --glass-brd: rgba(255, 255, 255, .85);
    --sh-1: 0 1px 2px rgba(19, 17, 41, .04);
    --sh-2: 0 6px 18px rgba(19, 17, 41, .06);
    --sh-3: 0 18px 44px rgba(19, 17, 41, .09);
    --sh-4: 0 30px 70px rgba(19, 17, 41, .13);
    --sh-glow: 0 22px 60px rgba(91, 61, 245, .24);

    /* --- Скругления --- */
    --r-s: 14px;
    --r-m: 20px;
    --r-l: 28px;
    --r-xl: 36px;
    --r-pill: 100px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --tr: all .4s var(--ease);
    --tr-f: all .22s var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--t1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; }
button { font-family: inherit; }

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

/* ================================================================
   КНОПКИ
   ================================================================ */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: var(--r-pill);
    font-family: inherit; font-weight: 700; font-size: 15px;
    text-decoration: none; cursor: pointer; border: none;
    transition: var(--tr); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
    background: var(--accent-grad); color: #fff;
    box-shadow: 0 12px 28px rgba(91, 61, 245, .30);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: translateX(-120%); transition: transform .75s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(91, 61, 245, .42); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
    background: #fff; color: var(--t1);
    border: 1.5px solid var(--line-2);
    box-shadow: var(--sh-1);
}
.btn-ghost:hover {
    border-color: var(--accent-light); color: var(--accent);
    transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91, 61, 245, .14);
}
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn-lg svg { width: 20px; height: 20px; }

/* ================================================================
   ШАПКА — плавающая пилюля
   ================================================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 0; transition: padding .4s var(--ease);
}
.header-inner {
    max-width: 1160px; margin: 0 auto; padding: 9px 10px 9px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 62px;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-pill);
    box-shadow: 0 10px 34px rgba(19, 17, 41, .08);
    transition: var(--tr);
}
.header.scrolled { padding: 9px 0; }
.header.scrolled .header-inner { box-shadow: 0 16px 44px rgba(19, 17, 41, .13); }

.logo {
    display: flex; align-items: center; gap: 11px; text-decoration: none;
    color: var(--t1); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
}
.logo:hover { opacity: .85; }
.logo-icon-img {
    width: 40px; height: 40px; border-radius: 13px; object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(91, 61, 245, .22);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .lt-main { font-size: 19px; font-weight: 800; }
.logo-text .lt-sub {
    font-size: 10px; font-weight: 800; color: var(--t3);
    text-transform: uppercase; letter-spacing: .12em;
}

.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
    color: var(--t2); text-decoration: none; font-size: 14px; font-weight: 700;
    padding: 9px 15px; border-radius: var(--r-pill); transition: var(--tr-f);
}
.nav a:hover { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; gap: 8px; align-items: center; }
.header .btn { padding: 10px 20px; font-size: 14px; }
.menu-toggle {
    display: none; padding: 9px; border-radius: 12px; cursor: pointer;
    background: #fff; border: 1px solid var(--line); color: var(--t1);
    transition: var(--tr-f);
}
.menu-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* ================================================================
   HERO — светлый, воздушный, bento-мозаика
   ================================================================ */
.hero {
    position: relative; overflow: hidden;
    padding: 168px 0 110px;
    background: var(--paper);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(48% 42% at 88% 6%, rgba(124, 58, 237, .20), transparent 62%),
        radial-gradient(46% 40% at 4% 16%, rgba(79, 70, 229, .16), transparent 60%),
        radial-gradient(60% 50% at 62% 108%, rgba(94, 234, 212, .20), transparent 62%);
}
.hero-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(91, 61, 245, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 61, 245, .07) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(ellipse 76% 62% at 50% 34%, #000 6%, transparent 74%);
    mask-image: radial-gradient(ellipse 76% 62% at 50% 34%, #000 6%, transparent 74%);
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(72px);
    pointer-events: none; z-index: 0; opacity: .7;
}
.hero-orb.o1 {
    width: 460px; height: 460px; top: -140px; right: 6%;
    background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 68%);
    animation: orbFloat 22s ease-in-out infinite;
}
.hero-orb.o2 {
    width: 400px; height: 400px; bottom: -160px; left: -80px;
    background: radial-gradient(circle, rgba(94, 234, 212, .48), transparent 68%);
    animation: orbFloat 27s ease-in-out infinite reverse;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(38px, -40px) scale(1.12); }
}

.hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 8px 8px 8px; padding-right: 18px;
    border-radius: var(--r-pill);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-2);
    font-size: 13px; font-weight: 700; color: var(--t2);
    margin-bottom: 26px;
}
.hero-eyebrow .tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--r-pill);
    background: var(--accent-grad); color: #fff;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.hero-eyebrow .tag .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #fff;
    animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.3rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -.045em;
    margin-bottom: 24px; color: var(--t1);
    text-wrap: balance;
}
.hero h1 .mark {
    position: relative; white-space: nowrap;
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px; color: var(--t2); line-height: 1.72;
    max-width: 500px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-fact {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
    font-size: 13px; font-weight: 700; color: var(--t2);
    box-shadow: var(--sh-1); transition: var(--tr-f);
}
.hero-fact:hover { transform: translateY(-2px); color: var(--t1); box-shadow: var(--sh-2); }
.hero-fact svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.bento-wrap { position: relative; }

/* --- Bento-мозаика в hero --- */
.bento {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.bento-main {
    grid-column: 1 / -1;
    position: relative; overflow: hidden;
    border-radius: var(--r-l);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-4);
}
.bento-main::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(160deg, rgba(91, 61, 245, .10), transparent 46%);
}
.bento-bar {
    display: flex; align-items: center; gap: 6px; padding: 12px 16px;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.bento-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.bento-bar i:nth-child(1) { background: #fb7185; }
.bento-bar i:nth-child(2) { background: #fbbf24; }
.bento-bar i:nth-child(3) { background: #34d399; }
.bento-bar span { font-size: 12px; font-weight: 700; color: var(--t3); margin-left: 8px; }
.bento-main img { display: block; width: 100%; height: auto; }

.bento-tile {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px; border-radius: var(--r-m);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-2); transition: var(--tr);
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.bento-tile .bt-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.bento-tile .bt-icon svg { width: 20px; height: 20px; }
.bento-tile .bt-icon.green { background: var(--green-soft); color: var(--green); }
.bento-tile .bt-icon.accent { background: var(--accent-soft); color: var(--accent); }
.bento-tile .bt-icon.mint { background: var(--mint-soft); color: var(--mint-deep); }
.bento-tile .bt-val { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.bento-tile .bt-val.green { color: var(--green); }
.bento-tile .bt-val.accent { color: var(--accent); }
.bento-tile .bt-val.mint { color: var(--mint-deep); }
.bento-tile .bt-label { font-size: 11.5px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .05em; }

/* ================================================================
   БЕГУЩАЯ СТРОКА
   ================================================================ */
.ticker {
    padding: 20px 0; overflow: hidden;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: #fff;
}
.ticker-row {
    display: flex; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track { display: flex; gap: 12px; flex-shrink: 0; animation: tickerRun 36s linear infinite; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 20px; border-radius: var(--r-pill); white-space: nowrap;
    background: var(--paper-2); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 700; color: var(--t2);
}
.ticker-item .ti-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ticker-item:nth-child(even) .ti-dot { background: var(--mint-deep); }
.ticker-item:nth-child(3n) .ti-dot { background: var(--amber); }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================================
   МЕТРИКИ — editorial-полоса
   ================================================================ */
.metrics { padding: 82px 0; }
.metrics-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--r-l);
    background: #fff; box-shadow: var(--sh-2); overflow: hidden;
}
.metric {
    padding: 40px 28px; text-align: center; position: relative;
    transition: var(--tr);
}
.metric:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 22%; bottom: 22%;
    width: 1px; background: var(--line);
}
.metric:hover { background: var(--paper-2); }
.metric-num {
    display: flex; align-items: baseline; justify-content: center; gap: 2px;
    font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800;
    letter-spacing: -.05em; line-height: 1;
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.metric-num .suffix { font-size: .62em; }
.metric-label { font-size: 13.5px; font-weight: 700; color: var(--t2); margin-top: 10px; }

/* ================================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ================================================================ */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--paper-2); }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: var(--r-pill);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent); margin-bottom: 20px;
}
.sec-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.sec-eyebrow.rose { color: var(--rose); }
.sec-eyebrow.rose::before { background: var(--rose); }
.sec-eyebrow.mint { color: var(--mint-deep); }
.sec-eyebrow.mint::before { background: var(--mint-deep); }
.sec-title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
    color: var(--t1); margin-bottom: 18px; text-wrap: balance;
}
.sec-title .mark {
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sec-desc { font-size: 17px; color: var(--t2); line-height: 1.72; }

/* ================================================================
   РОЛИ — интерактивные табы
   ================================================================ */
.roles-tabs {
    display: inline-flex; gap: 5px; padding: 6px; margin: 0 auto 42px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-pill); box-shadow: var(--sh-2);
    position: relative;
}
.roles-tabs-wrap { display: flex; justify-content: center; }
.role-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--r-pill); border: none; cursor: pointer;
    background: transparent; color: var(--t2);
    font-size: 14.5px; font-weight: 700; transition: var(--tr-f); white-space: nowrap;
}
.role-tab svg { width: 17px; height: 17px; }
.role-tab:hover { color: var(--accent); }
.role-tab.active { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 24px rgba(91, 61, 245, .30); }

.role-panel { display: none; }
.role-panel.active {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center;
    animation: panelIn .5s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.role-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.role-panel > div > p { font-size: 16px; color: var(--t2); line-height: 1.72; margin-bottom: 26px; }
.role-panel ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.role-panel li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.role-panel li .li-check {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-soft); color: var(--green);
}
.role-panel li .li-check svg { width: 13px; height: 13px; }

.role-visual {
    position: relative; border-radius: var(--r-l); overflow: hidden;
    border: 1px solid var(--line); background: #fff;
    box-shadow: var(--sh-4);
}
.role-visual img { display: block; width: 100%; height: auto; }
.role-visual .rv-bar {
    display: flex; align-items: center; gap: 6px; padding: 11px 16px;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.role-visual .rv-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.role-visual .rv-bar i:nth-child(1) { background: #fb7185; }
.role-visual .rv-bar i:nth-child(2) { background: #fbbf24; }
.role-visual .rv-bar i:nth-child(3) { background: #34d399; }
.role-visual .rv-bar span { font-size: 12px; font-weight: 700; color: var(--t3); margin-left: 8px; }

/* ================================================================
   BENTO-ВОЗМОЖНОСТИ
   ================================================================ */
.bento-features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bf {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 30px 26px; border-radius: var(--r-l);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-2); transition: var(--tr);
}
.bf::after {
    content: ''; position: absolute; top: -40%; right: -30%;
    width: 240px; height: 240px; border-radius: 50%; filter: blur(56px);
    opacity: 0; transition: var(--tr); pointer-events: none;
    background: rgba(91, 61, 245, .18);
}
.bf:hover::after { opacity: 1; }
.bf > * { position: relative; z-index: 1; }
.bf:hover { transform: translateY(-7px); box-shadow: var(--sh-3); border-color: var(--accent-lighter); }
.bf-icon {
    width: 56px; height: 56px; border-radius: 18px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; transition: var(--tr);
}
.bf-icon svg { width: 27px; height: 27px; }
.bf-icon.amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--amber); }
.bf-icon.accent { background: linear-gradient(135deg, #efecff, #e0dbff); color: var(--accent); }
.bf-icon.mint   { background: linear-gradient(135deg, #d6f6f0, #a7ecdf); color: var(--mint-deep); }
.bf-icon.green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--green); }
.bf-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: var(--purple); }
.bf-icon.rose   { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: var(--rose); }
.bf:hover .bf-icon { transform: scale(1.08) rotate(-5deg); }
.bf h3 { font-size: 19px; font-weight: 800; margin-bottom: 9px; letter-spacing: -.02em; }
.bf p { font-size: 14.5px; color: var(--t2); line-height: 1.62; }
.bf-badge {
    position: absolute; top: 20px; right: 20px; z-index: 1;
    padding: 5px 12px; border-radius: var(--r-pill);
    background: var(--green-soft); color: var(--green);
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
}
.bf-lg { grid-column: span 3; grid-row: span 2; }
.bf-md { grid-column: span 3; }
.bf-sm { grid-column: span 2; }
.bf-lg .bf-icon { width: 64px; height: 64px; }
.bf-lg .bf-icon svg { width: 31px; height: 31px; }
.bf-lg h3 { font-size: 24px; }
.bf-lg p { font-size: 15.5px; max-width: 92%; }

/* ================================================================
   ШАГИ ПОДКЛЮЧЕНИЯ
   ================================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before {
    content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-lighter) 12%, var(--accent-lighter) 88%, transparent);
}
.step {
    position: relative; text-align: center; padding: 0 10px;
}
.step-num {
    position: relative; z-index: 1;
    width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--accent-lighter);
    color: var(--accent); font-weight: 800; font-size: 24px;
    box-shadow: var(--sh-2); transition: var(--tr);
}
.step:hover .step-num { background: var(--accent-grad); color: #fff; border-color: transparent; transform: translateY(-4px) scale(1.05); box-shadow: var(--sh-glow); }
.step-title { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--t2); line-height: 1.62; }

/* ================================================================
   ТЁМНАЯ СЕКЦИЯ (Проблема)
   ================================================================ */
.dark {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(60% 60% at 82% 0%, rgba(124, 58, 237, .38), transparent 58%),
        radial-gradient(50% 50% at 8% 100%, rgba(94, 234, 212, .22), transparent 60%),
        linear-gradient(155deg, #0b0a1a 0%, #171241 52%, #1d1650 100%);
}
.dark::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 6%, transparent 76%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 6%, transparent 76%);
}
.dark .sec-title { color: #fff; }
.dark .sec-title .mark {
    background: linear-gradient(120deg, #c4b5fd, #a78bfa 45%, #5eead4);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dark .sec-desc { color: rgba(255, 255, 255, .68); }
.dark .sec-eyebrow {
    background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16);
    color: #d8d0ff; backdrop-filter: blur(10px); box-shadow: none;
}
.dark .sec-eyebrow::before { background: var(--mint); }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.problem {
    position: relative; overflow: hidden;
    padding: 34px 28px; border-radius: var(--r-l);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: var(--tr);
}
.problem:hover { transform: translateY(-7px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.problem-num {
    font-size: 13px; font-weight: 800; letter-spacing: .16em;
    color: #fda4af; margin-bottom: 16px;
}
.problem h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.01em; }
.problem p { font-size: 14.5px; color: rgba(255, 255, 255, .62); line-height: 1.65; }

/* ================================================================
   ПРИЛОЖЕНИЯ
   ================================================================ */
.apps-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.apps-copy .sec-title { margin-bottom: 16px; }
.apps-copy > p { font-size: 16.5px; color: var(--t2); line-height: 1.72; margin-bottom: 30px; }
.app-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.app-btn {
    position: relative; display: inline-flex; overflow: hidden;
    border-radius: var(--r-m); border: 1.5px solid var(--line-2);
    background: #fff; transition: var(--tr);
}
.app-btn:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh-3); }
.app-btn img { display: block; width: 200px; height: auto; }
.app-btn.soon { cursor: default; }
.app-btn.soon:hover { transform: none; border-color: var(--line-2); box-shadow: none; }
.app-btn.soon img { filter: grayscale(1) brightness(.55); }
.app-soon-tag {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    padding: 8px 22px; border-radius: var(--r-pill); white-space: nowrap;
    background: var(--amber-grad); color: #fff;
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
    box-shadow: 0 8px 22px rgba(217, 119, 6, .42);
}
.apps-visual { display: flex; justify-content: center; }
.phone {
    position: relative; overflow: hidden; max-width: 292px;
    border-radius: 38px; border: 7px solid var(--ink-2);
    box-shadow: 0 40px 80px rgba(19, 17, 41, .30), 0 0 0 2px rgba(124, 58, 237, .18);
    transition: var(--tr);
}
.phone:hover { transform: scale(1.03) rotate(-1.5deg); }
.phone img { display: block; width: 100%; height: auto; }

/* ================================================================
   БЕЗОПАСНОСТЬ
   ================================================================ */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 20px; border-radius: var(--r-pill);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    font-size: 14px; font-weight: 700; color: var(--t1);
    transition: var(--tr-f);
}
.badge:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.badge svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.badge-link {
    background: var(--accent-soft); border-color: rgba(91, 61, 245, .22);
    color: var(--accent); text-decoration: none;
}
.badge-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 14px 32px rgba(91, 61, 245, .32); }
.badge-link:hover svg { color: #fff; }
.badge-link .ext { width: 14px; height: 14px; opacity: .75; }

/* ================================================================
   ТАРИФЫ
   ================================================================ */
.period-switch {
    display: inline-flex; gap: 4px; padding: 5px; margin-top: 22px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-pill); box-shadow: var(--sh-2);
}
.ps-btn {
    padding: 10px 24px; border: none; border-radius: var(--r-pill); cursor: pointer;
    background: transparent; color: var(--t2); font-size: 14px; font-weight: 700;
    transition: var(--tr-f);
}
.ps-btn:hover { color: var(--accent); }
.ps-btn.active { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px rgba(91, 61, 245, .30); }
.ps-btn .ps-save { font-size: 11px; font-weight: 800; color: var(--green); }
.ps-btn.active .ps-save { color: #d1fae5; }

.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
.tariff {
    position: relative; overflow: hidden;
    padding: 42px 32px 34px; border-radius: var(--r-xl);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-2); transition: var(--tr);
}
.tariff::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent-grad); opacity: 0; transition: opacity .3s;
}
.tariff:hover { transform: translateY(-8px); box-shadow: var(--sh-4); }
.tariff:hover::before { opacity: 1; }
.tariff.free-highlight {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 48%);
    border-color: var(--green-soft);
}
.tariff.popular {
    background: linear-gradient(180deg, #f8f6ff 0%, #fff 48%);
    border-color: transparent;
    box-shadow: 0 26px 64px rgba(91, 61, 245, .20), 0 0 0 2px rgba(91, 61, 245, .30);
    transform: scale(1.03);
}
.tariff.popular::before {
    opacity: 1;
    background: linear-gradient(90deg, #7c3aed, #5b3df5, #5eead4, #34d399);
    background-size: 220% 100%;
    animation: tariffRun 4s ease-in-out infinite;
}
@keyframes tariffRun { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.tariff.popular:hover { transform: scale(1.03) translateY(-8px); }
.tariff-badge {
    position: absolute; top: 18px; right: 18px;
    padding: 6px 15px; border-radius: var(--r-pill);
    background: var(--accent-grad); color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
    box-shadow: 0 8px 20px rgba(91, 61, 245, .32);
}
.tariff-badge.gold { background: var(--amber-grad); box-shadow: 0 8px 20px rgba(217, 119, 6, .32); }
.tariff h3 {
    font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em;
    background: linear-gradient(120deg, var(--t1) 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tariff-desc { font-size: 14px; color: var(--t2); line-height: 1.6; margin-bottom: 24px; min-height: 44px; }
.tariff-price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-bottom: 26px; }
.tariff-price .amount { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.tariff-price .currency { font-size: 24px; font-weight: 800; color: var(--t2); }
.tariff-price .period { font-size: 15px; font-weight: 700; color: var(--t2); margin-left: 4px; }
.tariff-price.free { color: var(--green); }
.tariff-price.free .currency { color: var(--green); }
.tariff ul { list-style: none; margin-bottom: 30px; display: flex; flex-direction: column; }
.tariff li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; font-size: 14px; color: var(--t2);
    border-bottom: 1px solid var(--line); transition: var(--tr-f);
}
.tariff li:last-child { border-bottom: none; }
.tariff li:hover { padding-left: 6px; }
.tariff li.included { color: var(--t1); font-weight: 600; }
.tariff li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.tariff li.included svg { color: var(--green); }
.tariff li:not(.included) svg { color: var(--t3); }
.tariff .btn { width: 100%; padding: 15px 24px; border-radius: var(--r-m); }
.tariff .btn-ghost { border-width: 1.5px; }

/* ================================================================
   FAQ
   ================================================================ */
.faq { max-width: 820px; margin: 52px auto 0; }
.faq-item {
    margin-bottom: 12px; border-radius: var(--r-m); overflow: hidden;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-1); transition: var(--tr);
}
.faq-item:hover { box-shadow: var(--sh-2); }
.faq-item.open { border-color: var(--accent-lighter); box-shadow: var(--sh-3); }
.faq-question {
    width: 100%; padding: 22px 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: none; cursor: pointer; text-align: left;
    font-size: 16px; font-weight: 700; color: var(--t1); transition: var(--tr-f);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent);
    font-size: 18px; font-weight: 700; line-height: 1; transition: var(--tr);
}
.faq-question.active .faq-icon { background: var(--accent-grad); color: #fff; transform: rotate(45deg); box-shadow: 0 8px 18px rgba(91, 61, 245, .28); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease); }
.faq-answer-content { padding: 0 26px 24px; font-size: 15px; color: var(--t2); line-height: 1.78; }

/* ================================================================
   CTA
   ================================================================ */
.cta {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    padding: 78px 44px; border-radius: var(--r-xl);
    background:
        radial-gradient(60% 90% at 84% 0%, rgba(167, 139, 250, .48), transparent 58%),
        radial-gradient(50% 80% at 6% 100%, rgba(94, 234, 212, .30), transparent 60%),
        linear-gradient(140deg, #2a1470 0%, #5b3df5 56%, #4338ca 100%);
    box-shadow: 0 40px 90px rgba(91, 61, 245, .30);
}
.cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 8%, transparent 72%);
}
.cta h2 {
    position: relative; z-index: 1;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800;
    letter-spacing: -.035em; line-height: 1.12; margin-bottom: 16px; text-wrap: balance;
}
.cta p { position: relative; z-index: 1; font-size: 17px; opacity: .92; max-width: 540px; margin: 0 auto 34px; line-height: 1.7; }
.cta .btn { position: relative; z-index: 1; }
.cta .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .24); }
.cta .btn-primary::after { display: none; }
.cta .btn-primary:hover { background: #f4f1ff; }
.cta-facts { position: relative; z-index: 1; display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.cta-fact { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; opacity: .94; }
.cta-fact svg { width: 16px; height: 16px; }

/* ================================================================
   ПОДВАЛ
   ================================================================ */
.footer {
    position: relative; overflow: hidden; padding: 78px 0 0;
    color: #c3c8f0;
    background: linear-gradient(165deg, #0d0b22 0%, #1a1550 46%, #221a63 100%);
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .55), transparent);
}
.footer::after {
    content: ''; position: absolute; top: -240px; right: -130px; width: 540px; height: 540px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 70%);
}
.footer-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 46px; margin-bottom: 48px;
}
.footer-brand .f-logo {
    display: inline-flex; align-items: center; gap: 11px;
    text-decoration: none; color: #fff; font-weight: 800; font-size: 20px;
}
.footer-brand .f-logo:hover { opacity: .88; }
.footer-brand .f-logo img {
    width: 44px; height: 44px; border-radius: 14px; object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .42);
}
.footer-brand .f-logo .f-name { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand .f-logo .f-name b { font-size: 20px; font-weight: 800; }
.footer-brand .f-logo .f-name small {
    font-size: 10px; font-weight: 800; color: rgba(195, 200, 240, .6);
    text-transform: uppercase; letter-spacing: .14em;
}
.footer-brand p { font-size: 14px; color: #a3aae0; line-height: 1.72; max-width: 330px; margin-top: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
    color: #c3c8f0; text-decoration: none; transition: var(--tr-f);
}
.footer-social a:hover { background: rgba(99, 102, 241, .36); border-color: rgba(99, 102, 241, .6); color: #fff; transform: translateY(-3px); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-col h4 {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em;
    color: #a3aae0; margin-bottom: 20px;
}
.footer-col a {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 0; color: #c3c8f0; text-decoration: none; font-size: 14px;
    opacity: .82; transition: var(--tr-f);
}
.footer-col a:hover { opacity: 1; color: #fff; transform: translateX(4px); }
.footer-col a svg { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }
.footer-col a:hover svg { opacity: 1; }
.footer-contact { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.footer-contact svg { width: 16px; height: 16px; color: #8d7cf8; flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: #c3c8f0; text-decoration: none; font-size: 14px; opacity: .9; transition: var(--tr-f); }
.footer-contact a:hover { color: #fff; opacity: 1; }
.footer-rule { height: 1px; border: none; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .3), transparent); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; padding: 26px 0;
}
.footer-bottom .f-copy { font-size: 13px; color: #8d93c9; line-height: 1.6; }
.footer-bottom .f-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .f-links a { font-size: 13px; color: #8d93c9; text-decoration: none; transition: color .2s; }
.footer-bottom .f-links a:hover { color: #fff; }
.footer-made { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #8d93c9; }
.footer-made svg { width: 14px; height: 14px; color: #f472b6; }

/* ================================================================
   COOKIE-БАННЕР
   ================================================================ */
.cookie {
    position: fixed; left: 50%; bottom: 22px; z-index: 9999;
    width: calc(100% - 40px); max-width: 1040px;
    transform: translate(-50%, 150%);
    transition: transform .6s var(--ease);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
    padding: 18px 22px; border-radius: var(--r-l);
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-brd);
    box-shadow: 0 26px 64px rgba(19, 17, 41, .20);
}
.cookie-text {
    display: flex; align-items: center; gap: 12px; flex: 1; min-width: 280px;
    font-size: 14px; color: var(--t2); line-height: 1.55;
}
.cookie-text svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.cookie-text a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    padding: 11px 24px; border: none; border-radius: var(--r-pill); cursor: pointer;
    font-size: 14px; font-weight: 700; white-space: nowrap; transition: var(--tr-f);
}
.cookie-accept { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 24px rgba(91, 61, 245, .28); }
.cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(91, 61, 245, .40); }
.cookie-decline { background: #fff; color: var(--t2); border: 1px solid var(--line); }
.cookie-decline:hover { color: var(--t1); box-shadow: var(--sh-1); }

/* ================================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ================================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero p { max-width: 620px; }
    .bento { max-width: 560px; }
    .role-panel.active { grid-template-columns: 1fr; gap: 34px; }
    .bento-features { grid-template-columns: repeat(4, 1fr); }
    .bf-lg { grid-column: span 4; grid-row: span 1; }
    .bf-md { grid-column: span 2; }
    .bf-sm { grid-column: span 2; }
    .apps-grid { grid-template-columns: 1fr; gap: 42px; }
    .apps-visual { order: -1; }
    .tariffs { grid-template-columns: 1fr; max-width: 440px; margin: 56px auto 0; }
    .tariff.popular { transform: none; }
    .tariff.popular:hover { transform: translateY(-8px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .problem-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .metric:nth-child(2)::after { display: none; }
    .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
    .nav {
        display: none; position: absolute; top: 82px; left: 16px; right: 16px;
        flex-direction: column; gap: 2px; padding: 12px;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--line); border-radius: var(--r-l);
        box-shadow: 0 26px 64px rgba(19, 17, 41, .18);
    }
    .nav.active { display: flex; }
    .nav.active a { padding: 13px 16px; border-radius: 12px; font-size: 15px; }
    .menu-toggle { display: block; }
    .header-actions .btn-primary { display: none; }

    .hero { padding: 132px 0 76px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-facts { gap: 8px; }

    .section { padding: 76px 0; }
    .steps { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .steps::before { display: none; }
    .bento-features { grid-template-columns: 1fr 1fr; }
    .bf-lg, .bf-md, .bf-sm { grid-column: span 2; }
    .roles-tabs { flex-wrap: wrap; justify-content: center; border-radius: var(--r-l); }
    .role-tab { padding: 10px 18px; font-size: 13.5px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .badges { justify-content: flex-start; }
    .cookie { bottom: 14px; width: calc(100% - 24px); }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 8px 8px 8px 14px; }
    .logo-text .lt-main { font-size: 17px; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-main { grid-column: 1 / -1; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metric:not(:last-child)::after { display: none; }
    .metric:not(:last-child) { border-bottom: 1px solid var(--line); }
    .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; }
    .bento-features { grid-template-columns: 1fr; }
    .bf-lg, .bf-md, .bf-sm { grid-column: span 1; }
    .tariff { padding: 36px 22px 28px; }
    .app-buttons { flex-direction: column; align-items: stretch; }
    .app-btn img { width: 100%; }
    .cta { padding: 52px 22px; }
    .faq-question { padding: 18px; font-size: 15px; }
    .faq-answer-content { padding: 0 18px 20px; }
    .role-visual .rv-bar span, .bento-bar span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
