/* css/style.css */

:root {
    /* Основные цвета */
    --primary: #6C5DD3;
    --primary-hover: #594BC2;
    --primary-purple-dark: #1E1B2E;
    /* Темно-фиолетовый для футера */

    /* Тексты */
    --text-main: #1A1D1F;
    --text-secondary: #6F767E;

    /* Фоны и обводки */
    --white: #FFFFFF;
    --surface: #F4F5F6;
    --border: rgba(0, 0, 0, 0.08);

    /* Палитра серых (для отзывов) */
    --gray-50: #F9FAFB;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Доп. цвета */
    --success: #27AE60;
    /* Зеленый для иконок */

    /* Настройки UI */
    --shadow-card: 0 12px 32px rgba(20, 20, 40, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-head: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: transparent;
    /* Убираем фон у body */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 1. Настраиваем фиксированный контейнер */
.fixed-global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Убираем на самый задний план */
    overflow: hidden;
}

/* 2. Настраиваем слайды и анимацию */
.global-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bgFade 21s ease-in-out infinite;
    /* Более медленная и плавная анимация */
}

/* Тайминги для анимации (пример для 3 слайдов) */
.global-slide:nth-child(1) {
    animation-delay: 0s;
}

.global-slide:nth-child(2) {
    animation-delay: 7s;
}

.global-slide:nth-child(3) {
    animation-delay: 14s;
}

@keyframes bgFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    /* Быстрое появление */
    33% {
        opacity: 1;
    }

    /* Держим картинку */
    43% {
        opacity: 0;
    }

    /* Исчезновение */
    100% {
        opacity: 0;
    }
}

/* 3. Затемнение (Оверлей) */
.global-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 24, 0.85);
    /* Темный фильтр, чтобы текст читался */
    z-index: 1;
}

/* Шум (опционально, если есть файл noise.png) */
/* .global-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/noise.png");
    opacity: 0.05;
    pointer-events: none;
} */

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

.section {
    padding: 80px 0;
}

/* ТИПОГРАФИКА */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
}

/* КНОПКИ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-family: var(--font-head);
    border: none;
    cursor: pointer;
}

.button--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(108, 93, 211, 0.3);
}

.button--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.button--secondary {
    background: rgba(108, 93, 211, 0.1);
    color: var(--primary);
}

.button--secondary:hover {
    background: rgba(108, 93, 211, 0.15);
}

/* Кнопка Яндекса в фирменном цвете */
.button--yandex {
    background: #FFCC00 !important;
    color: #000 !important;
}

.button--yandex:hover {
    background: #FFD633 !important;
    color: #000 !important;
}

/* ШАПКА */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

.nav__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
    height: 38px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

/* Номер телефона в хедере */
.nav__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav__phone:hover {
    background: rgba(108, 93, 211, 0.05);
    color: var(--primary) !important;
}

.nav__phone i {
    font-size: 1rem;
    color: var(--success);
}

.nav__phone span {
    font-size: 0.85rem;
}

/* Единая высота для кнопок в хедере */
.nav .button {
    height: 38px;
    padding: 0 16px;
    font-size: 0.85rem;
}

