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

:root {
    --primary-color: #E9C334;
    --purple-color: #6D6FCE;
    --text-dark: #1F1F1F;
    --text-gray: #666666;
    --bg-light: #F8F8F8;
    --bg-dark: #1F1F1F;
    --border-radius: 16px;
    --max-width: 1200px;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

h1 {
    font-size: 64px;
    margin-bottom: 24px;
}

h2 {
    font-size: 48px;
    margin-bottom: 48px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--text-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 31, 31, 0.2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

.btn-purple {
    background: var(--purple-color);
    color: #fff;
}

.btn-purple:hover {
    background: #8587d8;
    box-shadow: 0 8px 24px rgba(109, 111, 206, 0.3);
}

/* Header */
.header {
    padding: 24px 0;
    border-bottom: 1px solid #E5E5E5;
}

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

/* Скрываем кнопку в header на мобильных */
@media (max-width: 768px) {
    .header .btn-primary {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 72px;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-badge {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 16px;
}

/* Problems Section */
.problems {
    padding: 80px 0;
    background: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--border-radius);
}

.problem-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.problem-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Solution Section */
.solution {
    padding: 80px 0;
    background: var(--bg-dark);
    color: #fff;
}

.section-title-white {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    margin-bottom: 24px;
    text-align: left;
}

.solution-subtitle {
    text-align: left;
    max-width: 800px;
    margin: 0 0 64px 0;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.solution-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.solution-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 24px;
}

.solution-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.solution-cta-text {
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solution-cta-text strong {
    color: var(--primary-color);
}

.solution .btn-primary {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 400px;
    background: var(--primary-color);
    color: var(--text-dark);
}

.solution .btn-primary:hover {
    background: #f5d865;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.testimonials-header .section-title {
    margin-bottom: 0;
}

.testimonials-nav-buttons {
    display: flex;
    gap: 12px;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 64px;
    padding: 0 24px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--border-radius);
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-card.expanded {
    min-width: 400px;
    max-width: 400px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    background: rgba(31, 31, 31, 0.8);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: rgba(31, 31, 31, 1);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-header h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.testimonial-card.expanded .testimonial-text {
    max-height: none;
}

.testimonial-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-light));
}

.testimonial-card.expanded .testimonial-text::after {
    display: none;
}

.testimonials .btn-primary {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 400px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Steps - Grid Style (как Problems Section) */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background: #fff;
    padding: 32px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 800;
}

.step h3 .step-label {
    color: var(--purple-color);
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
    flex-grow: 1;
}

.step img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.step-features {
    list-style: none;
    margin: 16px 0 24px 0;
    padding: 0;
}

.step-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-gray);
    font-size: 16px;
}

.step-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--purple-color);
    font-weight: bold;
    font-size: 24px;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h3 {
    font-size: 20px;
    margin: 0;
    flex: 1;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 32px 32px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: var(--bg-dark);
    text-align: left;
}

.final-cta .section-title-white {
    text-align: left;
}

.final-cta .btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
    display: inline-block;
}

.final-cta .btn-primary:hover {
    background: #f5d865;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    background: var(--bg-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #E5E5E5;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    h3 {
        font-size: 20px;
    }

    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image {
        order: -1;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .solution {
        padding: 48px 0;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .solution-card img {
        height: 180px;
    }

    .solution-cta-text {
        font-size: 20px;
    }

    .testimonials {
        padding: 48px 0;
    }

    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 32px;
    }

    .testimonials-carousel {
        padding: 0;
        margin-bottom: 48px;
    }

    .testimonial-card {
        min-width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        padding: 24px;
    }

    .testimonial-card.expanded {
        min-width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step {
        padding: 24px;
    }

    .step h3 {
        font-size: 20px;
    }

    .step h3 .step-label {
        font-size: 16px;
    }

    .faq {
        padding: 48px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .final-cta {
        padding: 48px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 18px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

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

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