/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #1e2022;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #0088cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0066aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0088cc;
    border: 2px solid #0088cc;
}

.btn-secondary:hover {
    background-color: #0088cc;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-icon {
    font-size: 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0088cc;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #0088cc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    margin-bottom: 4rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    color: #1e2022;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pricing-card.popular {
    border: 2px solid #0088cc;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0088cc;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    color: #1e2022;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #0088cc;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0088cc;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #6c757d;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 600;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    color: #1e2022;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #6c757d;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.faq-question h3 {
    margin: 0;
    color: #1e2022;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #0088cc;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #6c757d;
    margin: 0;
}

/* Footer */
.footer {
    background: #1e2022;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    color: #6c757d;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0088cc;
}

.legal-info {
    color: #6c757d;
}

.legal-info p {
    margin-bottom: 0.25rem;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 2rem;
    text-align: center;
    color: #6c757d;
}

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        display: none;
    }

    .features,
    .pricing,
    .how-it-works,
    .faq {
        padding: 60px 0;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для чекбоксов согласия */
.subscription-form {
    margin-top: 1.5rem;
}

.consent-section {
    margin-bottom: 1rem;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
    transition: color 0.3s ease;
}

.consent-checkbox:hover {
    color: #2F4F4F;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    min-width: 18px;
    height: 18px;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.consent-checkbox:hover input ~ .checkmark {
    background-color: #f8f9fa;
    border-color: #C67B5C;
}

.consent-checkbox input:checked ~ .checkmark {
    background-color: #C67B5C;
    border-color: #C67B5C;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.consent-text {
    flex: 1;
}

.consent-text a {
    color: #C67B5C;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.consent-text a:hover {
    color: #B8906B;
    text-decoration: none;
}

.subscription-form .btn {
    width: 100%;
    transition: all 0.3s ease;
}

.subscription-form .btn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Анимация для кнопок форм */
.subscription-form .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 123, 92, 0.4);
}

/* Улучшенное отображение на мобильных */
@media (max-width: 768px) {
    .consent-checkbox {
        font-size: 0.8rem;
    }

    .checkmark {
        min-width: 16px;
        height: 16px;
    }

    .checkmark:after {
        left: 4px;
        top: 1px;
        width: 4px;
        height: 8px;
    }

    .consent-section {
        margin-bottom: 0.8rem;
    }
}