/*
  Оформление сайта Luxify — ОДНА таблица стилей на всё: статику сайта и страницы,
  которые рендерит API (покупка, «Готово», кабинет, вход с устройства). Второй файл
  стилей на том же сайте разойдётся с первым при первой же правке цвета.

  Внешних ресурсов нет: шрифт лежит рядом (assets/fonts), библиотек нет. Сайт
  открывают из России, и страница с ценами, не отрисовавшаяся из-за чужого домена,
  стоит дороже типографики.

  Цвет акцента — синий программы (#4486FF). Тема одна, тёмная: это оформление
  самой программы, и человек, пришедший с сайта, должен узнать её на экране.
*/

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/onest-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Знак рубля (U+20BD) живёт в расширенной латинице — без этого файла «₽» рисовался бы чужим шрифтом. */
@font-face {
    font-family: "Onest";
    src: url("/assets/fonts/onest-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: dark;

    --bg: #06070b;
    --bg-2: #0b0d14;
    --panel: rgba(255, 255, 255, 0.035);
    --panel-2: rgba(255, 255, 255, 0.065);
    --panel-solid: #0d1018;
    --card: #0c0f16;
    --card-2: #10141d;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);

    --text: #eef1f8;
    --muted: #a2aabc;
    --dim: #6e7689;

    --accent: #4486ff;
    --accent-hi: #79a8ff;
    --accent-soft: rgba(68, 134, 255, 0.14);
    --accent-line: rgba(68, 134, 255, 0.35);
    --glow: rgba(68, 134, 255, 0.45);
    --accent-press: #3a78f0;

    --ok: #3ddc84;
    --ok-soft: rgba(61, 220, 132, 0.12);
    --warn: #f0b64e;
    --warn-soft: rgba(240, 182, 78, 0.12);

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --wrap: 1160px;
    --header-h: 64px;

    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ основа */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main { flex: 1 0 auto; }

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

a { color: var(--accent-hi); text-decoration: none; transition: color .2s; }
a:hover { color: #a6c6ff; }

p { margin: 0 0 1em; }

::selection { background: rgba(68, 134, 255, 0.5); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ фон

   Почти незаметный и медленный: мягкое свечение, тонкая сетка, шум. Размытие
   сделано градиентами, а не filter: blur — тот на телефоне съедает кадры. */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1100px 560px at 50% -12%, rgba(68, 134, 255, 0.16), transparent 70%),
        var(--bg);
}

/* Пятна свечения неподвижны (решение владельца 25.09.2026). Раньше они дрейфовали
   и «дышали» (40–55 с на цикл) — глазом почти не видно, но всё размытое стекло над
   ними (шапка, окно тура, демо, карточки) браузер пересчитывал в каждом кадре,
   а это лишняя работа на слабых телефонах. Яркость — средняя
   из прежнего «дыхания» (0.75…1). */
.aurora {
    position: absolute;
    border-radius: 50%;
    opacity: 0.88;
}

.aurora.a1 {
    width: 900px; height: 640px; left: -18%; top: -22%;
    background: radial-gradient(closest-side, rgba(68, 134, 255, 0.30), transparent);
}

.aurora.a2 {
    width: 760px; height: 760px; right: -20%; top: 18%;
    background: radial-gradient(closest-side, rgba(116, 82, 255, 0.18), transparent);
}

.aurora.a3 {
    width: 900px; height: 520px; left: 20%; bottom: -30%;
    background: radial-gradient(closest-side, rgba(38, 160, 255, 0.12), transparent);
}

/* Созвездие: редкие точки медленно дрейфуют и мерцают (site.js). Без скрипта — пусто. */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


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

.btn {
    --h: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--h);
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 540 15px/1 var(--font);
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .3s, color .2s, opacity .2s;
}

.btn:active { transform: scale(0.98); }

/* Узкий телефон: длинная надпись («Перейти на год — выгода 798 ₽») переносится,
   а не срезается краем кнопки. Короткие надписи остаются в одну строку. */
@media (max-width: 400px) {
    .btn { height: auto; min-height: var(--h); padding-top: 8px; padding-bottom: 8px; white-space: normal; line-height: 1.25; text-align: center; }
}

.btn svg { width: 18px; height: 18px; flex: none; }

/* Главная кнопка — плоская: один цвет, без бликов, градиентов и свечения. */
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { color: #fff; background: #5a95ff; }
.btn-primary:active { background: var(--accent-press); }

.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

.btn-text { color: var(--muted); background: transparent; padding: 0 10px; }
.btn-text:hover { color: var(--text); }

.btn-quiet { color: var(--muted); background: transparent; }
.btn-quiet:hover { color: var(--text); background: var(--panel-2); }

.btn-light { color: #0b0d14; background: #eef1f8; }
.btn-light:hover { color: #0b0d14; background: #fff; }

.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn-block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }

.btn .sub-price { font-weight: 500; opacity: 0.82; }

/* Кнопка внутри формы не должна отличаться от ссылки-кнопки рядом. */
form { margin: 0; }
button.btn { font-family: var(--font); }

/* ------------------------------------------------------------------ шапка */

/*
  Шапка — плавающая стеклянная панель. Фон у неё есть всегда: прозрачная шапка,
  внезапно темнеющая при прокрутке, выглядит как мигание.
*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 16px 0;
}

/* Поля задаёт сама шапка: у панели свои внутренние отступы, и поля .wrap они перекрывают. */
.site-header .bar { max-width: calc(var(--wrap) - 48px); }

.bar {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 56px;
    padding-left: 16px;
    padding-right: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 14, 20, 0.62);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    transition: background .3s, border-color .3s, box-shadow .3s;
}

.site-header.scrolled .bar {
    background: rgba(12, 14, 20, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 560;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }

.nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 480;
    padding: 7px 11px;
    border-radius: 9px;
    transition: color .2s, background .2s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav .nav-only-mobile { display: none; }

.bar-actions { display: flex; align-items: center; gap: 4px; }

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.burger span, .burger span::before, .burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .2s;
}

.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav {
        position: fixed;
        top: calc(var(--header-h) + 10px);
        left: 16px;
        right: 16px;
        margin: 0;
        border-radius: 16px;
        border: 1px solid var(--line-2);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 24px;
        /* Телефон лёжа — 360–390 px высоты, а меню выше: без прокрутки нижние пункты
           («Личный кабинет») недоступны, страница под меню заблокирована. */
        max-height: calc(100vh - var(--header-h) - 26px);
        max-height: calc(100dvh - var(--header-h) - 26px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(12, 14, 20, 0.97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }

    .nav.open { opacity: 1; visibility: visible; transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); }
    .nav a { font-size: 17px; padding: 12px 14px; border-radius: 12px; }
    .nav .nav-only-mobile { display: block; }
    .burger { display: inline-flex; }
    .bar-actions { margin-left: auto; }
    .bar-actions .hide-mobile { display: none; }
    body.menu-open { overflow: hidden; }
}

/* ------------------------------------------------------------------ типографика */

/* Веса умеренные: жирный Onest на тёмном фоне «слипается». */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

.display {
    font-size: clamp(40px, 6.2vw, 74px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.title {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 580;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

h3 { font-size: 19px; font-weight: 560; line-height: 1.3; letter-spacing: -0.01em; }

.grad {
    background: linear-gradient(95deg, #ffffff 0%, #c9dcff 45%, #7fb2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.55;
    color: var(--muted);
    max-width: 560px;
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: #c9dcff;
    font-size: 13.5px;
    font-weight: 500;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-hi);
    box-shadow: 0 0 0 0 rgba(121, 168, 255, 0.6);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(121, 168, 255, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(121, 168, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(121, 168, 255, 0); }
}

.kicker {
    margin-bottom: 14px;
    color: var(--accent-hi);
    font-size: 13px;
    font-weight: 540;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--panel);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Метка Plus — просто белый текст, без плашки: плашка читалась как кнопка. */
.chip-plus {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-weight: 650;
    letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ секции */

.section { position: relative; padding: 112px 0; }
.section-tight { padding: 72px 0; }

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.section-head.center p { margin-left: auto; margin-right: auto; max-width: 600px; }

/* ------------------------------------------------------------------ первый экран */

.hero { position: relative; padding: 48px 0 72px; }

/* На компьютере первый экран — ровно экран: кнопка и визуал видны без прокрутки. */
@media (min-width: 901px) and (min-height: 640px) {
    .hero { display: flex; align-items: center; min-height: calc(100svh - var(--header-h)); max-height: 980px; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 32px;
}

.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy .lead { margin: 24px 0 0; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14.5px;
}

.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 16px; height: 16px; color: var(--accent-hi); }

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(68, 134, 255, 0.35), transparent);
    filter: blur(20px);
}

.avatar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.voice-card {
    position: absolute;
    left: 50%;
    bottom: 3%;
    width: min(360px, 92%);
    transform: translateX(-50%);
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(12, 14, 22, 0.72);
    border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.vc-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }

.vc-mic {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    flex: none;
}

.vc-mic svg { width: 14px; height: 14px; }

.wave { display: flex; align-items: center; gap: 3px; height: 18px; margin-left: auto; }

.wave i {
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--accent-hi);
    transform: scaleY(0.15);
    transform-origin: center;
    transition: transform .12s linear;
}

.vc-phrase {
    margin-top: 10px;
    min-height: 28px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -0.15em;
    background: var(--accent-hi);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.vc-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--ok);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s, transform .3s var(--ease);
}

.vc-result.show { opacity: 1; transform: none; }
.vc-result svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
    .cta .btn { flex: 1 1 100%; }
}

@media (max-width: 900px) {
    .hero { padding: 36px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero-visual { max-width: 400px; margin-top: 8px; }
}

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

.card {
    position: relative;
    padding: 28px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    overflow: hidden;
    isolation: isolate;
    transition: border-color .3s, transform .4s var(--ease);
}

/* Подсветка под курсором: координаты ставит site.js. */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(68, 134, 255, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}

.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.card h3 { margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); }

.icon-tile {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #bfd4ff;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
}

.icon-tile svg { width: 22px; height: 22px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }

@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento > *, .bento > .span-3 { grid-column: span 1; }
    .bento > .span-4, .bento > .span-6 { grid-column: span 2; }
}

@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .bento > *, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: auto; }
}

/* Мини-макеты внутри карточек. */

.mock {
    margin-top: 24px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(8, 10, 16, 0.7);
    font-size: 13.5px;
}

.tree { display: grid; gap: 6px; }

.tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: #d8ddea;
}

.tree-row svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.tree-row.l1 { margin-left: 18px; }
.tree-row.l2 { margin-left: 36px; }
.tree-row.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tree-row.active svg { color: #fff; }
.tree-row .tag { margin-left: auto; color: var(--dim); font-size: 12px; }
.tree-row.active .tag { color: rgba(255, 255, 255, 0.75); }

.pack-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.swatches { display: flex; gap: 8px; margin-top: 22px; }

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: var(--c);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.big-number {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 12px;
}

/* ------------------------------------------------------------------ демо «как это работает» */

.steps3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 820px;
    margin: 0 auto 36px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps3 li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-weight: 500;
    transition: color .3s, border-color .3s, background .3s;
}

.steps3 li::before {
    counter-increment: step;
    content: counter(step);
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--panel-2);
    color: var(--text);
    transition: background .3s;
}

.steps3 li.on { color: var(--text); border-color: var(--accent-line); background: #111b35; }
.steps3 li.on::before { background: var(--accent); }

.demo {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: stretch;
}

.demo-list { display: grid; gap: 8px; align-content: start; }

.demo-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font: 500 15px/1.35 var(--font);
    text-align: left;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}

.demo-pick:hover { color: var(--text); border-color: var(--line-2); }

.demo-pick[aria-pressed="true"] {
    color: var(--text);
    border-color: var(--accent-line);
    background: linear-gradient(90deg, #131d38, var(--card));
}

.demo-pick .q { color: var(--text); font-weight: 600; }
.demo-pick small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }

.demo-pick .pi {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--panel-2);
    color: var(--muted);
}

