/* Лендинг FlexGram (templates/landing/index.html) */

/* ── Шапка ── */
.l-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}

.l-nav.is-scrolled {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 1px 0 var(--s-line), 0 10px 30px rgba(30, 60, 160, .06);
}

.l-nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.l-nav-links { display: flex; gap: 26px; margin-left: 20px; }
.l-nav-links a { font-size: 15px; font-weight: 600; color: var(--s-ink-2); text-decoration: none; transition: color .15s; }
.l-nav-links a:hover { color: var(--s-blue); }
.l-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.l-login { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--s-ink) !important; }
.l-btn-sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 14px; }

/* ── Первый экран ── */
.l-hero { position: relative; isolation: isolate; padding: 40px 0 80px; overflow: hidden; }

/* Фон рисуется градиентами, а не картинкой: на большом экране нет ни швов,
   ни следов сжатия. Шум поверх убирает полосы в плавных переходах. */
.l-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #eaf2ff 0%, #f3f2ff 62%, var(--s-bg) 100%); }
.l-aurora i { position: absolute; border-radius: 50%; animation: l-drift 22s ease-in-out infinite alternate; }
.l-aurora i:nth-child(1) { width: 62vw; height: 46vw; left: -16vw; top: -22vw; background: radial-gradient(closest-side, rgba(110, 200, 255, .55), transparent); }
.l-aurora i:nth-child(2) { width: 56vw; height: 44vw; right: -14vw; top: -18vw; background: radial-gradient(closest-side, rgba(160, 140, 255, .5), transparent); animation-delay: -7s; }
.l-aurora i:nth-child(3) { width: 48vw; height: 34vw; left: 30vw; top: 12vw; background: radial-gradient(closest-side, rgba(120, 170, 255, .32), transparent); animation-delay: -12s; }
.l-aurora i:nth-child(4) { width: 34vw; height: 26vw; right: 2vw; bottom: -8vw; background: radial-gradient(closest-side, rgba(255, 170, 215, .3), transparent); animation-delay: -3s; }
.l-aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
.l-aurora::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1; background: linear-gradient(transparent, var(--s-bg)); }

@keyframes l-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3vw, 2vw, 0) scale(1.08); } }

.l-hero-grid { display: grid; grid-template-columns: 1fr 560px; gap: 40px; align-items: center; }

.l-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--s-ink) !important;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 6px 20px rgba(30, 60, 160, .08);
    backdrop-filter: blur(10px);
}

.l-badge-new { padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--s-grad); font-size: 12.5px; }

.l-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 5.2vw, 64px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -2px;
    text-wrap: balance;
}

.l-grad {
    background: var(--s-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.l-lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--s-ink-2); }
.l-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.l-hero-cta .s-btn { height: 58px; padding: 0 28px; font-size: 17px; border-radius: 18px; }

.l-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--s-muted); }
.l-trust li { display: flex; align-items: center; gap: 7px; }
.l-trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #22c55e url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/10px no-repeat; }

/* Сцена: панель оператора слева, телефон клиента справа */
.l-hero-visual { position: relative; height: 660px; }
.l-hero-visual .l-device { position: absolute; right: 6px; top: 0; z-index: 2; }
.l-hero-visual .l-inbox { position: absolute; left: -46px; top: 168px; width: 262px; z-index: 1; animation: l-float 8s ease-in-out infinite; }

.l-hero-owl {
    position: absolute;
    left: -34px;
    bottom: -6px;
    width: 150px;
    z-index: 3;
    filter: drop-shadow(0 22px 26px rgba(30, 60, 160, .25));
    animation: l-float 6s ease-in-out infinite;
}

.l-float { position: absolute; mix-blend-mode: multiply; animation: l-float 7s ease-in-out infinite; }
.l-float--chat { width: 118px; left: 30px; top: 18px; animation-delay: -2s; }

