/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fcf9f2; /* Мягкий кремовый, как на референсе */
    --bg-alt: #f4efe1;
    --text-main: #2c2c2c;
    --text-muted: #6b6b6b;
    --accent: #2c2c2c; /* Черные кнопки как на референсе */
    --accent-hover: #444;
    --white: #ffffff;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(252, 249, 242, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-small:hover {
    background-color: var(--bg-alt);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-main);
}

.hero-triggers {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-triggers span {
    display: inline-block;
    margin: 0 4px;
}

.hero-trust {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

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

/* Cards (Что вы сможете) */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    text-align: center;
}

.card:hover {
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    height: 160px;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* Card Horizontal (Направления) */
.card-horizontal {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.card-horizontal:hover {
    transform: translateY(-4px);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Steps */
.step {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* CTA Form */
.cta-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 2rem auto 0;
}

.cta-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: var(--white);
}

.cta-form input:focus {
    border-color: var(--accent);
}

/* Plan */
.plan-content p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

/* Reviews */
.review-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.review-img {
    width: 100%;
    height: 180px;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--text-main);
    font-family: inherit;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    margin: 0;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-alt);
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 16px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .cta-form {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 0;
    }
}