.demo-pick[aria-pressed="true"] .pi { background: var(--accent); color: #fff; }
.demo-pick .pi svg { width: 17px; height: 17px; }

/* Макет окна программы — как окно тура: серое полупрозрачное стекло с размытием
   (18.09.2026). Сплошное серое выбивалось из сайта, тёмное — сливалось с ним. Не скриншот: он не устаревает с каждой версией. */

.app-window {
    --glass-1: rgba(255, 255, 255, 0.05);
    --glass-2: rgba(255, 255, 255, 0.085);
    --glass-line: rgba(255, 255, 255, 0.12);
    position: relative;
    isolation: isolate;
    /* 490, а не 440: в сценарии «У нас гости» пять строк журнала, и итоговая
       «Озвучка — „Протокол выполнен“» уходила под рамку (найдено 25.09.2026). */
    height: 490px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(52, 54, 60, 0.39);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
    backdrop-filter: blur(26px) saturate(125%);
    box-shadow: 0 50px 100px -45px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    overflow: clip;
    display: grid;
    grid-template-columns: 64px 1fr;
    font-size: 14px;
}

.aw-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.035);
}

.aw-side img { width: 34px; height: 34px; margin-bottom: 22px; }
.aw-side .aw-side-end { margin-top: auto; }

.aw-side i {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid transparent;
    display: grid;
    place-items: center;
    color: #fff;
}

.aw-side i.on { border-color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08); }
.aw-side i svg { width: 19px; height: 19px; }

.aw-main { position: relative; padding: 22px 24px; display: flex; flex-direction: column; overflow: hidden; }

/* Кольца — как в программе: большие, по центру правого края окна, срезаны рамкой. */
.aw-waves {
    position: absolute;
    right: 0;
    top: 50%;
    height: 118%;
    width: auto;
    aspect-ratio: 1 / 1;
    transform: translate(62%, -50%);
    pointer-events: none;
}

.aw-title { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }

.aw-heard {
    position: relative;
    margin-top: 18px;
    padding: 14px 16px;
    max-width: 440px;
    border-radius: 14px;
    border: 1px solid var(--glass-line);
    background: var(--glass-1);
    color: #fff;
    font-size: 16px;
    min-height: 52px;
}

.aw-heard .label { display: block; color: rgba(255, 255, 255, 0.5); font-size: 12px; margin-bottom: 2px; }

.aw-log {
    position: relative;
    overflow: hidden;
    display: grid;
    /* Места не хватило (узкий экран, строки в две строки) — срезаются старые строки
       сверху, а не итоговая снизу. */
    align-content: end;
    gap: 8px;
    max-width: 440px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.aw-log li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--glass-1);
    border: 1px solid var(--glass-line);
    color: #e3e5ea;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s var(--ease), background .3s;
}

.aw-log li.show { opacity: 1; transform: none; }
.aw-log li.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.aw-log li.ask { background: rgba(240, 182, 78, 0.1); border-color: rgba(240, 182, 78, 0.4); }
.aw-log li svg { width: 16px; height: 16px; flex: none; }
.aw-log li .k { flex: none; margin-left: auto; color: #a4a7b0; font-size: 12px; white-space: nowrap; }
.aw-log li.done .k { color: rgba(255, 255, 255, 0.8); }

/* Узкий телефон: пять строк «У нас гости» переносятся в две строки каждая, и верхняя
   уходила под «Распознано». Плотнее строки — все пять помещаются целиком. */
@media (max-width: 400px) {
    .aw-log { gap: 6px; }
    .aw-log li { gap: 8px; padding: 8px 12px; font-size: 14px; }
}

.aw-status {
    position: relative;
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a4a7b0;
    font-size: 13px;
}

.aw-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6d707a; transition: background .3s; }
.aw-status.listening .dot { background: var(--accent-hi); animation: pulse 1.4s infinite; }
.aw-status.ok .dot { background: var(--ok); }

@media (max-width: 900px) {
    .demo { grid-template-columns: 1fr; }
    .demo-list { grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .demo-pick { scroll-snap-align: start; }
    .steps3 { grid-template-columns: 1fr; max-width: 420px; }
    .steps3 li { padding: 10px 14px; }
}

@media (max-width: 640px) {
    .app-window { grid-template-columns: 1fr; height: 544px; }
    .aw-waves { opacity: 0.45; }
    .aw-side { display: none; }
    .aw-main { padding: 18px; }
}

/* 320 px: строки ещё уже, и даже плотным не хватало 24 px — окно чуть выше. */
@media (max-width: 350px) {
    .app-window { height: 580px; }
}

/* ------------------------------------------------------------------ Plus */

.plus-panel {
    position: relative;
    padding: 56px;
    border-radius: 32px;
    border: 1px solid var(--accent-line);
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(68, 134, 255, 0.2), transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(116, 82, 255, 0.14), transparent 60%),
        linear-gradient(180deg, #0e111c, #090b12);
    overflow: hidden;
}

.plus-panel .section-head { margin-bottom: 40px; }

.plus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.plus-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color .3s, background .3s;
}

.plus-item:hover { border-color: var(--accent-line); background: rgba(68, 134, 255, 0.06); }
.plus-item .icon-tile { margin: 0; flex: none; }
.plus-item h3 { font-size: 16.5px; margin: 2px 0 4px; }
.plus-item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.plus-item.wide { grid-column: span 2; }

.plus-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.plus-foot p { margin: 0; color: var(--muted); }

.tg-steps { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: tg; }

.tg-steps li { display: flex; gap: 8px; color: var(--muted); font-size: 14px; }

.tg-steps li::before {
    counter-increment: tg;
    content: counter(tg);
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--panel-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

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

@media (max-width: 640px) {
    .plus-panel { padding: 28px 18px; border-radius: 24px; }
    .plus-grid { grid-template-columns: 1fr; }
    .plus-item.wide { grid-column: auto; }
}

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

.compare {
    min-height: 420px;
    max-width: 920px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--card);
    overflow: hidden;
}

.compare table { width: 100%; border-collapse: collapse; }

.compare th, .compare td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.compare tr:last-child td { border-bottom: 0; }

.compare thead th {
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    font-weight: 650;
    color: var(--muted);
}

.compare thead th.col { color: var(--text); text-align: center; width: 132px; }
.compare thead th.col.plus { color: #c9dcff; }

.compare td.col { text-align: center; }
.compare td .name { display: block; font-weight: 550; }
.compare td .desc { display: block; color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.compare .group td { padding-top: 22px; color: var(--dim); font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 0; }

.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: var(--accent-soft); color: var(--accent-hi); }
.no { color: var(--dim); }
.yes svg, .no svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
    .compare th, .compare td { padding: 12px 12px; }
    .compare thead th.col { width: 70px; font-size: 12.5px; }
    .compare td .desc { display: none; }
}

/* ------------------------------------------------------------------ цены */

.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 940px;
    margin: 0 auto;
}

.plan { display: flex; flex-direction: column; padding: 34px; border-radius: 28px; }

/* Фон карточек цен ПЛОТНЫЙ: полупрозрачный пропускал фоновую сетку при прокрутке. */
.plan { background: linear-gradient(180deg, var(--card-2), var(--card)); }

.plan.featured {
    border-color: rgba(68, 134, 255, 0.5);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(68, 134, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #101a2c, #0c0f18);
}

.plan-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 540;
}

.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.plan-name { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 580; letter-spacing: -0.02em; }
.plan-desc { margin: 8px 0 0; color: var(--muted); }

.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 26px 0 4px; min-height: 60px; }
.plan-price .amount { font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { color: var(--muted); font-size: 16px; }
.plan-note { min-height: 22px; color: var(--dim); font-size: 14px; }
.plan-note b { color: var(--ok); font-weight: 600; }

.plan ul { display: grid; gap: 11px; margin: 26px 0 30px; padding: 0; list-style: none; }
.plan li { display: flex; gap: 10px; color: #cfd4e0; font-size: 15px; line-height: 1.45; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-hi); }
.plan li.head { color: var(--dim); font-size: 13.5px; }
.plan .btn { margin-top: auto; }
/* Пояснение о наборе «программа + Plus» отодвинуто от кнопки: прижатое к ней, оно
   читалось как подпись кнопки, а это отдельное условие покупки. */
.plan-bundle { margin: 10px 0 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; line-height: 1.55; }
.plan ul + .plan-bundle { margin-top: 6px; }

.seg {
    display: inline-flex;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.seg button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font: 600 14px/1 var(--font);
    cursor: pointer;
    transition: background .2s, color .2s;
}

/* Выбранный период — синей заливкой, а не белой плашкой: белое пятно в тёмной карточке
   перетягивало взгляд с цены. */
.seg button:not([aria-pressed="true"]):hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.seg button[aria-pressed="true"] {
    background: rgba(68, 134, 255, 0.20);
    box-shadow: inset 0 0 0 1px rgba(68, 134, 255, 0.45);
    color: #fff;
}

.save {
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--ok-soft);
    color: var(--ok);
    font-size: 11.5px;
    font-weight: 700;
}

.seg button[aria-pressed="true"] .save { background: var(--ok-soft); color: var(--ok); }

.addon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    max-width: 940px;
    margin: 20px auto 0;
    padding: 20px 26px;
    border-radius: 20px;
}

.addon p { margin: 0; color: var(--muted); }
.addon strong { color: var(--text); }

.fine {
    max-width: 700px;
    margin: 26px auto 0;
    color: var(--dim);
    font-size: 13.5px;
    text-align: center;
}

.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.catalog-error { max-width: 640px; margin: 0 auto 24px; }

@media (max-width: 760px) {
    .plans { grid-template-columns: 1fr; }
    .plan { padding: 26px 22px; }
    .plan-price .amount { font-size: 46px; }
}

/* ------------------------------------------------------------------ отзывы */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review p { color: #d6dae6; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.review .ava { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-weight: 700; color: #c9dcff; }

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

/* ------------------------------------------------------------------ требования и вопросы */

.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.req { display: flex; gap: 16px; align-items: flex-start; }
.req .icon-tile { margin: 0; flex: none; }
.req h3 { font-size: 17px; margin: 2px 0 4px; }
.req p { font-size: 14.5px; }

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

.faq { display: grid; gap: 10px; max-width: 840px; margin: 0 auto; }

.faq details {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: background .3s, border-color .3s;
}

.faq details[open] { background: var(--card-2); border-color: var(--line-2); }

.faq summary {
    position: relative;
    padding: 20px 58px 20px 24px;
    list-style: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 520;
    letter-spacing: -0.005em;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary { transition: color .2s; }
.faq details:not([open]) summary:hover { color: #fff; }

.faq summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .3s var(--ease);
}

.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }

/* Высоту ответа анимирует site.js (Web Animations); без скрипта ответ просто раскрывается. */
.faq details.animating { pointer-events: none; }
.faq-group { margin: 30px 0 6px; color: var(--dim); font-size: 13px; font-weight: 540; letter-spacing: 0.08em; text-transform: uppercase; }
.faq-group:first-child { margin-top: 0; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ финальный призыв */

.final {
    position: relative;
    padding: 72px 32px;
    border-radius: 32px;
    border: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(50% 90% at 50% 120%, rgba(68, 134, 255, 0.35), transparent 70%),
        linear-gradient(180deg, var(--card-2), var(--card));
}

.final .title { max-width: 720px; margin: 0 auto; }
.final p { margin: 18px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; }
.final .cta { justify-content: center; }

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

.site-footer {
    margin-top: 48px;
    padding: 56px 0 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
    color: var(--muted);
    font-size: 14px;
}

.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 300px; }
.foot-grid h4 { margin: 0 0 14px; color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.foot-grid ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--text); }

.foot-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: 13px;
}

@media (max-width: 800px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ мобильная кнопка покупки

   На телефоне «Купить» всегда под пальцем. Прячется, когда на экране уже есть
   карточки цен или подвал, — две одинаковые кнопки рядом выглядят как ошибка. */

.buybar { display: none; }

@media (max-width: 760px) {
    .buybar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 10px 10px 16px;
        border-radius: 18px;
        border: 1px solid var(--line-2);
        background: rgba(14, 16, 24, 0.84);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
        box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
        transition: transform .35s var(--ease), opacity .35s;
    }

    .buybar.away { transform: translateY(150%); opacity: 0; pointer-events: none; }
    .buybar .bb-text { line-height: 1.25; font-size: 12.5px; color: var(--muted); }
    .buybar .bb-text b { display: block; color: var(--text); font-size: 15px; }
    .buybar .btn { margin-left: auto; }
    .has-buybar .site-footer { padding-bottom: 110px; }
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head p { font-size: 16.5px; }
    .wrap { padding: 0 16px; }
}