@keyframes l-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Телефон ── */
.l-device {
    --head-bg: rgba(255, 255, 255, .94);
    --head-line: rgba(15, 30, 80, .07);
    --accent: #3d5cff;
    --wall: linear-gradient(180deg, #eef1fb 0%, #ebe8fb 100%);
    --in-bg: #fff;
    --in-ink: #10162f;
    --out-bg: #dde4ff;
    --out-ink: #10162f;
    --time: #8b93ad;
    --out-time: #6c7bd1;
    --kb-bg: #fff;
    --kb-ink: #3d5cff;
    --kb-shadow: 0 1px 2px rgba(20, 40, 120, .1);
    --day-bg: rgba(15, 30, 80, .07);
    --day-ink: #59617d;
    --input-bg: #f0f2f8;

    position: relative;
    width: 318px;
    padding: 11px;
    border-radius: 56px;
    background: linear-gradient(150deg, #3a3e4d 0%, #101118 32%, #1c1e28 70%, #3a3e4d 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, .16),
        inset 0 0 0 5px #07080c,
        0 60px 110px rgba(25, 40, 120, .30),
        0 18px 36px rgba(25, 40, 120, .18);
}

/* Кнопки громкости и питания */
.l-device::before,
.l-device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a2c36, #4a4d5a); }
.l-device::before { left: -3px; top: 132px; height: 52px; box-shadow: 0 68px 0 #33353f; }
.l-device::after { right: -3px; top: 176px; height: 86px; }

.l-device[data-skin="tg"] {
    --accent: #3390ec;
    --wall:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .22) 0 2px, transparent 3px) 0 0 / 46px 46px,
        radial-gradient(circle at 70% 62%, rgba(255, 255, 255, .16) 0 3px, transparent 4px) 0 0 / 58px 58px,
        linear-gradient(160deg, #cfe3a9 0%, #a8d1a0 45%, #86bfa4 100%);
    --out-bg: #effdde;
    --out-ink: #10210c;
    --time: #9aa7b0;
    --out-time: #5fae58;
    --kb-bg: rgba(52, 86, 62, .32);
    --kb-ink: #fff;
    --kb-shadow: none;
    --day-bg: rgba(45, 80, 55, .28);
    --day-ink: #fff;
}

.l-screen {
    position: relative;
    height: 640px;
    border-radius: 45px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--wall);
    transition: background .4s;
}

.l-hero-visual .l-screen { height: 620px; }

.l-status {
    position: relative;
    flex: none;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 24px 0 34px;
    font: 600 15px/1 -apple-system, "SF Pro Text", var(--s-font);
    color: #0d1530;
    background: var(--head-bg);
}

.l-island { position: absolute; left: 50%; top: 11px; width: 102px; height: 30px; margin-left: -51px; border-radius: 20px; background: #05060a; }
.l-status-sys { display: flex; align-items: center; gap: 5px; }
.l-status-sys svg { height: 11px; width: auto; }
.l-batt { position: relative; width: 24px; height: 12px; padding: 1.5px; border-radius: 4px; border: 1.3px solid rgba(13, 21, 48, .4); }
.l-batt i { display: block; width: 80%; height: 100%; border-radius: 2px; background: #0d1530; }
.l-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(13, 21, 48, .4); }

.l-app-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 10px 6px;
    background: var(--head-bg);
    border-bottom: 1px solid var(--head-line);
    backdrop-filter: blur(20px);
}

.l-app-back { width: 26px; height: 26px; flex: none; color: var(--accent); }
.l-app-more { width: 22px; height: 22px; flex: none; margin-left: auto; color: var(--accent); opacity: .9; }
.l-app-title { min-width: 0; }
.l-app-title b { display: block; font-size: 15.5px; line-height: 1.2; color: #10162f; }
.l-app-title small { display: block; font-size: 12.5px; color: #8b93ad; }
.l-phone-ava { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, #ff9ac0, #ff5f8f); }

.l-phone-body {
    flex: 1;
    min-height: 0;
    padding: 12px 10px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
}

.l-phone-body::-webkit-scrollbar { display: none; }

.l-day { align-self: center; margin-bottom: 4px; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--day-ink); background: var(--day-bg); }

.l-msg {
    position: relative;
    max-width: 82%;
    padding: 7px 11px 6px;
    border-radius: 17px;
    font-size: 14px;
    line-height: 1.38;
    color: var(--in-ink);
    background: var(--in-bg);
    box-shadow: 0 1px 1.5px rgba(10, 20, 60, .1);
    animation: l-pop .32s cubic-bezier(.2, 1.3, .4, 1) both;
    overflow-wrap: anywhere;
}

.l-msg--bot, .l-msg--op { align-self: flex-start; border-bottom-left-radius: 5px; }
.l-msg--me { align-self: flex-end; color: var(--out-ink); background: var(--out-bg); border-bottom-right-radius: 5px; }
.l-msg--op small { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 700; color: var(--accent); }
.l-t { float: right; margin: 7px -2px -4px 10px; font-size: 11px; line-height: 1; color: var(--time); }
.l-msg--me .l-t { color: var(--out-time); }

.l-kb { align-self: flex-start; width: 86%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: -2px; animation: l-pop .32s .08s cubic-bezier(.2, 1.3, .4, 1) both; }
.l-kb button {
    padding: 9px 6px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--kb-ink);
    background: var(--kb-bg);
    box-shadow: var(--kb-shadow);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: filter .15s, transform .1s;
}
.l-kb button:hover { filter: brightness(.96); }
.l-kb button:active { transform: scale(.97); }
.l-kb button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.l-kb button.wide { grid-column: 1 / -1; }
.l-kb button[disabled] { opacity: .55; cursor: default; }

.l-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 17px; border-bottom-left-radius: 5px; background: var(--in-bg); }
.l-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6c7; animation: l-bounce 1s infinite; }
.l-typing i:nth-child(2) { animation-delay: .15s; }
.l-typing i:nth-child(3) { animation-delay: .3s; }

.l-composer {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 28px;
    background: var(--head-bg);
    border-top: 1px solid var(--head-line);
}

.l-comp-ic { width: 24px; height: 24px; flex: none; color: #8b93ad; }
.l-comp-input,
.l-composer input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    font: inherit;
    font-size: 14.5px;
    color: #10162f;
    background: var(--input-bg);
    outline: none;
}
.l-comp-input { color: #8b93ad; }
.l-composer input:focus { box-shadow: 0 0 0 2px var(--accent); }
.l-composer button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); cursor: pointer; }
.l-composer button svg { width: 18px; height: 18px; margin-left: 2px; }

.l-home { position: absolute; left: 50%; bottom: 8px; width: 118px; height: 5px; margin-left: -59px; border-radius: 3px; background: #10162f; }

@keyframes l-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes l-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ── Окно панели оператора ── */
.l-inbox {
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #fff;
    box-shadow: 0 30px 70px rgba(30, 60, 160, .18), 0 6px 16px rgba(30, 60, 160, .08);
    backdrop-filter: blur(16px);
    overflow: hidden;
    font-size: 13px;
}

.l-inbox-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(238, 242, 252, .95); border-bottom: 1px solid var(--s-line); }
.l-inbox-bar i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #ff5f57; }
.l-inbox-bar i:nth-child(2) { background: #febc2e; }
.l-inbox-bar i:nth-child(3) { background: #28c840; }
.l-inbox-bar span { flex: 1; min-width: 0; margin-left: 6px; padding: 3px 8px; border-radius: 7px; font-size: 11px; color: var(--s-muted); background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.l-inbox-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; }
.l-inbox-head b { font-size: 15px; }
.l-inbox-live { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #16a34a; }
.l-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

.l-inbox-list { margin: 0; padding: 4px 6px 6px; list-style: none; display: grid; gap: 2px; }
.l-inbox-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 13px; transition: background .4s; }
.l-inbox-list li.is-new { background: linear-gradient(90deg, rgba(47, 123, 255, .12), rgba(123, 92, 255, .08)); animation: l-slide .5s cubic-bezier(.2, 1.2, .4, 1) both; }
.l-inbox-list b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.l-inbox-list small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-inbox-list time { align-self: start; margin-top: 2px; font-size: 11px; color: var(--s-muted); }
.l-ib-meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.l-ib-meta time { margin-top: 2px; }
.l-unread[hidden] { display: none; }
.l-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 800; color: #fff; background: var(--s-blue); }
.l-ib-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 85% 68%), hsl(calc(var(--h) + 25) 75% 55%)); }
.l-ch-chip { padding: 2px 6px; border-radius: 6px; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .2px; }
.l-ch-chip--tg { color: #1c8fd0; background: rgba(34, 158, 217, .12); }
.l-ch-chip--max { color: #5533ee; background: rgba(85, 51, 238, .1); }

.l-inbox-foot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 14px 11px; border-top: 1px solid var(--s-line); font-size: 12px; color: var(--s-muted); }
.l-inbox-foot.is-typing { color: var(--s-violet); font-weight: 700; }
.l-inbox-foot.is-typing::before { content: ""; width: 22px; height: 6px; flex: none; background: radial-gradient(circle, currentColor 2.5px, transparent 3px) 0 0 / 8px 6px repeat-x; animation: l-blink 1s infinite; }

@keyframes l-slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes l-blink { 50% { opacity: .35; } }

/* ── Цифры ── */
.l-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: -20px;
    position: relative;
}

.l-stats div {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #fff;
    box-shadow: var(--s-shadow);
}

.l-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.8px; background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-stats span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--s-muted); font-weight: 600; }

/* ── Секции ── */
.l-section { padding: 110px 0 0; }
.l-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s-blue); }
.l-section h2 { margin: 0; max-width: 760px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; }
.l-sub { margin: 16px 0 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--s-ink-2); }

/* 3D-иконки нарисованы на белом: на цветных карточках белый фон растворяется. */
.l-step img, .l-feat img { mix-blend-mode: multiply; }

/* Шаги */
.l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.l-step { position: relative; padding: 26px; border-radius: var(--s-radius); background: #fff; border: 1px solid var(--s-line); box-shadow: 0 10px 30px rgba(30, 60, 160, .06); transition: transform .25s, box-shadow .25s; }
.l-step:hover { transform: translateY(-6px); box-shadow: var(--s-shadow); }
.l-step img { width: 110px; height: 110px; object-fit: contain; margin: -6px 0 8px -6px; }
.l-step-n { position: absolute; top: 22px; right: 24px; font-size: 54px; font-weight: 800; line-height: 1; color: rgba(47, 123, 255, .1); }
.l-step h3, .l-feat h3, .l-ch h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.l-step p, .l-feat p, .l-ch p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--s-muted); }

