/* Zetflix — стили лендинга о стриминг-платформе */

:root {
    --bg: #0b0d12;
    --bg-alt: #12151c;
    --surface: #181c25;
    --surface-hover: #1f242f;
    --border: #262b36;
    --text: #eef1f6;
    --text-muted: #a3aab8;
    --accent: #e50914;
    --accent-hover: #ff2733;
    --accent-soft: rgba(229, 9, 20, 0.12);
    --radius: 14px;
    --max-width: 1080px;
    --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #171b24 0%, var(--bg) 55%);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

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

/* ---------- Top navigation ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

/* ---------- Buttons / CTA ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(229, 9, 20, 0.55);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.cta-block {
    max-width: var(--max-width);
    margin: 48px auto;
    padding: 36px 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-soft), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow);
}

.cta-block h2,
.cta-block h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.cta-block p {
    margin: 0;
    color: var(--text-muted);
    max-width: 46ch;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Header / Hero ---------- */

header.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px 40px;
    text-align: center;
}

header.hero .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

header.hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.2;
    margin: 0 0 20px;
}

header.hero p {
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

header.hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- Main content ---------- */

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

article > section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px clamp(20px, 4vw, 40px);
    margin-bottom: 24px;
}

section h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--accent);
}

section h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}

section p,
section li {
    color: var(--text-muted);
}

section ul {
    padding-left: 20px;
}

section li {
    margin-bottom: 6px;
}

section li strong {
    color: var(--text);
}

blockquote {
    margin: 20px 0 0;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 10px 10px 0;
    color: var(--text);
    font-style: italic;
}

/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
}

thead th {
    text-align: left;
    background: var(--bg-alt);
    color: var(--text);
    padding: 12px 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tbody td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

tbody tr:hover td {
    background: var(--surface-hover);
}

/* FAQ accordion */

.faq-item {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    padding: 4px 0;
}

.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer p {
    margin: 10px 0 0;
}

/* Footer */

footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px 60px;
    text-align: center;
}

footer .footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

footer .footer-brand img {
    height: 26px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 60ch;
    margin: 0 auto;
}

.back-to-top {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(229, 9, 20, 0.6);
}

.back-to-top.visible {
    display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 320px;
    }

    .nav-links li {
        padding: 12px 24px;
        border-top: 1px solid var(--border);
    }

    .cta-block {
        justify-content: center;
        text-align: center;
    }

    .cta-block .cta-actions {
        justify-content: center;
    }
}
