/* ===========================================================
   IKK VPN — кинематографичный редизайн
   • фон: полноэкранное зацикленное видео (hero каждой страницы)
   • навигация и кнопки: «жидкое стекло» (liquid glass)
   • заголовки: Instrument Serif (латиница/цифры) + Playfair Display
     (у Instrument Serif нет кириллицы — Playfair ближайший по духу)
   • текст: Inter 400/500
   • палитра: глубокий тёмно-синий + белый (HSL-переменные, как в shadcn)
   =========================================================== */

:root {
    --background: 201 100% 13%;        /* глубокий тёмно-синий */
    --foreground: 0 0% 100%;           /* белый */
    --muted-foreground: 240 4% 66%;    /* приглушённый серый */
    --primary: 0 0% 100%;
    --primary-foreground: 0 0% 4%;
    --secondary: 0 0% 10%;
    --muted: 0 0% 10%;
    --accent: 0 0% 10%;
    --border: 0 0% 18%;
    --input: 0 0% 18%;

    --font-display: 'Instrument Serif', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* служебные линии и стекло поверх тёмно-синего */
    --line:      rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.07);
    --glass:     rgba(255, 255, 255, 0.04);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(1180px, 92%); margin: 0 auto; }

::selection { background: rgba(255, 255, 255, 0.9); color: hsl(var(--background)); }

/* ===========================================================
   ТИПОГРАФИКА
   =========================================================== */
h1, h2, h3, .hand, .display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* приглушённые слова внутри заголовков — кинематографичный контраст */
h1 em, h2 em, .display em {
    font-style: normal;
    color: hsl(var(--muted-foreground));
}

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}
.eyebrow b { color: hsl(var(--foreground)); font-weight: 500; }

/* ===========================================================
   LIQUID GLASS — фирменный эффект кнопок и панелей
   =========================================================== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===========================================================
   АНИМАЦИИ
   =========================================================== */
@keyframes fade-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise         { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-delay   { animation: fade-rise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }

/* появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================================================
   ЖИВОЙ ФОН — звёзды + северное сияние (под всем содержимым)
   =========================================================== */
.site-bg {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
    background: hsl(var(--background));
}
.site-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* мягкие пятна сияния — медленно дрейфуют
   (мягкость даёт сам градиент — blur-фильтр слишком дорог на слабых машинах) */
.aurora {
    position: absolute; border-radius: 50%;
    will-change: transform;
}
.a1 {
    width: 70vw; height: 70vw; top: -28%; left: -22%; opacity: 0.55;
    background: radial-gradient(circle, hsl(197 85% 26% / 0.85) 0%, hsl(197 85% 26% / 0.3) 40%, transparent 68%);
    animation: drift-1 26s ease-in-out infinite alternate;
}
.a2 {
    width: 64vw; height: 64vw; bottom: -30%; right: -20%; opacity: 0.5;
    background: radial-gradient(circle, hsl(232 55% 30% / 0.8) 0%, hsl(232 55% 30% / 0.28) 40%, transparent 68%);
    animation: drift-2 34s ease-in-out infinite alternate;
}
.a3 {
    width: 46vw; height: 46vw; top: 28%; left: 52%; opacity: 0.3;
    background: radial-gradient(circle, hsl(174 60% 30% / 0.75) 0%, hsl(174 60% 30% / 0.25) 40%, transparent 68%);
    animation: drift-3 30s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(14vw, 12vh) scale(1.18); } }
@keyframes drift-2 { to { transform: translate(-12vw, -14vh) scale(1.12); } }
@keyframes drift-3 { to { transform: translate(-10vw, 10vh) scale(0.92); } }

/* содержимое — поверх живого фона */
.navbar, main, .footer { position: relative; z-index: 1; }

