* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 58px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2E3182;
    background: #ffffff;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =========================
   TOP BAR (STICKY MENU)
========================= */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #3F99E5, #1A3A9D);
    height: 56px;
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    width: 100%;
    font-weight: 700;
    font-size: 15px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

.menu a:hover {
    opacity: 0.8;
}

/* =========================
   PHONE (Абсолютное центрирование на ПК)
========================= */
.phone {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15px; /* Идеальная высота ровно по центральной оси логотипа */
    font-size: 32px;
    font-weight: 500;
    text-align: center;
    z-index: 10;
}

.phone a {
    color: #2E3182;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================
   HERO BLOCK (ГИБКИЙ AUTO LAYOUT)
========================= */
.hero {
    padding: 15px 0 0px; 
}

.hero-grid {
    display: flex;
    justify-content: space-between; /* Жестко прижимает контент к левому и правому краям */
    align-items: end; /* Выравнивает портрет и текст по нижней линии */
    width: 100%;
    position: relative; /* Нужно для точного центрирования телефона */
}

/* ИСПРАВЛЕНО: Текст больше не зажат, он свободно дышит и идет к центру шапки */
.hero-left {
    flex: 1;
    max-width: 580px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ИСПРАВЛЕНО: Портрет намертво привязан к правому краю контейнера */
.hero-right {
    display: flex;
    justify-content: flex-end;
}

.logo {
    width: 148px;
    height: auto;
}

h1 {
    margin-top: 14px;
    line-height: 1.1;
}

.surname {
    display: block;
    font-size: 65px; 
    font-weight: 300;
}

.fullname {
    display: block;
    font-size: 44px; 
    font-weight: 300;
}

.profession {
    margin-top: 15px;
    font-size: 24px; 
    font-weight: 400;
    line-height: 1.4;
}

.portrait-frame {
    width: 340px; 
    height: 340px; 
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #3F99E5, #1A3A9D);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================
   CTA BUTTONS
========================= */
.cta-row {
    margin-top: 30px; 
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.cta-button {
    flex: 1;
    max-width: 340px; /* Идеально совпадает по ширине с увеличенным портретом */
    height: 44px;
    background: #1A3A9D;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s;
}

.cta-button:hover {
    background: #3F99E5;
}

/* ===================================================== */
/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ                            */
/* ===================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .top-bar {
        height: auto;
        padding: 10px 0;
    }
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }
    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .phone {
        position: static;
        transform: none;
        order: -1;
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
        display: block;
    }
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .logo {
        width: 120px;
    }
    .surname {
        font-size: 38px;
    }
    .fullname {
        font-size: 26px;
    }
    .profession {
        font-size: 16px;
    }
    .profession br {
        display: none;
    }
    .portrait-frame {
        width: 220px;
        height: 220px;
        margin-top: 25px;
    }
    .cta-row {
        margin: 25px auto 0 auto; 
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .cta-button {
        flex: none;
        width: 280px; 
        height: 48px; 
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* ===================================================== */
/* СЕКЦИЯ CV                                             */
/* ===================================================== */
.cv {
    padding: 30px 0 30px;
}

.cv-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;     /* Шрифт Montserrat Light */
    font-size: 24px;      /* Размер как у строки профессии */
    color: #2E3182;       /* Фирменный синий цвет */
    line-height: 1.4;
    margin-bottom: 30px;  
    text-align: left;
}

.cv-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Верстка в 2 равные колонки */
    gap: 40px;                      /* Расстояние между колонками */
}

.cv-column p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;     /* Шрифт Montserrat Regular */
    font-size: 14px;      
    color: #000000;       /* Черный цвет текста */
    line-height: 1.6;     
    margin-bottom: 20px;  
}

.cv-column p:last-child {
    margin-bottom: 0;     
}

/* Адаптивность секции CV для мобильных устройств */
@media (max-width: 768px) {
    .cv {
        padding: 40px 0 20px;
    }
    .cv-title {
        font-size: 20px;  
        text-align: center;
    }
    .cv-columns {
        grid-template-columns: 1fr; /* Колонки встают друг под друга */
        gap: 0;
    }
}
/* ===================================================== */
/* СЕКЦИЯ УСЛУГИ                                         */
/* ===================================================== */
.services {
    padding: 24px 0 !important; 
    background: linear-gradient(45deg, #3F99E5, #1A3A9D) !important; 
    overflow: hidden !important; 
}

/* Контейнер удержания элементов навигации */
.relative-container {
    position: relative !important;
    padding: 0 44px !important; 
}

.slider-frame {
    width: 100% !important;
    overflow: hidden !important; 
}

.slider-track {
    display: flex !important;
    gap: 24px !important; 
    will-change: transform;
    width: max-content !important;
}

/* Коробка жестко зафиксирована 260x260px под 3.5 карточки */
.service-card {
    background: #ffffff !important;
    width: 260px !important; 
    height: 260px !important; 
    border-radius: 0 !important; /* Строгие острые углы */
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

/* ПРИНУДИТЕЛЬНОЕ ИСПРАВЛЕНИЕ: Заголовок ровно 20px Montserrat Regular */
.card-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 20px !important;   /* Точный, уменьшенный размер */
    font-weight: 400 !important;  /* Строго Regular */
    color: #2E3182 !important;    /* Фирменный синий */
    line-height: 1.25 !important; 
    margin-bottom: 12px !important;
    text-transform: none !important;
}

/* ПРИНУДИТЕЛЬНОЕ ИСПРАВЛЕНИЕ: Описание ровно 14px Montserrat Regular */
.card-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;   /* Точный, аккуратный размер */
    font-weight: 400 !important;  /* Строго Regular */
    color: #000000 !important;    /* Чистый черный */
    line-height: 1.45 !important; 
    text-transform: none !important;
}

/* Тонкие полупрозрачные стрелки навигации */
.slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important; 
    background: none !important; 
    color: rgba(255, 255, 255, 0.7) !important; 
    border: none !important;
    font-size: 32px !important; 
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    transition: color 0.2s !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
}

