/* ============================================================
   Midas VPN — landing v2 (точные значения из Figma-макета)
   ============================================================ */

/* Inter — локально, чтобы на любой системе выглядело одинаково */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin.woff2') format('woff2');
    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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500-latin.woff2') format('woff2');
    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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600-latin.woff2') format('woff2');
    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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700-latin.woff2') format('woff2');
    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;
}

:root {
    --bg: #0a0a0a;
    --card: #0b0c0d;          /* фичи, CTA */
    --card-2: #0e0e0f;        /* цены */
    --glass: rgba(16, 16, 16, 0.5);  /* устройства, лента, серверы */
    --line: #1c1c1e;
    --line-top: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --text-dim: #8c8b86;
    --text-sub: #8f8f8f;
    --text-foot: #8b8ba3;
    --text-faint: #404040;
    --gold: #f7c503;
    --gold-2: #ffd534;
    --on-gold: #0b0c0d;
    --green: #58c26e;
    --radius: 32px;
    --nav-h: 68px;
    --container: 1210px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

section { padding: 90px 0; }

/* ---------- Кнопки (пилюли, как в макете) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 600;
    letter-spacing: -0.02em;
    border: none;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
    background: var(--gold);
    color: var(--on-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover {
    background: var(--gold-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 32px -8px #f7c50366;
}
/* тёмная кнопка: радиальная жёлтая подсветка снизу-в-центре, золотой текст */
.btn-dark {
    background: radial-gradient(120% 160% at 50% 115%, #f7c50329, transparent 70%);
    color: var(--gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.btn-dark:hover {
    background: radial-gradient(120% 160% at 50% 115%, #f7c50340, transparent 70%);
}
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.nav-wrap {
    position: sticky;
    top: 14px;
    z-index: 100;
    padding: 0 24px;
}
.nav {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 12px 0 26px;
    border-radius: 999px;
    background: #0f0f0ed9;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.nav-logo img { width: 25px; height: 32px; }
.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { padding: 13px 28px; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    margin-top: calc(-1 * var(--nav-h) - 14px);
    padding: calc(var(--nav-h) + 110px) 0 100px;
    overflow: hidden;
    background: #070706;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 78% 28%, #c8963c30, transparent 65%),
        radial-gradient(ellipse 45% 40% at 12% 65%, #a5762b22, transparent 65%),
        radial-gradient(ellipse 70% 55% at 50% 110%, #3a2c0d33, transparent 70%),
        linear-gradient(180deg, #0b0a08 0%, #080807 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 30%, #07070699 100%);
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero h1 {
    font-size: clamp(44px, 5.6vw, 80px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.hero-sub {
    margin: 24px auto 0;
    max-width: 540px;
    color: var(--text-sub);
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.5;
}
.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-bgimg {
    position: absolute;
    pointer-events: none;
    opacity: 0.85;
}
.hero-bgimg--l { left: -150px; top: -120px; width: 700px; }
.hero-bgimg--r { right: -170px; top: -200px; width: 860px; }
/* композитные полосы фона из макета (главная и тарифы) */
.hero-strip {
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    max-width: none;
    pointer-events: none;
    object-fit: cover;
}
.hero-strip--l {
    left: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 96%);
    mask-image: linear-gradient(90deg, #000 55%, transparent 96%);
}
.hero-strip--r {
    right: 0;
    -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 96%);
    mask-image: linear-gradient(270deg, #000 55%, transparent 96%);
}
@media (max-width: 1000px) { .hero-strip { display: none; } }

/* Hero для внутренних страниц — тот же 80px, компактные отступы */
.hero--page { padding: calc(var(--nav-h) + 90px) 0 70px; }

/* Боке на странице серверов: круг + светящаяся точка в центре */
.bokeh { position: absolute; border-radius: 50%; pointer-events: none; }
.bokeh--fill { background: radial-gradient(circle, #d8a83c2a, #a97e2a12 60%, transparent 75%); filter: blur(10px); }
.bokeh--ring { border: 1.5px solid #d8a83c1f; filter: blur(1.6px); }
.bokeh--ring::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #f7c50388;
    box-shadow: 0 0 10px 3px #f7c5032e;
    filter: blur(0.5px);
}
.bokeh--dot { background: #e9bd4e77; filter: blur(2px); box-shadow: 0 0 14px 4px #f7c50328; }

/* ---------- Заголовки секций ---------- */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 {
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.sec-head p {
    margin: 12px auto 0;
    max-width: 520px;
    color: var(--text-sub);
    font-size: clamp(15px, 1.4vw, 20px);
}

/* ---------- Карточки-фичи (главная) ----------
   Фон #0b0c0d + жёлтое радиальное свечение снизу-по-центру (15%),
   верхняя стеклянная кромка, радиус 32 */
.features { display: grid; gap: 20px; }
.features-row { display: grid; gap: 20px; }
.features-row--a { grid-template-columns: 652fr 538fr; }
.features-row--b { grid-template-columns: 419fr 771fr; }

.fcard {
    position: relative;
    border-radius: var(--radius);
    background:
        radial-gradient(120% 130% at 50% 118%, #f7c50326, transparent 62%),
        var(--card);
    box-shadow: inset 0 1px 0 var(--line-top), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 343px;
}
.fcard h3 {
    font-size: clamp(21px, 1.9vw, 27px);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.fcard > p {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: clamp(15px, 1.4vw, 20px);
    line-height: 1.25;
    max-width: 490px;
}

/* карточка 1 — безлимит */
.fcard-stage { position: relative; flex: 1; min-height: 190px; }
/* чипы — фоновая декорация: полупрозрачные и слегка размытые */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 14px;
    border-radius: 18px;
    background:
        radial-gradient(140% 160% at 50% 120%, #f7c50340, transparent 65%),
        rgba(23, 24, 25, 0.05);
    box-shadow: inset 0 1px 0 rgba(40, 38, 26, 0.55);
    color: var(--gold);
    font-size: 17px;
    font-weight: 600;
}
.fcard--unlim .chip { opacity: 0.25; filter: blur(2px); }
.chip-ic { width: 39px; height: 39px; flex: none; }
.fcard--unlim .chip--devices { position: absolute; top: 0; left: 0; }
.fcard--unlim .chip--bypass { position: absolute; right: 0; top: 128px; }
.unlim-pill {
    position: absolute;
    top: 52px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 15px 30px 15px 15px;
    border-radius: 31px;
    background:
        radial-gradient(140% 160% at 50% 120%, #f7c50340, transparent 65%),
        rgba(23, 24, 25, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}
.unlim-pill .ic-img { width: 62px; height: 62px; display: block; }
.unlim-pill span {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: -0.01em;
}

/* карточка 2 — качество */
.fcard--quality { align-items: center; text-align: center; }
.fcard--quality > p { margin-left: auto; margin-right: auto; }
.quality-logo {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 190px;
}
.quality-logo img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.quality-logo .q-rays { width: 560px; max-width: 100%; opacity: 0.45; }
.quality-logo .q-ghosts { width: 400px; max-width: 92%; }
.quality-logo .q-plaque { width: 133px; filter: drop-shadow(0 18px 50px #f7c50333); }

/* карточка 3 — телефоны из макета */
.fcard--bot { min-height: 343px; }
.fcard--bot h3 { white-space: nowrap; font-size: clamp(18px, 1.6vw, 23px); }
.phone-mini {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 226px;
}
.phone-mini img {
    width: min(436px, 112%);
    height: auto;
}

/* карточка 4 — статистика */
.stats-stage {
    position: relative;
    flex: 1;
    min-height: 240px;
    margin: -32px -32px 14px;
    padding: 0 32px;
    overflow: hidden;
}
.stat-rows {
    position: absolute;
    top: -14px;
    left: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(350px, 60%);
}
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 12px 12px 20px;
    border-radius: 24px;
    white-space: nowrap;
    background:
        radial-gradient(140% 160% at 50% 120%, #f7c50318, transparent 65%),
        rgba(23, 24, 25, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: -0.01em;
}
.stat-row .val {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--gold-2), var(--gold));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-size: 20px;
    font-weight: 600;
    color: var(--on-gold);
}
.stat-row--dim { opacity: 0.35; }
.stat-row--mid { opacity: 0.65; }
.orbit {
    position: absolute;
    left: -1180px;
    top: -640px;
    width: 1849px;
    height: 1849px;
    pointer-events: none;
}
.orbit i {
    position: absolute;
    border: 1px solid rgba(247, 197, 3, 0.16);
    border-radius: 50%;
}
.orbit i:nth-child(1) { inset: 13px; }
.orbit i:nth-child(2) { inset: 90px; }
.orbit i:nth-child(3) { inset: 172px; }
.orbit i:nth-child(4) { inset: 263px; }
/* флаги — матовые светлые кружки, как Ripple_logo в макете */
.stats-stage .sat {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 28%, #262419, #131209 78%);
    border: 2px solid rgba(247, 197, 3, 0.22);
    box-shadow:
        0 18px 44px #000000aa,
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -14px 28px rgba(247, 197, 3, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.stats-stage .sat img { width: 52%; height: auto; }
.sat--de { width: 74px; height: 74px; left: 89.5%; top: 13%; }
.sat--nl { width: 112px; height: 112px; left: 64%; top: 57%; }
.sat--fi { width: 60px; height: 60px; left: 76%; top: 90%; filter: blur(2.5px); opacity: 0.8; }
.sat--pl { width: 84px; height: 84px; left: 87%; top: 55%; filter: blur(0.6px); }

/* ---------- Устройства: стеклянные тёмные карточки ---------- */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.device-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    min-height: 120px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    transition: border-color 0.2s, transform 0.2s;
}
.device-card:hover { border-color: #f7c50333; transform: translateY(-2px); }
.device-card .ic {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 18px;
    display: grid;
    place-items: center;
}
.device-card .ic--tile { background: none; }
.device-card .ic--tile img { width: 64px; height: 64px; border-radius: 18px; display: block; }
.device-card h4 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; }
.device-card p {
    margin-top: 2px;
    font-size: 16px;
    color: var(--text-dim);
}

/* ---------- Три шага ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.step-card {
    position: relative;
    border-radius: var(--radius);
    background: radial-gradient(160% 170% at 86% 100%, #f7c5033d, transparent 60%);
    box-shadow: inset 0 1px 0 var(--line-top), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 28px;
    min-height: 130px;
    overflow: hidden;
}
.step-card h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; }
.step-card p {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.25;
    max-width: 62%;
}
/* цифра: по центру вертикали, крупная, обрезается сверху и снизу */
.step-card .num {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) skewX(8deg) scaleX(1.12);
    font-size: 170px;
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(195deg, rgba(255, 249, 224, 0.6) 15%, rgba(247, 197, 3, 0.14) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: none;
}

/* ---------- Live ---------- */
.live-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: stretch;
}
.live-counter {
    min-height: 268px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--gold-2), var(--gold));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--on-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
}
.live-counter .big {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #33301f, #0b0c0d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.live-counter p { margin-top: 10px; font-size: 20px; opacity: 0.5; }
.live-feed {
    position: relative;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    overflow: hidden;
}
.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 19px 26px;
    border-radius: 999px;
    background: rgba(150, 142, 127, 0.02);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    font-size: 16px;
}
.feed-item .user { font-weight: 700; color: #f2f2f8; }
.feed-item .action { color: var(--text-foot); flex: 1; }
.feed-item .loc { font-weight: 600; }
.feed-item .time { color: var(--text-foot); }
#feedList { display: flex; flex-direction: column; gap: 12px; }
.live-feed::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, #0e0e0f);
    pointer-events: none;
}

/* ---------- Цены ---------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.price-card {
    border-radius: var(--radius);
    background: var(--card-2);
    border: 1px solid var(--line);
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.price-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.price-top .sum { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.price-top .per { color: var(--text-faint); font-size: clamp(16px, 1.5vw, 21px); }
.price-top .badge {
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
    flex: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: var(--on-gold);
    font-size: 13px;
    font-weight: 700;
}
.price-note { margin-top: 8px; font-size: 16px; color: var(--text-sub); }
.price-feats {
    margin: 24px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.pfeat {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: #111111;
    border: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
}
.pfeat .em { display: flex; }
.pfeat .em img { width: 20px; height: 20px; display: block; }

/* базовый тариф */
.price-basic {
    margin-top: 16px;
    border-radius: var(--radius);
    background: var(--card-2);
    border: 1px solid var(--line);
    padding: 32px;
}
.price-basic-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.price-basic-top h3 {
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.price-basic-top .per { color: var(--text-faint); font-size: clamp(18px, 1.7vw, 24px); }
.price-basic-top .chips {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.price-basic .chip {
    opacity: 1;
    filter: none;
    background: #111111;
    border: 1px solid var(--line);
    box-shadow: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 0 18px;
    height: 48px;
    border-radius: 999px;
    white-space: nowrap;
}
.price-basic .chip .chip-ic { width: 20px; height: 20px; }

/* ---------- «В каждом тарифе» ---------- */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.perk-card {
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    padding: 24px;
}
.perk-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.perk-card p { margin-top: 6px; color: var(--text-dim); font-size: 16px; line-height: 1.25; }

/* ---------- Карта серверов (контурная, как в макете) ---------- */
.map-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    aspect-ratio: 1210 / 367;
    overflow: hidden;
    margin-bottom: 16px;
}
.map-svg { position: absolute; inset: 0; }
.map-svg svg { width: 100%; height: 100%; display: block; }
.map-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, #0c0c0b 0%, transparent 18%, transparent 82%, #0c0c0b 100%),
        linear-gradient(90deg, #0c0c0bcc 0%, transparent 12%, transparent 88%, #0c0c0bcc 100%);
}
.map-tip {
    position: absolute;
    left: 50%;
    top: 90px;
    transform: translate(-50%, calc(-100% - 26px));
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 340px;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(120% 160% at 50% 120%, #f7c50326, transparent 62%),
        rgba(16, 16, 16, 0.5);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px -16px #000c;
    z-index: 3;
    white-space: nowrap;
}
.map-tip .flag { width: 34px; height: 34px; object-fit: contain; }
.map-tip h4 { font-size: 20px; font-weight: 600; }
.map-tip .city { font-size: 16px; color: var(--text-dim); }
.map-tip .right { margin-left: auto; text-align: right; }
.map-tip .ping { font-size: 20px; font-weight: 600; }
.map-tip .load { font-size: 16px; color: var(--text-dim); }

/* ---------- Карточки серверов (как в макете: 397x98, r24) ---------- */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.server-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 98px;
    padding: 24px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.server-card:hover { border-color: #f7c50333; }
.server-card.is-active {
    border-color: #f7c503;
    background:
        radial-gradient(120% 170% at 18% 125%, #f7c50329, transparent 62%),
        var(--glass);
}
.server-card .flag { width: 34px; height: 34px; object-fit: contain; flex: none; }
.server-card h4 { font-size: 20px; font-weight: 600; }
.server-card .city { font-size: 16px; color: var(--text-dim); margin-top: 0; }
.server-card .right { margin-left: auto; text-align: right; }
.server-card .ping { font-size: 20px; font-weight: 600; }
.server-card .load { font-size: 16px; color: var(--text-dim); margin-top: 0; }
.server-card.is-hidden { display: none; }
.server-more {
    justify-content: space-between;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    background: var(--glass);
    border-style: solid;
    border-color: var(--line);
    width: 100%;
    font-family: inherit;
}
.server-more:hover { border-color: #f7c50333; }
.server-more .arr { display: flex; color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.faq-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: none;
    color: #f2f2f8;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    padding: 26px 4px;
}
.faq-q .tgl {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(120% 160% at 50% 115%, #f7c50329, transparent 70%),
        #0b0c0d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    transition: transform 0.25s ease;
}
.faq-item.open .tgl { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-a p {
    padding: 0 4px 26px;
    color: var(--text-sub);
    font-size: 16px;
    font-weight: 500;
    max-width: 640px;
}
.faq-item.open .faq-a { max-height: 220px; }

/* ---------- CTA ---------- */
.cta-card {
    position: relative;
    border-radius: var(--radius);
    background:
        radial-gradient(120% 160% at 50% 118%, #f7c50326, transparent 62%),
        var(--card);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 var(--line-top);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: 32px;
}
.cta-card h2 {
    font-size: clamp(32px, 3.3vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.cta-card .sub { margin-top: 12px; color: var(--text-sub); font-size: clamp(15px, 1.4vw, 20px); }
.cta-card .cta-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.cta-phone-slot { position: relative; height: 100%; min-height: 170px; }

/* Телефон: верх торчит над карточкой, низ вровень с её нижней кромкой,
   справа выходит за край (как в макете: x+655, y−163 при карточке 298px) */
.phone-clip {
    position: absolute;
    top: -240px;
    bottom: 0;
    right: 0;
    width: 520px;
    overflow: hidden;
    border-bottom-right-radius: var(--radius);
    pointer-events: none;
}
.phone-big {
    position: absolute;
    right: 36px;
    bottom: -140px;
    width: 330px;
    max-width: none;
    transform: rotate(8deg);
    transform-origin: 50% 100%;
}

/* ---------- Футер ---------- */
footer {
    margin-top: 40px;
    background: #0d0d0c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand p { color: var(--text-foot); font-size: 16px; max-width: 300px; line-height: 1.25; }
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-foot);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    color: var(--text-foot);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-foot); font-size: 14px; font-weight: 500; }
.footer-bot-link {
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid #f7c50333;
    background: #f7c5030d;
    color: #f0c850;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s;
}
.footer-bot-link:hover { background: #f7c5031f; }

/* стрелка мобильного слайдера */
.slide-next {
    display: none;
    position: absolute;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--on-gold);
    font-size: 20px;
    box-shadow: 0 8px 24px -6px #f7c50388, inset 0 1px 0 rgba(255, 255, 255, 0.35);
    place-items: center;
    z-index: 5;
}

/* ---------- Анимации появления ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .map-pin .ring { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .features-row--a, .features-row--b { grid-template-columns: 1fr; }
    .devices-grid { grid-template-columns: repeat(2, 1fr); }
    .servers-grid { grid-template-columns: repeat(2, 1fr); }
    .servers-grid:not(.is-open) .server-card:nth-child(n+6):not(.server-more) { display: none; }
    .cta-card { grid-template-columns: 1fr; padding: 48px 36px; }
    .cta-phone-slot, .phone-clip { display: none; }

    /* шаги — столбиком */
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { padding: 24px 28px; min-height: 116px; }
    .step-card p { max-width: 68%; }
    .step-card .num { font-size: 100px; right: 12px; }

    /* цены и перки — горизонтальный слайдер со стрелкой */
    .price-grid, .perks-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        margin: 0 -24px;
        padding: 0 24px 6px;
        scrollbar-width: none;
    }
    .price-grid::-webkit-scrollbar, .perks-grid::-webkit-scrollbar { display: none; }
    .price-card, .perk-card {
        flex: 0 0 min(84%, 340px);
        scroll-snap-align: center;
        padding: 24px;
    }
    .perk-card { min-height: 0; }
    /* базовый тариф — четвёртая карточка слайдера (переносится JS) */
    .price-grid .price-basic {
        flex: 0 0 min(84%, 340px);
        scroll-snap-align: center;
        margin-top: 0;
        padding: 24px;
        display: flex;
        flex-direction: column;
    }
    .price-grid .price-basic .price-basic-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    .price-grid .price-basic .chips {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .price-grid .price-basic .btn { margin-top: auto; }

    /* live-лента — компактная сетка */
    .live-feed { padding: 14px; }
    .feed-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "user action" "loc time";
        row-gap: 4px;
        column-gap: 8px;
        padding: 12px 16px;
        border-radius: 18px;
        font-size: 13.5px;
    }
    .feed-item .user { grid-area: user; white-space: nowrap; }
    .feed-item .action { grid-area: action; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .feed-item .loc { grid-area: loc; font-size: 12.5px; white-space: nowrap; }
    .feed-item .time { grid-area: time; text-align: right; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 700px) {
    section { padding: 64px 0; }
    .nav-links, .nav .nav-cta { display: none; }
    .burger { display: flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        background: #131311f5;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 16px;
        backdrop-filter: blur(18px);
        z-index: 99;
    }
    .nav-links.open a { display: block; padding: 12px 16px; font-size: 16px; }
    .nav-wrap { position: relative; }
    .nav { position: relative; }
    .devices-grid, .steps-grid, .servers-grid { grid-template-columns: 1fr; }
    .map-card { aspect-ratio: auto; height: 280px; }
    .map-tip {
        min-width: 0;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 16px;
    }
    .map-tip .flag { width: 26px; height: 26px; }
    .map-tip h4, .map-tip .ping { font-size: 15px; }
    .map-tip .city, .map-tip .load { font-size: 12px; }
    .live-grid { grid-template-columns: 1fr; }
    .step-card p { font-size: 14px; }
    .step-card .num { font-size: 92px; right: 8px; }
    .price-basic-top .chips { margin-left: 0; }
    .map-tip { transform: translateX(-50%); gap: 16px; }
    .fcard { padding: 24px; min-height: 0; }
    .fcard-stage { min-height: 240px; }
    .fcard--unlim .chip--bypass { top: 158px; }
    .unlim-pill { top: 62px; }
    .unlim-pill span { font-size: 17px; }
    .unlim-pill .ic-img { width: 44px; height: 44px; }
    .stats-stage { margin: 0 0 18px; padding: 0; min-height: 0; overflow: visible; }
    .stats-stage .sat { display: none; }
    .fcard--bot h3 { white-space: normal; }
    .price-top { flex-wrap: wrap; white-space: normal; }
    .stat-row { white-space: normal; }
    .stat-rows { position: static; width: 100%; }
    .orbit { display: none; }
    .hero-actions .btn { width: 100%; }
    .hero-ph { width: 420px; opacity: 0.4; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .live-counter .big { font-size: 56px; }
}