/* Каналы */
.l-channels { margin-top: 110px; padding: 90px 0; background: linear-gradient(160deg, #0f1b4d 0%, #1b2a7a 55%, #3a2a8f 100%); color: #fff; position: relative; overflow: hidden; }
.l-channels::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(68, 204, 255, .35), transparent 60%); }
.l-channels .l-kicker { color: #7fd2ff; }
.l-channels .l-sub { color: rgba(255, 255, 255, .72); }
.l-ch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; position: relative; }
.l-ch { padding: 28px; border-radius: var(--s-radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); transition: transform .25s, background .25s; }
.l-ch:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .11); }
.l-ch p { color: rgba(255, 255, 255, .72); }
.l-ch-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }
.l-ch-icon svg { width: 28px; height: 28px; }
.l-ch-icon img { width: 58px; height: 58px; border-radius: 18px; }
.l-ch--tg .l-ch-icon { background: linear-gradient(135deg, #37bbfe, #007dbb); }
.l-ch--web .l-ch-icon { background: linear-gradient(135deg, #34d399, #059669); }
.l-tag { margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; vertical-align: middle; background: linear-gradient(120deg, #44ccff, #5533ee 60%, #9933dd); }

/* Возможности */
.l-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 18px; margin-top: 44px; }
.l-feat { padding: 26px; border-radius: var(--s-radius); background: #fff; border: 1px solid var(--s-line); box-shadow: 0 10px 30px rgba(30, 60, 160, .06); transition: transform .25s, box-shadow .25s; }
.l-feat:hover { transform: translateY(-6px); box-shadow: var(--s-shadow); }
.l-feat img { width: 84px; height: 84px; object-fit: contain; margin: -4px 0 10px -4px; }
.l-feat--big { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: var(--s-grad-soft); }
.l-feat--big img { width: 200px; height: 200px; margin: auto auto 20px; }
.l-feat--big h3 { font-size: 26px; }

/* Демо: слева что попробовать, в центре телефон гостя, справа панель оператора */
.l-demo { margin-top: 110px; padding: 0; }

.l-demo-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px 268px;
    gap: 36px;
    align-items: center;
    padding: 56px 44px;
    border-radius: 40px;
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(123, 92, 255, .16), transparent 70%),
        radial-gradient(60% 70% at 0% 100%, rgba(31, 182, 255, .16), transparent 70%),
        linear-gradient(135deg, #edf4ff, #f3efff);
    border: 1px solid #fff;
    box-shadow: inset 0 1px 0 #fff, 0 30px 80px rgba(30, 60, 160, .08);
}

.l-demo-copy h2 { font-size: clamp(30px, 3.2vw, 42px); }
.l-demo-copy .l-sub { font-size: 17px; }

.l-seg { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border-radius: 15px; background: rgba(255, 255, 255, .65); border: 1px solid #fff; box-shadow: 0 6px 18px rgba(30, 60, 160, .06); }
.l-seg button {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 16px 0 8px;
    border: 0;
    border-radius: 11px;
    font: 700 15px var(--s-font);
    color: var(--s-muted);
    background: transparent;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}
.l-seg button[aria-pressed="true"] { color: var(--s-ink); background: #fff; box-shadow: 0 4px 14px rgba(30, 60, 160, .12); }
.l-seg button:focus-visible { outline: 2px solid var(--s-blue); outline-offset: 2px; }
.l-seg-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; }
.l-seg-ic--tg { background: linear-gradient(135deg, #37bbfe, #007dbb); }
.l-seg-ic--tg svg { width: 15px; height: 15px; margin-left: -1px; }
.l-seg-note { margin: 10px 0 0; font-size: 14px; color: var(--s-muted); }

.l-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 32px; }
.l-try span { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); }
.l-try button {
    height: 38px;
    padding: 0 14px;
    border: 1px dashed rgba(47, 123, 255, .45);
    border-radius: 12px;
    font: 700 14px var(--s-font);
    color: var(--s-blue);
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.l-try button:hover { background: #fff; border-style: solid; }
.l-try button:focus-visible { outline: 2px solid var(--s-blue); outline-offset: 2px; }

.l-demo-device { display: flex; justify-content: center; }
.l-demo-ops-cap { margin: 0 0 12px 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-muted); }

/* Цены */
.l-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.l-price { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 28px; background: #fff; border: 1px solid var(--s-line); box-shadow: 0 10px 30px rgba(30, 60, 160, .06); }
.l-price h3 { margin: 0; font-size: 20px; font-weight: 800; }
.l-price-sum { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.l-price-sum b { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; }
.l-price-sum span { font-size: 15px; color: var(--s-muted); font-weight: 600; }
.l-price s { font-size: 15px; color: var(--s-muted); }
.l-price ul { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; flex: 1; }
.l-price li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; color: var(--s-ink-2); }
.l-price li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: rgba(47, 123, 255, .12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7bff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/10px no-repeat; }
.l-price .s-btn { width: 100%; }
.l-price--hot { color: #fff; background: linear-gradient(160deg, #2f7bff, #2246d6 60%, #5b3be0); border: 0; box-shadow: 0 30px 70px rgba(47, 90, 255, .35); transform: translateY(-10px); }
.l-price--hot .l-price-sum span, .l-price--hot s { color: rgba(255, 255, 255, .7); }
.l-price--hot li { color: rgba(255, 255, 255, .9); }
.l-price--hot li::before { background-color: rgba(255, 255, 255, .2); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>"); }
.l-price--hot .s-btn--primary { background: #fff; color: var(--s-blue); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.l-price-badge { position: absolute; top: 18px; right: 18px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(255, 255, 255, .2); }

.l-max-note { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--s-line); }
.l-max-note img { border-radius: 12px; flex: none; }
.l-max-note p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--s-ink-2); }

/* Вопросы */
.l-faq-list { display: grid; gap: 12px; margin-top: 40px; max-width: 860px; }
.l-faq details { border-radius: 20px; background: #fff; border: 1px solid var(--s-line); transition: box-shadow .2s; }
.l-faq details[open] { box-shadow: 0 14px 34px rgba(30, 60, 160, .1); }
.l-faq summary { position: relative; padding: 22px 60px 22px 24px; list-style: none; font-size: 17px; font-weight: 700; cursor: pointer; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: rgba(47, 123, 255, .1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7bff' stroke-width='2.6' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>") center/14px no-repeat; transition: transform .25s; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { margin: -6px 0 0; padding: 0 24px 22px; font-size: 16px; line-height: 1.55; color: var(--s-ink-2); }

/* Финал */
.l-final {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 110px 0 80px;
    padding: 34px 44px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(123, 92, 255, .8), transparent 60%),
        linear-gradient(120deg, #1fb6ff, #2f7bff 50%, #2246d6);
    box-shadow: 0 30px 70px rgba(47, 90, 255, .3);
    overflow: hidden;
}

.l-final-owl { width: 150px; flex: none; margin: -30px 0 -50px -10px; filter: drop-shadow(0 20px 26px rgba(10, 30, 120, .35)); }
.l-final h2 { margin: 0 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.l-final p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .85); }
.l-btn-white { margin-left: auto; flex: none; height: 58px; padding: 0 30px; font-size: 17px; color: var(--s-blue) !important; background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .2); }

/* Подвал */
.l-footer { padding: 34px 0 40px; border-top: 1px solid var(--s-line); background: #fff; }
.l-footer-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.l-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.l-footer nav a { font-size: 14.5px; font-weight: 600; color: var(--s-muted); text-decoration: none; }
.l-footer nav a:hover { color: var(--s-blue); }
.l-copy { margin-left: auto; font-size: 14px; color: var(--s-muted); }

/* Появление при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1, .3, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.l-price--hot[data-reveal].is-in { transform: translateY(-10px); }

/* ── Телефоны и планшеты ── */
@media (max-width: 1180px) {
    .l-hero-grid { grid-template-columns: 1fr 500px; gap: 32px; }
    .l-hero-visual .l-inbox { left: -30px; width: 200px; }
    .l-hero-visual .l-inbox-list time { display: none; }
    .l-demo-stage { grid-template-columns: minmax(0, 1fr) 318px; grid-template-rows: auto auto; padding: 48px 36px; }
    .l-demo-device { grid-column: 2; grid-row: 1 / span 2; }
    .l-demo-ops { max-width: 340px; }
}

@media (max-width: 980px) {
    .l-nav-links { display: none; }
    .l-hero-grid { grid-template-columns: 1fr; }
    .l-hero-visual { width: 100%; max-width: 520px; margin: 0 auto; }
    .l-hero-visual .l-inbox { left: 0; width: 196px; }
    .l-stats { grid-template-columns: 1fr 1fr; margin-top: 10px; }
    .l-steps, .l-ch-grid, .l-price-grid { grid-template-columns: 1fr; }
    .l-feat-grid { grid-template-columns: 1fr 1fr; }
    .l-feat--big { grid-column: 1 / -1; grid-row: auto; }
    .l-demo-stage { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
    .l-demo-device { grid-column: auto; grid-row: auto; }
    .l-demo-ops { width: 100%; max-width: 360px; margin: 0 auto; }
    .l-price--hot, .l-price--hot[data-reveal].is-in { transform: none; }
    .l-final { flex-direction: column; text-align: center; padding: 30px 24px; }
    .l-final-owl { margin: -10px 0 0; width: 120px; }
    .l-btn-white { margin: 6px 0 0; }
}

@media (max-width: 560px) {
    .l-nav-inner { gap: 10px; height: 64px; }
    .l-login { display: none; }
    .l-hero { padding-top: 22px; }
    .l-hero h1 { letter-spacing: -1.2px; }
    .l-lead { font-size: 17px; }
    .l-hero-cta .s-btn { width: 100%; }
    .l-hero-visual { height: 600px; }
    .l-hero-visual .l-device { right: 50%; transform: translateX(50%); }
    .l-hero-visual .l-inbox { display: none; }
    .l-hero-owl { width: 112px; left: -12px; bottom: -14px; }
    .l-float--chat { width: 84px; left: -6px; top: 0; }
    .l-device { width: 296px; border-radius: 52px; }
    .l-screen { height: 590px; border-radius: 42px; }
    .l-island { width: 88px; margin-left: -44px; }
    .l-status { padding: 4px 20px 0 28px; }
    .l-hero-visual .l-screen { height: 576px; }
    .l-feat-grid { grid-template-columns: 1fr; }
    .l-stats div { padding: 16px; }
    .l-stats b { font-size: 22px; }
    .l-section { padding-top: 80px; }
    .l-channels { margin-top: 80px; padding: 70px 0; }
    .l-demo { margin-top: 80px; }
    .l-demo-stage { margin: 0 -8px; padding: 32px 16px; border-radius: 30px; }
    .l-seg { display: flex; }
    .l-seg button { flex: 1; justify-content: center; }
    .l-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .l-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .l-float, .l-hero-owl, .l-hero-visual .l-inbox, .l-aurora i { animation: none; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
