/* Основные стили */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f9a826;
    --security-color: #10b981;
    --dark-color: #0f172a;        /* Для фона/акцентов */
    --light-color: #f8fafc;       /* Для светлого фона */
    --text-dark: #0f172a;         /* Тёмный текст */
    --text-light: #f8fafc;        /* Светлый текст */
    --text-gray: #64748b;         /* Серый текст (светлая тема) */
    --text-gray-dark: #94a3b8;    /* Серый текст (тёмная тема) */
    --light-gray: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

body.dark-theme {
    --dark-color: #1e293b;
    --light-color: #0f172a;
    --text-dark: #f8fafc;         /* В тёмной теме тёмный текст = белый */
    --text-light: #0f172a;        /* В тёмной теме светлый текст = тёмный */
    --text-gray: #94a3b8;         /* Серый текст (тёмная тема) */
    --text-gray-dark: #64748b;    /* Тёмно-серый текст (светлая тема) */
    --light-gray: #334155;
    --card-bg: #1e293b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--light-color);
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 400;
    transition: var(--transition);
    overflow-x: hidden;
}

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

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

/* Текстовые стили */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

body.dark-theme p {
    color: var(--text-gray);
}

li {
    color: var(--text-gray);
}

body.dark-theme li {
    color: var(--text-gray);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5e0890;
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #e69500;
}

.btn-security {
    background-color: var(--security-color);
    color: white;
}

.btn-security:hover {
    background-color: #0da271;
}

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

.btn-telegram:hover {
    background-color: #0077b5;
}

/* Пульсирующая анимация для кнопки Telegram */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

/* Шапка */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

body.dark-theme .main-header {
    background-color: rgba(30, 41, 59, 0.95);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

body.dark-theme .main-header.scrolled {
    background-color: rgba(30, 41, 59, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

body.dark-theme .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-theme .mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-mobile-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

body.dark-theme .close-mobile-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.mobile-nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.mobile-nav-links .btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

/* Главный экран */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.feature {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    color: var(--text-dark);
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary-color);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Секции с фоном */
.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-section-1 {
    background-image: url('../img/fon1.jpg');
}

.bg-section-2 {
    background-image: url('../img/fon2.jpg');
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(67, 97, 238, 0.8) 100%);
    z-index: 1;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-dark);
}

/* Заголовки ТОЛЬКО для секций с фоном */
.section-with-bg .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.business {
    border-top-color: var(--secondary-color);
}

.service-card.development {
    border-top-color: var(--accent-color);
}

.service-card.security {
    border-top-color: var(--security-color);
}

/* Карточки в секциях с фоном */
.section-with-bg .service-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card-header {
    padding: 25px 25px 15px;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-gray);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card.business .service-icon {
    color: var(--secondary-color);
}

.service-card.development .service-icon {
    color: var(--accent-color);
}

.service-card.security .service-icon {
    color: var(--security-color);
}

/* Теги */
.service-tags {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag.all {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

body.dark-theme .tag.all {
    background-color: rgba(67, 97, 238, 0.2);
    color: #93c5fd;
}

.tag.business {
    background-color: rgba(114, 9, 183, 0.1);
    color: var(--secondary-color);
}

body.dark-theme .tag.business {
    background-color: rgba(114, 9, 183, 0.2);
    color: #c4b5fd;
}

.tag.unique {
    background-color: rgba(249, 168, 38, 0.1);
    color: var(--accent-color);
}

body.dark-theme .tag.unique {
    background-color: rgba(249, 168, 38, 0.2);
    color: #fcd34d;
}

.tag.development {
    background-color: rgba(249, 168, 38, 0.1);
    color: var(--accent-color);
}

body.dark-theme .tag.development {
    background-color: rgba(249, 168, 38, 0.2);
    color: #fdba74;
}

.tag.security {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--security-color);
}

body.dark-theme .tag.security {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.service-card-content {
    padding: 0 25px;
    flex: 1;
    color: var(--text-gray);
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-left: 24px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-gray);
}

.service-features li i {
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 0.9rem;
}

.service-card-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

/* Секция безопасности */
.security-section {
    background-color: rgba(16, 185, 129, 0.05);
}

body.dark-theme .security-section {
    background-color: rgba(16, 185, 129, 0.05);
}

.how-it-works {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.how-it-works-title {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dark);
}

.how-it-works p {
    color: var(--text-gray);
}

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

.step {
    text-align: center;
    padding: 20px;
}

.step h4 {
    color: var(--text-dark);
}

.step p {
    color: var(--text-gray);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--security-color), #0da271);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Бизнес-секция */
.business-section {
    background-color: var(--card-bg);
}

.business-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.benefit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.benefit h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefit p {
    color: var(--text-gray);
}

/* Тарифы */
.pricing-section {
    background-color: var(--light-color);
}

.pricing-note {
    text-align: center;
    font-style: italic;
    margin-bottom: 3rem;
    padding: 20px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-gray);
}

.pricing-note i {
    color: var(--primary-color);
}

.pricing-table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-dark);
}

