/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
    /* Предотвращение горизонтальной прокрутки */
    max-width: 100%;
    overflow-x: hidden; 
}
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* Предотвращение горизонтальной прокрутки */
    max-width: 100%;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; margin-bottom: 0.5rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

:root {
    --primary-blue: #004b93;
    --accent-orange: #f39c12;
    --bg-gray: #f0f2f5;
    --bg-blue-light: #e1f0fa;
    --white: #ffffff;
}

#scrollTopBtn {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    font-size: 20px; border: none; outline: none; background-color: var(--accent-orange); color: white;
    cursor: pointer; padding: 15px; border-radius: 50%; width: 50px; height: 50px;
    align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s;
}
#scrollTopBtn:hover { background-color: #d35400; transform: translateY(-5px); }

/* =========================================
   2. ШАПКА И МЕНЮ
   ========================================= */
header {
    position: sticky; top: 0; background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; padding: 10px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: block; }
.logo img { height: 55px; width: auto; transition: opacity 0.3s; }
.logo:hover img { opacity: 0.8; }

/* Навигация */
.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }

/* Ссылка в меню */
.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative; 
}

/* АНИМАЦИЯ МЕНЮ (Подчеркивание) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-orange);
    transition: width 0.3s ease-in-out;
}
.nav-links a:hover::after {
    width: 100%; 
}

/* Кнопка Контакты (без подчеркивания, но с эффектом кнопки) */
.btn-contact {
    background: var(--accent-orange); color: #fff !important;
    padding: 8px 20px; border-radius: 20px; transition: 0.3s;
}
.btn-contact::after { display: none; } 
.btn-contact:hover { background: #e67e22; transform: translateY(-2px); }

/* Языки в меню */
.lang-item {
    margin-left: 50px !important;
    display: flex; align-items: center; gap: 5px;
}
.lang-link {
    color: #888 !important; font-weight: 600; font-size: 0.9rem; transition: 0.3s;
}
.lang-link::after { display: none; } 
.lang-link:hover { color: var(--accent-orange) !important; }
.lang-link.active { color: var(--primary-blue) !important; font-weight: 700; }
.lang-sep { color: #ddd; font-size: 0.8rem; }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--primary-blue); margin: 5px; transition: 0.3s; }

/* =========================================
   3. HERO & SECTIONS
   ========================================= */
.hero {
    height: 90vh; position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; overflow: hidden; 
}
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay {
    background: rgba(0, 50, 100, 0.3); width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.hero-content h1 { font-size: 3rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); margin-bottom: 20px; }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; text-shadow: 1px 1px 5px rgba(0,0,0,0.7); }
.btn-primary {
    background: var(--accent-orange); color: white; padding: 15px 35px;
    border-radius: 30px; font-weight: 700; border: none; cursor: pointer; display: inline-block;
}

.section { padding: 70px 0; }
.bg-gray { background-color: var(--bg-gray); }
.bg-blue-light { background-color: var(--bg-blue-light); }
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 10px; text-transform: uppercase; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent-orange); margin: 10px auto 40px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 40px; margin-top: -30px; }

/* FLEXBOX СЕТКА */
.tours-grid, .services-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточки */
.tour-card {
    background: #fff; 
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    transition: 0.3s;
    display: flex; 
    flex-direction: column; 
    border: 1px solid #eee;
    width: 350px; 
    max-width: 100%;
}

.tour-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.tour-img-wrapper { width: 100%; height: 200px; overflow: hidden; }
.tour-pic { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tour-card:hover .tour-pic { transform: scale(1.1); }
.tour-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tour-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tour-content p { font-size: 0.95rem; color: #666; margin-bottom: 15px; flex-grow: 1; }
.tour-features { display: flex; gap: 15px; margin-bottom: 20px; color: #777; font-size: 0.9rem; }
.tour-features i { color: var(--accent-orange); margin-right: 5px; }
.price-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; }
.price-tag { font-size: 1.15rem; font-weight: 700; color: var(--primary-blue); }
.btn-small { padding: 8px 15px; border: 2px solid var(--accent-orange); color: var(--accent-orange); font-weight: 600; border-radius: 8px; transition: 0.3s; font-size: 0.9rem; }
.btn-small:hover { background: var(--accent-orange); color: #fff; }

/* Компактные стили для услуг */
.service-category-title {
    font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 25px;
    padding-left: 15px; border-left: 4px solid var(--accent-orange); text-transform: uppercase; letter-spacing: 1px;
}
.service-img-compact { height: 150px !important; }
.service-content-compact { padding: 15px !important; }
.service-content-compact h3 { font-size: 1.1rem; margin-bottom: 5px; }
.service-content-compact p { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.4; }
.compact-row { border-top: none !important; padding-top: 0 !important; }
.compact-row .btn-small { width: 100%; text-align: center; padding: 6px 0; }

/* =========================================
   4. КОНТАКТЫ И ПОДВАЛ
   ========================================= */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.contacts-wrapper { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info, .contact-form { flex: 1 1 300px; }
.contact-item { display: flex; margin-bottom: 20px; }
.contact-item i { font-size: 1.5rem; color: var(--accent-orange); margin-right: 15px; min-width: 25px; }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icon {
    width: 45px; height: 45px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary-blue); box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: 0.3s;
}
.social-icon:hover { transform: translateY(-3px); }
.social-icon.inst:hover { color: #c13584; }
.social-icon.fb:hover { color: #1877f2; }
.social-icon.tg:hover { color: #0088cc; }
.social-icon.wa:hover { color: #25d366; }
.contact-form { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.contact-form input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.full-width { width: 100%; }
footer { background: #222; color: #888; text-align: center; padding: 25px 0; margin-top: 50px; }

/* =========================================
   5. АДАПТИВНОСТЬ
   ========================================= */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed; right: 0; top: 0; height: 100vh;
        background-color: #fff; display: flex; flex-direction: column;
        align-items: center; justify-content: flex-start; padding-top: 100px;
        width: 70%; transform: translateX(100%); transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2); z-index: 999;
    }
    .nav-links li { margin: 15px 0; opacity: 1; }
    /* Сбрасываем отступ языков на мобильном */
    .lang-item { margin-left: 0 !important; margin-top: 20px; } 

    .burger { display: block; z-index: 1001; position: relative; }
    .hero-content h1 { font-size: 2rem; }
    .tour-card { width: 100%; }
    .contacts-wrapper { flex-direction: column; }
    
    /* УСИЛЕННЫЕ ПРАВИЛА ДЛЯ УМЕНЬШЕНИЯ ШРИФТА В СЕКЦИИ УСЛУГ */
    .section-title {
        font-size: 1.8rem; /* Дополнительно уменьшаем главный заголовок секции */
    }
    .service-category-title {
        font-size: 1.2rem; /* Уменьшаем заголовок подкатегории */
        white-space: normal; /* Разрешаем перенос, если не поместится, но стараемся вместить */
        line-height: 1.2; /* Уменьшаем межстрочный интервал, если текст перенесется */
    }
    .service-content-compact h3 {
        font-size: 0.95rem; /* Уменьшаем заголовок карточки услуги */
        white-space: normal;
    }
}

.nav-active { transform: translateX(0%); }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }