/* Общий фон страницы */
body {
    background-color: #212529;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/background.png');

    /* Ключевые свойства */
    /* background-size: cover;        /* Вариант 1: одно большое изображение */
    /* background-size: 80%;       /* Вариант 2: 80% ширины экрана */
     background-size: 2000px;    /* Вариант 3: фиксированный размер */

    background-repeat: no-repeat;  /* ❗ Не повторять */
    /* background-repeat: repeat;   /* Только если хочешь узор */

    background-position: center;   /* По центру */
    opacity: 0.05;                 /* Прозрачность 6% */
    z-index: -1;
    pointer-events: none;
}


/* Логотип */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Пункты меню — как текст */
.menu-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: #ffffff;
    text-decoration: none;
}



/* Вертикальная линия-разделитель */
.menu-divider {
    display: inline-block;
    width: 1px;
    height: 1em; /* Высота как у текста */
    background-color: #DB3138; /* Указанный цвет */
}



/* Адрес — одна строка, белый с прозрачностью, мелкий шрифт */
.address {
    color: rgba(255, 255, 255, 0.7); /* белый, 70% прозрачности */
    font-size: 0.85rem; /* чуть меньше обычного */
    white-space: nowrap; /* чтобы не переносилось */
    overflow: hidden;
    text-overflow: ellipsis;
}





/* Гарантированно липкая шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 1030; /* Выше других блоков */
    transition: background-color 0.3s ease;
    backdrop-filter: blur(4px); /* Опционально: лёгкий размытый фон */
    -webkit-backdrop-filter: blur(4px);
}



/* === БАННЕР ПРИВЕТСТВИЯ === */
.welcome-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1200px;
}


.welcome-image {
    height: 400px;
    object-fit: cover;
    opacity: 0.25;
    width: 100% !important;
    display: block;
}

/* Контент — заголовок по центру */
.welcome-content h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.welcome-content p {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}




/* Контейнер для видео */
.video-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}





/* === СЕКЦИЯ СТАТИСТИКИ === */
.statistics-section {
    background-color: #212529;
    padding-top: 3rem;
    padding-bottom: 3rem;
}



/* Заголовок — цифра полностью прозрачная, но с рамкой */
.statistics-section h3 {
    font-size: 4.5rem;
    font-weight: 700;
    color: transparent; /* Полная прозрачность — цифра невидима */
    margin-bottom: 0.75rem;
    line-height: 1;
    padding: 0.3em 0.6em;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9); /* Доп. обводка для чёткости */
}



/* Эффект неоновой подсветки при наведении */
.statistics-section .col-6,
.statistics-section .col-md-3 {
    transition: transform 0.3s ease;
}

.statistics-section .col-6:hover,
.statistics-section .col-md-3:hover {
    transform: scale(1.05); /* Увеличение на 5% */
    z-index: 1; /* Поднимаем над соседями */
}

/* Обёртка для эффекта — чтобы тень была у всего блока */
.col-6,
.col-md-3 {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Лёгкий скругление при увеличении */
}

/* Добавляем неоновую подсветку через ::before */
.col-6::before,
.col-md-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(219, 49, 56, 0.1); /* Тихая подсветка */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

/* При наведении — включаем неон */
.col-6:hover::before,
.col-md-3:hover::before {
    opacity: 1;
    box-shadow:
        0 0 8px rgba(219, 49, 56, 0.1),
        0 0 20px rgba(219, 49, 56, 0.15),
        0 0 30px rgba(219, 49, 56, 0.1);
}





/* Для фото в блоке "текст + фото" */
.text-with-image-section .img-fluid {
    max-height: 550px;
    width: auto;
    object-fit: scale-down;
    border-radius: 8px !important;
    transition: transform 0.2s ease;
}

.text-with-image-section .img-fluid:hover {
    transform: scale(1.3);
}























/* === РАЗДЕЛИТЕЛЬ С ЗАГОЛОВКОМ === */
.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 4rem 0;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    margin: 0 15px;
}

.divider-text {
    color: #ffffff;
    font-weight: 700;
    padding: 0 10px;
}







/* === СЕКЦИЯ УСЛУГИ === */
.services-section {
    background-color: #212529;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Контейнер для слайдера — с отступами по бокам под стрелки */
.services-slider-wrapper {
    position: relative;
    padding-left: 60px; /* место под левую стрелку */
    padding-right: 60px; /* место под правую */
    margin: 0 auto;
}

/* === КАРТОЧКИ УСЛУГ — СТИЛЬ И ЭФФЕКТ НАВЕДЕНИЯ === */
.card.service-card {
    background-color: #2c3238;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Неоновая подсветка при наведении */
.card.service-card:hover {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 12px rgba(219, 49, 56, 0.1),
        0 0 24px rgba(219, 49, 56, 0.1),
        0 0 32px rgba(219, 49, 56, 0.1);
    border-color: rgba(219, 49, 56, 0.4);
}

/* Заголовок карточки */
.card-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 50px;
}


/* === ЕДИНЫЙ СТИЛЬ ДЛЯ ОПИСАНИЙ В СЕКЦИЯХ === */
.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.section-description p {
    margin-bottom: 1rem;
}

.section-description a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.section-description a:hover {
    color: #ffffff;
}

.card strong {
    color: #ffffff;
    font-size: 1.1rem;
}

/* Кнопка "Записаться" в карточке услуги */
.btn-book {
    background-color: #DB3138;
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-book:hover {
    background-color: #c42a2f;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
}


/* Контейнер прокрутки — строго под 3 карточки */
.services-carousel-container {
    width: 1098px; /* 350×3 + 24×2 */
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
}

/* Внутренний скролл */
#servicesCarousel {
    display: flex;
    gap: 24px; /* жёстко в пикселях */
    padding: 4px 0;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    list-style: none;
}



/* Ширина карточки */
.service-card-wrapper {
    flex: 0 0 350px;
    width: 350px;
}

/* Стрелки */
.btn-slider-prev,
.btn-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #2c3238;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-slider-prev {
    left: 0;
}

.btn-slider-next {
    right: 0;
}

.btn-slider-prev:hover,
.btn-slider-next:hover {
    background-color: #31363b;
    transform: translateY(-50%) scale(1.05);
}

/* Скрытие стрелок, если мало карточек (опционально) */
#servicesCarousel::-webkit-scrollbar {
    display: none;
}











/* === КОНТАКТЫ И КАРТА === */
.contacts-section {
    background-color: #212529;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.map-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
}







/* На маленьких экранах — центрирование и перенос при необходимости */
@media (max-width: 767.98px) {
    .address {
        white-space: normal;
        text-align: center;
        font-size: 0.8rem;
    }

    .header .col-md-3,
    .header .col-md-6 {
        text-align: center !important;
    }

    .header .col-md-3.text-md-start {
        text-align: center;
    }

    small {
        font-size: 0.85rem;
    }
}