.pricing-table th {
    background-color: rgba(67, 97, 238, 0.1);
    font-weight: 600;
    color: var(--primary-color);
}

.pricing-table td {
    color: var(--text-gray);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Workflow */
.workflow-section {
    background-color: var(--card-bg);
}

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

.step-card {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card h3 {
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-gray);
}

.step-card .step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Контакты */
.contact-section {
    background-color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-detail {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0;
    color: var(--primary-color);
}

.contact-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-box {
    background-color: rgba(67, 97, 238, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.info-box p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.info-box strong {
    color: var(--text-dark);
}

/* Подвал */
.main-footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 80px 0 30px;
}

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

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links a,
.footer-links .offer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-links .offer-link:hover {
    color: white;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 2rem;
}

.footer-contact {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-contact:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.copyright-note {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Модальное окно оферты */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    background-color: var(--card-bg);
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

body.dark-theme .close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-gray);
}

.modal-body li i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.offer-note {
    margin-top: 2rem;
    padding: 20px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: var(--border-radius);
}

.offer-note p {
    color: var(--text-dark);
    margin: 0;
}

.offer-link {
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.offer-link:hover {
    color: var(--primary-dark);
}

/* Custom plan */
.custom-plan {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.custom-plan-content {
    margin-bottom: 2rem;
}

.custom-plan-content h3 {
    color: var(--text-dark);
}

.custom-plan-content p {
    color: var(--text-gray);
}

.custom-plan-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Утилиты */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Дополнительные исправления для контраста */
strong, b {
    color: var(--text-dark);
}

.pricing-table strong {
    color: var(--text-dark);
}

body.dark-theme .pricing-table td {
    color: #cbd5e1;
}

.service-features li {
    color: var(--text-gray);
}

/* Исправление для текста в карточках на фоновых секциях */
.section-with-bg .service-card h3,
.section-with-bg .service-card p,
.section-with-bg .service-card .service-features li {
    color: var(--text-dark);
}

body.dark-theme .section-with-bg .service-card h3,
body.dark-theme .section-with-bg .service-card p,
body.dark-theme .section-with-bg .service-card .service-features li {
    color: var(--text-gray);
}

/* =========================
   FIX: ЧИТАЕМОСТЬ ТЕКСТА
   (без поломки верстки)
========================= */

/* 1. Основной текст — темнее в светлой теме */
body {
    color: var(--text-dark);
}

/* 2. Параграфы и списки — читаемый серый */
p,
li {
    color: var(--text-gray);
}

/* 3. Секции с фоновыми картинками */
.section-with-bg p,
.section-with-bg li {
    color: rgba(255, 255, 255, 0.92);
}

/* 4. Но внутри карточек — обратно нормальный цвет */
.section-with-bg .service-card p,
.section-with-bg .service-card li {
    color: var(--text-gray);
}

/* 5. Заголовки всегда контрастные */
h1, h2, h3, h4, h5, h6,
.service-card h3,
.feature h3,
.benefit h3,
.step h4 {
    color: var(--text-dark);
}

/* 6. Подзаголовки секций на фоне */
.section-with-bg .section-title,
.section-with-bg .section-subtitle {
    color: #ffffff;
}

/* 7. Усиливаем серый текст (он был слишком бледный) */
:root {
    --text-gray: #475569;
}

/* =========================
   FIX: ЗАГОЛОВКИ В СВЕТЛОЙ ТЕМЕ
========================= */

/* 1. По умолчанию — ВСЕ заголовки тёмные */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

/* 2. Заголовки секций БЕЗ фоновой картинки */
.section-title,
.section-header h2 {
    color: var(--text-dark);
}

/* 3. Заголовки в секциях С ФОНОМ — белые */
.section-with-bg h1,
.section-with-bg h2,
.section-with-bg h3,
.section-with-bg h4,
.section-with-bg .section-title {
    color: #ffffff;
}

/* 4. Подзаголовки */
.section-subtitle {
    color: var(--text-gray);
}

.section-with-bg .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   FIX: CTA / CONTACT BLOCK
========================= */

/* Заголовок */
.contact h2,
.cta h2,
.contact-section h2 {
    color: var(--text-dark);
}

/* Описание под заголовком */
.contact p,
.cta p,
.contact-section p {
    color: var(--text-gray);
}

/* Если блок вдруг внутри section-with-bg — там наоборот белый */
.section-with-bg .contact h2,
.section-with-bg .cta h2,
.section-with-bg .contact-section h2,
.section-with-bg .contact p,
.section-with-bg .cta p,
.section-with-bg .contact-section p {
    color: #ffffff;
}

/* =========================
   FINAL FIX: CUSTOM PLAN
========================= */

.section-with-bg .custom-plan-content h3 {
    color: var(--text-dark);
}

.section-with-bg .custom-plan-content p {
    color: var(--text-gray);
}