/* ===========================================================
   НАВИГАЦИЯ — стекло поверх видео
   =========================================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 90;
    transition: background 0.35s ease, border-color 0.35s ease,
                backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: hsl(var(--background) / 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line-soft);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 84px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    text-decoration: none;
    line-height: 1;
}
.logo sup { font-size: 0.55rem; vertical-align: super; margin-left: 2px; }

.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a {
    color: hsl(var(--muted-foreground)); text-decoration: none;
    font-size: 0.88rem; font-weight: 400; letter-spacing: 0.01em;
    padding: 10px 16px; border-radius: 999px;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: hsl(var(--foreground)); }

/* кнопка «Связаться» — стеклянная таблетка */
.nav-links .btn-nav {
    margin-left: 10px;
    padding: 10px 22px;
    color: hsl(var(--foreground));
    border-radius: 999px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.nav-links .btn-nav:hover { transform: scale(1.03); }

/* аватар возле пункта «Аккаунт» */
.nav-links a.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.nav-avatar {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--glass);
    color: hsl(var(--foreground));
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem; line-height: 1;
}
.nav-links a.nav-account:hover .nav-avatar {
    background: hsl(var(--primary)); color: hsl(var(--background));
}

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 1.5px; background: hsl(var(--foreground)); transition: 0.3s var(--ease); }

/* ===========================================================
   ГЕРОЙ С ВИДЕО
   =========================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    min-height: 52vh;
    padding: 150px 6% 70px;
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    will-change: transform, opacity;   /* при прокрутке уезжает вверх (script.js) */
}
.page-hero > *:not(.hero-video) { position: relative; z-index: 1; }

/* нижний край героев (включая главную) — большие плавные волны
   (clipPath #heroWave задан в base.html).
   Волна на картинке/видео везде; на внутренних страницах ей обрезана
   и секция (ради вуали ::after). На главной секцию не режем: она
   прозрачна, а волна секции обрезала бы кнопку и подсказку у низа
   экрана. При прокрутке картинка уезжает вверх со своей волной */
.page-hero:not(.hero-full) {
    clip-path: url(#heroWave);
}
.page-hero .hero-video {
    clip-path: url(#heroWave);
}
/* на главной вверху — полная картинка, волна появляется при
   прокрутке: отдельный clipPath, его форму ведёт script.js */
.page-hero.hero-full .hero-video {
    clip-path: url(#heroWaveFull);
}

/* лёгкая вуаль на героях внутренних страниц — чтобы белый заголовок
   читался на любом кадре видео с цветами (на главной её нет).
   Вуаль обрезана той же волной и уезжает вместе с картинкой
   (--heroShift задаёт script.js) — иначе под волной остаётся
   полоса другого тона поверх звёздного фона */
.page-hero:not(.hero-full)::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg,
        hsl(var(--background) / 0.35) 0%,
        hsl(var(--background) / 0.2) 55%,
        hsl(var(--background) / 0.55) 100%);
    pointer-events: none;
    clip-path: url(#heroWave);
    transform: translateY(var(--heroShift, 0%));
}

.page-hero .eyebrow { margin-bottom: 18px; }
.page-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: -0.025em;
    max-width: 1000px;
}
/* ✦-орнамент и под заголовком героя внутренних страниц */
.page-title::after {
    content: '───  ✦  ───';
    display: block;
    margin-top: 22px;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.38);
}

/* полноэкранный герой главной страницы */
.page-hero.hero-full { min-height: 100vh; padding: 150px 6% 90px; }