/* ------------------------------------------------------------------ появление при прокрутке

   Класс js ставится до отрисовки: без скрипта блоки видны сразу. */

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}

.js .reveal.in { opacity: 1; transform: none; }

/* Первый экран появляется сам, по CSS, а не по сигналу site.js (25.09.2026): заголовок
   и кнопка — первое, что видит человек, и ждать ради них загрузки скрипта незачем.
   Выглядит так же — тот же подъём и те же задержки. */
@keyframes reveal-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .hero .reveal { animation: reveal-up .9s var(--ease) both; animation-delay: var(--d, 0s); }

/* ------------------------------------------------------------------ документы и страницы API */

/* Только вертикальные поля: горизонтальные задаёт .wrap, и их нельзя затирать. */
.page { padding-top: 48px; padding-bottom: 96px; }

.doc { max-width: 800px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.035em; margin: 0 0 14px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .updated { margin-bottom: 32px; color: var(--dim); font-size: 14px; }
.doc strong { color: var(--text); }

.requisites {
    padding: 20px 24px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--panel);
}

.requisites dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.requisites dt { color: var(--dim); }
.requisites dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 560px) {
    .requisites dl { grid-template-columns: 1fr; gap: 2px; }
    .requisites dd { margin-bottom: 10px; }
}

/* Узкая колонка для страниц-действий: покупка, «Готово», вход, кабинет. */
.narrow { max-width: 760px; margin: 0 auto; }
.narrow-sm { max-width: 560px; margin: 0 auto; }

.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.035em; }
.page-head p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }

.panel {
    position: relative;
    margin: 0 0 16px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
}

.panel.accent { border-color: var(--accent-line); background: radial-gradient(120% 90% at 100% 0%, rgba(68, 134, 255, 0.14), transparent 60%), linear-gradient(180deg, #101a2c, #0c0f18); }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 19px; letter-spacing: -0.015em; }
.panel p { color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.rows { margin: 0; padding: 0; list-style: none; }

.rows li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.rows li:first-child { padding-top: 4px; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows .main { flex: 1 1 220px; min-width: 0; }
.rows .main b { display: block; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.rows .main span { color: var(--dim); font-size: 14px; }
.rows .side { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.rows .act { margin-left: auto; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--panel-2);
    color: var(--muted);
}

.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--accent-soft); color: #c3d8ff; }

.notice {
    display: flex;
    gap: 10px;
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
}

/* Размер значка задан ЯВНО. Без этого браузер берёт размер по умолчанию для
   встроенного объекта — 300×150, — и плашка вырастает в полэкрана. Иконки в других
   местах спасали соседние правила, а здесь такого правила не было. */
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.notice.ok { background: var(--ok-soft); border: 1px solid rgba(61, 220, 132, 0.35); color: #c9f3dc; }
.notice.warn { background: var(--warn-soft); border: 1px solid rgba(240, 182, 78, 0.35); color: #f6e0b6; }

/* Выбор тарифа на странице покупки: настоящие radio, чтобы работало без скрипта. */

.options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }

.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }

.opt-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.opt:hover .opt-body { border-color: var(--line-2); }

/* Выбранная строка: класс ставит site.js, :has — запасной путь без скрипта. */
.opt.on .opt-body,
.opt:has(input:checked) .opt-body {
    border-color: var(--accent);
    background: linear-gradient(90deg, var(--accent-soft), rgba(68, 134, 255, 0.04));
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.opt:has(input:focus-visible) .opt-body { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.radio {
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    border: 2px solid var(--line-2);
    display: grid;
    place-items: center;
    transition: border-color .2s;
}

.radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-hi); transform: scale(0); transition: transform .2s var(--ease); }
.opt.on .radio, .opt:has(input:checked) .radio { border-color: var(--accent-hi); }
.opt.on .radio::after, .opt:has(input:checked) .radio::after { transform: scale(1); }

.opt-text { flex: 1; min-width: 0; }
.opt-text b { display: block; font-weight: 560; }
.opt-text span { color: var(--dim); font-size: 14px; }
.opt-price { text-align: right; white-space: nowrap; font-weight: 600; font-size: 18px; }
.opt-price small { display: block; color: var(--dim); font-weight: 500; font-size: 12.5px; }
.opt[aria-disabled="true"] { opacity: 0.5; }
.opt[aria-disabled="true"] .opt-body { cursor: not-allowed; }

/* Plus: месяц и год — одной строкой, переключатель справа. */
.opt-multi .opt-body { cursor: default; }
.opt-head { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; cursor: pointer; }

.seg-pick {
    display: flex;
    flex: none;
    gap: 4px;
    padding: 4px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
}

.seg-opt { position: relative; cursor: pointer; }
.seg-opt > span {
    display: grid;
    gap: 1px;
    min-width: 104px;
    padding: 7px 14px;
    border-radius: 9px;
    text-align: center;
    color: var(--muted);
    transition: background .2s, color .2s;
}
.seg-opt b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 560; font-size: 14px; }
.seg-opt small { font-size: 15px; font-weight: 600; color: inherit; }
.seg-opt:hover > span { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.seg-opt:has(input:checked) > span { background: var(--accent); color: #fff; }
.seg-opt:has(input:focus-visible) > span { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.seg-save { padding: 1px 6px; border-radius: 6px; background: rgba(61, 220, 132, 0.16); color: var(--ok); font-style: normal; font-size: 11.5px; font-weight: 600; }
.seg-opt:has(input:checked) .seg-save { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* «Вместе с программой»: часть покупки, а не выбор. */
.opt-bundle { display: flex; align-items: center; gap: 8px; margin: 8px 4px 0 18px; color: var(--muted); font-size: 14px; }
.opt-bundle svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.opt-bundle b { color: var(--text); font-weight: 560; }

@media (max-width: 600px) {
    .opt-multi .opt-body { flex-direction: column; align-items: stretch; }
    .seg-pick .seg-opt { flex: 1; }
    .seg-opt > span { min-width: 0; }
}

.includes { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.includes li { display: flex; gap: 10px; color: #cfd4e0; font-size: 15px; }
.includes svg { width: 18px; height: 18px; flex: none; color: var(--accent-hi); margin-top: 2px; }

.sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sum .total { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; }

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14.5px;
    cursor: pointer;
}

/* Флажок рисуем сами: системный квадрат приходит серой плашкой Windows и выбивается
   из тёмной страницы сильнее любого другого элемента. Форма взята из программы —
   20×20, скругление 3, рамка 2 px акцентом, галочка акцентом. */
.check input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--accent);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s;
}

.check input::after {
    content: "";
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
    transition: opacity .15s;
}

.check input:checked { background: rgba(68, 134, 255, 0.14); }
.check input:checked::after { opacity: 1; }
.check input:hover { border-color: var(--accent-hi); }
.check input:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.who {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Аватар в кабинете: кольца программы и буква имени поверх. Сплошной круг выглядел
   как не загрузившаяся картинка — человек ждал фотографию, которой у нас нет. */
.avatar-letter {
    position: relative;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(68, 134, 255, 0.30), rgba(68, 134, 255, 0.07) 70%);
    border: 1px solid rgba(68, 134, 255, 0.40);
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}

.avatar-letter b { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(6, 7, 11, 0.8); }

.who > span { color: var(--dim); font-size: 14px; }
.who b { display: block; color: var(--text); }
.who b + span { display: block; }

/* Виджет Telegram рисует Telegram, и он всегда светлый. Без оправы он выглядел
   вырезанным из другого сайта — оправа делает его частью карточки. */
.tg-box {
    margin-top: 14px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
}

.tg-box:empty { display: none; }

.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }

.steps li { display: flex; gap: 14px; color: var(--muted); }

.steps li::before {
    counter-increment: s;
    content: counter(s);
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--panel-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.steps b { color: var(--text); }

.status-mark {
    width: 72px;
    height: 72px;
    margin: 0 0 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.status-mark svg { width: 34px; height: 34px; }
.status-mark.ok { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 10px rgba(61, 220, 132, 0.05); }
.status-mark.wait { background: var(--accent-soft); color: var(--accent-hi); }
.status-mark.warn { background: var(--warn-soft); color: var(--warn); }

.spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(121, 168, 255, 0.25);
    border-top-color: var(--accent-hi);
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.notes { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.notes li { margin-bottom: 4px; }

.code-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 600 22px/1.2 var(--font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.code-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.kv { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
.kv td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:last-child td { border-bottom: 0; }
.kv td:first-child { width: 40%; color: var(--dim); }

.btn-tg { color: #fff; background: #2aabee; }
.btn-tg:hover { color: #fff; background: #229ed9; }

/* ------------------------------------------------------------------ документация */

.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; }

.docs-nav {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow: auto;
}

.search {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 15px var(--font);
}

.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.docs-nav ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.docs-nav a {
    display: block;
    padding: 7px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14.5px;
}

.docs-nav a:hover { color: var(--text); background: var(--panel); }
.docs-nav a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }

.docs-content { max-width: 760px; }
.docs-content > header { margin-bottom: 40px; }
.docs-content > header h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.035em; }
.docs-content > header p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

.doc-section { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--line); }
.doc-section:last-of-type { border-bottom: 0; }
.doc-section h2 { font-size: 26px; font-weight: 580; letter-spacing: -0.02em; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.doc-section h3 { font-size: 17px; margin: 24px 0 8px; }
.doc-section p, .doc-section li { color: var(--muted); }
.doc-section ol, .doc-section ul { padding-left: 22px; }
.doc-section li { margin-bottom: 7px; }
.doc-section strong { color: var(--text); font-weight: 600; }

.callout {
    margin: 16px 0;
    padding: 14px 18px;
    border-radius: 0 14px 14px 0;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: #d3daf7;
}

.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); color: #f3e3c3; }

kbd {
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    border-bottom-width: 2px;
    background: var(--panel-2);
    color: var(--text);
    font: 600 13px var(--font);
}

.say { color: #c9dcff; font-weight: 600; white-space: nowrap; }

code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--panel-2);
    color: #d6dcf0;
    font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace;
    overflow-wrap: anywhere;
}

.docs-empty { color: var(--muted); }

@media (max-width: 900px) {
    .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .docs-nav { position: static; max-height: none; }
    .docs-nav ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
    .docs-nav a { white-space: nowrap; border: 1px solid var(--line); }
    .docs-nav a.active { box-shadow: none; border-color: var(--accent-line); }
}

/* ------------------------------------------------------------------ главная: блоки 16.09.2026

   Минимализм: меньше плашек и иконок, больше текста и воздуха. Карточки — с плотным
   фоном, чтобы фоновая сетка не просвечивала при прокрутке. */

.section-flush { padding-top: 24px; }

.nowrap { white-space: nowrap; }

.chip-plus { padding: 0; font-size: 11.5px; vertical-align: 1px; }

/* «Слышит — понимает — делает» */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio article { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.trio-n { display: block; margin-bottom: 18px; color: var(--accent-hi); font-size: 13px; font-weight: 540; letter-spacing: 0.08em; }
.trio h3 { margin-bottom: 8px; }
.trio p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 0; }
.stats div { padding-left: 16px; border-left: 1px solid var(--line-2); }
.stats dt { font-size: clamp(28px, 3.4vw, 40px); font-weight: 560; letter-spacing: -0.03em; line-height: 1.1; }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 900px) {
    .trio { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}

/* Первый экран: сценарий по шагам в карточке фразы */
.vc-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: #c9dcff; font-size: 11.5px; font-weight: 500; white-space: nowrap; }

.vc-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.vc-steps:not(:empty) { margin-top: 10px; }

.vc-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13.5px;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .25s, transform .25s var(--ease), color .25s;
}

.vc-steps li.show { opacity: 1; transform: none; }
.vc-steps li.done { color: var(--text); }
.vc-steps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; transition: background .25s; }
.vc-steps li.done::before { background: var(--ok); }

/* Сценарии */
.scenarios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.scenario {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    transition: border-color .3s;
}

.scenario:hover { border-color: var(--accent-line); }
.sc-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sc-head h3 { font-size: 17px; }
.sc-count { color: var(--dim); font-size: 13px; }

.scenario ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: sc; }

.scenario li {
    position: relative;
    display: grid;
    gap: 1px;
    padding: 0 0 14px 30px;
    counter-increment: sc;
}

.scenario li:last-child { padding-bottom: 0; }

.scenario li::before {
    content: counter(sc);
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 560;
}

/* Линия между шагами — сценарий читается как цепочка. */
.scenario li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 9.5px;
    top: 24px;
    bottom: 2px;
    width: 1px;
    background: var(--line);
}

.scenario li b { font-weight: 520; font-size: 14.5px; }
.scenario li span { color: var(--dim); font-size: 13.5px; }

.note-row { max-width: 820px; margin-top: 28px; color: var(--muted); }
.note-row p { margin: 0; }

@media (max-width: 1080px) { .scenarios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scenarios { grid-template-columns: 1fr; } }

/* Редактор */
.editor-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.editor-grid .section-head { margin-bottom: 0; }

.ticks { display: grid; gap: 10px; margin: 26px 0 28px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; color: #cfd4e0; font-size: 15px; line-height: 1.45; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-hi); }

.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ag {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .25s, background .25s;
}

.ag:hover { border-color: var(--line-2); background: var(--card-2); }
.ag svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; color: var(--accent-hi); }
.ag b { font-weight: 540; }
.ag span { color: var(--dim); font-size: 13.5px; line-height: 1.4; }

@media (max-width: 980px) {
    .editor-grid { grid-template-columns: 1fr; gap: 32px; }
}

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

/* Паки */
.packs { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; align-items: start; }
.small-ticks { margin: 22px 0 0; gap: 8px; }
.small-ticks li { font-size: 14px; color: var(--muted); }

.pack-group {
    padding: 26px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
}

.pg-title { margin-bottom: 4px; color: var(--muted); font-size: 14px; font-weight: 500; }
.pack-group .pack-cloud { margin-top: 14px; }

.pack-cats { display: grid; gap: 0; margin: 10px 0 0; }
.pack-cats div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pack-cats div:last-child { border-bottom: 0; padding-bottom: 0; }
.pack-cats dt { color: var(--dim); font-size: 14px; }
.pack-cats dd { margin: 0; color: #d3d8e4; font-size: 14.5px; }

/* «Говорите как обычно» — одна строка, фраза сменяется плавно. */
/* «Говорите как обычно» — капсула голосового ввода: микрофон, волна и фраза, которая
   печатается по буквам, будто её произносят (site.js), затем — метка пака. */
.say-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 30px 0 0; }
.say-label { color: var(--muted); font-size: 15px; }

.say-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: min(460px, 100%);
    padding: 8px 10px 8px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.8);
    transition: border-color .3s, box-shadow .3s;
}

.say-line.speaking .say-pill { border-color: var(--accent-line); box-shadow: 0 0 0 4px rgba(68, 134, 255, 0.08), 0 16px 40px -24px rgba(0, 0, 0, 0.8); }

.say-mic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.say-mic svg { width: 17px; height: 17px; }

.say-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; flex: none; }
.say-wave i { width: 3px; height: 5px; border-radius: 2px; background: var(--accent-hi); opacity: .45; transition: height .2s, opacity .2s; }
.say-line.speaking .say-wave i { opacity: 1; animation: say-bar .7s ease-in-out infinite alternate; }
.say-line.speaking .say-wave i:nth-child(2) { animation-delay: -.2s; }
.say-line.speaking .say-wave i:nth-child(3) { animation-delay: -.45s; }
.say-line.speaking .say-wave i:nth-child(4) { animation-delay: -.1s; }
.say-line.speaking .say-wave i:nth-child(5) { animation-delay: -.3s; }
@keyframes say-bar { from { height: 4px; } to { height: 18px; } }