.slider-arrow:hover {
    color: #ffffff !important; 
}

.prev-arrow {
    left: 5px !important; 
}

.next-arrow {
    right: 5px !important;
}

/* ===================================================== */
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (ГОРИЗОНТАЛЬНЫЙ СЛАЙДЕР) */
/* ===================================================== */
@media (max-width: 768px) {
    .relative-container {
        padding: 0 !important; 
    }
    .slider-arrow {
        display: none !important; 
    }
    .slider-frame {
        overflow-x: auto !important; 
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .slider-track {
        gap: 16px !important; 
    }
    .service-card {
        width: 240px !important; 
        height: 240px !important; 
        padding: 16px !important;
        scroll-snap-align: center !important;
    }
    .card-title {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
    .card-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}

/* ===================================================== */
/* ЭТАП 1: УТВЕРЖДЕННЫЙ ШРИФТ CV НА ТЕЛЕФОНАХ (13PX)     */
/* ===================================================== */
@media (max-width: 768px) {
    .cv p, 
    .cv-columns p, 
    .cv-column p,
    [class*="cv"] p {
        font-size: 13px !important;    
        line-height: 1.45 !important;  
        margin-bottom: 14px !important; 
    }
}
/* ===================================================== */
/* ШАГ 2: УЛЬТРАКОМПАКТНОЕ ИЗЯЩНОЕ МЕНЮ-СЭНДВИЧ          */
/* ===================================================== */
@media (max-width: 768px) {
    /* Фиксируем высоту шапки на смартфонах */
    .top-bar {
        height: 56px !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .top-bar .container {
        position: relative !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Кнопка строго справа */
    }

    nav {
        width: auto !important;
    }

    /* Значок гамбургера из трех аккуратных белых полосок */
    .menu-burger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1010 !important;
    }

    .menu-burger span,
    .menu-burger span::before,
    .menu-burger span::after {
        content: '' !important;
        position: absolute !important;
        width: 24px !important;
        height: 2px !important;
        background-color: #ffffff !important;
        transition: 0.2s !important;
    }

    .menu-burger span::before { top: -8px !important; left: 0 !important; }
    .menu-burger span::after { top: 8px !important; left: 0 !important; }

    /* УЛЬТРАКОМПАКТНЫЙ СИНИЙ ФОН: убрали всю пустоту и сжали поля до минимума */
    .top-bar .menu {
        display: none !important; 
        position: absolute !important;
        top: 56px !important; /* Открывается ровно под шапкой */
        left: 0 !important;
        width: 100% !important;
        background: linear-gradient(90deg, #3F99E5, #1A3A9D) !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0px !important;       /* ПОЛНОСТЬЮ УБРАЛИ ЗАЗОР МЕЖДУ СТРОКАМИ */
        padding: 4px 0 !important;  /* МИНИМАЛЬНЫЕ ВЕРТИКАЛЬНЫЕ ПОЛЯ ШТОРКИ */
        z-index: 1005 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    }

    /* Меню показывается только при клике на три полосочки */
    .top-bar .menu.active {
        display: flex !important;
    }

    .top-bar .menu li {
        width: 100% !important;
        text-align: center !important;
    }

    /* Зажали отступы у ссылок, чтобы собрать 7 пунктов в узкую изящную полосу */
    .top-bar .menu a {
        font-size: 14px !important; 
        display: block !important;
        padding: 3px 0 !important;  /* СЖАЛИ ОТСТУПЫ ПО ВЕРТИКАЛИ В ДВА РАЗА */
        line-height: 1.2 !important;
    }
}

/* Запрет появления сэндвича на компьютерах */
@media (min-width: 769px) {
    .menu-burger {
        display: none !important;
    }
}
/* --- СТИЛИ ДЛЯ РАЗДЕЛА ПРЕИМУЩЕСТВ --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Настройки отступов секции */
.advantages {
    padding: 10px 0 10px 0; /* Минимальный верхний отступ (10px) */
    background-color: #ffffff;
}

/* Главный заголовок раздела по центру */
.advantages-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px; /* Главный заголовок секции на десктопе */
    font-weight: 400;
    color: #2E3182;
    text-align: center;
    margin-bottom: 20px; /* Уменьшенный отступ до карточек */
}

/* Сетка из 3 колонок */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* НОВЫЙ БЛОК: Выстраивает цифру и иконку в одну линию по центру */
.advantage-header {
    display: flex;
    align-items: center; 
    gap: 15px; /* Горизонтальный отступ между цифрой и иконкой */
    margin-bottom: 15px; /* Отступ вниз до заголовка карточки */
}

/* Крупная цифра: 70px, Montserrat Thin */
.advantage-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 70px; /* Утверждено вами */
    font-weight: 100; /* Изменено на корректный Thin */
    line-height: 1;
    color: #2E3182;
}

/* Иконка (фиксированная высота, чтобы не ломала строку) */
.advantage-icon {
    height: 60px; 
    display: flex;
    align-items: center;
}

.advantage-icon img {
    height: 100%;
    width: auto;
    display: block;
}

/* Заголовок преимущества: 24px */
.advantage-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px; /* Утверждено вами */
    font-weight: 400;
    line-height: 1.3;
    color: #2E3182;
    margin-bottom: 15px;
}

