:root {
    --brand: #ff4e42;
    --brand-dark: #c0291f;
    --brand-light: #ffe5e3;
    --text-dark: #1b1d29;
    --text-muted: #6f7387;
    --bg-page: #f4f6fb;
    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.14);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.7;
    letter-spacing: 0.01em;
    background: var(--bg-page);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
}

h1, h2, h3 {
    margin: 0 0 16px;
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
}

p {
    margin: 0 0 1.2em;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--brand-dark);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.button.primary:hover,
.button.primary:focus {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button.secondary {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.button.secondary:hover,
.button.secondary:focus {
    color: var(--brand-dark);
    border-color: rgba(15, 23, 42, 0.3);
}

.button.large {
    padding: 16px 38px;
    font-size: 1.05em;
}

section {
    padding: 90px 0;
    position: relative;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 1.05em;
}

/* Hero */
.hero-section {
    background: radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.35), transparent 50%), linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 70%);
    color: #fff;
    text-align: center;
    padding: 120px 0 140px;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    top: -120px;
    left: -100px;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    color: #fff;
    margin-bottom: 24px;
}

.hero-section .subtitle {
    font-size: 1.3em;
    max-width: 760px;
    margin: 0 auto 42px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-section .button.primary {
    background: #fff;
    color: var(--brand);
}

.hero-section .button.primary:hover {
    color: #fff;
    background: var(--brand-dark);
}

.hero-section .button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
}

.hero-section .button.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-image {
    margin: 0 auto;
    max-width: 720px;
}

.hero-image img {
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

/* Problems */
.problem-section {
    background: var(--bg-page);
    text-align: center;
}

.problem-section h2 {
    font-size: 2.6rem;
}

.problem-section p {
    color: var(--text-muted);
}

.problem-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 50px;
    justify-content: center;
}

.problem-list .point {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    padding: 28px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    text-align: left;
    flex: 1 1 260px;
    max-width: 320px;
}

.problem-list .icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--brand-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand);
    margin-top: 2px;
    box-shadow: 0 18px 36px rgba(255, 78, 66, 0.2);
}

.problem-list strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.problem-list .point div {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Features */
.features-section {
    background: #fff;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    margin-top: 50px;
}

.feature-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    text-align: left;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.feature-item .icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--brand-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: 18px;
    box-shadow: 0 20px 36px rgba(255, 78, 66, 0.18);
}

.feature-item h3 {
    color: var(--brand);
    font-size: 1.2em;
}

.feature-item p {
    color: var(--text-muted);
}

/* Audience */
.audience-section {
    background: var(--bg-page);
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
    margin-top: 48px;
}

.audience-item {
    border-radius: 18px;
    background: linear-gradient(140deg, #ffffff 0%, #fdf2f1 100%);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 78, 66, 0.12);
}

.audience-item .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 78, 66, 0.13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.audience-item p {
    color: var(--text-muted);
}

.audience-cta {
    color: var(--brand);
    font-weight: 600;
    margin-top: 40px;
}

/* Pricing */
.pricing-section {
    background: #fff;
    text-align: center;
}

.pricing-intro {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 54px 48px;
    margin: 0 auto;
    max-width: 640px;
    text-align: left;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    position: relative;
}

.pricing-card::before {
    content: "Платите за результат";
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand);
    background: var(--brand-light);
    padding: 6px 16px;
    border-radius: 999px;
    position: absolute;
    top: 24px;
    right: 24px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 35px;
}

.pricing-list > li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 18px;
    line-height: 1.5;
    color: var(--text-dark);
}

.pricing-list > li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #2ecc71;
    font-size: 20px;
}

.price-accent {
    color: var(--brand);
    font-weight: 700;
}

.pricing-sublist {
    margin-top: 12px;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-page);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 1.05em;
}

.testimonial-card .author {
    color: var(--brand);
    font-weight: 600;
    margin: 0;
}

/* CTA */
.cta-bottom-section {
    padding: 110px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(140deg, #ff6b6b 0%, #c0392b 65%, #671617 100%);
    position: relative;
    overflow: hidden;
}

.cta-bottom-section::before,
.cta-bottom-section::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(10px);
}

.cta-bottom-section::before {
    top: -140px;
    left: -160px;
    opacity: 0.5;
}

.cta-bottom-section::after {
    right: -140px;
    bottom: -140px;
}

.cta-bottom-section .container {
    position: relative;
    z-index: 2;
}

.cta-panel {
    max-width: 780px;
    margin: 0 auto;
    padding: 52px 48px;
    border-radius: 34px;
    background: rgba(9, 9, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px rgba(10, 7, 29, 0.55);
    backdrop-filter: blur(10px);
}

.cta-bottom-section h2 {
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    margin-bottom: 30px;
    color: #fff;
}

.cta-bottom-section .cta-buttons {
    justify-content: center;
    margin-bottom: 28px;
}

.cta-bottom-section a {
    color: #fff;
}

.cta-bottom-section .button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
}

.cta-bottom-section .button.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.cta-bottom-section p a {
    text-decoration: underline;
}

.cta-bottom-section p a:hover {
    color: #ffe082;
}

/* Footer */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 42px 0;
    font-size: 0.9em;
}

footer .footer-links a {
    color: inherit;
    margin: 0 12px;
}

footer .footer-links a:hover {
    color: #fff;
}

/* Popups */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 34px;
    border-radius: 18px;
    width: min(420px, calc(100% - 40px));
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.popup-content h3 {
    color: var(--brand);
    margin-bottom: 20px;
}

.popup-content input[type="text"],
.popup-content input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    font-family: inherit;
}

.popup-content button {
    width: 100%;
    border: none;
    background: var(--brand);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.popup-content button:hover {
    background: var(--brand-dark);
}

.close-button {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
}

.close-button:hover {
    color: var(--text-dark);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.15);
}

.checkbox-container label {
    font-size: 0.9em;
    color: var(--text-dark);
}

.checkbox-container label:hover {
    color: var(--brand);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .pricing-card {
        padding: 38px 26px;
    }

    .pricing-card::before {
        position: static;
        display: inline-block;
        margin-bottom: 18px;
        letter-spacing: 0.08em;
        width: 100%;
        text-align: center;
    }

    .pricing-sublist {
        margin-left: 0;
        padding-left: 22px;
    }

    .problem-section h2 {
        font-size: 1.9rem;
    }

    .problem-list .point {
        grid-template-columns: 56px 1fr;
        padding: 24px;
    }

    .problem-list {
        flex-direction: column;
        align-items: stretch;
    }

    .problem-list .point {
        max-width: 100%;
    }

    footer .footer-links a {
        display: block;
        margin: 8px 0;
    }
}
