/* ===== Fast Unlimited VPN — Liquid Glass theme ===== */

:root {
    --bg: #050605;
    --bg-2: #0a1410;
    --surface: rgba(20, 32, 26, .55);
    --surface-2: rgba(255, 255, 255, .04);
    --border: rgba(134, 239, 172, .12);
    --border-strong: rgba(134, 239, 172, .25);

    --text: #e6efe9;
    --text-muted: rgba(230, 239, 233, .65);
    --text-dim: rgba(230, 239, 233, .42);

    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;

    --grad: linear-gradient(135deg, #bbf7d0 0%, #4ade80 45%, #16a34a 100%);
    --grad-soft: linear-gradient(135deg, rgba(187, 247, 208, .18), rgba(34, 197, 94, .08));

    --shadow-glow: 0 16px 48px -12px rgba(34, 197, 94, .35);
    --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, .8);
    --radius: 22px;
    --radius-sm: 14px;

    --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: var(--green-500); color: #04140a; }

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

/* ===== Background layers ===== */
#bg {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

#glow {
    position: fixed;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, .18) 0%, rgba(34, 197, 94, 0) 65%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
    transition: opacity .3s ease;
}

.aurora {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: -1;
    opacity: .55;
    animation: drift 22s ease-in-out infinite alternate;
}
.aurora-1 {
    top: -10%; right: -10%;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(34, 197, 94, .35), transparent 60%);
}
.aurora-2 {
    bottom: -15%; left: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(74, 222, 128, .22), transparent 60%);
    animation-delay: -8s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.08); }
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(5, 6, 5, .4) 60%, rgba(5, 6, 5, .9) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(22, 101, 52, .25), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 16px;
    z-index: 100;
    margin-top: 16px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: visible;
    padding: 12px 18px 12px 16px;
    background: rgba(10, 20, 16, .55);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .8);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    filter: drop-shadow(0 4px 16px rgba(34, 197, 94, .45));
    transition: transform .4s ease;
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.brand-sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-300);
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.nav a { transition: color .2s ease; cursor: pointer; }
.nav a:hover { color: var(--green-300); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.btn-primary {
    background: var(--grad);
    color: #04140a;
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 56px -12px rgba(34, 197, 94, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary .btn-arrow svg { transition: transform .3s ease; }
.btn-primary:hover .btn-arrow svg { transform: translateX(4px); }

.btn-secondary {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.btn-secondary:hover {
    background: rgba(34, 197, 94, .1);
    border-color: var(--green-400);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(34, 197, 94, .12); border-color: var(--green-500); }

/* ===== Шапка: выпадающая активация (сайт / бот) ===== */
.activation-dropdown {
    position: relative;
    flex-shrink: 0;
}
.activation-dropdown-toggle .activation-dropdown-chevron {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    opacity: 0.9;
    transition: transform 0.2s ease;
}
.activation-dropdown-toggle[aria-expanded="true"] .activation-dropdown-chevron {
    transform: rotate(180deg);
}
.activation-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    min-width: 232px;
    padding: 6px;
    background: rgba(10, 20, 16, .96);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 20px 48px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(34, 197, 94, .08);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.activation-dropdown-panel[hidden] {
    display: none !important;
}
.activation-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.activation-dropdown-link:hover {
    background: rgba(34, 197, 94, .14);
    color: var(--green-100);
}
.activation-dropdown-link svg {
    flex-shrink: 0;
    color: var(--green-400);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 24px 56px;
    text-align: center;
    position: relative;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 999px;
    font-size: 13px;
    color: var(--green-200);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 500;
}
.hero-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-400);
    box-shadow: 0 0 12px var(--green-400);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .7; transform: scale(1.15); }
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}
.hero-logo::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(34, 197, 94, .5), transparent 60%);
    z-index: -1;
    filter: blur(30px);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 24px;
}
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    list-style: none;
    font-size: 13.5px;
    color: var(--text-muted);
}
.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-meta svg { color: var(--green-400); }

/* ===== Stats ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px auto 80px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.stat { text-align: center; }
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ===== Section ===== */
.section {
    padding: 64px 24px;
}

.section-head {
    text-align: center;
    margin-bottom: 44px;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    color: var(--green-300);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.section-head p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Bento Grid ===== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    grid-auto-rows: minmax(200px, auto);
}
.bento-card {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: var(--shadow-card);
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
    overflow: hidden;
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(34, 197, 94, .12), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: rgba(20, 32, 26, .7);
}
.bento-card:hover::before { opacity: 1; }

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
/* Последний ряд: 1 + 2 колонки вместо «дыры» справа */
.bento-span-2 { grid-column: span 2; }

.card-icon {
    width: 50px; height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(74, 222, 128, .08));
    border: 1px solid rgba(34, 197, 94, .25);
    color: var(--green-300);
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px -8px rgba(34, 197, 94, .25);
}
.card-icon.icon-lg { width: 64px; height: 64px; border-radius: 18px; }