.hero-full h1 {
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 1200px;
}
.hero-sub {
    color: hsl(var(--muted-foreground));
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    max-width: 640px;
    margin-top: 32px;
}
.hero-cta {
    display: inline-block;
    font-family: var(--font-body); font-size: 1rem; font-weight: 400;
    color: hsl(var(--foreground)); text-decoration: none;
    border-radius: 999px;
    padding: 20px 56px;
    margin-top: 48px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.hero-cta:hover { transform: scale(1.03); }
.hero-hint {
    margin-top: 20px;
    font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: hsl(var(--muted-foreground) / 0.8);
}

/* ===========================================================
   ТЕЛО СТРАНИЦЫ — прозрачное, под ним живой фон со звёздами
   =========================================================== */
.page-body { position: relative; z-index: 1; }

section { padding: 96px 0; position: relative; }
.page-body > section:first-child,
.page-body section.container:first-child { padding-top: 84px; }

.section-head { text-align: center; margin-bottom: 60px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-title { font-size: clamp(2.4rem, 5.5vw, 4rem); }
/* ✦-орнамент под заголовками секций: чёрточки с искрой
   (div.rule стоит после каждого .section-title) */
.rule {
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.38);
}
.rule::before { content: '───  ✦  ───'; }

.lead {
    max-width: 720px; margin: 0 auto 56px; text-align: center;
    font-size: 1.12rem; line-height: 1.8; color: hsl(var(--muted-foreground));
}

/* ---------- Кнопки ---------- */
.btn {
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.92rem; font-weight: 400; letter-spacing: 0.01em;
    padding: 14px 34px; cursor: pointer; text-decoration: none; text-align: center;
    color: hsl(var(--foreground));
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.btn:hover { transform: scale(1.03); background: rgba(255, 255, 255, 0.05); }

/* главная кнопка — белая, текст тёмный */
.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.btn-primary::before { display: none; }
.btn-primary:hover { background: hsl(var(--primary)); }

.btn.disabled, .btn[aria-disabled="true"] {
    opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* карточки «Сервисы» в кабинете: ссылка прижата к низу, чтобы все
   ссылки в ряду были на одном уровне независимо от длины описания */
.acc-services .card { display: flex; flex-direction: column; }
.acc-services .card .card-link { margin-top: auto; padding-top: 16px; }

/* страница выбора кассы (checkout): карточка с вариантами оплаты */
.checkout-card { max-width: 520px; margin: 0 auto; text-align: center; }
.checkout-plan { font-size: 1.6rem; margin: 14px 0 12px; }
.checkout-sub { color: hsl(var(--muted-foreground)); margin-bottom: 28px; line-height: 1.7; }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-options form { margin: 0; }
.pay-options .btn { width: 100%; padding: 14px 24px; }
.checkout-back {
    display: inline-block; margin-top: 22px;
    color: hsl(var(--muted-foreground)); font-size: 0.9rem;
}

/* ---------- Карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* Хвост из карточек — по центру, а не прижатым влево.
   Сетка делится на 8 дорожек (полкарточки каждая), карточка занимает две.
   Пятая начинается с дорожки 2, поэтому второй ряд сдвинут ровно на полшага
   и три карточки встают по центру четырёхколоночного ряда. Ширина карточек
   при этом та же, что и при обычных четырёх колонках.
   Порог 1277px — ширина, с которой auto-fit даёт именно 4 колонки; уже неё
   колонок 3 или 2, и карточки ложатся ровно сами. */
@media (min-width: 1277px) {
    .cards-center-tail { grid-template-columns: repeat(8, 1fr); }
    .cards-center-tail > .card { grid-column: span 2; }
    .cards-center-tail > .card:nth-child(5) { grid-column: 2 / span 2; }
}

.card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    padding: 44px 36px;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}
.card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
    transform: translateY(-4px);
}

.card .index {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border: 1px solid var(--line); border-radius: 50%;
    font-family: var(--font-display); font-size: 1.15rem;
    margin-bottom: 24px; color: hsl(var(--muted-foreground));
    transition: color 0.4s ease, border-color 0.4s ease;
}
.card:hover .index { color: hsl(var(--foreground)); border-color: var(--line); }

.card h3 { font-size: 1.9rem; margin-bottom: 12px; }
.card p { color: hsl(var(--muted-foreground)); font-size: 0.98rem; }

.card a:not(.btn) {
    color: hsl(var(--foreground));
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease;
}
.card a:not(.btn):hover { border-bottom-color: hsl(var(--foreground)); }

/* ---------- Тарифы ---------- */
.plan { display: flex; flex-direction: column; }
.plan-name {
    text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.72rem; font-weight: 500;
    color: hsl(var(--muted-foreground)); margin-bottom: 14px;
}
.price {
    font-family: var(--font-display);
    font-size: 3rem; line-height: 1; letter-spacing: -0.02em;
}
.price span {
    font-family: var(--font-body); font-size: 0.9rem;
    color: hsl(var(--muted-foreground)); margin-left: 6px;
}
.stars {
    display: inline-block; font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-top: 10px; text-decoration: none;
    border-bottom: 1px dashed var(--line);
    transition: color 0.3s ease, border-color 0.3s ease;
    position: relative; z-index: 1;
}
.stars:hover { color: hsl(var(--foreground)); }
.stars b { color: hsl(var(--foreground)); font-weight: 500; }

.plan-features { list-style: none; margin: 24px 0 28px; padding: 0; }
.plan-features li {
    padding: 9px 0 9px 22px; position: relative;
    border-bottom: 1px solid var(--line-soft);
    color: hsl(var(--muted-foreground)); font-size: 0.92rem;
}
.plan-features li::before {
    content: ''; position: absolute; left: 2px; top: 50%;
    width: 5px; height: 5px; border-radius: 50%;
    transform: translateY(-50%);
    background: hsl(var(--muted-foreground) / 0.6);
}
.plan .btn, .plan form { margin-top: auto; }
.plan form .btn { width: 100%; }
.plan > .btn { width: 100%; }

.card.featured { border-color: var(--line); background: rgba(255, 255, 255, 0.06); }
.badge-pop {
    position: absolute; top: 20px; right: 20px;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.6rem; font-weight: 500;
    color: hsl(var(--foreground));
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
    background: var(--glass);
}

.notice {
    max-width: 720px; margin: 0 auto 44px; padding: 20px 28px;
    border: 1px solid var(--line-soft); border-radius: 18px;
    background: var(--glass); text-align: center;
    font-size: 0.9rem; color: hsl(var(--muted-foreground)); line-height: 1.7;
}
.notice strong { color: hsl(var(--foreground)); font-weight: 500; }
/* Без этого браузер красит ссылку внутри плашки в свой синий — на тёмно-синем
   фоне она почти не читается */
.notice a:not(.btn) {
    color: hsl(var(--foreground));
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease;
}
.notice a:not(.btn):hover { border-bottom-color: hsl(var(--foreground)); }

.note { text-align: center; margin-top: 32px; color: hsl(var(--muted-foreground)); font-size: 0.95rem; }
.note a:not(.btn), .contact-box a:not(.btn) { color: hsl(var(--foreground)); }

/* ---------- Полоса фактов ---------- */
.stats {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 28px 72px; max-width: 960px; margin: 0 auto;
}
.stat { text-align: center; min-width: 130px; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1;
    color: hsl(var(--foreground));
}
.stat-label {
    text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.66rem; font-weight: 500;
    color: hsl(var(--muted-foreground)); margin-top: 10px;
}

/* ---------- Панель-витрина приложения ---------- */
.panel {
    background: var(--glass);
    border: 1px solid var(--line-soft);
    border-radius: 32px; padding: 64px 58px;
}
.showcase { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.showcase-text h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.showcase-text .lead-left {
    color: hsl(var(--muted-foreground)); font-size: 1.02rem; line-height: 1.8;
    max-width: 470px;
}
.showcase .pills { justify-content: flex-start; margin-top: 28px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.64rem; font-weight: 500;
    color: hsl(var(--muted-foreground));
    border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 16px;
    background: var(--glass);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.pill:hover { color: hsl(var(--foreground)); border-color: var(--line); }
.pill.accent { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }

/* телефон-мокап — корпус и свечение сняты пипеткой с рекламного баннера
   (ikkvpn_banner.png), чтобы сайт и реклама выглядели одинаково */
.phone-wrap { display: flex; justify-content: center; perspective: 1600px; }
.phone {
    --accent: #36cbda;               /* бирюза кнопки с баннера */
    width: 300px; max-width: 78vw; aspect-ratio: 300 / 636;
    border-radius: 54px; padding: 10px; position: relative;
    /* тонкие светлые полосы по краям — блик титановой рамки */
    background: linear-gradient(115deg,
        #7d8489 0%, #171c21 6%, #0a0e12 26%, #05080b 50%,
        #0a0e12 74%, #171c21 94%, #6f767b 100%);
    box-shadow:
        0 50px 90px rgba(0, 0, 0, 0.55),
        0 12px 28px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    transform: rotateY(-9deg) rotateX(2deg);
    transition: transform 0.7s var(--ease);
}
.phone:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-8px); }

/* боковые клавиши — выступают за силуэт на пару пикселей */
.phone-side {
    position: absolute; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, #6e757a, #2b3136);
}
.phone-side-mute { left: -3px; top: 15%; height: 4%; }
.phone-side-vol { left: -3px; top: 22%; height: 14%; }
.phone-side-power { right: -3px; top: 26%; height: 12%; }

.phone-screen {
    height: 100%; border-radius: 45px; overflow: hidden; position: relative;
    padding: 46px 16px 16px;
    display: flex; flex-direction: column; align-items: center;
    /* подложка чуть светлее фона сайта (#002B42) — экран читается как
       включённый дисплей, а не как чёрный прямоугольник */
    background:
        radial-gradient(120% 70% at 50% 34%, rgba(84, 217, 232, 0.20) 0%, rgba(10, 47, 69, 0) 64%),
        linear-gradient(180deg, #0d3c52 0%, #092d43 52%, #062134 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.phone-screen::after {          /* диагональный блик стекла */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(128deg,
        rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 22%, rgba(255, 255, 255, 0) 46%);
}
.phone-island {
    position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
    width: 88px; height: 25px; border-radius: 999px; background: #000; z-index: 2;
}
.phone-island::after {          /* глазок камеры */
    content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1b3d4d, #050a0e 70%);
}
.phone-brand {
    font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.5px;
    color: var(--accent); line-height: 1.2;
}
.phone-brand b { color: hsl(var(--foreground)); font-weight: 400; }
.phone-connect {
    width: 132px; height: 132px; border-radius: 50%; margin: 26px 0 22px;
    position: relative; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 42%,
        #3f9dc2 0%, #2a7ea6 30%, #195b80 62%, #0a3149 100%);
    box-shadow:
        0 0 0 12px rgba(58, 150, 196, 0.055),
        0 0 0 26px rgba(58, 150, 196, 0.028),
        0 0 34px 4px rgba(58, 150, 196, 0.28),
        0 0 80px 18px rgba(58, 150, 196, 0.13),
        inset 0 -8px 20px rgba(0, 26, 33, 0.55),
        inset 0 6px 16px rgba(255, 255, 255, 0.22);
}
.phone-connect::before {        /* расходящееся кольцо «идёт соединение» */
    content: ''; position: absolute; inset: -16px; border-radius: 50%;
    border: 1px solid rgba(58, 150, 196, 0.3);
    animation: phone-pulse 3.4s var(--ease) infinite;
}
@keyframes phone-pulse {
    0% { transform: scale(0.92); opacity: 0.9; }
    70%, 100% { transform: scale(1.2); opacity: 0; }
}
.phone-power {
    width: 46px; height: 46px; fill: none; stroke: #dff4fa; stroke-width: 1.7;
    stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.32));
}
.phone-state {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.84rem; font-weight: 600; color: hsl(var(--foreground));
}
.phone-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}
.phone-timer {
    font-size: 0.74rem; letter-spacing: 1.5px; margin-top: 3px;
    color: rgba(255, 255, 255, 0.42); font-variant-numeric: tabular-nums;
}
.phone-servers { width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.phone-bar {
    width: 108px; height: 4px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.3); margin: 12px 0 2px; flex-shrink: 0;
}
.srv {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 16px; padding: 10px 12px;
    background: rgba(17, 66, 88, 0.55);
}
.srv-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}
.srv.off .srv-dot { background: rgba(255, 255, 255, 0.25); box-shadow: none; }
.srv-name { font-size: 0.78rem; color: hsl(var(--foreground)); }
.srv.off .srv-name { color: hsl(var(--muted-foreground)); }
.srv-tag { margin-left: auto; text-transform: uppercase; letter-spacing: 1px; font-size: 0.5rem; color: hsl(var(--muted-foreground)); }

