*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Общие стили */
        :root {
            --primary-blue: #0056b3; /* Акцентный синий */
            --text-dark: #333;
            --text-on-bg: #fff; /* Белый текст для фона */
        }

        body {
            margin: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-dark);
        }

        /* --- ХЭДЕР (Минималистичный) --- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%;
            background-color: #fff;
            /* Убрал явный фон, оставил белый и легкую тень для отделения */
            box-shadow: 0 1px 5px rgba(0,0,0,0.1); 
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-blue);
            text-transform: uppercase;
            text-decoration: none;
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 25px;
            margin: 0;
            padding: 0;
        }

        nav a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: var(--primary-blue);
        }
        .nav-menu{
            display: flex;
            align-items: center;
        }

        /* --- HERO СЕКЦИЯ С ФОНОВЫМ ФОТО --- */
:root {
    /* Основные цвета */
    --brand-blue: #0066cc;       /* Глубокий профессиональный синий */
    --brand-light: #4da6ff;      /* Яркий акцент */
    --text-white: #ffffff;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.hero-pro {
    position: relative;
    width: 100%;
    min-height: 700px; /* Учет мобильных браузеров */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/foneglav.jpeg') no-repeat center center;
    background-size: cover;
    font-family: var(--font-stack);
    padding: 0 20px;
    overflow: hidden;
    text-align: center;
}

/* Градиентный оверлей:
   Делает текст читаемым и добавляет дорогой синий оттенок.
   Снизу темнее, чтобы кнопки выделялись.
*/
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(5, 20, 40, 0.6) 0%, 
        rgba(0, 50, 100, 0.7) 50%, 
        rgba(5, 10, 25, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    /* Плавное появление */
    animation: fadeUp 0.8s ease-out forwards;
}

/* Маленькая плашка над заголовком */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

/* Заголовок */
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

/* Подзаголовок */
.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* Блок кнопок */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 36px;
    border-radius: 6px; /* Квадратичные скругления = инженерия/строгость */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Анимация */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ========================================= */

/* 1000px - Компактные ноутбуки */
@media (max-width: 1000px) {
    .hero-title { font-size: 3.5rem; }
}

/* 800px - Планшеты */
@media (max-width: 800px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; max-width: 550px; }
    .hero-actions { gap: 15px; }
    .btn-primary, .btn-secondary { padding: 16px 28px; font-size: 0.9rem; }
}

/* 600px - Крупные телефоны */
@media (max-width: 600px) {
    .hero-title { font-size: 2.4rem; }
}

/* 500px - СТАРТ МОБИЛЬНОГО ДИЗАЙНА */
@media (max-width: 500px) {
    .hero-pro {
        /* Меняем выравнивание для удобства */
        align-items: center; 
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 15px;
    }

    .hero-title {
         font-size: 11vw;
        margin-bottom: 20px;
        /* Предотвращаем перенос длинных слов, если вдруг появятся */
        word-wrap: break-word; 
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
        /* Скрываем лишний текст на совсем мелких экранах, чтобы не забивать эфир */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Кнопки встают друг под друга */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* На всю ширину экрана */
        padding: 18px 0; /* Высокая область клика */
    }
}

/* 450px - Стандартные iPhone / Android */

/* 400px - Узкие экраны (iPhone SE и старые) */
@media (max-width: 400px) {
    .hero-pro { padding: 60px 15px; } /* Чуть меньше отступы по бокам */
    .hero-subtitle { font-size: 0.9rem; }
    
    .btn-primary, .btn-secondary {
        font-size: 0.85rem;
        padding: 15px 0;
    }
}


        .logo img{
            width: 60px;
        }
        .logo{
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            header {
                gap: 15px;
                padding: 15px;
            }
            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
            }
            .hero h1 {
                font-size: 2.5rem;
            }
             .hero p {
                font-size: 1.1rem;
            }
        }
        /* --- СЕКЦИЯ С ТЕКСТОМ (Типографика) --- */
.info-section {
    padding: 100px 5% 20px 5%; /* Много воздуха сверху и снизу */
    background-color: #fff;
}

.info-container {
    max-width: 1300px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(185, 185, 185, 0.654);
}

/* Верхняя часть: Заголовок и вводный текст */
.info-header {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Левая колонка уже, правая шире */
    gap: 50px;
    align-items: baseline;
}

.info-label {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.info-title {
    font-size: 2.5rem;
    font-weight: 300; /* Тонкий шрифт выглядит дороже */
    line-height: 1.2;
    margin: 0;
    color: #222;
}

.info-lead {
    font-size: 23px;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}
/* --- СЕКЦИЯ УСЛУГ (ИСПРАВЛЕННАЯ) --- */
.services-section {
    padding: 20px 5%;
    background-color: #fff;
    max-width: 1300px;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #222;
}

/* Сетка для ДВУХ КОЛОНОК (Геология и Геодезия) */
.columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Расстояние между большими колонками */
    align-items: start;
}

/* Заголовки колонок (Геология/Геодезия) */
.column-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

/* Стили для АККОРДЕОНА (сами услуги) */
.service-item {
    border-top: 1px solid #e0e0e0;
}

.service-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-btn:hover {
    color: var(--primary-blue);
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    padding-right: 15px;
    line-height: 1.4;
    color: #000;
}

