/* ======================================================= */
/* === Переменные === */
/* ======================================================= */
:root {
    --primary-color: #0F4C85;
    --secondary-color: #41B7C4;
    --white: #FFFFFF;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --header-height: 92px;
    --mobile-header-height: 70px;
}

/* ======================================================= */
/* === Сброс и базовые стили === */
/* ======================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    /* display: flex; */
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ======================================================= */
/* === Header === */
/* ======================================================= */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 10px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-light);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo img {
    height: 72px;
}

/* === Навигация (для десктопа) === */
.nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* ======================================================= */
/* === Language Selector === */
/* ======================================================= */
.language-selector {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    width: 163px; 
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    justify-content: space-between;
}

.language-selector.active .selected-language {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f7f7f7;
    box-shadow: none;
}

.flag-icon {
    width: 24px;
}

.dropdown-arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease-in-out;
}

.language-selector.active .dropdown-arrow {
    transform: rotate(225deg);
}

/* === Выпадающий список === */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    /* УВЕЛИЧЕННАЯ ШИРИНА */
    min-width: 140px; /* Увеличил ширину, чтобы уместился "Қазақ тілі" */
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: none;
    z-index: 9;
    padding: 0;
    list-style: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.language-selector.active .language-dropdown {
    display: block;
}

/* Общие стили для всех пунктов списка */
.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    width: 163px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    color: #8c8c8c; /* Установил серый цвет по умолчанию */
}

/* Эффект при наведении на пункт списка */
.dropdown-item a:hover {
    color: var(--primary-color);
    background-color: #f7f7f7;
}

/* === КЛЮЧЕВЫЕ ИЗМЕНЕНИЯ === */