@media (prefers-reduced-motion: reduce) {
    .phone-connect::before { animation: none; }
}

@media (max-width: 860px) {
    .showcase { grid-template-columns: 1fr; gap: 40px; }
    .showcase-text { text-align: center; }
    .showcase-text .lead-left { margin-left: auto; margin-right: auto; }
    .showcase .pills { justify-content: center; }
    .panel { padding: 44px 24px; }
    .phone { transform: none; }   /* без наклона на узком экране */
}

/* ---------- Контакт ---------- */
.contact-box { text-align: center; max-width: 580px; margin: 0 auto; }
.contact-box p { color: hsl(var(--muted-foreground)); }
.contact-box .btn { margin: 22px 0; }
.contact-box .muted { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }

/* ===========================================================
   ФОРМЫ
   =========================================================== */
.form-card { max-width: 560px; margin: 0 auto; }
.field { position: relative; margin-bottom: 34px; }
.field input, .field textarea {
    width: 100%; padding: 12px 2px;
    font-family: var(--font-body); font-size: 1rem;
    color: hsl(var(--foreground)); background: transparent;
    border: none; border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field label {
    position: absolute; left: 2px; top: 12px;
    color: hsl(var(--muted-foreground));
    font-size: 1rem; pointer-events: none; transition: all 0.3s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
    top: -14px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: hsl(var(--foreground)); }
.form-card .btn { width: 100%; margin-top: 6px; }

.flash {
    max-width: 560px; margin: 0 auto 30px; padding: 16px 24px;
    border: 1px solid var(--line-soft); border-radius: 14px;
    background: var(--glass); text-align: center;
    font-size: 0.9rem; color: hsl(var(--foreground));
}

/* ===========================================================
   ЛИЧНЫЙ КАБИНЕТ
   =========================================================== */
.acc-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.acc-profile { display: flex; flex-direction: column; align-items: flex-start; }
.acc-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.acc-avatar {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--glass);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 2.2rem;
    color: hsl(var(--foreground));
}
.acc-name { font-size: 1.1rem; word-break: break-all; }
.acc-meta {
    margin-top: 6px; color: hsl(var(--muted-foreground));
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px;
}
.acc-status {
    color: hsl(var(--muted-foreground)); border-top: 1px solid var(--line-soft);
    padding-top: 18px; margin-bottom: 26px; font-size: 0.95rem;
}
.acc-btn { position: relative; z-index: 1; }

