/* ==========================================================================
   ОСНОВНЫЕ СТИЛИ (BODY & MAIN)
   ========================================================================== */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    background-image: url('img/highway.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #000000c4;
    backdrop-filter: blur(3px);
}

/* ==========================================================================
   HEADER & FOOTER
   ========================================================================== */
.header, .footer {
    background-color: #000000c4;
    backdrop-filter: blur(3px);
    color: #ffffff;
    width: 100%;
    padding: 25px 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #000000d2;
    border-bottom: 1px solid #e9ecef;
}

.header-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.header a {
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none !important;
    font-size: 18px;
}

.header button {
    outline: none !important;
}

.header img {
    max-width: 100%;
    height: auto;
}

.header .lang-link {
    font-size: 13px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 0.6;
    transition: 0.3s;
    margin: 0 3px;
}

.header .lang-link.active {
    opacity: 1 !important;
    font-weight: bold;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.footer {
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

.footer a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.logo {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 1px;
    cursor: default;
}

/* ==========================================================================
   КОНТЕЙНЕРЫ И КАРТОЧКИ
   ========================================================================== */
.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    text-align: center;
}

.content-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    text-align: center;
}

/* ==========================================================================
   HERO-СЕКЦИЯ
   ========================================================================== */
.hero-top-text .content-card {
    color: #ffffff;
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
}

.hero-top-text h1 {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 40px;
    line-height: 1.2;
}

.hero-top-text p {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0px;
    padding-top: 5px;
}

.feature-item {
    position: relative;
    padding-left: 25px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-align: left;
    width: fit-content;
    min-width: 200px;
}

.feature-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.feature-item p {
    line-height: 2;
    margin: 0;
}

/* ==========================================================================
   СЛАЙДЕР
   ========================================================================== */
.hero-carousel-full {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-bottom: 1px solid #e9ecef;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* ==========================================================================
   КНОПКИ И ЦЕНЫ
   ========================================================================== */
.tg-hero-wrapper, 
.phone-hero-wrapper {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 10px auto;
}

.before-button-text {
    color: #ffffff;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.tg-button, 
.btn-call {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}

.tg-button { background-color: #0088cc; }
.tg-button:active { transform: scale(0.98); }

.btn-call { background-color: #28a745; }
.btn-call:active { transform: scale(0.98); }

section.price-section {
    width: 90% !important;
    padding-top: 20px;
}

.price-table {
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    width: 90%;
}

.price-item:last-child {
    border-bottom: none;
}

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ И ОБЩИЕ
   ========================================================================== */
img {
    max-width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    transition: 0.3s;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.mobile-overlay.open {
    display: flex;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.overlay-link {
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}




/* ==========================================================================
   АДАПТИВНОСТЬ: ПЛАНШЕТЫ И ДЕСКТОПЫ
   ========================================================================== */

/* 1. ПЛАНШЕТЫ (iPad Mini и выше, от 768px) */
@media screen and (min-width: 768px) {
    .hero-top-text h1 {
        font-size: 32px !important; /* Увеличиваем заголовок */
    }
    .hero-top-text p {
        font-size: 19px !important; /* Увеличиваем основной текст */
    }
    /* Ограничиваем ширину контейнера, чтобы слайдер и текст не «гуляли» по экрану */
    section.hero, 
    section.hero .container {
        max-width: 700px !important; /* Фиксируем ширину блока */
        margin: 0 auto !important;   /* Центрируем блок */
        width: 90% !important;       /* Немного отступов по бокам */
    }
    .price-section .container {
        max-width: 800px !important; /* Ограничиваем ширину */
        margin: 0 auto !important;   /* Центрируем */
        width: 90% !important;
    }
    
}

/* ==========================================================================
   АДАПТАЦИЯ ДЛЯ ДЕСКТОПОВ (От 1024px)
   ========================================================================== */
@media screen and (min-width: 1024px) {
    /* Делаем секцию hero главным флекс-контейнером */
    section.hero {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 40px 20px !important;
        gap: 30px !important;
    }

    /* Слайдер и Контейнер с контентом делят экран пополам (по 48% ширины) */
    section.hero > .hero-carousel-full,
    section.hero > .container {
        flex: 0 0 48% !important;
        width: 48% !important;
        margin: 0 !important;
    }

    /* Сбрасываем внутренний флекс контейнера, чтобы его содержимое не вытягивалось в строку */
    section.hero > .container {
        display: block !important;
    }

    /* Запрещаем перенос текста в списке преимуществ */
    .hero-features-list .feature-item p {
        white-space: nowrap !important;
    }
}