.say-text { flex: 1; min-width: 0; display: inline-flex; align-items: center; overflow: hidden; color: #fff; font-size: 17px; font-weight: 520; white-space: nowrap; }
.say-caret { width: 2px; height: 1.1em; margin-left: 2px; border-radius: 1px; background: var(--accent-hi); animation: blink 1s steps(1) infinite; }
.say-line.speaking .say-caret { animation: none; }

.say-source { flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(68, 134, 255, 0.12); color: var(--accent-hi); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: opacity .35s, transform .35s var(--ease); }
.say-source.out { opacity: 0; transform: translateX(-6px); }

@media (max-width: 560px) {
    .say-pill { width: 100%; min-width: 0; }
    .say-wave { display: none; }
    .say-text { font-size: 15.5px; }
}

/* Узкий телефон: фраза и метка пака иначе не помещаются в одну строку (25.09.2026). */
@media (max-width: 400px) {
    .say-text { font-size: 14.5px; }
    .say-source { padding: 4px 8px; font-size: 11.5px; }
}

@media (max-width: 340px) {
    .say-source { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .say-caret { animation: none; }
}

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

@media (max-width: 520px) {
    .pack-cats div { grid-template-columns: 1fr; gap: 2px; }
    .pack-group { padding: 20px; }
}

/* Голоса */
.voices-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.voices-grid .section-head { margin-bottom: 0; }
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.voice {
    display: grid;
    gap: 2px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .25s, transform .3s var(--ease);
}

.voice:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.voice span { color: var(--dim); font-size: 12.5px; }
.voice b { font-size: 17px; font-weight: 540; }

@media (max-width: 980px) {
    .voices-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
    .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Plus — список без плашек */
.plus-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.plus-head .section-head { margin: 0; }
.plus-cta { display: grid; gap: 10px; justify-items: start; }
.plus-cta p { margin: 0; }

.plus-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 0; padding: 0; list-style: none; }

.plus-list li {
    display: grid;
    gap: 4px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.plus-list b { font-weight: 540; }
.plus-list span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

@media (max-width: 980px) { .plus-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plus-list { grid-template-columns: 1fr; } }

/* Отзывы — ссылка на канал */
.reviews-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    color: var(--text);
    transition: border-color .25s;
}

.reviews-cta:hover { color: var(--text); border-color: var(--accent-line); }

.rc-icon {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #2aabee;
    color: #fff;
}

.rc-icon svg { width: 24px; height: 24px; }
.rc-text { flex: 1; min-width: 0; }
.rc-text b { display: block; font-weight: 560; font-size: 17px; }
.rc-text span { color: var(--muted); font-size: 14.5px; }
.reviews-cta .btn { flex: none; }
.reviews-cta + [data-reviews] { margin-top: 16px; }

@media (max-width: 640px) {
    .reviews-cta { flex-wrap: wrap; }
    .reviews-cta .btn { width: 100%; }
}

/* Подвал: соцсети */
.socials { display: flex; gap: 8px; margin-top: 18px; }

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    transition: color .2s, background .2s, border-color .2s;
}

.socials a:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); border-color: var(--line-2); }
.socials svg { width: 18px; height: 18px; }

/* Требования — без плиток */
.req > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent-hi); }
.req { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.req p { margin: 0; color: var(--muted); }


/* ------------------------------------------------------------------ тур по программе (/tour)

   Макет окна Luxify Assistant по D:\LVA\Design и XAML страниц программы: окно 1050×650,
   боковая панель 90 px, заголовок капсом, «таблетки», подкарточки настроек.
   Окно СЕРОЕ, как на макетах программы (решение владельца 18.09.2026): тёмное
   полупрозрачное сливалось с фоном сайта и выглядело мрачным. Кольца аватара —
   у правого края, срезаны рамкой окна. Прокручивается содержимое, а не окно. */

.tour-page { padding-top: 32px; }
.tour-head { max-width: 720px; }

.t-stage { position: relative; }

.t-window {
    --t-accent: #4486ff;
    /* Серое, но полупрозрачное и с размытием: сплошное серое выбивалось из тёмного сайта. */
    --t-bg: rgba(52, 54, 60, 0.39);
    --t-glass: rgba(255, 255, 255, 0.045);
    --t-glass-2: rgba(255, 255, 255, 0.085);
    --t-line: rgba(255, 255, 255, 0.12);
    --t-text: #f2f2f4;
    --t-dim: rgba(255, 255, 255, 0.52);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    width: 100%;
    aspect-ratio: 1050 / 650;
    min-height: 580px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--t-bg);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
    backdrop-filter: blur(26px) saturate(125%);
    box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    overflow: clip;
    color: var(--t-text);
    font-size: 14px;
}

.t-window svg { width: 18px; height: 18px; flex: none; }
.t-noscript { padding: 24px; }

/* Кольца аватара — центр у правого края окна, крупнее, чем на макетах: иначе в правой
   половине главного окна оставалось много пустоты (решение владельца 18.09.2026).
   Слой внутри окна и срезан им же. */
.t-waves-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }

.t-waves {
    position: absolute;
    top: 50%;
    right: 0;
    height: 116%;
    width: auto;
    aspect-ratio: 1 / 1;
    transform: translate(46%, -50%);
    transition: opacity .4s;
}

.t-window.no-waves .t-waves { opacity: 0; }

/* Кнопки окна «свернуть» и «закрыть» — крупнее и жирнее, чем были (решение владельца). */
.t-window-controls { position: absolute; top: 16px; right: 20px; z-index: 2; display: flex; align-items: center; gap: 22px; }
.t-window-controls i { width: 20px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.t-window-controls b { display: grid; place-items: center; color: var(--t-accent); }
.t-window-controls b svg { width: 24px; height: 24px; }

/* Боковая панель — как в MainWindow.xaml: белая 3 % подложка во всю высоту,
   скругление справа, кнопки 50×50. Открытый раздел — БЕЛАЯ рамка со свечением,
   а не синяя заливка. Рамка переезжает к новой кнопке (.t-side-ind). */
.t-side {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.035);
}

.t-logo { width: 38px; height: 38px; margin: 4px 0 64px; }
.t-side-gap { flex: 1; }

.t-side button {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s;
}

.t-side button:hover { background: rgba(255, 255, 255, 0.06); }
.t-side button.on:hover { background: transparent; }
.t-side button svg { width: 24px; height: 24px; transition: transform .25s var(--ease); }
.t-side button:active svg { transform: scale(0.9); }

.t-side-ind {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.10);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s var(--ease), opacity .2s;
}


.t-side-label {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid var(--t-line);
    background: #3b3c40;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    transform: translateY(-50%) translateX(-4px);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
    transition: opacity .16s, transform .16s var(--ease);
}

.t-side button:hover .t-side-label,
.t-side button:focus-visible .t-side-label { opacity: 1; transform: translateY(-50%); }

/* экран */
.t-screen {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 22px 17% 20px 20px;
}

.t-screen-settings { padding-right: 20%; }
.t-screen-ai { padding-right: 8%; }
.t-screen-home { padding-right: 0; }
.t-screen-account { padding-right: 16%; }

/* Смена раздела: содержимое въезжает, карточки — лесенкой. Только при смене раздела. */
.t-screen.enter { animation: t-in .38s var(--ease); }
.t-screen.enter :is(.t-panel, .t-toolbar, .t-tree > li, .t-cat, .t-scard, .t-acc-col > *) { animation: t-rise .5s var(--ease) both; }
.t-screen.enter :is(.t-panel, .t-toolbar, .t-tree > li, .t-cat, .t-scard, .t-acc-col > *):nth-child(2) { animation-delay: .04s; }
.t-screen.enter :is(.t-panel, .t-toolbar, .t-tree > li, .t-cat, .t-scard, .t-acc-col > *):nth-child(3) { animation-delay: .08s; }
.t-screen.enter :is(.t-panel, .t-toolbar, .t-tree > li, .t-cat, .t-scard, .t-acc-col > *):nth-child(4) { animation-delay: .12s; }
.t-screen.enter :is(.t-panel, .t-toolbar, .t-tree > li, .t-cat, .t-scard, .t-acc-col > *):nth-child(n+5) { animation-delay: .16s; }

@keyframes t-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes t-rise { from { opacity: 0; transform: translateY(10px); } }

.t-head { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-bottom: 14px; }
.t-title { margin: 0 auto 0 0; font-size: 30px; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; line-height: 1; }
.t-dim { color: var(--t-dim); }
.t-small { font-size: 12.5px; }

/* Полоса прокрутки — как в программе: тонкий бегунок цвета темы, без стрелок.
   Стандартные свойства (scrollbar-width) в Chrome рисуют стрелки-«точки» у концов
   полосы — именно такая точка появлялась справа при открытии новой команды. */
.t-window ::-webkit-scrollbar { width: 5px; height: 5px; }
.t-window ::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--t-accent); }
.t-window ::-webkit-scrollbar-track { background: transparent; }
.t-window ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
    .t-window * { scrollbar-width: thin; scrollbar-color: var(--t-accent) transparent; }
}

.t-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 10px; margin-right: -10px; }

