:root {
    --background-color: linear-gradient(to bottom, #BFE6D2, #78CFA9);
    --background-image: url('/static/images/Pic.png');

    --text-color: #1F4736;

    --card-background: rgba(79, 159, 124, 0.96);
    --container-background: rgba(255, 255, 255, 0.92);

    --nav-background: #4F9F7C;
    --nav-text-color: white;

    --button-background: linear-gradient(to right, #78CFA9, #5FBF98);
    --button-hover-background: linear-gradient(to right, #5FBF98, #3F8F6C);

    --primary-color: #5FBF98;
    --secondary-color: #78CFA9;
    --accent-color: #BFE6D2;

    --button-gradient-start: #78CFA9;
    --button-gradient-end: #5FBF98;

    --button-hover-gradient-start: #5FBF98;
    --button-hover-gradient-end: #3F8F6C;

    --modal-background: rgba(0, 0, 0, 0.5);

    --hero-overlay: rgba(0, 0, 0, 0.3);
    --stat-color: #FFD700;
}

/* Тёмная тема */
html.dark-theme {
    --background-color: linear-gradient(to bottom, #2F5A47, #1F3F33);
    --background-image: url('/static/images/Pic.png');

    --text-color: #EAF7F0;

    --card-background: rgba(31, 63, 51, 0.95);
    --container-background: rgba(31, 63, 51, 0.95);

    --nav-background: #1F3F33;
    --nav-text-color: #EAF7F0;

    --button-background: linear-gradient(to right, #4E8C6F, #3A6F57);
    --button-hover-background: linear-gradient(to right, #3A6F57, #2B4F3F);

    --primary-color: #6FBF97;
    --secondary-color: #4E8C6F;
    --accent-color: #2F5A47;

    --button-gradient-start: #4E8C6F;
    --button-gradient-end: #3A6F57;

    --button-hover-gradient-start: #3A6F57;
    --button-hover-gradient-end: #2B4F3F;

    --modal-background: rgba(0, 0, 0, 0.85);

    --hero-overlay: rgba(0, 0, 0, 0.2);
    --stat-color: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background-color);
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);  /* Лёгкое затемнение */
    /* backdrop-filter: blur(2px);  УДАЛЕНО - размытие убрано */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    /* backdrop-filter: blur(10px);  УДАЛЕНО - размытие убрано */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

/* ========== ОСТАЛЬНЫЕ СТИЛИ (без изменений) ========== */

.hero-title {
    margin-bottom: 25px;
}

.title-big {
    font-size: 70px;
    font-family: 'Great Vibes', cursive;
    display: block;
    color: white;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.3);
}

.title-big .accent {
    color: #FFD700;
}

.title-small {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    margin-top: 10px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, #78CFA9, #5FBF98);
    color: white;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(95, 191, 152, 0.4);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(95, 191, 152, 0.5);
    background: linear-gradient(to right, #5FBF98, #3F8F6C);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--stat-color);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* ========== СЕКЦИЯ ПРЕИМУЩЕСТВ ========== */
.features-section {
    padding: 80px 20px;
    background: var(--card-background);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
}

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

.feature-card {
    background: var(--container-background);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(to right, #78CFA9, #5FBF98);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

/* ========== СЕКЦИЯ ИНСТРУКЦИИ ========== */
.how-it-works {
    padding: 80px 20px;
    background: var(--container-background);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    background: var(--card-background);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 48px;
    font-weight: 800;
    opacity: 0.1;
    color: var(--primary-color);
}

.step-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.step-arrow {
    font-size: 30px;
    color: var(--primary-color);
}

/* ========== CTA СЕКЦИЯ ========== */
.cta-section {
    background: linear-gradient(to right, #5FBF98, #3F8F6C);
    margin: 40px 20px;
    border-radius: 30px;
    overflow: hidden;
}

.cta-content {
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #5FBF98;
    padding: 14px 35px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    gap: 15px;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-background);
    /* backdrop-filter: blur(5px);  УДАЛЕНО - размытие убрано */
}

.modal-content {
    background: var(--card-background);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.modal-content li i {
    width: 25px;
    color: var(--primary-color);
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    color: var(--text-color);
}

.close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .title-big {
        font-size: 45px;
    }

    .title-small {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .btn-primary, .btn-secondary {
        width: 80%;
        justify-content: center;
    }

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

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step {
        width: 100%;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .title-big {
        font-size: 32px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .feature-card {
        padding: 20px;
    }

    .cta-content {
        padding: 40px 20px;
    }
}