.acc-links { display: flex; flex-direction: column; gap: 12px; }
.acc-row {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 26px;
    background: var(--glass);
    border: 1px solid var(--line-soft); border-radius: 18px;
    color: hsl(var(--foreground)); text-decoration: none; font-size: 0.98rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.acc-row:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line); }
.acc-row .arr { color: hsl(var(--muted-foreground)); transition: transform 0.3s var(--ease), color 0.3s ease; }
.acc-row:hover .arr { transform: translateX(6px); color: hsl(var(--foreground)); }

.acc-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
    background: var(--glass);
    border: 1px solid var(--line-soft); border-radius: 24px;
    padding: 34px 42px; margin-bottom: 18px;
}
.acc-banner-hand { font-family: var(--font-display); font-size: 1.8rem; }
.acc-banner p { color: hsl(var(--muted-foreground)); margin-top: 6px; font-size: 0.95rem; }
.acc-banner .btn { flex-shrink: 0; }

@media (max-width: 860px) {
    .acc-top { grid-template-columns: 1fr; }
    .acc-banner { padding: 28px 26px; }
}

/* ===========================================================
   ЮРИДИЧЕСКИЙ ТЕКСТ
   =========================================================== */
.legal { max-width: 760px; margin: 0 auto; }
.legal-intro { color: hsl(var(--muted-foreground)); margin-bottom: 34px; font-size: 1.05rem; }
.legal h3 {
    font-family: var(--font-display);
    font-size: 1.5rem; margin: 34px 0 10px;
}
.legal p { color: hsl(var(--muted-foreground)); margin-bottom: 8px; line-height: 1.75; font-size: 0.95rem; }
.legal b { color: hsl(var(--foreground)); font-weight: 500; }
.legal a { color: hsl(var(--foreground)); }
.legal-note {
    margin-top: 34px; font-size: 0.85rem;
    border-top: 1px solid var(--line-soft); padding-top: 16px;
}