.t-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.t-gap { flex: 1; }
.t-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.t-divider { width: 1px; height: 28px; background: var(--t-line); margin: 0 2px; }
.t-count { margin-left: 6px; }

.t-pill, .t-btn, .t-icon-btn, .t-mini, .t-checkpill, .t-sq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--t-line);
    background: var(--t-glass);
    color: var(--t-text);
    font: 400 14px/1 var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s, opacity .2s, transform .15s var(--ease);
}

.t-pill:active, .t-btn:not([disabled]):active, .t-icon-btn:active, .t-mini:not([disabled]):active, .t-sq:active { transform: scale(0.97); }

.t-pill { min-width: 150px; height: 40px; padding: 0 18px; border-radius: 12px; color: var(--t-dim); }
.t-pill.on { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.t-pill-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; justify-content: center; }
.t-btn { height: 40px; min-width: 110px; padding: 0 16px; border-radius: 12px; }
.t-btn.primary { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.t-btn.ghost { color: var(--t-dim); }
.t-btn.block { width: 100%; }
.t-btn[disabled] { opacity: 0.5; cursor: default; }
.t-icon-btn { width: 40px; height: 40px; border-radius: 12px; }
.t-icon-btn svg { width: 20px; height: 20px; }
.t-mini { width: 32px; height: 32px; border-radius: 9px; }
.t-mini svg { width: 16px; height: 16px; }
.t-mini.ghost { border-color: transparent; background: none; }
.t-mini[disabled] { opacity: 0.3; cursor: default; }
.t-pill:not(.on):hover, .t-btn:not(.primary):not([disabled]):hover, .t-icon-btn:hover, .t-mini:not([disabled]):hover, .t-checkpill:hover { background: var(--t-glass-2); color: #fff; }
.t-btn.primary:hover, .t-sq:hover { filter: brightness(1.1); }

/* Флажок программы: 20×20, скругление 3, рамка 2 px. */
.t-checkpill { height: 40px; padding: 0 16px 0 12px; border-radius: 12px; }
.t-box { width: 20px; height: 20px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, 0.8); display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s; }
.t-box svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.6); transition: opacity .15s, transform .2s var(--ease); }
.t-checkpill.on .t-box svg { opacity: 1; transform: none; }

/* Переключатель как в программе: дорожка 50×20, в покое прозрачная с тонкой рамкой;
   ползунок цветом темы уезжает вправо. */
.t-toggle {
    position: relative;
    width: 50px;
    height: 20px;
    flex: none;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.t-toggle:hover { border-color: rgba(255, 255, 255, 0.4); }

.t-toggle i {
    position: absolute;
    top: 50%;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--t-accent);
    transform: translateY(-50%);
    transition: left .22s var(--ease), background .2s, width .15s;
}