/* Плюсик */
.icon-plus {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Чтобы плюсик не сжимался */
}

/* Скрытый контент */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.content-inner {
    padding-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Активное состояние (крестик) */
.service-item.active .icon-plus {
    transform: rotate(45deg);
}

.service-item.active .accordion-btn {
    color: var(--primary-blue);
}

/* Адаптивность */
@media (max-width: 900px) {
    .columns-wrapper {
        grid-template-columns: 1fr; /* Одна колонка на планшетах/телефонах */
        gap: 50px;
    }
}
/* Адаптивность для текста */
@media (max-width: 768px) {
    .info-header {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-section {
        padding: 60px 5%;
    }
    
    .info-title {
        font-size: 2rem;
    }
}
@media (max-width: 450px){
    .info-title{
        font-size: 30px;
    }
    .info-lead{
        font-size: 18px;
    }
    .hero-pro{
         min-height: 600px;
    }
}
/* --- СЕКЦИЯ ЛИЦЕНЗИЙ --- */
.licenses-section {
    padding: 80px 5%;
    text-align: center;
}

.licenses-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Сетка для 3-х лицензий */
.licenses-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Оформление миниатюры */
.license-card {
    width: 200px; /* Размер миниатюры */
    height: 280px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Эффект при наведении на миниатюру */
.license-card:hover {
    transform: translateY(-10px); /* Всплывает вверх */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.license-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Или contain, если важно видеть весь документ сразу */
    display: block;
}

/* --- LIGHTBOX (Модальное окно) --- */
.lightbox {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 2000; /* Поверх всего, даже хэдера */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Темный полупрозрачный фон */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Состояние "Открыто" для плавной анимации */
.lightbox.open {
    display: flex;
    opacity: 1;
}

/* Увеличенное изображение */
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 5px solid #fff;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

/* Кнопка закрыть (крестик) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-blue);
}
.partner {
    padding: 60px 5%;
    text-align: center;
}
.partner h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-blue);
}
.partner div {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.partner img {
    width: 150px;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}
.conec{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2%;
    background-color: #f1f1f1;
    font-size: 0.9rem;
}
.conec span{
    color: red;
}
.conec a{
    text-decoration: none;
    color: #333;
}
@media (max-width: 570px){
    .conec{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
@media (max-width: 375px){
    .conec{
        font-size: 0.8rem;
    }
}
/* --- СЕКЦИЯ ПРЕИМУЩЕСТВ (Центрированная) --- */
.why-simple-section {
    padding: 100px 5%; /* Большие отступы, как в секции "О компании" */
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center; /* Главная центровка всего текста */
}

/* Верхняя часть (Заголовок) */
.why-simple-header {
    margin: 0 auto 80px auto; /* auto по бокам центрирует сам блок */
    max-width: 800px;
}

.why-simple-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    line-height: 1.2;
}

.why-simple-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
}

/* Сетка */
.simple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки */
    gap: 60px; /* Отступы между блоками */
}

/* Отдельный блок преимущества */
.simple-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует иконку и контент по горизонтали */
}

/* Иконка */
.simple-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.simple-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #222;
}

.simple-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    max-width: 450px; /* Ограничиваем ширину строки для читаемости */
}

/* Мобильная версия */
@media (max-width: 768px) {
    .simple-grid {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 50px;
    }
    .why-simple-section {
        padding: 60px 5%;
    }
    .why-simple-title {
        font-size: 2rem;
    }
}
@media (max-width: 450px){
    .simple-grid {
        gap: 20px;
    }
    .why-simple-header{
        margin: 0 auto 30px auto;
    }
    .licenses-section{
        padding: 20px 0;
    }
}
/* --- КНОПКА "НАВЕРХ" --- */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue); /* Ваш синий цвет */
    color: #fff;
    border: none;
    border-radius: 50%; /* Делает кнопку круглой */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999; /* Чтобы была поверх всего */
    
    /* Скрываем кнопку по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Класс, который мы добавим через JS, чтобы показать кнопку */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #004494; /* Темнее при наведении */
    transform: translateY(-5px); /* Легкое всплытие */
}


/* --- ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ --- */
.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    border: 1px solid #ccc;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.lang-btn.active {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* --- МОБИЛЬНОЕ МЕНЮ (БУРГЕР) --- */
.burger-menu {
    display: none; /* Скрыто на ПК */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 2001; /* Поверх всего */
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация крестика при открытии */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- АДАПТАЦИЯ ХЭДЕРА И МЕНЮ --- */
@media (max-width: 900px) {
    header {
        justify-content: space-between; /* Лого слева, бургер справа */
        padding: 15px 5%;
    }

    .burger-menu {
        display: flex;
    }

    /* Стиль выезжающего меню */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px); /* Эффект размытия фона */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Скрыто за экраном */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-menu.open {
        transform: translateX(0); /* Выезжает */
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 40px;
    }

    .nav-menu a {
        font-size: 1.5rem; /* Крупный текст */
        font-weight: 700;
        color: #333;
    }

    .lang-switcher {
        margin-left: 0;
        transform: scale(1.2); /* Кнопки покрупнее */
    }
}
@media (max-width: 450px){
    .logo {
            font-size: 20px;
    }
}
@media (max-width: 400px) {
    .scroll-top-btn{
        bottom: 53px;
    }
}