/* =========================================================
   ДМ ГРУПП | ГЛАВНЫЙ ФАЙЛ СТИЛЕЙ (style.css) - ФИНАЛ
   ========================================================= */

/* --- БАЗОВЫЕ НАСТРОЙКИ И ШРИФТЫ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f8f9fa; 
    line-height: 1.6;
    overflow-x: hidden; 
    html, body {
    overflow-x: hidden; /* Запрещает горизонтальную прокрутку */
    width: 100%;
    max-width: 100vw; /* Ограничивает ширину экраном */
}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Оставляем красный только для главных кнопок (призыв к действию) */
.btn-primary {
    background-color: #e63946; 
    color: #fff;
    border: 2px solid #e63946;
}

.btn-primary:hover {
    background-color: #d62839;
    border-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #1a2b4c;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

/* --- ШАПКА САЙТА --- */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; 
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a2b4c;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 3px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}

.nav a:hover {
    color: #1a2b4c;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-weight: 700;
    font-size: 16px;
    color: #1a2b4c;
}

/* --- ПЕРВЫЙ ЭКРАН (HERO) --- */
.hero {
    /* Строгий темный градиент без пестроты */
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 43, 76, 0.75) 100%), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 160px 0; 
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    animation: slowZoom 25s infinite alternate ease-in-out; 
}

@keyframes slowZoom {
    from { background-size: 100% auto; }
    to { background-size: 105% auto; }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px; 
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Убрали красный цвет у заголовка, сделали его строгим */
.hero h1 .highlight {
    color: #ffffff; 
    position: relative;
    display: inline-block;
}
/* Добавили аккуратное подчеркивание вместо цвета */
.hero h1 .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* --- БЛОК УСЛУГ --- */
.services {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: #1a2b4c;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 17px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eaeaea;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #1a2b4c; /* Строгая синяя рамка вместо красной */
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05); 
}

.service-content {
    padding: 30px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 22px;
    color: #1a2b4c;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* --- БЛОК О КОМПАНИИ --- */
.about-bg {
    background-image: url('images/about-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 43, 76, 0.90) 100%);
    padding: 120px 0;
    width: 100%;
    height: 100%;
}

.about-content-center {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.text-white {
    color: #ffffff !important;
    margin-bottom: 40px;
    font-size: 40px;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
}

.about-content-center p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); 
}

.about-stats.centered {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.about-stats.centered .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 16px; 
    padding: 35px 60px; 
    backdrop-filter: blur(12px); 
    transition: all 0.4s ease;
}

.about-stats.centered .stat-item:hover {
    background: rgba(255, 255, 255, 0.1); 
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Строгие белые цифры */
.about-stats.centered .stat-number {
    font-size: 48px; 
    font-weight: 800; 
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); 
}

/* Убрали красный цвет у плюсов, сделали их полупрозрачными */
.about-stats.centered .stat-number span {
    color: rgba(255, 255, 255, 0.5); 
}

.about-stats.centered .stat-label {
    font-size: 14px;
    color: #d0d0d0; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- БЛОК ПАРТНЕРЫ --- */
.partners {
    padding: 100px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.partners-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap; 
    margin-top: 50px;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.partner-card {
    flex: 1;
    min-width: 160px;
    max-width: 240px;
    height: 110px;
    background: #ffffff; 
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05); 
    border: 1px solid #eaeaea;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    animation: zoomIn 0.6s ease-out forwards;
    opacity: 0;
}

.partner-card:nth-child(1) { animation-delay: 0.1s; }
.partner-card:nth-child(2) { animation-delay: 0.2s; }
.partner-card:nth-child(3) { animation-delay: 0.3s; }
.partner-card:nth-child(4) { animation-delay: 0.4s; }

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    filter: grayscale(100%) opacity(0.6); 
    transition: all 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%) opacity(1);
}

/* --- БЛОК КОНТАКТЫ --- */
.contacts {
    padding: 100px 0;
    background-color: #ffffff; 
}

.contacts-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start; 
}

.contact-form-wrapper {
    flex: 1;
    background: #f8f9fa; 
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.contact-info-wrapper {
    flex: 1;
}

.contacts-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a2b4c;
    margin-bottom: 10px;
}

.contacts-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Стилизация полей формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4c;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    resize: vertical; 
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a2b4c; /* Строгая синяя рамка при клике */
    box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1); 
}

.form-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
}

/* Стилизация контактов */
.info-list {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 24px;
    line-height: 1.2;
}

.info-item strong {
    display: block;
    font-size: 16px;
    color: #1a2b4c;
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
    font-size: 15px;
    margin: 0;
}

.info-item a {
    color: #1a2b4c; /* Ссылки стали строгими, без красного */
    font-weight: 600;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #e63946; /* Красный только при наведении */
    text-decoration: underline;
}