/* ===========================================================
   ПОДВАЛ
   =========================================================== */
.footer {
    text-align: center; padding: 64px 0 56px;
    color: hsl(var(--muted-foreground));
    border-top: 1px solid var(--line-soft); font-size: 0.85rem;
    position: relative; z-index: 1;
}
.footer-logo {
    font-family: var(--font-display); font-size: 1.7rem;
    color: hsl(var(--foreground)); margin-bottom: 14px;
}
.footer-logo sup { font-size: 0.5rem; }
.footer a { color: hsl(var(--foreground)); text-decoration: none; transition: opacity 0.3s ease; }
.footer a:hover { opacity: 0.7; }
.footer-docs { margin-top: 10px; font-size: 0.8rem; }
.footer-docs a { color: hsl(var(--muted-foreground)); }
.footer-docs a:hover { color: hsl(var(--foreground)); opacity: 1; }

/* ===========================================================
   АДАПТИВ
   =========================================================== */
@media (max-width: 820px) {
    .burger { display: flex; }
    .nav-links {
        position: absolute; top: 84px; right: 0; left: 0;
        flex-direction: column; align-items: stretch; gap: 0; padding: 12px 5% 20px;
        background: hsl(var(--background) / 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line-soft);
        transform: translateY(-130%); transition: transform 0.5s var(--ease);
        visibility: hidden;
    }
    .nav-links.open { transform: translateY(0); visibility: visible; }
    .nav-links a { text-align: center; padding: 14px; }
    .nav-links .btn-nav { margin: 10px auto 0; width: min(280px, 100%); }
    section { padding: 64px 0; }
    .page-hero { padding: 130px 6% 56px; }
    .page-hero.hero-full { padding: 130px 6% 70px; }
}