/* Кнопка телеграм с обводкой */
.button--telegram {
    border: 1px solid var(--primary);
    padding: 0 12px !important;
    min-width: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button--telegram i {
    font-size: 1rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Мобильные действия в хедере */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-calc-btn-always {
    display: none;
}

/* Скрываем мобильные действия на ПК */
@media (min-width: 769px) {
    .header-mobile-actions {
        display: none !important;
    }
}

/* Скрываем кнопку "Рассчитать стоимость" в навигации на мобильных */
@media (max-width: 768px) {
    .mobile-calc-btn {
        display: none !important;
    }

    .header-mobile-actions {
        display: flex;
    }

    .mobile-calc-btn-always {
        display: inline-flex;
        font-size: 0.75rem;
        padding: 8px 12px;
        white-space: nowrap;
        height: 36px;
    }

    /* Скрываем номер телефона на мобильных в навигации */
    .nav__phone {
        display: none;
    }
}

/* ЗАГОЛОВКИ СТРАНИЦ */
.page-header {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main) !important;
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* --- HERO С КАРУСЕЛЬЮ (ОБНОВЛЕННЫЙ) --- */
.hero {
    position: relative;
    padding: 180px 0 160px;
    /* Больше воздуха сверху и снизу */
    text-align: center;
    color: var(--white);
    background: transparent !important;
    /* Убираем белый фон у секции */
    overflow: hidden;
}

/* Контент поверх слайдера */
.hero .container {
    position: relative;
    z-index: 2;
}

/* 4. ОЧЕНЬ ВАЖНО: Делаем секции прозрачными */
.comparison-section,
.steps-section,
.reviews {
    background: transparent !important;
    /* Убираем белые фоны у секций */
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
    /* Убираем градиент текста, на темном фоне лучше чисто белый */
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero__desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    /* Светлый текст описания */
    margin: 0 auto 40px;
    max-width: 700px;
    line-height: 1.7;
}

/* КАРТОЧКИ УСЛУГ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.card__icon {
    width: 64px;
    height: 64px;
    background: rgba(108, 93, 211, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 24px;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

/* ТАБЛИЦА (АДАПТИВНАЯ) */
.table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    margin-top: 40px;
    border: 1px solid var(--border);
}

/* ГЕОГРАФИЯ (АККОРДЕОНЫ) */
.geo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.geo-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.geo-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.geo-summary {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 40px;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.geo-summary::-webkit-details-marker {
    display: none;
}

.geo-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

.geo-item[open] .geo-icon {
    transform: rotate(180deg);
}

.geo-details {
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
    background: #fafafb;
    overflow-x: auto;
}

/* ВНУТРЕННИЕ ТАБЛИЦЫ ЦЕН */
.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.9rem;
    min-width: 700px;
}

.prices-table th,
.prices-table td {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
}

.prices-table th {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    background: transparent;
    white-space: nowrap;
}

.prices-table td {
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.prices-table th:first-child,
.prices-table td:first-child {
    text-align: left;
    padding-left: 0;
    width: 30%;
}

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

.badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge--success {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
}

.badge--warning {
    background: rgba(255, 152, 0, 0.1);
    color: #F2994A;
}

/* FAQ */
.faq-item {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-summary {
    padding: 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main) !important;
}

.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.2s;
}

details[open] .faq-summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-main) !important;
}

/* ФОРМА ВХОДА */
.login-wrap {
    max-width: 400px;
    margin: 80px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.login-title {
    color: #000;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
}

.password-field {
    position: relative;
}

.password-field__input {
    padding-right: 48px;
}

.password-field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary, #666);
    border-radius: 8px;
    line-height: 1;
}

.password-field__toggle:hover {
    color: var(--primary);
}

/* STATS WOW */
.stats-wow {
    position: relative;
    background: linear-gradient(135deg, #6C5DD3 0%, #4D3CC2 100%);
    border-radius: 32px;
    padding: 60px 40px;
    overflow: hidden;
    color: white;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px rgba(108, 93, 211, 0.25);
}

.stats-wow::before,
.stats-wow::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats-wow::before {
    top: -200px;
    left: -100px;
    opacity: 0.6;
}

.stats-wow::after {
    bottom: -200px;
    right: -100px;
    opacity: 0.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.4s;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-head);
    background: linear-gradient(180deg, #FFFFFF 20%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== REVIEWS (YANDEX STYLE) ===== */
.reviews {
    background: var(--gray-50);
}

.reviews__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.yandex-badge {
    background: #FFCC00;
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 1.1rem;
}

.review-card:nth-child(1) .review-avatar {
    background: #FFD2D2;
    color: #C0392B;
}

.review-card:nth-child(2) .review-avatar {
    background: #D2E4FF;
    color: #2980B9;
}

.review-card:nth-child(3) .review-avatar {
    background: #D2FFE6;
    color: #27AE60;
}

.review-user-info {
    flex-grow: 1;
}

.review-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    line-height: 1.2;
}

.review-level {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #FFCC00;
    font-size: 1rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--gray-800);
    line-height: 1.6;
}