/* Карта */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    line-height: 0; 
    height: 420px; 
       width: 100% !important;
         max-width: 100%;
}

/* --- КНОПКА НАВЕРХ --- */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 54px;
    height: 54px;
    background-color: #1a2b4c; /* Сделали кнопку строгой синей */
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 43, 76, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: #e63946; /* При наведении становится красной */
    transform: translateY(-5px) scale(1.05);
}
/* Стиль для кнопки во время отправки */
.btn:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- КРАСИВОЕ УВЕДОМЛЕНИЕ ОБ УСПЕХЕ --- */
.custom-alert {
    position: fixed;
    bottom: -150px; /* Изначально скрыто внизу экрана */
    right: 30px;
    background-color: #2e7d32; /* Благородный зеленый цвет */
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавный выезд */
    max-width: 400px;
}

.custom-alert.show {
    bottom: 30px; /* Выезжает на экран */
}

.alert-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.alert-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
}

.alert-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* На мобильных телефонах прижмем к краям */
@media (max-width: 768px) {
    .custom-alert {
        right: 20px;
        left: 20px;
        max-width: none;
    }
        /* ЖЕСТКИЙ ФИКС ДЛЯ УСЛУГ НА МОБИЛЬНЫХ */
    .services-grid {
        display: flex !important;
        flex-direction: column !important; /* Карточки строго в колонку */
        width: 100%;
        gap: 20px;
    }

    .service-card {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto;
    }

    .service-content h3, 
    .service-content p {
        word-break: break-word; /* Чтобы длинные слова не расширяли карточку */
        font-size: 16px;
    }

    /* Подвал на телефоне */
    .footer-inner {
        flex-direction: column; /* Колонки встают друг под другом */
        gap: 30px;
        text-align: center; /* Центрируем текст */
    }
    
    .footer-logo {
        justify-content: center; /* Центрируем лого */
    }
    
    .footer-desc {
        margin: 0 auto 20px; /* Центрируем описание */
    }
    
    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-nav li {
        margin-bottom: 0;
    }

}

/* =========================================================
   АДАПТИВ ПОД МОБИЛЬНЫЕ ТЕЛЕФОНЫ И ПЛАНШЕТЫ (ФИНАЛ)
   ========================================================= */

/* --- Планшеты и небольшие ноутбуки (до 992px) --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 42px; }
    .about-stats.centered { gap: 15px; }
    .about-stats.centered .stat-item { padding: 25px 30px; }
    .contacts-inner { gap: 30px; }
}

/* --- Мобильные телефоны (до 768px) --- */
@media (max-width: 768px) {
    /* 0. БАЗОВАЯ ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО СКРОЛЛА */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    * {
        max-width: 100%; /* Запрещаем чему-либо быть шире экрана */
    }

    /* 1. ШАПКА САЙТА */
    .header { padding: 10px 0; }
    .header-inner { 
        flex-direction: column; 
        gap: 10px; 
    }
    .nav { 
        gap: 15px; 
        justify-content: center;
    }
    .nav a { font-size: 14px; }
    .logo-img { height: 36px; }
    .logo-title { font-size: 18px; }
    .logo-subtitle { font-size: 9px; }
    
    .header-contacts { 
        flex-direction: row; 
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px; 
    }
    .header-contacts .btn { 
        padding: 8px 12px; 
        font-size: 12px; 
    }
    .phone { 
        font-size: 14px; 
        white-space: nowrap; /* Запрещаем номеру переноситься на новую строку */
    }

    /* 2. ПЕРВЫЙ ЭКРАН */
    .hero {
        padding: 60px 0;
        min-height: auto;
        background-position: center center;
        background-size: cover;
        background-attachment: scroll;
        animation: none;
    }
    .hero-content {
        background: transparent;
        backdrop-filter: none;
        padding: 0 15px; /* Добавили отступы по бокам, чтобы текст не прилипал */
        margin: 0;
    }
    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .hero p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column; /* На телефоне кнопки лучше в колонку */
        gap: 10px;
    }
    .btn-large {
        padding: 12px 10px;
        font-size: 14px;
        width: 100%;
    }

    /* 3. БЛОК УСЛУГ */
    .services { padding: 50px 0; }
    .section-title { font-size: 24px; margin-bottom: 10px; }
    .section-subtitle { font-size: 14px; margin-bottom: 30px; }
    .services-grid { 
        grid-template-columns: 1fr; /* Карточки строго в колонку */
        gap: 20px; 
    }
    .service-content { padding: 20px; }
    .service-content h3 { font-size: 18px; }
    .service-content p { font-size: 14px; }
    .service-img { height: 180px; }

    /* 4. БЛОК О НАС */
    .about-overlay { padding: 50px 0; }
    .text-white { font-size: 24px; margin-bottom: 20px; }
    .about-content-center p { font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
    
    .about-stats.centered {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
        padding-top: 20px;
    }
    .about-stats.centered .stat-item {
        padding: 15px;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    .about-stats.centered .stat-number { font-size: 32px; }
    .about-stats.centered .stat-label { font-size: 12px; }

    /* 5. ПАРТНЕРЫ */
    .partners { padding: 50px 0; }
    .partners-grid { 
        justify-content: center;
        gap: 15px; 
        margin-top: 30px; 
    }
    .partner-card { 
        min-width: 130px;
        max-width: 45%;
        height: 70px; 
        padding: 15px; 
    }

    /* 6. КОНТАКТЫ (Исправляем сплющивание) */
    .contacts { padding: 50px 0; }
    .contacts-inner {
        flex-direction: column; /* Форма и карта друг под другом */
        gap: 30px;
    }
    .contact-form-wrapper { 
        padding: 20px 15px; 
        width: 100%;
    }
    .contact-info-wrapper {
        width: 100%;
    }
    .contacts-title { font-size: 24px; }
    .contacts-subtitle { font-size: 13px; margin-bottom: 20px; }
    .form-group label { font-size: 13px; }
    .form-group input, .form-group textarea { 
        padding: 12px; 
        font-size: 14px; 
        width: 100%;
    }
    .map-wrapper { 
        height: 300px; 
        width: 100%;
    }

    /* 7. КНОПКА НАВЕРХ */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    /* 8. ЗАЩИТА ТЕКСТА */
    h1, h2, h3, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* --- Очень маленькие экраны (до 480px) --- */
@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .section-title { font-size: 22px; }
    .partner-card { max-width: 100%; width: 100%; } 
}



/* ========================================= */
/* --- ПОДВАЛ САЙТА (FOOTER) --- */
/* ========================================= */
.footer {
    background-color: #0f172a; /* Очень темный синий, почти черный */
    color: #94a3b8; /* Серо-голубой текст */
    padding: 60px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* Логотип в подвале */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: 36px; /* Логотип в подвале чуть меньше */
    width: auto;
    filter: grayscale(100%) brightness(200%); /* Делаем логотип светлым для темного фона */
}

.footer-logo span {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 250px;
}

.footer-copy {
    font-size: 12px;
    color: #64748b; /* Самый тусклый цвет */
}

/* Заголовки колонок */
.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Навигация */
.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffffff;
}