.bento-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    color: var(--text);
}
.bento-large h3 { font-size: 26px; margin-bottom: 12px; }
.bento-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.speed-bar {
    position: relative;
    margin-top: 22px;
    height: 36px;
    background: rgba(255, 255, 255, .04);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.speed-fill {
    position: absolute;
    inset: 0 30% 0 0;
    background: var(--grad);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 24px rgba(34, 197, 94, .4);
    animation: speed 3s ease-in-out infinite;
}
@keyframes speed {
    0%, 100% { right: 30%; }
    50% { right: 8%; }
}
.speed-mark {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    z-index: 1;
    letter-spacing: -0.01em;
}

.country-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-muted);
    transition: background .2s ease, border-color .2s ease;
}
.chip:hover { background: rgba(34, 197, 94, .12); border-color: var(--green-500); }

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.step {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    position: relative;
    transition: transform .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    opacity: .9;
}
.step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.step p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ===== Apps ===== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.app-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
    transition: transform .3s ease, border-color .3s ease;
    position: relative;
}
.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}
.app-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    color: var(--text);
}
.app-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.app-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
}
.badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .3);
    color: var(--green-300);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 999px;
}

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 0 24px;
    margin: 80px auto;
}
.cta-banner-inner {
    position: relative;
    padding: 64px 32px;
    background: linear-gradient(135deg, rgba(20, 80, 50, .35), rgba(10, 20, 16, .7));
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: 28px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.cta-banner-inner::before,
.cta-banner-inner::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.cta-banner-inner::before {
    top: -50%; left: -10%;
    background: rgba(34, 197, 94, .35);
}
.cta-banner-inner::after {
    bottom: -60%; right: -10%;
    background: rgba(74, 222, 128, .25);
}
.cta-banner-inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
    position: relative;
}
.cta-banner-inner p {
    color: var(--text-muted);
    margin-bottom: 28px;
    position: relative;
}
.cta-banner-inner .hero-cta { position: relative; margin-bottom: 0; }

/* ===== FAQ ===== */
.faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color .25s ease;
    overflow: hidden;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
    transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--green-400);
    transition: transform .3s ease;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--green-200); }
.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ===== Footer ===== */
.footer {
    margin-top: 80px;
    padding: 56px 0 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .4));
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
    max-width: 320px;
    line-height: 1.6;
}
.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-300);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    transition: color .2s ease;
}
.footer-col a:hover { color: var(--green-200); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== Legal ===== */
.legal {
    padding: 40px 24px;
}
.legal[hidden] { display: none; }
.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.legal-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    margin-bottom: 14px;
}
.legal-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Focus & accessibility ===== */
:focus-visible {
    outline: 2px solid var(--green-400);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ===== Ripple ===== */
@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .nav { display: none; }
    .stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 20px;
        gap: 8px 14px;
    }
    .stats .stat-label { margin-top: 4px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 2; }
    .bento-wide { grid-column: span 2; }
    .bento-span-2 { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    /* Шапка: прилипает к верху экрана (и safe-area), без «висящего» зазора */
    .topbar {
        top: 0;
        margin-top: 0;
        padding-top: env(safe-area-inset-top, 0px);
    }
    .topbar-inner {
        gap: 8px;
        border-radius: 20px;
    }
    .topbar .brand img { width: 32px; height: 32px; }
    .topbar .brand-name { font-size: 14px; }
    .topbar-inner .btn-sm { padding: 7px 12px; font-size: 12px; }

    /* Отступ под компактную шапку: статус и заголовок не упираются в «пилюлю» */
    .hero { padding: 52px 16px 40px; }
    .hero .hero-status { margin-top: 12px; }
    .hero-logo { width: 96px; height: 96px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .hero-meta { gap: 16px; font-size: 13px; }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 22px 16px 24px;
        gap: 6px 12px;
    }
    .stats .stat-value {
        font-size: clamp(19px, 5.2vw, 26px);
        line-height: 1.05;
    }
    .stats .stat-label {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.2;
    }
    .section { padding: 48px 16px; }
    .container { padding: 0 16px; }

    /* Шире «пилюля» шапки: почти на всю ширину экрана */
    .topbar > .container.topbar-inner {
        width: calc(100% - 12px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding: 8px 12px 8px 14px;
        box-sizing: border-box;
    }

    /* Шире блок метрик; вертикальные отступы карточки сохраняем */
    section.stats.container {
        width: calc(100% - 12px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding: 22px 12px 24px;
        box-sizing: border-box;
    }

    .bento { grid-template-columns: 1fr; gap: 12px; }
    .bento-large, .bento-wide, .bento-span-2 { grid-column: span 1; grid-row: auto; }
    .bento-card { padding: 22px; }
    .bento-large h3 { font-size: 22px; }

    .apps-grid { grid-template-columns: 1fr; }

    .cta-banner-inner { padding: 44px 22px; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .nav { display: none; }
}

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