/* ЧиллДжоб — тёплая зелёная стилистика, надёжность и продаваемость */

:root {
    /* Тёплая палитра — тёмнее для читаемости */
    --color-bg: #faf8f5;
    --color-bg-hero: linear-gradient(180deg, #f0fdf4 0%, #faf8f5 50%);
    --color-surface: #fffefb;
    --color-text: #1c1917;
    --color-text-soft: #44403c;
    --color-muted: #57534e;

    /* Зелёный акцент — рост, успех, доверие */
    --color-accent: #059669;
    --color-accent-hover: #047857;
    --color-accent-soft: #d1fae5;
    --color-accent-muted: #a7f3d0;

    --color-border: #e7e5e4;
    --color-border-soft: #f5f5f4;

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --max-width: 640px;
    --spacing: 1.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-sm);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-accent);
}

/* Nav menu — desktop */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.nav-cta {
    color: #fff !important;
    background: var(--color-accent);
    padding: 0.5rem 1rem !important;
}

.nav-cta:hover {
    background: var(--color-accent-hover) !important;
}

/* Hamburger — mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.nav-toggle:hover {
    background: var(--color-border-soft);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-surface);
        padding: 1rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--color-border-soft);
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
    }

    .nav-menu.nav-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .nav-cta {
        margin-top: 0.5rem;
    }
}

/* Main */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* Sections */
.section {
    margin-bottom: 3.5rem;
    padding: 2rem 0;
    border-radius: var(--radius-md);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

/* Чередующиеся фоны для визуального разделения */
.section-problem {
    background: linear-gradient(135deg, #fefce8 0%, transparent 100%);
    padding: 2rem 1.25rem;
    margin: 0 -1.25rem;
    border-radius: var(--radius-md);
}

.section-solution {
    background: linear-gradient(135deg, #f0fdf4 0%, transparent 100%);
    padding: 2rem 1.25rem;
    margin: 0 -1.25rem;
    border-radius: var(--radius-md);
}

.section-benefits {
    padding: 2rem 0;
}

.section-how {
    background: var(--color-surface);
    padding: 2rem 1.25rem;
    margin: 0 -1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
}

.section-example {
    padding: 2rem 0;
}

.section-faq {
    background: linear-gradient(135deg, #f8fafc 0%, transparent 100%);
    padding: 2rem 1.25rem;
    margin: 0 -1.25rem;
    border-radius: var(--radius-md);
}

.section h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--color-text);
    line-height: 1.3;
}

.section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.section p {
    margin: 0 0 1.25rem;
    color: var(--color-text-soft);
    font-size: 1.0625rem;
}

.section p:last-child {
    margin-bottom: 0;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 4.5rem;
    background: var(--color-bg-hero);
    border-radius: var(--radius-lg);
    margin: 0 -1.25rem 3rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--color-accent-muted) 0%, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.35;
    margin: 0 0 1.25rem;
    font-weight: 700;
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin: 0 0 2rem;
    color: var(--color-text-soft);
    max-width: 32em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    position: relative;
}

/* CTA */
.cta-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.cta-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Benefits */
.benefits-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 600px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.benefit:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-muted);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit p {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-soft);
    line-height: 1.6;
}

/* Steps */
.steps {
    padding-left: 1.5rem;
    margin: 0;
}

.steps li {
    margin-bottom: 1rem;
    padding-left: 0.25rem;
    color: var(--color-text-soft);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.steps li strong {
    color: var(--color-accent);
}

/* Example */
.example-box {
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.message {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-soft);
}

.message:last-child {
    border-bottom: none;
}

.message-in {
    background: var(--color-surface);
}

.message-out {
    background: var(--color-accent-soft);
    border-left: 3px solid var(--color-accent);
}

.message p {
    margin: 0;
    color: var(--color-text);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* FAQ */
.faq-list {
    margin: 0;
}

.faq-list dt {
    font-weight: 600;
    font-size: 1.0625rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.faq-list dt:first-child {
    margin-top: 0;
}

.faq-list dd {
    margin: 0;
    color: var(--color-text-soft);
    padding-left: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
}

/* Form */
.section-form {
    background: var(--color-surface);
    padding: 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-sm);
}

.section-form p {
    margin-bottom: 0;
}

.lead-form {
    max-width: 400px;
    margin-top: 1.25rem;
}

.lead-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.lead-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.lead-form input.error-input {
    border-color: #dc2626;
}

.lead-form .error {
    display: block;
    font-size: 0.875rem;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.lead-form .cta-button {
    margin-top: 0.75rem;
}

.lead-form .form-success {
    margin-top: 1rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 2.5rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--color-border-soft);
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.footer p {
    margin: 0;
}