/* ===========================================================
   УВАЖЕНИЕ К «УМЕНЬШИТЬ ДВИЖЕНИЕ»
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ── Кнопка входа через Telegram (login/register) ────────────────── */
.tg-login {
    margin: 26px auto 0;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tg-or {
    position: relative;
    display: block;
    width: 100%;
    color: var(--dim, #8a8f98);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.tg-or::before,
.tg-or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: currentColor;
    opacity: .25;
}
.tg-or::before { left: 0; }
.tg-or::after { right: 0; }
.tg-login .note { margin: 0; }

/* ===========================================================
   ИНСТРУКЦИИ И СРАВНЕНИЕ ЦЕН (страницы под поиск)
   Отдельный блок: эти страницы приходят из Яндекса и Google, их
   читают целиком и с телефона — поэтому колонка узкая, шрифт
   крупнее обычного, а шаги идут вертикально, а не сеткой.
   =========================================================== */

/* ---------- Шаги инструкции ---------- */
.steps { list-style: none; max-width: 760px; margin: 0 auto; padding: 0; counter-reset: step; }
.steps > li {
    position: relative;
    padding: 0 0 40px 76px;
    counter-increment: step;
}
/* Вертикальная нить между кружками; у последнего шага её нет */
.steps > li::before {
    content: '';
    position: absolute; left: 25px; top: 52px; bottom: 6px;
    width: 1px; background: var(--line-soft);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::before { display: none; }
.steps > li::after {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border: 1px solid var(--line); border-radius: 50%;
    font-family: var(--font-display); font-size: 1.15rem;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--background));
}
.steps h3 { font-size: 1.5rem; margin: 10px 0 10px; }
.steps p { color: hsl(var(--muted-foreground)); font-size: 1rem; }
.steps p + p { margin-top: 10px; }
.steps a:not(.btn) { color: hsl(var(--foreground)); border-bottom: 1px solid var(--line); text-decoration: none; }
.steps a:not(.btn):hover { border-bottom-color: hsl(var(--foreground)); }
.steps code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88em; padding: 2px 7px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
}