/* Убираем округление у верхних углов, когда список открыт */
.language-selector.active .language-dropdown {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Добавляем округление нижних углов только для последнего элемента при наведении */
.language-dropdown .dropdown-item:last-child a:hover {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ======================================================= */
/* === Основной контент (Main Content) === */
/* ======================================================= */
/* ======================================================= */
/* === Секция с параллаксом === */
/* ======================================================= */
.main-content {
    /* 1. Добавляем фоновое изображение и параллакс сюда */
    background-image: url('/assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Ключевое свойство для параллакса */
    
    width: 100%;
    min-height: calc(100vh + var(--header-height));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    /* 2. Этот блок теперь отвечает только за затемнение */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемняющий слой */
    
    /* 3. Оставляем Flexbox для выравнивания контента по центру */
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 1; /* Оверлей должен быть выше фона, но ниже текста */
}

/* 4. Контейнер и текст теперь находятся поверх оверлея */
.main-content .container {
    position: relative;
    z-index: 2; /* Помещаем текст выше оверлея */
    color: var(--white);
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: white;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ======================================================= */
/* === Медиа-запрос для мобильных === */
/* ======================================================= */
@media (max-width: 768px) {

}

/* ======================================================= */
/* === Основной контент (Main Content) === */
/* ======================================================= */

.about-page-content {
    padding-top: 50px;
    background-color: #ffffff;
    /* max-width: 1000px; Перенесено из .about-container */
    margin: 0 auto; /* Перенесено из .about-container */
    /* padding: 20px; Перенесено из .about-container */
    display: flex;
    flex-direction: column;
}

.partner-section {
    display: flex;
    flex-direction: column; /* Элементы идут друг под другом */
    align-items: center;   /* Центрирует дочерние элементы по горизонтали */
    text-align: center;    /* Центрирует текст внутри себя (если он там есть напрямую) */
    gap: 40px;
    margin-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.partner-image img {
    display: flex;
    justify-content: center;
    margin-top: 90px;
    width: 320px;
}

.partner-message p {
    font-size: 16px;
    line-height: 1.6;
    /* color: #555; */
    margin-bottom: 20px; /* Увеличивает отступ снизу для каждого абзаца */
    text-align: justify; /* Если вы хотите, чтобы текст был выровнен по ширине */
}

.partner-message {
    flex-grow: 1;
    max-width: 800px; /* Установите желаемую максимальную ширину для текстового блока */
    text-align: justify; /* Выравнивание текста по ширине */
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    /* color: #333; */
    margin-top: 0;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center; /* Добавлено для центрирования заголовка */
}

/* ======================================================= */
/* === Основной контент (.about-us) === */
/* ======================================================= */

.about-us-section {
    display: flex;
    flex-direction: column; /* Элементы идут друг под другом */
    align-items: center;   /* Центрирует дочерние элементы по горизонтали */
    text-align: center;
    padding: 50px 20px;
    /* background-color: #ffffff; Белый фон */
    max-width: 1000px; /*Увеличенная ширина контейнера */
    margin: 0 auto; /* Центрируем контейнер */
    margin-bottom: 20px;
}

.about-us-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.about-us-subtitle {
    font-size: 20px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
}

.about-us-columns {
    display: flex;
    gap: 60px; /* Расстояние между колонками */
}

.about-us-columns .column {
    flex: 1; /* Каждая колонка занимает равное пространство */
}

.about-us-columns p {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

/* --- Стили для секции с фоновым изображением --- */
.background-image-section {
    width: 100%;
    height: 700px; /* Установите желаемую высоту секции */
    background-image: url('/assets/bg_au.jpg'); /* Укажите путь к вашему изображению */
    background-size: cover; /* Изображение будет покрывать всю площадь */
    background-position: center 10%; /* Центрируем изображение */
    background-repeat: no-repeat; /* Запрещаем повторение изображения */
}

/* ======================================================= */
/* === Основной контент (.values) === */
/* ======================================================= */

.values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 50px auto;
    gap: 40px;
}

.values-image-half {
    flex-basis: 50%;
    height: 400px;
    background-image: url('/assets/bg_values.jpg'); /* Укажите путь к вашему изображению */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.values-text-half {
    flex-basis: 50%;
    text-align: left;
    padding: 0 20px;
}

.values-text {
    font-size: 16px;
    line-height: 1.6;
}

/* ======================================================= */
/* === Стили для секции "Наша команда экспертов" === */
/* ======================================================= */
.team-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.team-header {
    margin-bottom: 50px;
}

.team-title {
    font-size: 32px;
    font-weight: 700;
    /* color: #333; */
    margin-bottom: 10px;
}

.team-subtitle {
    font-size: 18px;
    /* color: #666; */
    margin-top: 0;
}

.team-members {
    display: flex;
    flex-wrap: wrap; /* Позволяет блокам переноситься на новую строку */
    justify-content: center; /* Центрирует блоки по горизонтали */
    gap: 30px; /* Расстояние между блоками */
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 70px;
}

.team-member {
    flex: 1; /* Каждый блок занимает равное пространство */
    min-width: 250px; /* Минимальная ширина, чтобы не сжимались слишком сильно */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo {
    width: 220px;
    height: 220px;
    /* border-radius: 50%; Делаем фото круглым */
    object-fit: cover;
    margin-bottom: 50px;
    margin-top: 30px;
    /* border: 3px solid #007bff; Голубая рамка */
}

.member-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 50px;
    /* color: #333; */
}

.member-role {
    font-size: 16px;
    /* color: #007bff; */
    font-weight: 600;
    margin: 5px 0 15px;
}

.member-description {
    font-size: 14px;
    /* color: #777; */
    line-height: 1.5;
    margin: 0;
    margin-bottom: 20px;
}

/* ======================================================= */
/* === Стили для секции "ИСТОРИИ УСПЕХА" === */
/* ======================================================= */
.success-stories-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #ffffff;
    overflow: hidden;
    justify-content: center; /* Центрирует внутренние блоки по горизонтали */
}

.success-stories-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Центрирует содержимое внутри этого блока */
    min-width: 300px;
    text-align: center; /* Центрирует текст внутри */
}

.success-stories-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 60px;
    text-align: center; /* ИЗМЕНЕНИЕ: Теперь заголовок тоже по центру */
    line-height: 1.2;
}

.success-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-stories-right {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-stories-right ul {
    list-style-type: disc; /* Это и есть обычная точка */
    padding-left: 20px; /* Отступ слева для маркеров */
    margin: 0;
    text-align: justify; /* Важно: выравнивание по левому краю для лучшей читаемости */
}

.success-stories-right ul li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px; /* Отступ между пунктами списка */
}

/* ======================================================= */
/* === Стили для страницы "Услуги" (services.html) === */
/* ======================================================= */
.services-page-content {
    padding-top: 70px; /* Отступ, чтобы контент не скрывался под хедером */
}

.services-hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh + 200px); /* Минимальная высота секции */
    background-image: url('/assets/services_bg.jpg'); /* **Укажите путь к фоновой картинке** */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment: fixed;  */
    display: flex;
    align-items: center; /* Центрируем содержимое по вертикали */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Затемняющий слой */
    display: flex;
    flex-direction: column; /* Элементы будут располагаться вертикально */
    align-items: center; /* Центрируем по горизонтали */
    justify-content: center; /* Центрируем по вертикали */
    padding: 0 20px; /* Отступы по бокам для мобильных устройств */
    z-index: 1; /* Оверлей должен быть выше фона, но ниже текста */
}

.services-main-title {
    padding-top: 120px;
    font-size: 56px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.services-main-subtitle {
    font-size: 24px;
    color: #eee;
    margin-bottom: 60px; /* Отступ до блоков услуг */
    text-align: center;
}

.service-blocks-container {
    display: flex;
    flex-wrap: wrap; /* Для адаптивности */
    justify-content: center; /* Центрируем блоки */
    gap: 30px; /* Отступ между блоками */
    max-width: 1200px; /* Максимальная ширина контейнера блоков */
    width: 100%; /* Занимает всю доступную ширину */
}

.service-block {
    flex: 0 0 calc(33.333% - 20px); /* Три блока в ряд */
    max-width: 350px; /* Ограничение ширины */
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.service-image-top {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-content {
    position: relative;
    padding: 40px 25px 25px;
    width: 100%;
    box-sizing: border-box;
}

.service-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* ======================================================= */
/* === Стили для секции "Почему выбирают нас" (Advantages) === */
/* ======================================================= */
.advantages-section {
    width: 100%;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center; /* Добавляем центрирование для всей секции */
}

.advantages-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 80px; /* Добавляем отступ сверху */
    text-align: center;
}

.advantages-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.advantages-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantage-item {
     background-color: #f2f7ff; /* Устанавливаем светло-голубой фон для каждого блока */
    padding: 30px; /* Добавляем внутренние отступы */
    border-radius: 8px; /* Скругляем углы */
    margin-bottom: 20px; /* Отступ между блоками */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Добавляем легкую тень */
}

.advantage-item:last-child {
    margin-bottom: 0;
}

.advantage-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex; /* Чтобы иконка и текст были на одной линии */
    align-items: center;
}

.advantage-icon {
    font-size: 28px; /* Размер иконки */
    margin-right: 15px; /* Отступ справа от иконки */
    line-height: 1; /* Чтобы иконка не сдвигала высоту строки */
}

.advantage-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.advantage-item ul {
    padding-left: 20px;
}

.advantage-item li {
    margin-bottom: 15px;
    text-align: justify;
}

/* --- Стили для разделителя --- */
.section-divider {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    height: 1px;
    background-color: #e0e0e0;
}

/* ======================================================= */
/* === Стили для секции "Юридические решения" === */
/* ======================================================= */
.legal-solutions-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.legal-solutions-content {
    display: flex;
    flex-wrap: wrap; /* Для адаптивности */
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px; /* Расстояние между картинкой и текстом */
}

.legal-image-half {
    flex: 1; /* Левая половина */
    display: flex; /* Используем flexbox для центрирования изображения */
    justify-content: center;
    align-items: center;
    min-width: 400px; /* Минимальная ширина на больших экранах */
}

.legal-solution-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.legal-text-half {
    flex: 1; /* Правая половина */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify; /* Выравнивание текста по ширине */
}

.legal-text-half p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.legal-text-half p:last-child {
    margin-bottom: 0;
}

/* ======================================================= */
/* === Стили для секции "Персональный подход" === */
/* ======================================================= */
.personal-approach-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.personal-approach-content {
    display: flex;
    flex-direction: column; /* Элементы будут располагаться один под другим */
    align-items: center; /* Центрируем содержимое по горизонтали */
    max-width: 900px;
    margin: 0 auto;
    gap: 40px; /* Отступ между картинкой и текстом */
}

.personal-approach-image {
    width: 100%;
    display: flex; /* Используем flexbox для центрирования изображения */
    justify-content: center;
    align-items: center;
}

.approach-img {
    max-width: 70%; /* Изображение будет занимать 70% ширины своего родительского контейнера */
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.personal-approach-text {
    text-align: justify; /* Выравниваем текст по ширине */
}

.personal-approach-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.personal-approach-text p:last-child {
    margin-bottom: 0;
}

.personal-approach-text ul {
    list-style-type: disc; /* Это создаст обычные точки перед каждым пунктом */
    padding-left: 20px;
    margin: 0;
}

.personal-approach-text li {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px; /* Отступ между пунктами списка */
}

.personal-approach-text li:last-child {
    margin-bottom: 0;
}

/* ======================================================= */
/* === 15. Секция "Контакты" === */
/* ======================================================= */
.contacts {
    min-height: 83vh;
    padding: 80px 20px;
    text-align: center;
}

.contacts-title {
    font-size: 5rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 60px; /* Ваше изменение */
    color: #0e0b47; /* Ваше изменение */
}

.contact-info-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    gap: 60px; /* Ваше изменение */
}

/* Группировка для WhatsApp и Email */
.contact-group-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    
    /* === Эффект наведения для WhatsApp и Email === */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* Добавил background-color для плавности */
    padding: 15px;
    border-radius: 8px;
    background-color: transparent; /* Изначально прозрачный фон */
    cursor: pointer; /* Добавим курсор-указатель для интерактивности */
}

/* Эффект при наведении на блок WhatsApp/Email */
.contact-item:hover {
    transform: translateY(-5px); /* Слегка приподнимаем */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Добавляем тень */
    background-color: #f9f9f9; /* Легкий фон */
}

/* Отмена эффекта для WeChat, так как у него есть QR-код */
.contact-item.wechat-item:hover {
    transform: none; /* Отменяем transform */
    box-shadow: none; /* Отменяем тень */
    background-color: transparent; /* Отменяем фон */
}


.contact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    font-size: 3rem;
    /* transition: color 0.3s ease; */ /* Переместим переход сюда */
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease; /* Добавляем transition */
}

