*{
    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;
        }
        .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;
            }
        }
        /* --- КНОПКА "НАВЕРХ" --- */
.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); /* Кнопки покрупнее */
    }
}
/* Основные стили секции */
.hero {
    position: relative;
    min-height: 300px; /* Высоту можно настроить под себя */
    display: flex;
    align-items: center;
    background: url('../img/uslugi.jpeg') no-repeat center center / cover;
    color: #ffffff;
    font-family: Arial, sans-serif; /* Или ваш основной шрифт */
}

/* Затемнение фона для читаемости текста */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 46, 99, 0.7), rgba(0, 86, 179, 0.5)); /* Прозрачность слоя */
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero p{
    font-size: 100px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.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;
    }
}
/* --- СЕКЦИЯ УСЛУГ: СТРОГАЯ ТИПОГРАФИКА --- */

.services-clean {
    padding: 100px 0;
    background-color: #fff;
    color: #333;
}

/* Заголовок с изюминкой */
.services-header-v3 {
    margin-bottom: 100px;
}

.header-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.title-wrap {
    margin-bottom: 30px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #222222;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

/* Изюминка: тонкая, но широкая линия под заголовком */
.header-divider {
    width: 150px;
    height: 2px;
    background-color: #000000;
}

.main-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #444;
    max-width: 850px;
}

/* Контейнер контента - узкая колонка для удобного чтения */
.services-content-wrapper {
    max-width: 900px; /* Ограничиваем ширину текста */
}

/* Блок одной услуги */
.service-item {
    margin-bottom: 60px;
}

.service-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue); /* Единственный цветной акцент */
    margin-bottom: 25px;
    line-height: 1.2;
}

.service-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #222;
    margin-bottom: 40px;
    font-weight: 400;
    border-left: 4px solid #eee; /* Легкий акцент слева */
    padding-left: 20px;
}

/* Подсписок услуг */
.service-sub-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 25px; /* Сдвиг вправо */
}

.sub-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase; /* Строгость заголовков */
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Маленький квадрат-маркер перед заголовком подпункта */
.sub-item h4::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    margin-right: 12px;
}

.sub-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
    padding-left: 20px; /* Текст чуть сдвинут относительно заголовка */
}

/* Разделитель между большими блоками */
.service-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 60px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .services-header {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }

    .service-name {
        font-size: 1.6rem;
    }

    .service-lead {
        font-size: 1.1rem;
        padding-left: 15px;
    }

    .service-sub-list {
        padding-left: 0;
    }
}
@media (max-width: 640px){
    .hero p{
        font-size: 80px;
    }
}
@media (max-width: 500px) {
    .services-clean {
        padding: 70px 0;
    }
        .hero p{
        font-size: 70px;
    }
}

@media (max-width: 450px){
    .hero p{
        font-size: 60px;
        text-align: center;
    }
    .main-subtitle{
        font-size: 16px;
    }
}
@media (max-width: 400px){
        .hero p{
        font-size: 50px;
    }
}
@media (max-width: 400px) {
    .scroll-top-btn{
        bottom: 53px;
    }
}