.t-toggle:active i { width: 18px; }
.t-toggle.on { border-color: transparent; background: var(--t-accent); }
.t-toggle.on i { left: 32px; background: #fff; box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); }
.t-toggle.on:active i { left: 28px; }

/* ползунок — толстая полоса с процентами */
.t-slider { display: flex; align-items: center; gap: 12px; cursor: pointer; touch-action: none; outline: none; }
.t-slider-track { position: relative; flex: 1; height: 30px; border-radius: 10px; border: 1px solid var(--t-line); background: rgba(0, 0, 0, 0.14); overflow: hidden; }
.t-slider-fill { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 10px; background: var(--t-accent); }
.t-slider-value { width: 42px; text-align: right; color: #fff; }
.t-slider:focus-visible .t-slider-track { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.t-slider.slim .t-slider-track { height: 22px; border-radius: 8px; }
.t-slider.slim .t-slider-fill { border-radius: 8px; }

/* подкарточки */
.t-sub { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.t-sub + .t-sub { margin-top: 8px; }
.t-sub.row { align-items: center; justify-content: space-between; min-height: 42px; }
.t-sub.col { flex-direction: column; }
.t-sub-label { color: #f1f2f5; font-size: 14px; }

.t-input, .t-select select {
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--t-line);
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font: 13.5px var(--font);
    outline: 0;
    transition: border-color .2s;
}

.t-input:focus, .t-select select:focus { border-color: var(--t-accent); }
.t-select { position: relative; display: block; }
.t-select select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.t-select select option { background: #3a3b3f; }
.t-select svg { position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: #d0d1d5; }
.t-inline { display: flex; gap: 8px; }
.t-inline .t-input { height: 40px; }

.t-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    flex: 0 1 340px;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid var(--t-line);
    background: var(--t-glass);
    color: var(--t-dim);
    transition: border-color .2s;
}

.t-search.wide { flex: 1 1 300px; max-width: 420px; }
.t-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 14px var(--font); }
.t-search input::placeholder { color: var(--t-dim); }
.t-search:focus-within { border-color: var(--t-accent); }

.t-toast {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 6;
    width: min(540px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #414246;
    color: var(--t-text);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
    animation: t-toast .35s var(--ease);
}

@keyframes t-toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* главная — по MainPage.xaml: всё в левой половине окна и без прокрутки */
.t-home { display: flex; flex-direction: column; gap: 14px; width: 50%; min-width: 0; min-height: 0; }
.t-home .t-head { margin-bottom: 0; }

.t-mic {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--t-line);
    background: var(--t-glass);
    color: var(--t-dim);
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .3s;
}

.t-mic svg { width: 20px; height: 20px; }
.t-mic.on { background: var(--t-accent); border-color: var(--t-accent); color: #fff; animation: t-mic 2.4s ease-out infinite; }
@keyframes t-mic { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t-accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.t-panel { padding: 16px 18px; border-radius: 15px; border: 1px solid var(--t-line); background: var(--t-glass); }
.t-panel h3 { margin: 0 0 12px; color: #fff; font-size: 18px; font-weight: 400; }

/* Строка истории: фраза и под ней статус. Цветные полоски слева убраны (решение
   владельца 18.09.2026) — записи разделяет еле заметная линия. */
.t-history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.t-history li { display: grid; gap: 3px; }
.t-history li + li { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.t-history li:first-child { animation: t-rise .4s var(--ease); }
.t-heard { color: #fff; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-status { color: var(--t-dim); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-history li.warn .t-status { color: #f0c27a; }
.t-say { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--t-line); }
.t-say button { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--t-line); background: rgba(255, 255, 255, 0.06); color: #fff; font: 13px var(--font); cursor: pointer; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.t-say button:hover { background: color-mix(in srgb, var(--t-accent) 30%, transparent); border-color: color-mix(in srgb, var(--t-accent) 60%, transparent); }
.t-say button:active { transform: scale(0.96); }

.t-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; color: var(--t-dim); font-size: 14.5px; }
.t-line + .t-line { margin-top: 6px; }
.t-line-volume .t-slider { flex: 1; max-width: 70%; }

/* редактор: дерево с линиями, как в программе */
.t-tree, .t-branch { margin: 0; padding: 0; list-style: none; }
.t-tree { display: grid; gap: 8px; }
.t-branch { position: relative; display: grid; gap: 8px; margin-top: 8px; padding-left: 40px; }
.t-branch::before { content: ""; position: absolute; left: 19px; top: -8px; bottom: 20px; width: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.08); }
.t-branch > li { position: relative; }
.t-branch > li::before { content: ""; position: absolute; left: -21px; top: 20px; width: 21px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.08); }

.t-node-row { display: flex; align-items: center; gap: 10px; }

.t-node {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 8px 0 16px;
    border-radius: 12px;
    border: 1px solid var(--t-line);
    background: var(--t-glass);
    color: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s, opacity .2s;
}

.t-node svg { width: 17px; height: 17px; }
.t-node:hover { background: var(--t-glass-2); }
.t-node.sel { background: var(--t-accent); border-color: var(--t-accent); }
.t-node.hit { border-color: var(--t-accent); }
.t-node.off { opacity: 0.45; }
.t-node.sub { cursor: default; color: #e4e5e8; }
.t-node-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-tag { padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: #cfd0d4; font-size: 12px; }
.t-chev { display: grid; place-items: center; width: 28px; color: #e0e1e4; transition: transform .25s var(--ease); }
.t-chev.open { transform: rotate(180deg); }
.t-node-actions { display: flex; gap: 8px; animation: t-pop .25s var(--ease); }
.t-sq { width: 40px; height: 40px; border-radius: 12px; border-color: var(--t-accent); background: var(--t-accent); color: #fff; }
.t-sq svg { width: 18px; height: 18px; }
.t-screen.enter .t-leaf { animation: t-rise .3s var(--ease); }
.t-empty { padding: 12px; }

@keyframes t-pop { from { opacity: 0; transform: translateX(-6px); } }

/* редактор: карточка */
.t-card-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.t-field { display: grid; gap: 8px; flex: 1 1 260px; color: #fff; font-size: 17px; }
.t-field .t-input { height: 40px; }
.t-card-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; margin-bottom: 12px; border-top: 1px solid var(--t-line); }
.t-card-actions .t-btn { min-width: 0; }

.t-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.t-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 32px 32px;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 5px 0 0;
    border-radius: 12px;
    border: 1px solid var(--t-line);
    background: var(--t-glass);
}

.t-step-n { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--t-line); color: var(--t-dim); }
.t-step-name { padding-left: 6px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-step-arg { padding: 7px 10px; border-left: 1px solid var(--t-line); color: #d6d7db; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.t-steps li.t-empty-step { display: block; padding: 12px 14px; color: var(--t-dim); }

.t-phrases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.t-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 58px; margin-top: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--t-line); background: var(--t-glass); }
.t-chips.inline { min-height: 0; margin: 0; padding: 0; border: 0; background: none; }
.t-chips > span:not(.t-dim) { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.09); color: #f0f0f2; font-size: 13px; }

.t-picker { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(20, 21, 24, 0.55); animation: t-fade .2s ease-out; }
.t-picker-box { width: min(460px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.16); background: #393a3e; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); animation: t-zoom .28s var(--ease); }
.t-picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--t-line); color: #fff; }
.t-picker-body { overflow-y: auto; padding: 8px; }
.t-group summary { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: #fff; cursor: pointer; list-style: none; }
.t-group summary span:first-of-type { flex: 1; }
.t-group summary::-webkit-details-marker { display: none; }
.t-group summary:hover { background: var(--t-glass); }
.t-group ul { margin: 0 0 6px; padding: 0 0 0 30px; list-style: none; }
.t-group button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #dcdde1; font: 13.5px var(--font); text-align: left; cursor: pointer; }
.t-group button:hover { background: color-mix(in srgb, var(--t-accent) 30%, transparent); color: #fff; }

@keyframes t-fade { from { opacity: 0; } }
@keyframes t-zoom { from { opacity: 0; transform: scale(0.96) translateY(6px); } }

/* дополнения: все разделы одной лентой, раздел сворачивается заголовком */
.t-addons { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
.t-cat + .t-cat { margin-top: 16px; }

.t-sec-title { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 2px 0; border: 0; background: none; color: #fff; font: 400 18px/1.3 var(--font); cursor: pointer; transition: opacity .2s; }
.t-sec-title svg { transition: transform .3s var(--ease); }
.t-sec-title:hover { opacity: 0.8; }
.t-sec-title.static { cursor: default; opacity: 1; }
.t-cat.shut .t-sec-title svg { transform: rotate(-90deg); }

.t-cat-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .38s var(--ease), opacity .3s; }
.t-cat-body > .t-cards { min-height: 0; overflow: hidden; }
.t-cat.shut .t-cat-body { grid-template-rows: 0fr; opacity: 0; }
.t-cat-empty { margin: 0; padding: 4px 0 8px; }

.t-cards { display: grid; gap: 10px; }

.t-item { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--t-line); background: var(--t-glass); transition: background .2s, border-color .2s; }
.t-item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.t-item-body { flex: 1; min-width: 0; }
.t-item b { display: block; color: #fff; font-weight: 400; font-size: 17px; }
.t-item p { margin: 4px 0 0; color: var(--t-dim); font-size: 13px; line-height: 1.4; }
.t-item .t-btn { flex: none; min-width: 124px; }
.t-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; align-self: stretch; }

/* Плитка пака — нейтральный фон, внутри настоящий логотип (те же файлы, что в поставке). */
.t-brand { width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #fff; font-weight: 600; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.t-brand img { width: 66%; height: 66%; object-fit: contain; }
.t-brand.big { width: 88px; height: 88px; border-radius: 22px; font-size: 34px; }
.t-brand.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.t-blob { width: 48px; height: 38px; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; background: #dfe7ff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25); }

/* Правая панель разделов — плотная серая, над кольцами аватара. */
.t-side-nav { align-self: start; display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--t-line); background: rgba(58, 59, 63, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.t-side-nav button { min-height: 38px; padding: 6px 10px; border-radius: 11px; border: 1px solid var(--t-line); background: rgba(255, 255, 255, 0.04); color: #eceef1; font: 13.5px var(--font); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.t-side-nav button:hover { background: var(--t-glass-2); }
.t-side-nav button.on { background: var(--t-accent); border-color: var(--t-accent); color: #fff; }
.t-side-nav p { margin: 6px 4px 2px; text-align: center; font-size: 13px; }

.t-tg { max-width: 380px; padding: 12px; border-radius: 16px; border: 1px solid var(--t-line); background: #26303b; animation: t-rise .35s var(--ease); }
.t-tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #fff; }
.t-tg-msg { width: max-content; max-width: 85%; margin: 0 0 6px; padding: 7px 11px; border-radius: 12px; background: #1f2c3a; font-size: 13px; }
.t-tg-msg.me { margin-left: auto; background: #2b5278; }
.t-tg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 8px; }
.t-tg-keys span { padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 12px; text-align: center; }

/* голоса — значки одним цветом, как в блоке «Голоса» на главной */
.t-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.t-voices.compact { margin: 12px 0 8px; }

.t-voice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.t-vico {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: color-mix(in srgb, var(--t-accent) 55%, #fff);
    background: color-mix(in srgb, var(--t-accent) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--t-accent) 35%, transparent);
    transition: color .2s, background .2s, border-color .2s, transform .3s var(--ease);
}

.t-vico svg { width: 22px; height: 22px; }
.t-voice:hover { background: rgba(255, 255, 255, 0.08); }
.t-voice:hover .t-vico { transform: scale(1.05); }
.t-voice.on { border-color: rgba(255, 255, 255, 0.7); }
.t-voice.on .t-vico { color: #fff; background: var(--t-accent); border-color: var(--t-accent); }
.t-voice-text { display: grid; gap: 2px; min-width: 0; }
.t-voice-text span { color: var(--t-dim); font-size: 12.5px; }
.t-voice-text b { font-weight: 400; font-size: 18px; color: #fff; }
.t-note { margin: 14px 0 0; }

/* настройки */
.t-settings { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; }
.t-settings .t-scroll { display: grid; gap: 14px; align-content: start; }
.t-scard { padding: 18px; border-radius: 18px; border: 1px solid var(--t-line); background: var(--t-glass); }
.t-scard-head { display: flex; align-items: center; gap: 10px; }
.t-scard-head svg { width: 20px; height: 20px; }
.t-scard-head h3 { flex: 1; margin: 0; color: #fff; font-size: 20px; font-weight: 400; }
.t-scard > p { margin: 6px 0 12px; font-size: 12.5px; }
.t-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.t-swatches button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; background: var(--c, transparent); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.t-swatches button:hover { transform: scale(1.08); }
.t-swatches button.on { border-color: #fff; }
.t-swatch-add { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, 0.35) !important; color: var(--t-dim); }

/* Luxify AI */
.t-plus-label { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.t-plus-label .chip { font-size: 11px; }
.t-ai { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
.t-ai-list { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid var(--t-line); background: var(--t-glass); min-height: 0; }
.t-ai-list ul { flex: 1; margin: 6px 0 0; padding: 0; list-style: none; overflow-y: auto; }
.t-ai-list li button { width: 100%; padding: 9px 4px; border: 0; background: none; color: #ececef; font: 14px var(--font); text-align: left; cursor: pointer; transition: color .2s, padding .2s var(--ease); }
.t-ai-list li button:hover { padding-left: 8px; }
.t-ai-list li button.on { color: #fff; font-weight: 600; }
.t-ai-chat { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.t-ai-top { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--t-line); background: var(--t-glass); color: #fff; }
.t-ai-msgs { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 30px; overflow-y: auto; border-radius: 18px; border: 1px solid var(--t-line); background: rgba(52, 53, 56, 0.88); }
.t-ai-usage { position: absolute; right: 14px; bottom: 8px; font-size: 12px; }
.t-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); color: #f0f0f2; line-height: 1.5; }
.t-msg:last-of-type { animation: t-rise .3s var(--ease); }
.t-msg.me { align-self: flex-end; background: var(--t-accent); color: #fff; }
.t-msg.typing { color: var(--t-dim); }
.t-msg-act { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: #8ee6b2; font-size: 12.5px; }
.t-msg-act svg { width: 14px; height: 14px; }
.t-ai-input { display: flex; gap: 10px; }
.t-ai-input .t-input { height: 44px; border-radius: 12px; }
.t-ai-input .t-btn, .t-ai-input .t-icon-btn { height: 44px; }
.t-ai-input .t-icon-btn { width: 44px; }
.t-ai-input .t-btn { min-width: 120px; }

/* Аккаунт — по AccountPage.xaml: две колонки, слева аккаунт и «Что доступно»,
   справа ссылки и компьютеры. */
.t-account { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 26px; }
.t-acc-grow { flex: 1 1 auto; min-height: 0; align-content: start; overflow-y: auto; }
.t-acc-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.t-acc-h { margin: 0 0 10px; color: #fff; font-size: 18px; font-weight: 400; }
.t-acc-h:not(:first-child) { margin-top: 18px; }
.t-acc-card { padding: 16px; }
.t-acc-name { display: block; color: #fff; font-size: 16px; font-weight: 500; }
.t-acc-card p { margin: 6px 0 0; font-size: 13px; }
.t-acc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.t-acc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px; }
.t-acc-list > p { margin: 4px 6px; }
.t-acc-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); color: var(--t-dim); font-size: 13.5px; }
.t-acc-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-acc-row .t-dim { flex: none; opacity: 0.8; font-size: 12.5px; }
.t-acc-links { display: grid; grid-template-columns: minmax(0, 1fr); padding: 6px; }
.t-acc-links button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--t-dim); font: 14px var(--font); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.t-acc-links button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.t-acc-links button svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.t-acc-links button:hover svg { transform: translate(2px, -2px); }

/* подсказки — полоса под окном */
.t-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 24px 32px;
    align-items: center;
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
}

.t-guide > * { animation: t-in .35s var(--ease); }
.t-guide h2 { margin: 0 0 6px; font-size: 21px; }
.t-guide p { margin: 0; color: var(--muted); font-size: 14.5px; }
.t-guide .kicker { margin-bottom: 8px; }
.t-guide .small-ticks { margin: 0; }
.t-guide-actions { display: grid; gap: 8px; justify-items: stretch; }

@media (max-width: 1100px) {
    .t-screen, .t-screen-account { padding-right: 12%; }
    .t-screen-settings, .t-screen-ai { padding-right: 20px; }
    .t-screen-home { padding-right: 0; }
    .t-home { width: 58%; }
    .t-guide { grid-template-columns: 1fr 1fr; }
    .t-guide-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
    .t-pill { min-width: 120px; }
    .t-addons { grid-template-columns: minmax(0, 1fr) 190px; }
}

/* Телефон: боковая панель становится строкой значков над содержимым — без неё
   на узком экране между разделами было не перейти вовсе. */
@media (max-width: 860px) {
    .t-window { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); aspect-ratio: auto; height: 680px; min-height: 0; border-radius: 20px; }
    .t-side { flex-direction: row; justify-content: space-between; gap: 4px; padding: 8px 10px; border-radius: 0 0 16px 16px; }
    .t-logo, .t-side-gap, .t-side-label { display: none; }
    .t-side button, .t-side-ind { width: 44px; height: 44px; }
    .t-side button svg { width: 22px; height: 22px; }
    .t-window-controls { display: none; }
    .t-screen, .t-screen-settings, .t-screen-ai, .t-screen-home, .t-screen-account { padding: 16px; }
    .t-title { font-size: 22px; }
    .t-home { width: 100%; overflow-y: auto; }
    .t-line-volume .t-slider { max-width: 60%; }
    .t-addons { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .t-addons .t-side-nav { order: -1; display: flex; overflow-x: auto; padding: 6px; }
    .t-addons .t-side-nav button { flex: none; white-space: nowrap; }
    .t-window .t-side-nav::-webkit-scrollbar { display: none; }
    .t-addons .t-side-nav { scrollbar-width: none; }
    .t-addons .t-side-nav p { display: none; }
    .t-settings { grid-template-columns: 1fr; }
    .t-settings .t-side-nav { display: none; }
    .t-ai { grid-template-columns: 1fr; }
    .t-ai-list { display: none; }
    /* Строки — по содержимому: иначе колонка сжималась под высоту окна, и «Что доступно»
       схлопывалось до нуля, наезжая на «Полезные ссылки» (жалобы с телефонов 25.09.2026). */
    .t-account { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: max-content; align-content: start; overflow-y: auto; }
    .t-acc-grow { flex: none; overflow: visible; }
    .t-acc-row span:first-child { white-space: normal; }
    .t-phrases { grid-template-columns: 1fr; }
    .t-steps li { grid-template-columns: 30px minmax(0, 1fr) 32px 32px; padding: 4px 5px 4px 0; }
    .t-step-arg { grid-column: 2; grid-row: 2; border-left: 0; padding: 0 0 0 6px; }
    .t-pill { min-width: 0; padding: 0 14px; }
    .t-item { flex-wrap: wrap; }
    .t-item .t-btn { width: 100%; }
    .t-brand { width: 52px; height: 52px; border-radius: 14px; }
    .t-brand.big { width: 60px; height: 60px; }
    .t-voices { grid-template-columns: 1fr; }
    .t-branch { padding-left: 22px; }
    .t-branch::before { left: 10px; }
    .t-branch > li::before { left: -12px; width: 12px; }
    .t-sq { width: 36px; height: 36px; }
    .t-waves { opacity: 0.35; }
    .t-guide { grid-template-columns: 1fr; padding: 18px; }
    .t-search.wide { max-width: none; }
    .t-divider, .t-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .t-screen.enter, .t-screen.enter *, .t-mic.on, .t-guide > *, .t-history li, .t-leaf, .t-node-actions { animation: none !important; }
    .t-side-ind, .t-cat-body { transition: none; }
}

/* ------------------------------------------------------------------ правки 17.09.2026 */

/* Переключатель языка: две кнопки и бегунок под выбранной.
   Обе надписи видны сразу — прежняя одна кнопка «RU» на английской странице читалась
   как «сейчас русский», хотя означала обратное. */
.lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
}

.lang-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 26px;
    border-radius: 8px;
    background: rgba(68, 134, 255, 0.22);
    border: 1px solid rgba(68, 134, 255, 0.45);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.lang-en .lang-thumb { transform: translateX(34px); }

.lang-opt {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 26px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color .2s;
}

.lang-opt:hover { color: #fff; }
.lang-opt.is-on { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .lang-thumb { transition: none; }
}

@media (max-width: 960px) {
    .bar-actions { gap: 8px; }
}

/* Голоса: логотип франшизы, как в настройках программы */
/* Голоса: свои значки одним цветом. Логотипы франшиз убраны намеренно — они спорили
   со стилем сайта и оставались чужими товарными знаками на продающей странице. */
.voice { grid-template-columns: 44px 1fr; align-items: center; column-gap: 12px; padding: 12px 14px 12px 12px; }

/* Девять голосов — сетка 3 × 3 (25.09.2026, вечер): Джарвис во всю строку выглядел
   чужим (решение владельца). На телефоне в три колонки — значок над именем. */
.voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 560px) {
    .voices { gap: 8px; }
    .voice { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 8px; padding: 14px 6px; text-align: center; }
    .voice-text { justify-items: center; }
    .voice .voice-text > span { font-size: 11.5px; }
    .voice .voice-text b { font-size: 15px; }
}

.v-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent-hi);
    background: rgba(68, 134, 255, 0.10);
    border: 1px solid rgba(68, 134, 255, 0.24);
    transition: color .2s, background .2s, border-color .2s;
}

.v-ico svg { width: 22px; height: 22px; }

.voice:hover .v-ico { color: #fff; background: rgba(68, 134, 255, 0.20); border-color: rgba(68, 134, 255, 0.45); }

.voice-text { display: grid; gap: 2px; min-width: 0; }


/* Plus: светящаяся рамка медленно обходит контур, справа — живой аватар программы */
@property --glow-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.plus-panel { isolation: isolate; border-color: transparent; }

.plus-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--glow-angle), rgba(68, 134, 255, 0.18) 0deg, rgba(68, 134, 255, 0.18) 200deg, rgba(121, 168, 255, 0.75) 280deg, #a9c8ff 315deg, rgba(121, 168, 255, 0.75) 350deg, rgba(68, 134, 255, 0.18) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: glow-run 22s linear infinite;
    pointer-events: none;
}

/* Внутри — не бегущий «локатор», а медленно дышащий синий градиент. Вращающийся луч
   проходил под текстом каждые семь секунд и сбивал чтение: движение в поле зрения
   читающего человека выигрывает у букв всегда. */
.plus-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(60% 70% at 18% 12%, rgba(68, 134, 255, 0.22), transparent 70%),
        radial-gradient(55% 65% at 85% 85%, rgba(104, 86, 255, 0.16), transparent 72%);
    animation: plus-drift 26s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glow-run { to { --glow-angle: 360deg; } }

@keyframes plus-drift {
    from { transform: translate3d(-2.5%, -1.5%, 0) scale(1.04); opacity: 0.85; }
    to { transform: translate3d(2.5%, 1.5%, 0) scale(1.1); opacity: 1; }
}

/* Иконки возможностей Plus */
.plus-list li { grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }

.plus-list .p-ico {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(68, 134, 255, 0.12);
    border: 1px solid rgba(68, 134, 255, 0.26);
    color: #9dc0ff;
}

.plus-list .p-ico svg { width: 18px; height: 18px; }

.plus-avatar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: auto;
    aspect-ratio: 1 / 1;
    transform: translateX(46%);
    opacity: 0.55;
    pointer-events: none;
}

.plus-panel .plus-head, .plus-panel .plus-list { position: relative; }
.plus-list li { background: none; }

@media (max-width: 760px) {
    .plus-avatar { height: 60%; top: auto; bottom: 0; opacity: 0.35; }
}

/* Кнопка опасного действия */
.btn-danger { color: #fff; background: #d6455d; }
.btn-danger:hover { color: #fff; background: #e05269; }

/* Кабинет: карта и её отвязка */
.card-row { display: block; }
.unlink > summary { display: flex; align-items: center; gap: 14px; list-style: none; cursor: default; }
.unlink > summary::-webkit-details-marker { display: none; }
.unlink > summary .main { flex: 1; }
.unlink-open { cursor: pointer; margin-left: auto; }
.unlink[open] .unlink-open { background: rgba(255, 255, 255, 0.1); }
.card-icon { width: 44px; height: 32px; flex: none; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #2a3b66, #17203a); color: #cfe0ff; }
.card-icon svg { width: 22px; height: 22px; }

.unlink-form {
    margin: 14px 0 4px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(214, 69, 93, 0.35);
    background: rgba(214, 69, 93, 0.07);
    animation: fade-down .25s var(--ease);
}

.unlink-form p { margin: 0 0 4px; color: #e6d3d7; }
.unlink-form .check { margin-top: 12px; color: var(--text); }
.unlink-form .actions { margin-top: 14px; }

@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }

/* ------------------------------------------------------------------ меньше движения

   Человек, попросивший систему не анимировать интерфейс, получает страницу
   без движения совсем: ни фона, ни появления, ни набора текста. */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal { opacity: 1; transform: none; }
    .caret { display: none; }
    .plus-panel::before, .plus-panel::after { animation: none; }
}

/* ------------------------------------------------------------------ вход по почте

   Свой вход вместо чужих сервисов: авторизация через Google, Apple и Telegram
   российским сайтам запрещена (406-ФЗ, штрафы с 07.07.2026). */

.email-login { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.email-login h3 { margin: 0 0 6px; font-size: 16px; font-weight: 540; }
.email-login .notice { margin: 10px 0 0; }

.email-form { display: grid; gap: 12px; margin-top: 12px; }

.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 13.5px; }

.field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 15px var(--font);
}

.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--accent); }

/* Код набирают по цифре: широкие промежутки помогают не сбиться и видно, сколько введено. */
/* Поле кода: шесть цифр обязаны помещаться целиком. Межбуквенный интервал добавляет
   пустоту и ПОСЛЕ последней цифры — она сдвигала строку влево, и шестой знак уезжал
   за край. text-indent возвращает её на место. */
.code-input {
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    font-size: 22px !important;
    font-weight: 600;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}

/* Две кнопки под полем кода: «отправить ещё раз» и «другой адрес». Без них человек,
   у которого письмо не дошло, упирался в форму, требующую код, и выхода из неё не видел. */
.email-again { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.email-again-hint { margin: 12px 0 0; }

/* ------------------------------------------------------------------ отзывы

   Пишут их в кабинете, на сайт попадают после проверки владельцем. */

.review-stars { color: #f3c04a; font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }

.review-form { display: grid; gap: 14px; margin-top: 14px; }

.review-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 15px/1.6 var(--font);
    resize: vertical;
}

/* Ручка изменения размера рисуется поверх скруглённого угла и выглядит сколом.
   Высота задаётся строками, растягивать поле незачем. */
.review-form textarea { resize: none; }
.review-form textarea:focus { outline: none; border-color: var(--accent); }

/* Счётчик под полем: сколько ещё до пары предложений, потом — сколько из предела. */
.field > .review-count { min-height: 1.4em; color: var(--dim); font-size: 13px; transition: color .2s; }
.field > .review-count.ok { color: var(--muted); }

/* «Написать ещё один отзыв» — свёрнутая форма, когда отзыв уже был, а обновления нет. */
.review-more { margin-top: 14px; }
.review-more > summary { display: inline-flex; list-style: none; cursor: pointer; color: var(--accent-hi); font-weight: 500; }
.review-more > summary::-webkit-details-marker { display: none; }
.review-more > summary:hover { color: #fff; }
.review-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Оценка звёздами. Цифры 1–5 в квадратиках читались как что угодно, только не как оценка.
   Внутри — настоящие radio: оценка ставится и без скрипта, и с клавиатуры.

   Класс НЕ .stars: это имя занято холстом фона-созвездия, и его правила накрывали виджет.

   Звёзды лежат в разметке от пяти к одной и показываются в обратном порядке — тогда
   «горит выбранная и все младшие» делается соседним комбинатором. Вариант с :has()
   красивее, но пересчёт :has() при смене radio работает не везде (проверено 18.09.2026). */
.rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }

.rating input { position: absolute; opacity: 0; pointer-events: none; }

.rating label {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.22);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s, transform .15s;
}

.rating input:checked ~ label { color: #f3c04a; }
.rating label:hover { transform: scale(1.08); }
.rating input:focus-visible + label { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 8px; }

/* Только для чтения с экрана: цифра оценки рядом со звездой. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Имя в кабинете */
.name-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.name-form .field { flex: 1 1 260px; }

/* Раскрытие «показать все» — у платежей и им подобных списков */
.more { margin-top: 12px; }
.more > summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "▸ "; }
.more[open] > summary::before { content: "▾ "; }
.more > summary:hover { color: var(--text); }

/* Способы входа в кабинете */
.login-row { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.login-row svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.login-row b { font-weight: 540; }

/* Текстовая кнопка: действие доступно, но не бросается в глаза (отмена продления,
   отвязка карты — решение владельца 18.09.2026). Остаётся настоящей кнопкой формы:
   фокус с клавиатуры, экранное чтение и токен формы на месте. */
.link-quiet {
    padding: 0;
    border: 0;
    background: none;
    color: var(--dim);
    font: 13px var(--font);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.18);
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-quiet:hover { color: var(--muted); text-decoration-color: currentColor; }
.link-quiet:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

/* Согласие на продление на странице покупки — мельче основного текста. */
[data-consent-box] { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ правки 18.09.2026 */

/* Первый экран: клетки на фоне — тёмные и тихие. В центре, под текстом и аватаром,
   почти не видны; к бокам и к верху проступают (решение владельца 18.09.2026: наоборот
   к первому варианту, где клетки светились в центре). Гаснут при прокрутке (site.js
   ставит --cells от 1 до 0) и уезжают чуть медленнее страницы. Под курсором клетки
   едва светлеют — белым, без синевы. */
.hero { isolation: isolate; }

.hero-cells {
    --cells: 1;
    --mx: 50%;
    --my: 40%;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * var(--header-h) - 24px);
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    opacity: var(--cells);
    transform: translate3d(0, var(--cells-shift, 0px), 0);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: calc(50% - 28px) 0;
    /* Две маски, пересечение: центр прозрачнее краёв, а снизу — растворение в страницу. */
    -webkit-mask-image:
        radial-gradient(ellipse 58% 52% at 50% 52%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 55%, #000 100%),
        linear-gradient(to bottom, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(ellipse 58% 52% at 50% 52%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 55%, #000 100%),
        linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-composite: intersect;
    will-change: opacity, transform;
}

.hero-cells-lit {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: inherit;
    background-position: inherit;
    -webkit-mask-image: radial-gradient(200px circle at var(--mx) var(--my), #000, transparent 70%);
    mask-image: radial-gradient(200px circle at var(--mx) var(--my), #000, transparent 70%);
    opacity: 0;
    transition: opacity .6s;
}

.hero-cells.lit .hero-cells-lit { opacity: 1; }

@media (max-width: 900px) {
    .hero-cells { background-size: 44px 44px; background-position: calc(50% - 22px) 0; }
}

/* Свечение справа — голубее: фиолетовое пятно спорило с синими кольцами аватара. */
.aurora.a2 { background: radial-gradient(closest-side, rgba(64, 150, 255, 0.17), transparent); }

/* Заголовок первого экрана: градиент медленно переливается. */
.hero .grad {
    background-image: linear-gradient(95deg, #ffffff 0%, #c9dcff 30%, #7fb2ff 55%, #c9dcff 80%, #ffffff 100%);
    background-size: 220% 100%;
    animation: grad-flow 9s ease-in-out infinite alternate;
}

@keyframes grad-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Блок ушёл с экрана — его бесконечные анимации стоят (site.js ставит .is-off).
   Перелив заголовка и бегущая рамка Plus перерисовываются основным потоком в каждом
   кадре, а за экраном их всё равно никто не видит. */
.hero.is-off .grad,
.hero.is-off .pulse-dot,
.plus-panel.is-off::before,
.plus-panel.is-off::after { animation-play-state: paused; }

/* Главная кнопка — справа: так привыкли читать ряд «второстепенное → главное».
   В разметке она остаётся первой (порядок для чтения с экрана и клавиатуры),
   на телефоне кнопки в столбик — главная сверху. */
.cta > .btn-primary { order: 2; }
.plus-cta { margin-left: auto; justify-items: end; }
@media (max-width: 480px) {
    .cta > .btn-primary { order: 0; }
}
@media (max-width: 1100px) {
    .t-guide-actions .btn-primary { order: 2; }
}

/* Голоса: имя персонажа — белым. Раньше оно наследовало тусклый цвет подписи
   франшизы (правило .voice span задевало и обёртку .voice-text). */
.voice .voice-text > span { color: var(--dim); }
.voice .voice-text b { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    .hero .grad { animation: none; }
    .hero-cells { transform: none; }
}

/* Шапка: раздел, который сейчас на экране, — светлее и с точкой под пунктом. */
.nav a { position: relative; }
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-hi);
    transform: translateX(-50%) scale(0);
    transition: transform .3s var(--ease);
}
.nav a.is-here { color: var(--text); }
.nav a.is-here::after { transform: translateX(-50%) scale(1); }
@media (max-width: 960px) { .nav a::after { display: none; } }

/* Отзывы на главной (18.09.2026): слева сводка — средняя оценка, число отзывов и
   почему им можно верить; справа карточки. Под карточкой — дата и с какого месяца
   автор с Luxify; отметка «Проверенная покупка» честная: писать может только покупатель. */
.rv { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr); gap: 36px; align-items: start; }
.rv-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.rv-summary .title { margin: 6px 0 18px; }
.rv-score { display: flex; align-items: center; gap: 14px; }
.rv-score b { font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.rv-count { margin: 8px 0 0; color: var(--muted); }
.rv-note { display: flex; gap: 10px; margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; line-height: 1.5; }
.rv-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }

.rv-stars { display: inline-flex; gap: 3px; }
.rv-stars i { display: grid; width: 20px; height: 20px; color: rgba(255, 255, 255, 0.14); }
.rv-stars i.on { color: #f5c451; }
.rv-stars svg { width: 100%; height: 100%; fill: currentColor; }
.rv-stars.sm i { width: 15px; height: 15px; }

.rv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rv.single .rv-list { grid-template-columns: minmax(0, 1fr); max-width: 640px; }

.rv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    transition: border-color .3s, transform .35s var(--ease);
}

.rv-card:hover { border-color: var(--line-2); transform: translateY(-2px); }

/* Кавычка — крупный знак в углу, декоративный. */
.rv-card::after {
    content: "\201D";
    position: absolute;
    right: 20px;
    bottom: -6px;
    font-size: 110px;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(121, 168, 255, 0.07);
    pointer-events: none;
}

.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-ava {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 30) 70% 45%));
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -6px hsl(var(--h) 80% 50% / 0.6);
}
.rv-who { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.rv-who b { color: var(--text); font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: 12.5px; }
.rv-ok svg { width: 13px; height: 13px; }

.rv-text { margin: 0; color: #d6dae6; font-size: 15.5px; line-height: 1.6; white-space: pre-line; }
.rv-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-text.clamp.open { display: block; }
.rv-more { align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; color: var(--accent-hi); font: 500 14px var(--font); cursor: pointer; }
.rv-more:hover { color: #fff; }
.rv-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* Много отзывов (25.09.2026): на компьютере видно четыре, остальные — по «Показать ещё»;
   на телефоне — лента вбок, блок всегда высотой в одну карточку. Спрятанные карточки
   (.rv-rest) прячутся ТОЛЬКО на широком экране: на телефоне лента показывает всё
   загруженное, и переход между размерами окна ничего не теряет. */
.rv-body { display: grid; gap: 16px; min-width: 0; }
.rv-load { justify-self: start; }
.rv-dots { display: none; }

@media (min-width: 641px) {
    .rv-card.rv-rest { display: none; }
}

@media (max-width: 980px) {
    .rv { grid-template-columns: 1fr; gap: 24px; }
    .rv-summary { position: static; }
}

@media (max-width: 640px) {
    .rv-card { padding: 18px; }
    .rv-score b { font-size: 44px; }

    /* Лента: карточка на 86% ширины, следующая выглядывает — видно, что листается.
       Края ленты уходят за поля страницы, чтобы карточка доезжала до края экрана. */
    .rv-list {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        padding: 2px 16px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }
    .rv-list::-webkit-scrollbar { display: none; }
    .rv-list .rv-card { flex: 0 0 86%; scroll-snap-align: start; }
    .rv.single .rv-list .rv-card { flex-basis: 100%; }
    .rv-card:hover { transform: none; }

    .rv-load { display: none; }

    .rv-dots { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 18px; color: var(--dim); font-size: 13px; }
    .rv-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); transition: width .25s var(--ease), background .25s; }
    .rv-dots i.on { width: 18px; background: var(--accent); }
}

/* ------------------------------------------------------------------ Luxify AI (25.09.2026)

   Окно чата в том же стекле, что демо и тур; справа — карточки возможностей, текущая
   подсвечена и заполняется полоской за время сцены. Внизу две бегущие строки моделей
   и сервисов. Движение — только transform и opacity; за экраном строки стоят (.is-off),
   при «меньше движения» — неподвижны и переносятся в несколько строк. */

.ai-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px; align-items: stretch; }

.ai-window {
    min-width: 0;
    --glass-1: rgba(255, 255, 255, 0.05);
    --glass-line: rgba(255, 255, 255, 0.12);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 500px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(52, 54, 60, 0.39);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
    backdrop-filter: blur(26px) saturate(125%);
    box-shadow: 0 50px 100px -45px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    overflow: clip;
}

.ai-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #fff; font-size: 15px; }
.ai-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; }
.ai-logo svg { width: 16px; height: 16px; }
.ai-mode { margin-left: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-line); color: #c9ccd4; font-size: 12px; }

.ai-chat {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 18px;
    overflow: hidden;
    transition: opacity .25s;
}
.ai-chat.out { opacity: 0; }

/* Появление любого элемента чата. flex-shrink: 0 — сообщения не сжимаются: у пузыря
   ответа min-height заменял автоматический минимум, и флекс сплющивал его, срезая нижнюю
   строку. Не хватает места — уходит вверх самое старое, как в настоящем чате. */
.ai-chat > * { flex-shrink: 0; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.ai-chat > .in { opacity: 1; transform: none; }

.ai-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; color: #eef0f5; }
.ai-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg.bot { align-self: flex-start; background: var(--glass-1); border: 1px solid var(--glass-line); border-bottom-left-radius: 6px; min-height: 1.5em; }

.ai-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: #a9adb8; font-size: 13px; }
.ai-tool svg { width: 15px; height: 15px; color: var(--accent-hi); }
.ai-tool .spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(121, 168, 255, 0.25); border-top-color: var(--accent-hi); animation: spin .8s linear infinite; }
.ai-tool.done .spin { display: none; }
.ai-tool:not(.done) .ok { display: none; }
.ai-tool .ok { color: var(--ok); }

.ai-src { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-src span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.04); color: #c9ccd4; font-size: 12px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.ai-src span.in { opacity: 1; transform: none; }

/* Картинка «проявляется»: размытая и блёклая → чёткая. Фильтр на маленьком блоке. */
.ai-img { align-self: flex-start; margin: 0; width: min(300px, 86%); }
.ai-img .art { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-line); filter: blur(12px) saturate(0.5); transition: filter 1.8s var(--ease); }
.ai-img.ready .art { filter: none; }
.ai-img .art svg { display: block; width: 100%; height: 100%; }
.ai-img .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%); transform: translateY(-100%); }
.ai-img:not(.ready) .art::after { animation: ai-scan 1.2s linear infinite; }
.ai-img figcaption { margin-top: 6px; color: #9da2ae; font-size: 12px; }
@keyframes ai-scan { to { transform: translateY(100%); } }

.ai-file { align-self: flex-start; width: min(300px, 86%); padding: 12px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass-1); }
.ai-file-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ai-file-head .x { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #1f7a4a; color: #fff; font: 700 11px var(--font); }
.ai-file-head b { display: block; color: #fff; font-size: 13.5px; font-weight: 560; }
.ai-file-head small { color: #9da2ae; font-size: 12px; }
.ai-file table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: #d9dce3; }
.ai-file td { padding: 5px 6px; border-top: 1px solid rgba(255, 255, 255, 0.07); opacity: 0; transition: opacity .3s; }
.ai-file td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ai-file tr.in td { opacity: 1; }
.ai-file tr.total td { color: #fff; font-weight: 600; }

.ai-steps { align-self: flex-start; display: grid; gap: 6px; width: min(320px, 90%); }
.ai-steps span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass-1); color: #e3e5ea; font-size: 13px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease), background .3s, border-color .3s; }
.ai-steps span.in { opacity: 1; transform: none; }
.ai-steps span.done { background: rgba(61, 220, 132, 0.1); border-color: rgba(61, 220, 132, 0.35); }
.ai-steps svg { width: 14px; height: 14px; flex: none; color: var(--ok); opacity: 0; transition: opacity .3s; }
.ai-steps span.done svg { opacity: 1; }

.ai-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 12px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, 0.18); }
.ai-add { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.07); color: #c9ccd4; font-size: 17px; line-height: 1; transition: background .25s, color .25s, transform .25s var(--ease); }
.ai-add.on { background: var(--accent); color: #fff; transform: scale(1.12); }

/* Вложение в вопросе: миниатюра снимка экрана справа, над пузырём. */
.ai-att { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass-1); color: #c9ccd4; font-size: 12px; }
.ai-att svg { width: 96px; height: 54px; display: block; border-radius: 8px; }
.ai-att b { display: block; color: #fff; font-size: 12.5px; font-weight: 560; }
.ai-field { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #7d828e; font-size: 14px; }
.ai-field.typing { color: #fff; text-overflow: clip; }
.ai-field.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent-hi); animation: blink 1s steps(1) infinite; }
.ai-mic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.ai-mic svg { width: 16px; height: 16px; }

/* Карточки возможностей: текущая — синяя рамка и полоска времени сцены. */
/* Колонка карточек — ровно по высоте окна чата (25.09.2026, вечер): пять строк делят его
   высоту поровну, описание — одна короткая строка. Раньше колонка была выше окна. */
.ai-caps { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ai-caps li { display: flex; min-height: 0; }
.ai-caps button {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    column-gap: 14px;
    row-gap: 1px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .25s, background .25s;
}
.ai-caps button:hover { border-color: var(--line-2); }
.ai-caps button.on { border-color: var(--accent-line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.ai-caps .ai-ico { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-hi); transition: background .25s, color .25s; }
.ai-caps button.on .ai-ico { background: var(--accent); color: #fff; }
.ai-caps .ai-ico svg { width: 19px; height: 19px; }
.ai-caps b { color: var(--text); font-weight: 560; font-size: 15.5px; }
.ai-caps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.ai-caps button.on::after { animation: ai-progress var(--ai-dur, 7s) linear forwards; }
@keyframes ai-progress { to { transform: scaleX(1); } }

/* Бегущие строки: половина дорожки — копия первой, сдвиг ровно на −50% замыкает круг. */
.ai-models { margin-top: 36px; }
.ai-models-head { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.ai-models-head small { color: var(--dim); font-size: inherit; }
.ai-models-head b { color: var(--text); font-weight: 560; }
.ai-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ai-marquee + .ai-marquee { margin-top: 8px; }
.ai-track { display: flex; width: max-content; }
.ai-set { display: flex; gap: 8px; padding-right: 8px; }
.ai-marquee.ready .ai-track { animation: ai-roll 46s linear infinite; }
.ai-marquee-slow.ready .ai-track { animation-duration: 62s; }
.ai-marquee:hover .ai-track, .is-off .ai-track { animation-play-state: paused; }
@keyframes ai-roll { to { transform: translateX(-50%); } }

.ai-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 13px; white-space: nowrap; }
.ai-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--h, 220) 75% 62%); box-shadow: 0 0 10px hsl(var(--h, 220) 80% 55% / 0.55); }
.ai-chip-alt { color: var(--muted); background: transparent; }
/* Метка на фишке: бесплатно, бесплатный лимит, рубли без VPN — вместо абзаца под строкой. */
.ai-tag { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); font: 500 11px var(--font); font-style: normal; }
.ai-tag.free { background: var(--ok-soft); color: var(--ok); }
.ai-chip-alt::before { display: none; }


@media (max-width: 900px) {
    /* minmax(0, …), а не 1fr: строка в поле ввода не переносится, и колонка «1fr»
       растягивалась под неё до 600 px — окно уезжало за край телефона. */
    .ai-grid { grid-template-columns: minmax(0, 1fr); }
    .ai-caps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
    .ai-caps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .ai-window { height: 520px; border-radius: 18px; }
    .ai-chat { gap: 8px; }
    .ai-file td { padding: 4px 6px; }
    .ai-chat { padding: 14px; }
    .ai-msg { font-size: 14px; }
    .ai-img, .ai-file { width: min(250px, 82%); }
    .ai-caps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ai-caps button { padding: 11px 14px; font-size: 13px; }
    .ai-caps .ai-ico { width: 34px; height: 34px; }
    .ai-caps b { font-size: 14.5px; }
    .ai-chip { padding: 5px 11px; font-size: 12.5px; }
}

/* «Меньше движения»: строки не едут сами, их листают пальцем — перенос в столбик
   растягивал блок на телефоне до десятка рядов. */
@media (prefers-reduced-motion: reduce) {
    .ai-marquee { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .ai-marquee::-webkit-scrollbar { display: none; }
    .ai-caps button.on::after { animation: none; transform: scaleX(1); }
}

/* Самые узкие телефоны (320 px, 25.09.2026). Кнопка входа Telegram — чужой фрейм шириной
   238 px, и в карточке с полями 24 px она вылезала за экран; длинный адрес почты не
   переносился и давал прокрутку вбок на пиксель. */
@media (max-width: 340px) {
    .panel { padding-left: 12px; padding-right: 12px; }
    .tg-box { padding: 0; border-color: transparent; background: none; }
}

a[href^="mailto:"] { overflow-wrap: anywhere; }