.review-date {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ===== STANDARD FOOTER ===== */
footer.standard-footer {
    background: var(--primary-purple-dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-logo-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--success);
    transform: translateX(5px);
}

.footer-bottom-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ADAPTIVE */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .stats-wow {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-card);
        border-bottom: 1px solid var(--border);
        gap: 12px;
    }

    .nav.active .nav__link {
        height: 40px;
        font-size: 0.9rem;
    }

    .nav.active .button {
        height: 40px;
        font-size: 0.85rem;
        padding: 0 16px;
    }

    /* Показываем номер телефона в мобильном меню */
    .nav.active .nav__phone {
        display: flex !important;
        justify-content: flex-start;
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(39, 174, 96, 0.05);
        margin-top: 8px;
    }

    .nav.active .nav__phone i {
        color: var(--success);
        font-size: 1.1rem;
    }

    .nav.active .nav__phone span {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .geo-summary {
        grid-template-columns: 1fr 40px;
        gap: 10px;
    }

    .geo-hide-mobile {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- БЛОК "О КОМПАНИИ" (НОВЫЙ) --- */
.about-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Две колонки: Текст | Фото */
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.about-feature i {
    color: var(--success);
    /* Зеленая галочка */
    font-size: 1.5rem;
    background: rgba(39, 174, 96, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Оформление Фотографии */
.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Мягкая тень */
    transform: rotate(2deg);
    /* Небольшой наклон для динамики */
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-image-wrap:hover .about-image {
    transform: rotate(0deg) scale(1.02);
    /* Выравнивание при наведении */
}

/* Декоративный элемент под фото (подложка) */
.about-image-wrap::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 24px;
    z-index: -1;
    transform: rotate(-2deg);
}

/* Адаптив для блока О нас */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* Одна колонка на планшетах */
        gap: 40px;
    }

    .about-image-wrap {
        order: -1;
        /* Фото сверху на мобильных */
        margin: 0 20px;
        /* Отступы для декора */
    }

    .about-content h2 {
        font-size: 2rem;
    }
}

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ РАСЧЕТА (CALCULATION) --- */

.calc-wrap {
    max-width: 800px;
    margin: 60px auto 100px;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.form-section-title {
    margin-top: 32px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 1.2rem;
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Кастомные чекбоксы и радио */
.checkbox-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.custom-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    /* Цвет галочки */
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
}

/* Адаптив для формы */
@media (max-width: 600px) {
    .calc-wrap {
        padding: 24px;
        margin-top: 40px;
    }

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

    /* В одну колонку на телефоне */
}

/* --- СТИЛИ ДЛЯ ВЫБОРА СКЛАДОВ --- */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Адаптивная сетка */
    gap: 12px;
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-height: 300px;
    overflow-y: auto;
    /* Скролл, если складов очень много */
}

.empty-state {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    padding: 10px;
}

/* Стили для заголовков групп складов (если выбраны оба маркетплейса) */
.warehouse-group-title {
    grid-column: 1 / -1;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 5px;
}

.warehouse-group-title:first-child {
    margin-top: 0;
}

/* ===== ВСПЛЫВАЮЩЕЕ ОКНО КОНСУЛЬТАЦИИ (СПРАВА ВНИЗУ) ===== */
.consultation-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    max-width: 360px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consultation-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.consultation-widget__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-head);
}

.consultation-widget__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.consultation-widget__close:hover {
    background: var(--surface);
    color: var(--text-main);
}

.consultation-widget__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consultation-widget__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: 0.2s;
}

.consultation-widget__input:focus {
    border-color: var(--success);
    outline: none;
}

.consultation-widget__button {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-head);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.consultation-widget__button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