/* Наборный текст описания: 15px, чистый черный */
.advantage-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px; /* Утверждено вами */
    font-weight: 400;
    line-height: 1.5;
    color: #000000; /* Глубокий чистый черный */
}

/* АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ */
@media (max-width: 768px) {
    .advantages-main-title {
        font-size: 24px; /* Мобильный заголовок секции */
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .advantage-number {
        font-size: 60px; /* Пропорциональный мобильный размер цифр */
    }

    .advantage-title {
        font-size: 18px; /* Мобильный заголовок карточки */
    }

    .advantage-text {
        font-size: 13px; /* Наш общий мобильный стандарт текста */
    }
}
/* ==========================================================================
   РАЗДЕЛ: КОНТАКТЫ И ФУТЕР (СТРОГАЯ ГЕОМЕТРИЯ)
   ========================================================================== */

/* Контейнер секции: прижимаем по вертикали (по 10px) */
.contacts-section {
    padding: 10px 0 10px 0;
    background-color: #ffffff;
}

/* Изящная синяя линия: строго 2px в ширину контейнера */
.contacts-divider-line {
    width: 100%;
    height: 2px;
    background-color: #1A3A9D;
    margin-bottom: 15px; /* Небольшой зазор до слова Контакты */
}

/* Заголовок по центру — строго 24px */
.contacts-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #2E3182;
    text-align: center;
    margin: 0 0 10px 0; /* Отступ от слова до кнопок строго 10px */
}

/* Сетка кнопок десктопа */
.contacts-buttons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

/* Обертка для кнопки и подписи */
.contact-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 155px; /* Фиксированная элегантная ширина */
}

/* Уменьшенные по высоте аккуратные кнопки */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    width: 100%;
    padding: 6px 12px; /* Минимальный padding для эстетичности */
    background-color: #1A3A9D;
    border-radius: 6px; /* Малое скругление по ТЗ */
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.contact-button:hover {
    background-color: #3F99E5;
}

/* Шрифт на кнопках */
.contact-button span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff; 
}

/* Маленькие иконки из папки img/ */
.contact-button img {
    height: 18px; 
    width: auto;
    display: block;
}

/* Скрытый дисклеймер */
.contact-disclaimer {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    line-height: 1.3;
    color: #666666;
    text-align: center;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-btn-wrapper:hover .contact-disclaimer {
    opacity: 1;
    visibility: visible;
}

/* СТИЛИ СИНЕЙ ГРАДИЕНТНОЙ ПОЛОСЫ */
.main-footer {
    background: linear-gradient(90deg, #1A3A9D 0%, #3F99E5 100%);
    padding: 4px 0;
    margin-top: 10px; /* Отступ от кнопок до синей линии строго 10px */
}

/* Строгая горизонтальная линия элементов подвала */
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 20px;
}

/* Логотип увеличен на 75% (высота 70px) */
.footer-logo img {
    height: 110px; 
    width: auto;
    display: block;
}

/* Копирайт по центру (Montserrat 9px) */
.footer-copyright p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 9px;
    color: #ffffff;
    margin: 0;
    opacity: 0.9;
}

/* Крупный телефон справа */
.footer-phone a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

/* СТРОГАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (СМАРТФОНЫ) */
@media (max-width: 768px) {
    
    /* Все кнопки на мобильном строятся в один ровный столбик */
    .contacts-buttons-grid {
        flex-direction: column;
        align-items: center;
        gap: 6px; /* Ультра-компактные зазоры между рядами на мобильном */
    }

    /* Каждая кнопка имеет строго одинаковый размер — никакой свистопляски */
    .contact-btn-wrapper {
        width: 170px; 
    }
    
    .contact-button {
        padding: 7px 10px;
    }

    /* Геометрия подвала на смартфонах */
    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-logo img {
        height: 50px; /* Слегка адаптируем увеличенный логотип под экран телефона */
    }
    
    .footer-phone a {
        font-size: 18px;
    }
}
/* Обеспечивает корректное скрытие карточек при клике на буквы */
.glossary-item.hidden {
  display: none !important;
}

