/* Личный Код — Elegant Dark / lichnykod.ru */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* ── Reset & Base ──────────────────────────────────────── */

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

:root {
    --bg-deep: #0c0d11;
    --bg-mid: #141519;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --cream: #f0e6d3;
    --cream-bright: #faf4eb;
    --cream-dim: #c4b8a5;
    --cream-muted: #8a7f70;
    --accent: #d4c5a9;
    --accent-line: rgba(240, 230, 211, 0.15);
    --border: rgba(240, 230, 211, 0.1);
    --border-strong: rgba(240, 230, 211, 0.2);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --max-w: 960px;
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--cream);
    background: var(--bg-deep);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────────────── */

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

a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid var(--accent-line);
}

a:hover {
    color: var(--cream-bright);
    border-bottom-color: var(--cream);
}

/* ── Header / Nav ──────────────────────────────────────── */

.site-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    border: none;
    display: inline-flex;
    align-items: center;
}

.logo:hover {
    border: none;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15em;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.06em;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--cream-muted);
    font-size: 0.85em;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--cream);
    border: none;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 100px 0 80px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 500;
    color: var(--cream-dim);
    border: 1px solid var(--border-strong);
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2em, 5vw, 3.6em);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--cream-bright);
    letter-spacing: 0.01em;
}

.hero p {
    font-size: 1.05em;
    color: var(--cream-dim);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
}

/* ── Matrix Visual ─────────────────────────────────────── */

.matrix-visual {
    display: flex;
    justify-content: center;
    margin: 48px 0;
    user-select: none;
}

.matrix-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-width: 200px;
}

.matrix-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.95em;
    font-weight: 500;
    color: var(--cream-dim);
    transition: all 0.3s;
}

.matrix-numbers span:nth-child(odd) {
    color: var(--cream);
    border-color: var(--accent-line);
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--cream);
    color: var(--bg-deep);
    border-bottom: none;
}

.btn-primary:hover {
    background: var(--cream-bright);
    color: var(--bg-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(240, 230, 211, 0.15);
    border-bottom: none;
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--cream);
    border-bottom: 1px solid var(--border-strong);
}

/* ── Divider ───────────────────────────────────────────── */

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    color: var(--cream-muted);
    font-size: 0.6em;
    letter-spacing: 0.3em;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--border);
}

/* ── Feature Cards ─────────────────────────────────────── */

.features {
    padding: 80px 0;
}

.features h2 {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--cream-bright);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.feature-card .icon {
    font-size: 1.6em;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cream-bright);
}

.feature-card p {
    font-size: 0.9em;
    color: var(--cream-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Pricing / CTA ─────────────────────────────────────── */

.pricing {
    text-align: center;
    padding: 80px 0;
}

.pricing h2 {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--cream-bright);
}

.pricing > .container > p {
    color: var(--cream-dim);
    margin-bottom: 36px;
    font-weight: 300;
}

.price-card {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 36px 52px;
    margin-bottom: 36px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.8em;
    font-weight: 700;
    color: var(--cream-bright);
}

.price-label {
    font-size: 0.85em;
    color: var(--cream-muted);
    margin-top: 4px;
}

.price-free {
    font-size: 0.9em;
    color: var(--cream-dim);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── How It Works ──────────────────────────────────────── */

.how-it-works {
    padding: 80px 0;
}

.how-it-works h2 {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--cream-bright);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--cream);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1em;
    background: transparent;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--cream-bright);
}

.step-content p {
    font-size: 0.9em;
    color: var(--cream-muted);
    font-weight: 300;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 36px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.85em;
    color: var(--cream-muted);
    line-height: 1.7;
    font-weight: 300;
}

.footer-col h4 {
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 0.85em;
    color: var(--cream-muted);
}

.footer-col a {
    color: var(--cream-muted);
    font-size: inherit;
    border: none;
}

.footer-col a:hover {
    color: var(--cream);
    border: none;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    color: var(--cream-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.phone-mask {
    cursor: pointer;
}

.footer-bottom a {
    border: none;
    color: var(--cream-muted);
}

.footer-bottom a:hover {
    color: var(--cream);
    border: none;
}

/* ── Legal Pages ───────────────────────────────────────── */

.legal-page {
    padding: 60px 0;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 36px;
    text-align: center;
    color: var(--cream-bright);
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--cream-bright);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 12px;
    color: var(--cream-dim);
    font-weight: 300;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 6px;
    color: var(--cream-dim);
    font-weight: 300;
}

.legal-content strong {
    color: var(--cream);
    font-weight: 500;
}

.legal-content a {
    color: var(--cream);
}

.legal-updated {
    margin-top: 32px;
    text-align: center;
    font-size: 0.8em;
    color: var(--cream-muted);
}

.disclaimer-box {
    margin-top: 28px;
    padding: 16px 20px;
    background: rgba(240, 230, 211, 0.03);
    border-left: 2px solid var(--border-strong);
    border-radius: 2px;
    font-style: italic;
    color: var(--cream-muted);
    font-weight: 300;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero {
        padding: 60px 0 48px;
    }

    .legal-content {
        padding: 28px 20px;
    }

    .price-card {
        padding: 28px 36px;
    }

    .nav-links {
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .features, .how-it-works, .pricing {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2em;
    }

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