@media (max-width: 480px) {
    .consultation-widget {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ===== СИСТЕМА УВЕДОМЛЕНИЙ (СПРАВА ВНИЗУ) ===== */
.notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: slideInNotification 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 4px solid var(--success);
    min-width: 300px;
    max-width: 400px;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification.info {
    border-left-color: #3498db;
}

.notification__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification.success .notification__icon {
    color: var(--success);
}

.notification.error .notification__icon {
    color: #e74c3c;
}

.notification.warning .notification__icon {
    color: #f39c12;
}

.notification.info .notification__icon {
    color: #3498db;
}

.notification__content {
    flex: 1;
    min-width: 0;
}

.notification__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
    font-family: var(--font-head);
}

.notification__message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.notification__close:hover {
    background: var(--surface);
    color: var(--text-main);
}

@keyframes slideInNotification {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.hiding {
    animation: slideOutNotification 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideOutNotification {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .notification-container {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
}

/* ===== АНИМАЦИЯ ЗАГРУЗКИ ===== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== МОДАЛЬНОЕ ОКНО РАСЧЕТА ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__header {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-head);
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal__close:hover {
    background: var(--surface);
    color: var(--text-main);
}

.modal__body {
    padding: 32px;
}

@media (max-width: 768px) {
    .modal {
        max-height: 95vh;
        border-radius: var(--radius-md);
    }

    .modal__header {
        padding: 20px 24px;
    }

    .modal__body {
        padding: 24px;
    }
}

/* ===== ЗЕЛЕНАЯ КНОПКА "РАССЧИТАТЬ СТОИМОСТЬ" ===== */
.button--success {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.button--success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.4);
}

/* ===== МНОГОШАГОВАЯ ФОРМА РАСЧЕТА ===== */
.modal__progress {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-steps {
    flex: 1;
    display: flex;
    gap: 8px;
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
}

.progress-step {
    flex: 1;
    height: 100%;
    background: var(--border);
    transition: background 0.3s ease;
}

.progress-step.active {
    background: var(--primary);
}

.progress-step.completed {
    background: var(--success);
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.progress-text .current-step {
    color: var(--primary);
    font-weight: 700;
}

/* Шаги формы */
.modal-steps {
    position: relative;
    min-height: 400px;
}

.modal-step {
    display: none;
    animation: stepFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 32px;
}

.modal-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-head);
    margin-bottom: 8px;
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Навигация между шагами */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    background: var(--white);
    gap: 16px;
}

.step-navigation__back {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.step-navigation__back:hover {
    background: var(--border);
}

.step-navigation__next {
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

.step-navigation__back:disabled,
.step-navigation__next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Валидация */
.form-group.error .form-input,
.form-group.error .custom-checkbox input[type="checkbox"],
.form-group.error .custom-checkbox input[type="radio"] {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group.error .form-label {
    color: #e74c3c;
}

.error-tooltip {
    display: none;
    position: absolute;
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 4px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    white-space: nowrap;
}

.error-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e74c3c;
}

.form-group.error .error-tooltip {
    display: block;
}

.form-group {
    position: relative;
}

/* Тултипы для моделей работы */
.model-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 8px;
    color: var(--text-secondary);
}

.model-tooltip:hover .tooltip-content {
    display: block;
}

.tooltip-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: var(--gray-900);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    width: 280px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Тултипы в модалке «Рассчитать стоимость» — шаг 2: белый текст для читаемости */
#calculationModal .tooltip-content {
    color: #ffffff !important;
    background: #1a1a1a;
}
#calculationModal .tooltip-content::after {
    border-top-color: #1a1a1a;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--gray-900);
}

/* Сводка на финальном шаге */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    max-width: 60%;
}

.summary-value ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.summary-value li {
    margin-bottom: 4px;
}

/* Динамические поля */
.dynamic-field {
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для многошаговой формы */
@media (max-width: 768px) {
    .modal__progress {
        padding: 16px 24px;
    }

    .progress-text {
        font-size: 0.8rem;
        min-width: 60px;
    }

    .modal-step {
        padding: 24px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .step-navigation {
        padding: 20px 24px;
        flex-direction: column;
    }

    .step-navigation__next {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }

    .step-navigation__back {
        width: 100%;
    }

    .tooltip-content {
        width: 240px;
        font-size: 0.8rem;
    }

    .summary-list {
        padding: 20px;
    }

    .summary-item {
        flex-direction: column;
        gap: 8px;
    }

    .summary-value {
        max-width: 100%;
        text-align: left;
    }

    .summary-value ul {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .modal {
        max-width: 100%;
        margin: 10px;
    }

    .modal__progress {
        padding: 12px 16px;
    }

    .progress-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-text {
        text-align: left;
        min-width: auto;
    }

    .modal-step {
        padding: 20px 16px;
    }

    .step-navigation {
        padding: 16px;
    }
}

/* ===== ПРАЙС-ЛИСТ УСЛУГ ===== */
.pricing-tab {
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    color: var(--text-main);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.pricing-tab:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.pricing-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 93, 211, 0.3);
}

.pricing-tab.active .pricing-tab-icon {
    color: white !important;
}

.pricing-tab-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-table-wrapper {
    display: none;
}

.pricing-table-wrapper.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pricing-table-wrapper table tbody tr:hover {
    background: var(--surface);
}

.pricing-accordion-header:hover {
    background: var(--surface) !important;
}

@media (max-width: 768px) {
    .pricing-desktop {
        display: none !important;
    }

    .pricing-mobile {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .pricing-desktop {
        display: block !important;
    }

    .pricing-mobile {
        display: none !important;
    }
}

/* Исправление цвета текста в прайс-листе */
#pricing-section,
#pricing-section *,
.pricing-table-wrapper,
.pricing-table-wrapper *,
.pricing-table-wrapper table,
.pricing-table-wrapper table td,
.pricing-table-wrapper table th,
.pricing-table-wrapper h3,
.pricing-table-wrapper h3 span,
.pricing-accordion-item,
.pricing-accordion-item *,
.pricing-accordion-header,
.pricing-accordion-header *,
.pricing-accordion-content,
.pricing-accordion-content *,
.pricing-accordion-content div,
.pricing-accordion-content span {
    color: var(--text-main) !important;
}

.pricing-table-wrapper table td {
    color: var(--text-main) !important;
}

/* Цены в таблице - фиолетовые */
.pricing-table-wrapper table td[style*="color: var(--primary)"],
.pricing-table-wrapper table td[style*="color:var(--primary)"] {
    color: var(--primary) !important;
}

.pricing-table-wrapper table th {
    color: var(--text-secondary) !important;
}

.pricing-accordion-header span,
.pricing-accordion-header div span {
    color: var(--text-main) !important;
}

/* Заголовок категории в аккордеоне - можно оставить фиолетовым, но текст должен быть черным */
.pricing-accordion-header span[style*="color: var(--primary)"] {
    color: var(--primary) !important;
    /* Оставляем фиолетовым для заголовка */
}

/* Специфичные правила для элементов прайс-листа с инлайн-стилями */
.pricing-table-wrapper [style*="color"],
.pricing-accordion-item [style*="color"] {
    color: var(--text-main) !important;
}

/* Исключение: цены должны быть фиолетовыми */
.pricing-table-wrapper [style*="color: var(--primary)"],
.pricing-table-wrapper [style*="color:var(--primary)"],
.pricing-accordion-item [style*="color: var(--primary)"],
.pricing-accordion-item [style*="color:var(--primary)"],
.pricing-accordion-content [style*="color: var(--primary)"],
.pricing-accordion-content [style*="color:var(--primary)"] {
    color: var(--primary) !important;
}

/* Заголовки и контент чёрные только на страницах с .page-header (Прайс, FAQ) */
body:has(.page-header) .section h2,
body:has(.page-header) .section p,
body:has(.page-header) .section .container,
body:has(.page-header) .section .container * {
    color: var(--text-main) !important;
}

body:has(.page-header) .section p[style*="color: var(--text-secondary)"] {
    color: var(--text-secondary) !important;
}

/* Карточки услуг на странице services.html */
body:has(.page-header) .card,
body:has(.page-header) .card *,
body:has(.page-header) .card__title,
body:has(.page-header) .card p {
    color: var(--text-main) !important;
}

/* На главной: блоки с белым фоном (comparison, steps) — заголовки чёрные */
.comparison-section .section__title,
.comparison-section .container *,
.steps-section .section__title,
.steps-section .container * {
    color: var(--text-main) !important;
}

/* ===== БЛОК СРАВНЕНИЯ ===== */
.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary);
}

/* 5. Добавляем "Стекло" (Glassmorphism) для карточек, чтобы они не сливались */
.comparison-card,
.snake-step,
.stat-card,
.review-card {
    background: rgba(255, 255, 255, 0.92) !important;
    /* Полупрозрачный белый */
    backdrop-filter: blur(5px);
    /* Уменьшенное размытие для четкости */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Иконки на фоне карточек проблем - без размытия (размытие через backdrop-filter на overlay) */
.comparison-card-bg-icon {
    /* Изображение без размытия, как в карусели */
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }

    .comparison-card-bg-icon {
        width: 150px !important;
        height: 150px !important;
        right: -15px !important;
    }
}

/* ===== БЛОК С ШАГАМИ РАБОТЫ (НОВЫЙ ДИЗАЙН) ===== */
.steps-snake-container {
    position: relative;
}

.steps-snake {
    position: relative;
}

/* Базовые стили шага для анимации */
.snake-step {
    opacity: 1;
    /* Видимы по умолчанию - на случай если JS не загрузится */
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000),
        transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Если JS работает, скрываем для анимации при первом появлении */
.js-enabled .snake-step {
    opacity: 0;
    transform: translateY(40px);
}

/* Класс, который добавляет JS при скролле */
.js-enabled .snake-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация контента (карточек) */
.snake-step-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.snake-step.is-visible .snake-step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Анимация иконки */
.snake-step-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

/* Если JS работает, применяем анимацию */
.js-enabled .snake-step-icon {
    transform: scale(0.8);
    /* Чуть меньше в начале */
}

/* Когда шаг видим, иконка "пульсирует" и увеличивается */
.js-enabled .snake-step.is-visible .snake-step-icon {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(108, 93, 211, 0.1);
}

/* Меняем цвет тени для зеленых шагов (начиная с 3-го шага - "Работа") */
.js-enabled .snake-step.is-visible:nth-child(n+3) .snake-step-icon {
    box-shadow: 0 0 0 8px rgba(39, 174, 96, 0.2) !important;
}

/* Стили для больших номеров */
.snake-step {
    position: relative;
}

.snake-step ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.snake-step ul li {
    position: relative;
    padding-left: 24px;
}

.snake-step ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.snake-step:nth-child(n+3) ul li::before {
    color: var(--success);
}

/* Фоновые изображения в этапах - без размытия (размытие через backdrop-filter на overlay) */
.snake-step-bg {
    /* Изображение без размытия, как в карусели */
}

.snake-step-icon {
    filter: none !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .snake-step {
        flex-direction: column !important;
    }

    .snake-step--left,
    .snake-step--right {
        flex-direction: column !important;
    }

    /* Полоса всегда сверху на мобильных */
    .snake-step>div:first-child[style*="width: 8px"] {
        width: 100% !important;
        height: 8px !important;
    }

    /* Иконка всегда сверху */
    .snake-step-icon {
        margin: 20px auto !important;
        width: 100px !important;
        height: 100px !important;
    }

    .snake-step-icon i {
        font-size: 2.5rem !important;
    }

    /* Контент */
    .snake-step-content {
        padding: 24px !important;
        gap: 20px !important;
    }

    .snake-step-content h4 {
        font-size: 1.5rem !important;
    }

    /* Большие номера меньше на мобильных */
    .snake-step>div[style*="font-size: 8rem"] {
        font-size: 4rem !important;
        right: -20px !important;
    }

    /* Фоновые изображения на мобильных - без изменений, используется backdrop-filter */
}

/* =========================================
   ИСПРАВЛЕНИЕ КОНТРАСТА (FIX)
   ========================================= */

/* 1. Заголовки страниц и общий текст делаем БЕЛЫМИ */
body {
    color: #ffffff;
    /* Базовый цвет текста - белый */
}

h1,
h2,
h3,
h4,
h5,
h6,
.section__title,
.hero__title,
.hero__desc,
.stats-label {
    color: #ffffff !important;
    /* Принудительно белый для заголовков на фоне */
}

/* Страницы входа/сброса пароля: заголовок тёмный на светлом фоне карточки */
.login-title {
    color: #1a1d1f !important;
}

.hero__desc {
    opacity: 0.9;
    /* Чуть приглушаем описание, чтобы не резало глаз */
}

/* 2. Карточки ("стекло") оставляем светлыми, но текст внутри делаем ТЕМНЫМ */
.stat-card,
.comparison-card,
.snake-step,
.review-card {
    /* Фон карточки: почти непрозрачный белый, чтобы текст читался */
    background: rgba(255, 255, 255, 0.92) !important;

    /* Текст внутри карточки: темно-серый (почти черный) */
    color: #1a1a1a !important;

    /* Тень, чтобы карточка отделилась от фона */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* 3. Прицельно красим элементы ВНУТРИ карточек в темный цвет */
/* Для статистики */
.stat-number {
    color: #6c5dd3 !important;
    /* Фиолетовый акцент */
}

.stat-label {
    color: #4a4a4a !important;
    /* Темно-серый для подписи */
}

.stat-icon i {
    color: #6c5dd3;
    /* Иконки фиолетовые */
}

/* Для шагов (змейка) */
.snake-step-content h4 {
    color: #1a1a1a !important;
    /* Заголовок шага темный */
}

.snake-step-content p,
.snake-step-content ul {
    color: #444444 !important;
    /* Описание шага темно-серое */
}

/* Для отзывов и преимуществ */
.comparison-card h3,
.review-name {
    color: #1a1a1a !important;
}

.comparison-card p,
.review-text,
.review-level {
    color: #444444 !important;
}

/* 4. Исправляем "звездочки" в отзывах, если они пропали */
.ri-star-fill {
    color: #f1c40f !important;
    /* Желтый цвет */
}

/* 5. Исправляем кнопку "Рассчитать" в меню (если она слилась) */
.nav__link {
    color: #1a1a1a !important;
    /* Ссылки в меню черные */
}

.nav__link:hover,
.nav__link.active {
    color: #6c5dd3 !important;
    /* При наведении и активная ссылка - фиолетовые */
}

/* =========================================
   УЛУЧШЕНИЕ БЛОКА "ЭТАПЫ РАБОТЫ"
   ========================================= */

/* 1. Делаем фото четче и ярче */
.snake-step-bg-overlay {
    /* Уменьшаем размытие с 4px до 2px */
    backdrop-filter: blur(2px) !important;

    /* Делаем белый слой более прозрачным (с 0.85 до 0.7), 
       чтобы фото стало ярче, но текст остался читаемым */
    background: rgba(255, 255, 255, 0.7) !important;
}

/* 2. Добавляем рамку для блоков с номерами */

/* Базовый стиль для контейнера с цифрой */
.snake-step-icon {
    /* Толстая полупрозрачная рамка */
    border: 4px solid;
    /* Небольшой отступ внутри рамки */
    padding: 10px;
}

/* Цвет рамки для ФИОЛЕТОВЫХ шагов (нечетные: 1, 3, 5) */
/* Мы используем тот же цвет, что у цифры, но делаем его более явным (opacity 0.3 вместо 0.15) */
.snake-step--left .snake-step-icon {
    border-color: rgba(108, 93, 211, 0.3) !important;
}

/* Цвет рамки для ЗЕЛЕНЫХ шагов (четные: 2, 4) */
.snake-step--right .snake-step-icon {
    border-color: rgba(39, 174, 96, 0.3) !important;
}

/* =======================================================
   ФИНАЛЬНЫЕ ПРАВКИ: ТЕКСТЫ И ШАГИ
   ======================================================= */

/* --- 1. ЧИНИМ НЕВИДИМЫЙ ТЕКСТ (Статистика и Модалка) --- */

/* Делаем цифры и подписи в статистике темными */
.stat-card .stat-number,
.stat-card .stat-label,
.stat-card .stat-icon i {
    color: #1a1a1a !important;
    text-shadow: none !important;
    /* Убираем любые тени текста */
}

/* Делаем текст в модальном окне темным */
.modal__body,
.modal__body h2,
.modal__body h3,
.modal__body p,
.modal__body h4,
.modal__title,
.step-title,
.step-description {
    color: #1a1a1a !important;
}

/* --- 2. ЧИНИМ ЗАГОЛОВОК "ОТЗЫВЫ" --- */

/* Принудительно красим заголовок секции в белый */
.reviews .section__title {
    color: #ffffff !important;
    position: relative;
    z-index: 5;
}

/* --- 3. УБИРАЕМ "МЫЛО" С ФОТО В ШАГАХ --- */

.snake-step-bg-overlay {
    /* Полностью убираем размытие, чтобы фото было четким */
    backdrop-filter: none !important;

    /* Делаем белую подложку чуть прозрачнее (0.85), чтобы фото было видно лучше,
       но текст оставался читаемым */
    background: rgba(255, 255, 255, 0.85) !important;
}

/* --- 4. НОВЫЙ ДИЗАЙН ЦИФР (01, 02...) --- */
/* Делаем их "карточкой" внутри карточки: четко и красиво */

.snake-step-icon {
    /* Убираем ту обводку, которая не понравилась */
    border: none !important;

    /* Делаем белый фон с легкой тенью - выглядит как "кнопка" */
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
}

/* Сами цифры делаем яркими и насыщенными (вместо бледных) */
.snake-step-icon span {
    font-weight: 800 !important;
    opacity: 1 !important;
    /* Убираем прозрачность */
}

/* Красим цифры в фирменные цвета */
/* Для левых (фиолетовых) шагов */
.snake-step--left .snake-step-icon span {
    color: #6c5dd3 !important;
    /* Яркий фиолетовый */
}

/* Для правых (зеленых) шагов */
.snake-step--right .snake-step-icon span {
    color: #27ae60 !important;
    /* Яркий зеленый */
}

/* =========================================
   FIX 2.0: МОДАЛЬНЫЕ ОКНА И ЯНДЕКС
   ========================================= */

/* 1. Исправляем текст в модальных окнах (Расчет и Консультация) */
/* Делаем абсолютно весь текст внутри модалок ТЕМНЫМ */
.modal-content,
.modal-content h2,
.modal-content h3,
.modal-content p,
.modal-content label,
.modal-content span,
.modal-content div,
.modal-title,
.calculation-step-title,
.modal__body,
.modal__body h2,
.modal__body h3,
.modal__body p,
.modal__body label,
.modal__body span,
.modal__body div,
.modal__title,
.step-title,
.step-description,
.form-label {
    color: #1a1a1a !important;
}

/* 2. Исправляем звездочку на желтой кнопке Яндекс */
/* Сейчас она желтая на желтом. Делаем её красной (как у бренда) или черной */
.yandex-badge i,
.reviews__header .yandex-badge i {
    color: #000000 !important;
    /* Черная звездочка */
}

.yandex-badge {
    color: #000000 !important;
    /* Текст кнопки тоже черный для читаемости */
}

/* 3. Дополнительно: поля ввода в модальных окнах */
/* Чтобы текст, который вводит клиент, тоже был темным */
.modal-content input,
.modal-content select,
.modal-content textarea,
.modal__body input,
.modal__body select,
.modal__body textarea,
.form-input,
.consultation-widget__input {
    color: #1a1a1a !important;
    background: #f5f5f5 !important;
    /* Чуть серый фон для полей */
    border: 1px solid #ddd !important;
}

/* 4. Заголовок "Отзывы" (если он серый) */
.reviews .section__title {
    color: #ffffff !important;
}

/* 5. Заголовок окна консультации - черный */
.consultation-widget__title {
    color: #1a1a1a !important;
}

/* 6. Черная обводка для цифр в блоке достижений */
.stats-wow .stat-number {
    -webkit-text-stroke: 0.4px #000000 !important;
    text-stroke: 0.4px #000000 !important;
    text-shadow:
        -0.25px -0.25px 0 #000000,
        0.25px -0.25px 0 #000000,
        -0.25px 0.25px 0 #000000,
        0.25px 0.25px 0 #000000,
        0 0 0.75px #000000 !important;
}

/* =========================================
   ГЛАВНАЯ: hero и reviews — заголовки БЕЛЫЕ
   ========================================= */
.hero .hero__badge,
.hero .hero__title,
.hero .hero__desc,
.hero h1,
.hero p.hero__desc {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.reviews .section__title,
.reviews h2.section__title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* =========================================
   БЕЛЫЙ ТЕКСТ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ
   ========================================= */
.hero-text-white {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}