/* Контакты */
.footer-phone, .footer-email {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-phone:hover, .footer-email:hover {
    color: #e63946; /* Красный акцент при наведении */
}

/* Юридическая ссылка */
.footer-legal {
    display: inline-block;
    margin-top: 25px;
    font-size: 12px;
    color: #64748b;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-legal:hover {
    color: #ffffff;
}


/* --- ИДЕАЛЬНЫЙ ЧЕКБОКС (100% РАБОТАЕТ) --- */
.checkbox-group {
    margin-top: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    user-select: none;
    /* Убираем выделение текста при клике */
    -webkit-tap-highlight-color: transparent;
}

/* СКРЫВАЕМ НАСТОЯЩИЙ ЧЕКБОКС */
.hidden-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none; /* Чтобы он не мешал кликам */
}

/* НАШ КРАСИВЫЙ КВАДРАТИК */
.custom-checkbox {
    display: inline-block !important; /* Строго inline-block, чтобы не растягивался */
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0px; /* Чуть выравниваем по тексту */
    
     position: relative; /* Добавь эту строку */
    top: 7px; /* Добавь эту строку (можешь менять на 4px или 2px) */
    
}

/* Эффект при наведении на всю строку */
.checkbox-label:hover .custom-checkbox {
    border-color: #1a2b4c;
}

/* КОГДА ЧЕКБОКС ВЫБРАН (работает через соседний селектор +) */
.hidden-checkbox:checked + .custom-checkbox {
    background-color: #e63946 !important;
    border-color: #e63946 !important;
}

/* РИСУЕМ БЕЛУЮ ПТИЧКУ */
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 3px;
    width: 5px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* ПОКАЗЫВАЕМ ПТИЧКУ, КОГДА ВЫБРАН */
.hidden-checkbox:checked + .custom-checkbox::after {
    display: block !important;
}

.checkbox-text {
    flex: 1; /* Текст занимает всё оставшееся место */
    
     margin-left: 10px; /* <-- ВОТ ЭТА СТРОКА. Можешь менять 10px на 15px или 20px */
}

.checkbox-text a {
    color: #1a2b4c;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-notes {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    margin-left: 36px; /* Выравниваем по тексту */
}

.required-note {
    font-size: 12px;
    color: #888;
}



/* Уменьшаем шрифт для текстовой плашки */
.stat-number.text-stat {
    font-size: 22px !important; /* Уменьшили до 22px, чтобы точно влезло */
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    white-space: nowrap; /* ЗАПРЕЩАЕМ перенос на новую строку! */
}