/* Цвет иконки WhatsApp по умолчанию */
.contact-item .fa-whatsapp {
    color: #25D366;
}

/* Цвет иконки Email по умолчанию */
.contact-item .fa-envelope {
    color: #D44638;
}

/* Новый цвет иконок при наведении */
.contact-item:hover .fa-whatsapp {
    color: #128C7E; /* Более темный зеленый для WhatsApp */
    transform: scale(1.1); /* Слегка увеличиваем иконку */
}

.contact-item:hover .fa-envelope {
    color: #B22222; /* Более темный красный для Email */
    transform: scale(1.1); /* Слегка увеличиваем иконку */
}


.contact-item .wechat-icon {
    color: #07C160;
}

.contact-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.contact-detail {
    font-size: 1.1rem;
    color: #777;
    margin-top: 5px;
}

/* Вертикальный разделитель между WeChat и группой справа */
.contact-item-divider.desktop-only {
    height: 100px; /* Ваше изменение */
    width: 1px;
    background-color: #ccc;
    margin: 0 15px;
    align-self: center;
}

/* Горизонтальный разделитель между WhatsApp и Email (только для мобильных) */
.contact-item-divider.mobile-only {
    display: none; /* По умолчанию скрыт на десктопе */
    width: 50%;
    height: 1px;
    background-color: #ccc;
    margin: 15px auto;
}

