@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Russo+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* FIX: Важно для корректных размеров */
}

body {
    background-color: #06080B;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow-x: hidden; /* Убираем горизонтальный скролл на всякий случай */
}

a {
    text-decoration: none;
}

/* --- ГЛОБАЛЬНЫЕ КЛАССЫ --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* FIX: Делаем все картинки адаптивными по умолчанию */
img {
    max-width: 100%;
    height: auto;
}

/* --- HEADER --- */
header {
    background-image: url("/images/back.png");
    width: 100%;
    min-height: 100vh; /* FIX: min-height вместо height, чтобы контент не обрезался */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* FIX: cover лучше заполняет фон */
    overflow: hidden;
    display: flex;          /* FIX: Используем флекс для вертикального центровки */
    flex-direction: column;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 30px;
    width: 100%;
    /* padding: 0 20px; Убрал, так как есть контейнер, но можно оставить */
}

.logo_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo_text {
    font-family: 'Russo One';
    font-size: 14px;
    margin-top: 5px;
}

.lang {
    position: absolute;
    right: 150px; /* FIX: Прижимаем к правому краю контейнера (или экрана) */
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Russo One';
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang a {
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease-in-out;
}

.lang a:hover, .lang a.lang_active {
    color: #EF1923;
}

.sep {
    position: relative;
    top: -1px;
    color: #fff;
}

/* Текст в шапке */
.top_text {
    font-family: 'Russo One';
    font-size: 64px; /* На мобильном уменьшим */
    text-align: center;
    margin-top: 260px;
    line-height: 1.1;
}

.sub_text {
    font-size: 40px;
    margin-top: 10px;
}

/* Кнопки звонка */
.call_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
    flex-wrap: wrap; /* FIX: Чтобы переносились на мобильном */
}

.call, .message {
    width: 227px;
    padding: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    transition: 0.3s;
    font-family: 'Russo One', sans-serif;
}

.call {
    background-color: #EF1923;
}

.message {
    border: 3px solid #fff;
    padding: 10px;
}

