/* ЧиллДжоб — современный, надёжный, качественный */

:root {
    --color-bg: #faf9f7;
    --color-bg-hero: linear-gradient(165deg, #ecfdf5 0%, #f0fdf4 40%, #faf9f7 100%);
    --color-surface: #ffffff;
    --color-text: #171717;
    --color-text-soft: #404040;
    --color-muted: #737373;

    --color-accent: #059669;
    --color-accent-hover: #047857;
    --color-accent-soft: #d1fae5;
    --color-accent-muted: #a7f3d0;

    --color-border: #e5e5e5;
    --color-border-soft: #f5f5f4;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --max-width: 720px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-soft);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.nav-links a {
    position: relative;
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.5rem 0;
    transition: color 0.2s var(--ease), transform 0.15s var(--ease);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: width 0.25s var(--ease);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:active {
    transform: scale(0.97);
}

.nav-cta {
    color: #fff !important;
    background: var(--color-accent);
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
    transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-accent-hover) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.nav-cta:active {
    transform: scale(0.96);
}

@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nav-cta {
        order: -1;
        text-align: center;
        margin: 0;
    }

    .nav-links {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding: 0.25rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        background: var(--color-surface);
        border: 1px solid var(--color-border-soft);
        border-radius: 999px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: var(--color-accent-soft);
        border-color: var(--color-accent-muted);
    }

    .nav-links a:active {
        transform: scale(0.98);
    }
}

/* Main */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

@media (max-width: 700px) {
    main {
        padding: 1.5rem 1.25rem 3rem;
    }
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--color-text);
    line-height: 1.3;
}

.section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.section p {
    margin: 0 0 1rem;
    color: var(--color-text-soft);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.section p:last-child {
    margin-bottom: 0;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem 4.5rem;
    background: var(--color-bg-hero);
    border-radius: var(--radius-xl);
    margin: 0 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse 60% 50%, var(--color-accent-muted) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(1.625rem, 4.5vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    position: relative;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin: 0 0 2rem;
    color: var(--color-text-soft);
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
}

.hero-trust {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 1.25rem 0 0;
    position: relative;
}

@media (max-width: 700px) {
    .hero {
        padding: 3rem 1.5rem 3.5rem;
        margin: 0 0 2.5rem;
    }

    .section-problem,
    .section-solution,
    .section-how,
    .section-faq {
        padding: 1.5rem 0;
    }
}

/* CTA */
.cta-button {
    display: inline-block;
    padding: 0.9375rem 2rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.25);
}

.cta-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

/* Section blocks — выровнены по контейнеру main */
.section-problem,
.section-solution,
.section-how,
.section-faq {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
}

.section-problem {
    background: linear-gradient(135deg, #ffd69a 0%, transparent 100%);
}

.section-solution {
    background: linear-gradient(135deg, #8fdfb9 0%, transparent 100%);
}

.section-how {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-xs);
}

.section-faq {
    padding: 2rem 0rem;
    /* background: linear-gradient(135deg, #fafafa 0%, transparent 100%); */
}

.section-benefits,
.section-example {
    padding: 0;
}

/* Benefits */
.benefits-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@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-xs);
    transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.benefit:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-accent-muted);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
}

.benefit p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-soft);
    line-height: 1.6;
}

/* Steps */
.steps {
    padding-left: 1.5rem;
    margin: 1rem 0 0;
}

.steps li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    color: var(--color-text-soft);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.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);
    margin-top: 1rem;
}

.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: 4px solid var(--color-accent);
}

.message p {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ */
.faq-accordion {
    margin-top: 1.25rem;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item:hover {
    border-color: var(--color-accent-muted);
    box-shadow: var(--shadow-xs);
}

.faq-item[open] {
    border-color: var(--color-accent-muted);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: var(--color-bg);
}

.faq-item summary:active {
    background: var(--color-accent-soft);
}

.faq-item p {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    padding-top: 0.25rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-soft);
}

/* Form */
.section-form {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-md);
}

.section-form h2 {
    margin-bottom: 0.5rem;
}

.section-form > p {
    margin-bottom: 1.5rem;
}

.lead-form {
    max-width: 360px;
}

.lead-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.lead-form input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 1rem;
    background: var(--color-surface);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lead-form input::placeholder {
    color: var(--color-muted);
}

.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: -0.5rem 0 0.75rem;
}

.lead-form .cta-button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9375rem 1.5rem !important;
}

.lead-form .cta-button:active {
    transform: scale(0.98);
}

.lead-form .form-success {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-accent-soft);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-weight: 500;
}

.form-trust {
    margin-top: 1rem !important;
    font-size: 0.8125rem !important;
    color: var(--color-muted) !important;
}

/* Footer */
.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border-soft);
    background: var(--color-surface);
}

.footer-copy {
    margin: 0;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.footer-desc {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}