/* ---------- Текстовый блок статьи ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }

/* Орнамент-разделитель между темами. Тот же ✦, что под заголовками секций
   (.rule), но с воздухом сверху и снизу — иначе три темы подряд читаются
   как одна сплошная стена текста.
   Отступ у следующего h2 гасим: свои 56px он бы прибавил к отступу
   разделителя и провал стал бы вдвое больше нужного. */
.prose-sep { margin: 0 auto 40px; }
.prose-sep + h2 { margin-top: 0; }
.prose > *:not(:first-child).prose-sep { margin-top: 60px; }
.prose p { color: hsl(var(--muted-foreground)); margin-bottom: 18px; }
.prose ul { color: hsl(var(--muted-foreground)); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: hsl(var(--foreground)); font-weight: 500; }
.prose a:not(.btn) { color: hsl(var(--foreground)); border-bottom: 1px solid var(--line); text-decoration: none; }

/* ---------- Таблица сравнения ---------- */
/* Обёртка со скроллом: на телефоне таблица шире экрана, но страница
   при этом не должна ездить вбок целиком */
.table-wrap { max-width: 860px; margin: 0 auto 28px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.cmp th {
    font-family: var(--font-body); font-weight: 500;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.68rem;
    color: hsl(var(--muted-foreground));
    border-bottom-color: var(--line);
}
.cmp td { color: hsl(var(--muted-foreground)); }
.cmp td:first-child { color: hsl(var(--foreground)); }
.cmp tr.is-us td { color: hsl(var(--foreground)); background: rgba(255, 255, 255, 0.05); }
.cmp tr:last-child td { border-bottom: none; }

/* ---------- Вопросы и ответы ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
    border-bottom: 1px solid var(--line-soft);
    padding: 4px 0;
}
.faq-list summary {
    cursor: pointer; list-style: none;
    padding: 20px 36px 20px 0; position: relative;
    font-size: 1.06rem; color: hsl(var(--foreground));
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+'; position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display); font-size: 1.5rem;
    color: hsl(var(--muted-foreground));
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details > div {
    padding: 0 36px 22px 0;
    color: hsl(var(--muted-foreground)); font-size: 0.98rem;
}
.faq-list a:not(.btn) { color: hsl(var(--foreground)); }

/* ---------- Плитка ссылок на инструкции ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.guide-tile {
    display: block; padding: 26px 24px; text-decoration: none;
    border: 1px solid var(--line-soft); border-radius: 20px;
    background: var(--glass);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}
.guide-tile:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line); transform: translateY(-3px); }
.guide-tile b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: hsl(var(--foreground)); margin-bottom: 6px; }
.guide-tile span { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

/* ---------- Призыв в конце страницы ---------- */
.cta-band { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.cta-band p { color: hsl(var(--muted-foreground)); margin-bottom: 28px; }

@media (max-width: 640px) {
    .steps > li { padding-left: 62px; }
    .steps > li::after { width: 42px; height: 42px; font-size: 1rem; }
    .steps > li::before { left: 20px; top: 46px; }
}
