:root {
    --bg: #040404;
    --bg-soft: #101010;
    --panel: rgba(24, 24, 24, 0.82);
    --panel-strong: rgba(34, 34, 34, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #ffffff;
    --muted: #cfcfcf;
    --muted-soft: #9b9b9b;
    --red: #c8161d;
    --red-dark: #7a0d12;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(200, 22, 29, 0.12), transparent 28%),
        linear-gradient(180deg, #0a0a0a 0%, #040404 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.bg-bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-bubbles span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(200,22,29,0.08) 45%, rgba(122,13,18,0.04) 100%);
    filter: blur(4px);
    animation: bubbleFloat linear infinite;
    opacity: 0.7;
}

@keyframes bubbleFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(40px, -60px, 0) scale(1.06);
    }
    100% {
        transform: translate3d(-35px, -140px, 0) scale(0.94);
    }
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(4, 4, 4, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-logo,
.brand-logo-fallback {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex: 0 0 52px;
}

.brand-logo {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111111;
}

.brand-logo-fallback {
    display: none;
    place-items: center;
    background: linear-gradient(135deg, rgba(200, 22, 29, 0.24), rgba(122, 13, 18, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.brand-name,
.footer-brand {
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 0.04em;
}

.brand-name {
    font-size: 0.92rem;
    line-height: 1.55;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
    padding: 6.5rem 0 3rem;
}

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

.eyebrow,
.panel-kicker,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.section-heading h2,
.featured-content h3,
.plan-card h3,
.panel-card h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    margin-top: 1.2rem;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 1.02;
    max-width: 12ch;
}

.hero-copy p,
.panel-card p,
.test-copy p,
.featured-content p,
.plan-card li,
.faq-item p,
.footer p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-copy p {
    max-width: 60ch;
    margin: 1.25rem 0 0;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 1.35rem;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--text);
    box-shadow: 0 12px 35px rgba(122, 13, 18, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #d41a22, #65090d);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.05);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.hero-points li {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 500;
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.94), rgba(16, 16, 16, 0.92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.panel-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.panel-card::before {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(200, 22, 29, 0.24), rgba(122, 13, 18, 0) 72%);
    pointer-events: none;
}

.panel-card h2 {
    margin-top: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.panel-stats div,
.test-card,
.plan-card,
.faq-item,
.footer {
    border-radius: var(--radius-md);
}

.panel-stats div {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-stats strong,
.featured-price,
.plan-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.panel-stats span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted-soft);
}

.section {
    padding: 2.4rem 0 2rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.06;
}

.test-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.45rem;
}

.featured-plan {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) + 4px);
    padding: 2.2rem;
    min-height: 410px;
    background:
        linear-gradient(135deg, rgba(8, 8, 8, 0.88), rgba(18, 18, 18, 0.82)),
        url('../img/promo-bg.png') center/cover no-repeat,
        linear-gradient(135deg, rgba(200, 22, 29, 0.18), rgba(122, 13, 18, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.featured-overlay {
    position: absolute;
    inset: auto -10% -20% auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(200, 22, 29, 0.22), rgba(122, 13, 18, 0));
    filter: blur(18px);
    z-index: -1;
}

.featured-content {
    max-width: 580px;
}

.tag {
    background: rgba(200, 22, 29, 0.16);
    color: var(--text);
}

.featured-content h3 {
    margin-top: 1rem;
    font-size: clamp(2.1rem, 3.8vw, 3.3rem);
}

.featured-price {
    margin-top: 0.7rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.featured-content ul,
.plan-card ul {
    margin: 1.2rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.featured-content li,
.plan-card li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.75rem;
}

.featured-content li::before,
.plan-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.plan-card {
    padding: 1.6rem;
}

.plan-card h3 {
    font-size: 1.5rem;
}

.plan-price {
    margin-top: 0.65rem;
    font-size: 2rem;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0;
    padding: 0 1.2rem 1.15rem;
}

.faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.footer {
    margin: 2rem auto 2.5rem;
    padding: 1.5rem;
    width: min(calc(100% - 2rem), var(--container));
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.96));
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr;
    gap: 1.5rem;
}

.footer-brand {
    font-size: 0.92rem;
}

.footer-links {
    display: grid;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--muted);
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: var(--text);
}

.footer-contact {
    display: grid;
    gap: 0.5rem;
}

.footer-contact span {
    color: var(--muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.footer-motto {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .footer-wrap,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .panel-stats {
        grid-template-columns: 1fr;
    }

    .test-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav {
        position: absolute;
        top: calc(100% + 0.65rem);
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0.25rem;
        padding: 0.6rem;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 10, 10, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav a {
        padding: 0.9rem 1rem;
        border-radius: 14px;
    }

    .nav a:hover,
    .nav a:focus-visible {
        background: rgba(255, 255, 255, 0.04);
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 640px) {
    .header {
        position: sticky;
    }

    .nav-wrap {
        min-height: 74px;
    }

    .brand-name,
    .footer-brand {
        font-size: 0.72rem;
    }

    .hero {
        padding-top: 5.25rem;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.35rem, 10vw, 3.3rem);
    }

    .featured-plan,
    .panel-card,
    .plan-card,
    .faq-item,
    .footer,
    .test-card {
        border-radius: 22px;
    }

    .featured-plan {
        padding: 1.5rem;
        min-height: auto;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .btn {
        min-height: 52px;
    }

    .hero-points {
        display: grid;
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 2rem;
    }
}