/* Стили для QR-кода WeChat */
.wechat-qr-code {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qr-code-text {
    font-size: 1rem;
    color: #666;
    margin: 0;
}


/* ======================================================= */
/* === Футер === */
/* ======================================================= */
.footer {
    background-color: var(--white);
    color: #000000;
    padding: 10px;
    /* margin-bottom: 200px; */
    text-align: center;
}

.footer-logo {
    width: 205px;
}

/* ======================================================= */
/* === Медиа-запросы для мобильных устройств === */
/* ======================================================= */
@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-light);
        height: 60%;
        overflow-y: auto;
        transition: max-height 0.3s ease-in-out;
    }
    
    .nav.open {
    display: block; /* Add this to make the menu visible */
    max-height: calc(100vh - var(--mobile-header-height));
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
    }
    
    .nav-item {
        margin: 20px 0;
    }
    
    .nav-link {
        font-size: 30px;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 100;
        /* Добавим отступ справа, чтобы не прилипало к краю */
        margin-right: 5px; 
    }

    .burger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px; /* Немного скруглим края полосок */
        transition: all 0.3s ease-in-out; /* Важно для плавной анимации */
    }

    /* Состояние "крестик" при активном меню */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg); /* Сдвиг и поворот верхней полоски */
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0; /* Скрываем среднюю полоску */
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg); /* Сдвиг и поворот нижней полоски */
    }

    .main-content {
        margin-top: var(--mobile-header-height);
        min-height: calc(100vh - var(--mobile-header-height));
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .partner-section {
        flex-direction: column;
        padding: 0 20px;
    }

    .partner-image {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .partner-image img {
        margin-top: 60px;
        width: 100%;
        max-width: 300px;
        height: auto;
        /* border-radius: 50%; */
    }

    .partner-message {
        /* width: 100%; */
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .partner-message p {
        font-size: 14px;
    }

    .about-us-section {
        padding: 40px 20px;
    }

    .about-us-title {
        font-size: 2rem;
        text-align: center;
    }

    .about-us-subtitle {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .about-us-columns {
        flex-direction: column;
        gap: 20px;
    }

    .about

    .column {
        width: 100%;
    }

    .background-image-section {
        height: 200px; /* Уменьшаем высоту для мобильных устройств */
        background-position: center top; /* Центрируем изображение по вертикали */
    }

    .values {
        display: flex;
        flex-wrap: nowrap; /* Важно: запрещаем перенос элементов */
        overflow-x: auto; /* Позволяем прокрутку по горизонтали */
        -webkit-overflow-scrolling: touch; /* Улучшаем скроллинг на iOS */
        scroll-snap-type: x mandatory; /* Опционально: для плавного прилипания к элементам */
        margin: 40px 0;
        padding: 0 20px; /* Отступ слева и справа, но не сверху и снизу */
        gap: 20px;
    }
    
    .values-image-half,
    .values-text-half {
        flex: 0 0 100%; /* Каждый элемент занимает 100% ширины экрана */
        scroll-snap-align: center; /* Центрируем элемент при прокрутке */
    }

    .values-image-half {
        height: 250px;
    }

    .values-text-half {
        padding: 0;
        text-align: justify;
    }
    
    .values-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .success-stories-title {
        font-size: 1.8rem;
        /* margin-bottom: 40px; Отступ от заголовка до картинки */
        text-align: center; /* Центрируем заголовок на мобильных */
    }

    .services-hero-section {
        min-height: 900px; /* уменьшаем высоту секции */
    }

    .services-main-title {
        font-size: 36px;
        padding-top: 30px;
    }

    .services-main-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .services-overlay {
        position: static;       /* убираем absolute */
        width: 100%;            /* пусть занимает всю ширину */
        margin-top: 20px;       /* отступ сверху, чтобы не прилипало к карточкам */
        padding: 40px 15px;        /* твои боковые отступы остаются */
        box-sizing: border-box; 
        text-align: center;     /* если нужен центрированный контент */
    }

    .service-blocks-container {
        gap: 20px; /* меньше отступы между карточками */
    }

    .service-block {
        flex: 0 0 100%; /* одна карточка в ряд */
        max-width: 100%;
    }

    .service-image-top {
        height: 160px; /* чуть ниже картинка */
    }

    .service-content {
        padding: 30px 20px 20px;
    }

    .service-number {
        width: 50px;
        height: 50px;
        font-size: 22px;
        top: -25px;
    }

    .service-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .service-description {
        font-size: 14px;
        line-height: 1.4;
    }

     .advantages-title {
        font-size: 24px;
        margin-top: 50px;
    }

    .advantages-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .advantages-content {
        padding: 0 15px; /* добавляем отступы по бокам */
    }

    .advantage-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .advantage-item h3 {
        font-size: 18px;
    }

    .advantage-item p,
    .advantage-item li {
        font-size: 14px;
        line-height: 1.5;
    }

    .advantage-item ul {
        padding-left: 15px;
    }

    .legal-solutions-section {
        padding: 40px 20px; /* Уменьшаем отступы для мобильных */
    }

    .legal-solutions-content {
        flex-direction: column; /* Ключевое изменение: элементы выстраиваются в колонку */
        gap: 30px; /* Уменьшаем отступ между блоками */
    }

    .legal-image-half {
        min-width: 100%; /* Изображение занимает всю доступную ширину */
    }

    .legal-solution-img {
        width: 100%; /* Изображение будет масштабироваться на всю ширину */
        max-width: 400px; /* Ограничиваем максимальную ширину */
    }

    .legal-text-half {
        text-align: justify; /* Для лучшей читаемости на мобильных */
    }

    .personal-approach-section {
        padding: 40px 20px; /* Уменьшаем отступы по бокам */
    }

    .personal-approach-content {
        gap: 20px; /* Уменьшаем отступ между изображением и текстом */
    }
    
    .approach-img {
        max-width: 100%; /* Изображение будет занимать всю доступную ширину */
    }

    .personal-approach-text {
        text-align: left; /* Для лучшей читаемости на мобильных */
    }

    .personal-approach-text p,
    .personal-approach-text li {
        font-size: 14px; /* Уменьшаем размер шрифта */
        line-height: 1.5;
        text-align: left; /* Убираем выравнивание по ширине */
    }

   .contacts {
        padding: 40px 15px;
        min-height: auto;
    }

    .contacts-title {
        font-size: 2.5rem;
    }

    .contact-info-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-item-divider.desktop-only {
        display: none;
    }

    .contact-item-divider.mobile-only {
        display: block;
    }

    .contact-group-right {
        gap: 20px;
        margin-top: 0;
        width: 100%;
    }

    .contact-item {
        width: 100%;
        padding: 10px;
    }

    /* Отменяем эффект тени/подъема на мобильных, так как на сенсорных экранах "наведения" нет */
    .contact-item:hover {
        transform: none;
        box-shadow: none;
        background-color: transparent;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .contact-label {
        font-size: 1rem;
    }

    .contact-detail {
        font-size: 0.9rem;
    }

    .wechat-qr-code {
        padding: 10px;
    }

    .qr-code-img {
        width: 120px;
        height: 120px;
    }

    .qr-code-text {
        font-size: 0.9rem;
    }
}