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

:root {
    color-scheme: dark;
    --bg: #212121;
    --bg-soft: #252525;
    --panel: #2b2b2b;
    --panel-strong: #303030;
    --line: #3a3a3a;
    --text: #f4f1eb;
    --muted: #c7c0b6;
    --soft: #9f968b;
    --accent: #c7a26a;
    --accent-strong: #dfbc7f;
}

html {
    background: var(--bg);
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(199, 162, 106, .09), transparent 32rem),
        linear-gradient(180deg, #242424 0%, var(--bg) 38%, #1d1d1d 100%);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
p,
a {
    overflow-wrap: anywhere;
}

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

.container {
    width: min(92%, 980px);
    margin: 0 auto;
    max-width: 100%;
}

.hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 54px 0 42px;
}

.hero-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(25px, 5vw, 40px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: clamp(15px, 2.4vw, 18px);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-main {
    background: var(--accent);
    color: #191714;
}

.btn-main:hover {
    background: var(--accent-strong);
}

.btn-second {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
}

.btn-second:hover {
    border-color: var(--accent);
}

.toc {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(43, 43, 43, .8);
    width: 100%;
    overflow: hidden;
}

.toc ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
    list-style: none;
}

.toc a {
    display: block;
    padding: 9px 10px;
    border: 1px solid #343434;
    border-radius: 7px;
    background: #242424;
    color: var(--muted);
    font-size: 14px;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.toc a:hover {
    color: var(--text);
    border-color: var(--accent);
    background: #2a2a2a;
}

section {
    padding: 46px 0;
}

.section-title {
    margin-bottom: 10px;
    text-align: center;
    font-size: clamp(24px, 4vw, 33px);
    font-weight: 800;
    line-height: 1.4;
    text-wrap: balance;
}

.section-desc {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.card,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.card {
    padding: 18px;
}

.card h3,
.faq-item h3 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
}

.card p,
.faq-item p {
    color: var(--muted);
    font-size: 14.5px;
}

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    padding: 16px 18px;
    margin-bottom: 10px;
}

footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    color: var(--soft);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero {
        min-height: auto;
        padding: 30px 0 24px;
        text-align: center;
    }

    h1 {
        margin-bottom: 10px;
        font-size: clamp(23px, 7vw, 29px);
        line-height: 1.45;
    }

    .hero p {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.9;
    }

    .actions {
        gap: 8px;
        margin-bottom: 18px;
    }

    .btn {
        width: 100%;
        max-width: none;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .toc ul,
    .grid {
        grid-template-columns: 1fr;
    }

    .toc {
        padding: 10px;
    }

    .toc a {
        padding: 8px 10px;
        font-size: 13px;
    }

    section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-desc {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.85;
    }

    .card,
    .faq-item {
        padding: 14px;
    }

    .card h3,
    .faq-item h3 {
        font-size: 16px;
    }

    .card p,
    .faq-item p {
        font-size: 13.5px;
        line-height: 1.8;
    }
}

@media (max-width: 380px) {
    .container {
        width: calc(100% - 18px);
    }

    h1 {
        font-size: 22px;
    }

    .hero {
        padding-top: 24px;
    }
}