.call:hover { background-color: #70090e; }
.message:hover { background-color: #EF1923; border-color: #EF1923;}

.social_media {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* --- ОБЩИЕ ЗАГОЛОВКИ --- */
.title {
    text-align: center;
    font-size: 32px;
    font-family: 'Russo One';
    margin-top: 100px; /* Чуть уменьшил отступ */
    margin-bottom: 40px;
}

/* --- Секция "Про Сервис" (Как на картинке) --- */
.about_section {
    padding-bottom: 80px;
}

/* Общая карточка (Контейнер) */
.about_card {
    display: flex;              /* Ставим картинку и текст в ряд */
    max-width: 1100px;          /* Ограничиваем ширину, чтобы было аккуратно */
    width: 100%;
    margin: 0 auto;             /* Центрируем саму карточку */
    background-color: #EF1923;  /* Красный фон (просвечивает, если что-то сдвинется) */
    border-radius: 0 200px 0 200px; /* Скругление ТОЛЬКО правого верхнего угла карточки */
    overflow: hidden;           /* Обрезаем всё, что вылезает за скругление */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Тень для красоты */
}

/* Левая часть: Блок с картинкой */
.about_image_block {
    width: 45%;                 /* Картинка занимает 45% ширины */
    position: relative;
    /* Важно: убираем любые отступы, чтобы блоки слиплись */
}

.about_image_block img {
    width: 100%;
    height: 100%;               /* Растягиваем на всю высоту красного блока */
    object-fit: cover;          /* Картинка обрезается, но заполняет всё пространство без искажений */
    display: block;             /* Убираем полоску снизу */
}

/* Правая часть: Текст */
.about_info_block {
    width: 55%;                 /* Текст занимает остальное место */
    padding: 50px 60px;         /* Внутренние отступы */
    display: flex;
    flex-direction: column;
    justify-content: center;    /* Центрируем текст по вертикали */
    background-color: #EF1923;  /* Красный цвет фона */
}

.about_desc {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 40px;        /* Отступ до кнопки */
}

.white_bold {
    font-weight: 700;
    font-size: 20px;
}

/* Кнопка с формой "листика" (как на макете) */
.btn_leaf {
    display: inline-block;
    max-width: 300px;           /* Ограничиваем ширину кнопки */
    text-align: center;
    padding: 15px 30px;
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    /* Форма кнопки: скругленные углы по диагонали */
    border-radius: 30px 0 30px 0; 
    margin: 0 auto;
    transition: all 0.3s ease;
}

.btn_leaf:hover {
    background-color: #fff;
    color: #EF1923;
    border-radius: 0 30px 0 30px; /* При наведении меняем форму (анимация) */
}


/* --- АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) --- */
@media (max-width: 900px) {
    .about_card {
        flex-direction: column; /* Картинка сверху, текст снизу */
        border-radius: 10px;    /* На телефоне просто скруглим углы */
        max-width: 500px;       /* Чтобы не было слишком широко на планшете */
    }

    .about_image_block {
        width: 100%;
        height: 300px;          /* Фиксируем высоту картинки на телефоне */
    }

    .about_info_block {
        width: 100%;
        padding: 40px 20px;     /* Меньше отступов */
        text-align: center;     /* Текст по центру */
    }

    .btn_leaf {
        width: 100%;            /* Кнопка на всю ширину */
        box-sizing: border-box;
    }
}
/* --- УСЛУГИ --- */
.services {
    background-color: #06080B;
    padding: 0 0 80px 0;
    display: flex;
    justify-content: center;
}

.services_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service_card {
    border: 2px solid #EF1923;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #06080B;
    transition: 0.3s ease;
}

.service_card:hover {
    box-shadow: 0 0 20px rgba(239, 25, 35, 0.4);
    transform: translateY(-5px);
}

.card_icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service_card h3 {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
}

.service_card p {
    font-family: 'Montserrat', sans-serif;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

/* --- ПРЕИМУЩЕСТВА --- */
.advantages {
    background-color: #06080B;
    padding: 0 0 60px 0;
}

.advantages_row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.adv_circle {
    width: 200px;
    height: 200px;
    background-color: #EF1923;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 5px 0px #8b0f15;
    transition: transform 0.3s ease;
}

.adv_circle:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #8b0f15;
}

.adv_circle img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.adv_circle p {
    font-family: 'Russo One', sans-serif;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    max-width: 160px;
}

/* --- СЛАЙДЕР --- */
.gallery_section {
    padding: 0 0 50px 0;
    background-color: #06080B;
}

.slider_frame {
    position: relative;
    max-width: 1000px;
    width: 100%;        /* FIX: Чтобы не вылезал */
    margin: 0 auto;
    border: 3px solid #EF1923;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.slider_track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #EF1923;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background 0.3s;
}

.slider_btn:hover { background-color: #c9151e; }
.prev_btn { left: 20px; }
.next_btn { right: 20px; }

.slider_dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap; /* Если точек много */
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 2px;
}
.active_dot { background-color: #EF1923; }

/* --- КОНТАКТЫ --- */
.contact {
    text-align: center;
    font-family: 'Russo One', sans-serif;
}

.contact_call {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
}

.phone_call a { color: #fff; font-size: 32px; }

.contact_map {
    margin-top: 40px;
    width: 100%; /* FIX: Карта на всю ширину контейнера */
    height: 400px; /* Фиксируем высоту */
}

/* --- FOOTER --- */
.footer {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
}

.footer_text { margin-top: 20px; }
.lang_footer {
    font-family: 'Russo One', sans-serif;
    margin: 20px 0;
}
.lang_footer a { color: #fff; transition: 0.3s; }
.lang_footer a:hover, .lang_footer a.active_footer { color: #EF1923; }


/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (САМОЕ ВАЖНОЕ)
   ========================================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .services_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about_text {
        padding: 40px;
    }
}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {
    /* HEADER */
    header {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    
    .logo {
        flex-direction: column; /* Логотип сверху, текст под ним */
        margin-top: 20px;
    }
    
    .lang {
        position: static; /* Убираем absolute, ставим в поток */
        transform: none;
        margin-top: 15px;
        justify-content: center;
    }
    
    .top_text {
        font-size: 36px; /* Уменьшаем шрифт заголовка */
        margin-top: 60px;
    }
    
    .sub_text {
        font-size: 18px;
    }
    
    .call_buttons {
        flex-direction: column; /* Кнопки друг под другом */
        width: 100%;
    }
    
    .call, .message {
        width: 100%; /* Кнопки на всю ширину */
        max-width: 300px;
    }

    /* ЗАГОЛОВКИ */
    .title {
        font-size: 24px;
        margin-top: 60px;
    }

    /* О НАС */
    .about_us {
        flex-direction: column;
    }
    
    .about_text {
        width: 100%;
        border-radius: 20px; /* Более аккуратные углы */
        padding: 30px;
        font-size: 16px;
    }

    /* УСЛУГИ */
    .services_grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 20px;
    }
    .service_card {
        padding: 30px 15px;
    }

    /* ПРЕИМУЩЕСТВА (Круги) */
    .adv_circle {
        width: 150px;
        height: 150px;
    }
    .adv_circle img {
        width: 40px;
        height: 40px;
    }
    .adv_circle p {
        font-size: 12px;
    }
    .advantages_row {
        gap: 20px;
    }

    /* СЛАЙДЕР */
    .slider_btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .prev_btn { left: 10px; }
    .next_btn { right: 10px; }
    
    /* КОНТАКТЫ */
    .contact_call {
        font-size: 24px;
    }
    .phone_call a {
        font-size: 22px;
    }
    .contact_map {
        height: 300px; /* Карта чуть ниже на телефоне */
    }
}