/* inter-400 (regular) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v13-cyrillic_latin-regular.woff2') format('woff2');
}

/* inter-600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v13-cyrillic_latin-600.woff2') format('woff2');
}

/* inter-800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-v13-cyrillic_latin-800.woff2') format('woff2');
}

/* Применение ко всему сайту */
* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

html { /* плавность скролла сайта */
    scroll-behavior: smooth 
}


/* ОБЩИЕ КЛАССЫ ____________________________________________________________________________________________________________________________________________________________________*/
body { /* изначальный вид элементов */
    margin: 0px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a2a3a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; 
}

.section-header { /* общие настройки всех заголовков*/
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-title { /* заголовок */
    font-size: 2.5rem;
    color: #1a2a3a;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle { /* подзаголовок */
    color: #718096;
    font-size: 1.1rem;
    margin-top: 0px;
}
.section-header h2{ /* общие настройки всех заголовков*/
    margin: 0 auto 10px;
}
section { /* общие настройки секций */
    position: relative;
    padding: 100px 0 !important; /* Больше отступов = больше "дороговизны" */
    overflow: hidden;
}
.section-divider { /* мини-блок линия между секциями */
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #0057b7, transparent);
}
h2 {
    font-size: 2rem;
    margin: 0px 0 20px 0px;
    color: #1a2a3a; /* Глубокий темный цвет вместо чистого черного */
    letter-spacing: -0.5px; /* Чуть плотнее буквы — выглядит по-дизайнерски */
}

/* Используем двойной селектор для веса, чтобы перебить старые стили (TG-кружок) */
html body .floating-tg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background-color: #2cb742;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 204, 92, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none; /* Убираем возможные рамки */
    outline: none;
}

/* Состояние при наведении на TG-кружок */
html body .floating-tg:hover {
    transform: scale(1.1) translateY(-6px);
    background-color: #2cb742;
    box-shadow: 0 15px 35px rgba(2, 66, 31, 0.582);
}






@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1rem; /* Уменьшаем заголовок на смартфонах */
        margin-top: 20px;
        padding-bottom:50px;

    }
    .content-wrapper {
        flex-direction: column; /* Элементы в колонку */
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .info-square {
        min-height: 200px; /* Больше места для текста на узком экране */
    }
    html body .floating-tg
    {
    bottom: 22px;
    right: 22px;
    width: 49px;
    height: 49px;
    }
}


/* NAV CLASS ШАПКИ __________________________________________________________________________________________________________________________________________________________________*/
.navbar { /* верхнее состояние */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный переход */
}

.navbar.scrolled {/* шапка при скролле */
    top: 15px; /* Отступ от верха */
    width: 90%; /* Сужаем */
    left: 5%; /* Центрируем по бокам */
    height: 65px;
    background: rgba(255, 255, 255, 0.7); /* Прозрачность */
    backdrop-filter: blur(12px); /* Размытие фона */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px; /* Закругленные углы */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* стили элементов внутри шапки */
.nav-container {
    max-width: 1800px; /* Максимальная ширина контента */
    margin: 0 auto;    /* Центрируем весь контейнер на странице */
    width: 100%;
    display: flex;
    justify-content: space-between; /* РАСКИДЫВАЕТ лого и кнопки по краям */
    align-items: center;            /* Выравнивает их по вертикали по центру */
    padding: 0 30px;                /* Внутренние отступы, чтобы не липли к краям экрана */
    box-sizing: border-box;         /* Чтобы padding не увеличивал ширину блока */
}
/* логотип (на 2 части) */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;

}

.logo-main {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: #1a2a3a;
}

.logo-sub {
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #0057b7;
    text-transform: uppercase;
}

/* стилизация ссылок */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    margin-right: 0px;
}

/* линия под ссылкой, изначальная позиция */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0057b7;
    transition: width 0.3s ease;
}
/* изменение цвета при наведении */
.nav-links a:hover {
    color: #0057b7;
}
/* ширина линии после наведения */
.nav-links a:hover::after {
    width: 100%;
}

/* изменения для состояния (когда листаем вниз) */
.navbar.scrolled .logo-main,
.navbar.scrolled .logo-sub {
    font-size: 1.3rem; /* изменение размера при скролле */
}

/* кнопка кружок TG */
.nav-tg-btn:hover { background: #004494; transform: scale(1.05); }
.menu-toggle {
    display: none;
}
@media (max-width: 768px) {
    /* Фиксируем всю шапку сверху */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    /* Чтобы контент не уходил под фиксированную шапку */
    body {
        padding-top: 70px !important;
    }

    /* Контейнер для лого и бургера */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
        width: 100% !important;
    }

    /* Обычная кнопка-бургер (не кружок) */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #1a2a3a;
        border-radius: 2px;
    }

    /* Выпадающее меню */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: absolute;
        top: 75px; 
        right: 15px;      /* Отступ от правого края экрана */
        width: 250px;     /* Ширина окна теперь по размеру кнопок */
        
        /* Эффект прозрачности и блюра */
        background: rgba(255, 255, 255, 0.85); /* Полупрозрачный белый */
        backdrop-filter: blur(10px);           /* Тот самый эффект размытия */
        -webkit-backdrop-filter: blur(10px);    /* Поддержка для Safari */
        gap: 0px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        list-style: none;
        padding: 0;
        margin: 0;
        /* Оформление краев */
        border-radius: 18px; /* Скругляем все углы, чтобы окно смотрелось мягче */
        border: 1px solid rgba(255, 255, 255, 0.3); /* Тонкая светлая рамка */
        box-shadow: 0 15px 35px rgba(0,0,0,0.15); /* Более выраженная тень */
        border-bottom: 2px solid transparent; /* Изначально граница прозрачная */
    }

    .nav-links.open {
        max-height: 350px; 
        padding: 10px 0; /* Внутренние отступы сверху и снизу */
        opacity: 1;           /* Проявляем */
        visibility: visible;  /* Делаем видимым */
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* Когда меню открыто, пункты плавно "выплывают" */
    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Задержка появления для каждого пункта, чтобы они шли по очереди */
    .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.3s; }

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Текст слева, стрелка справа */
        padding: 16px 20px !important;
        color: #1a2a3a !important;
        font-weight: 800;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .logo:active, 
    .menu-toggle:active {
        opacity: 0.3; /* Логотип или бургер станут чуть прозрачнее при тапе */
        transition: opacity 0.01s ease;
    }
    .logo {
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        margin-left: 0px ;
    }
        a, 
    button, 
    .menu-toggle, 
    .logo {
        -webkit-tap-highlight-color: transparent;
    }
    /* Отключаем все эффекты скролла для мобилок */
    .navbar.scrolled {
        width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        height: 70px !important;
    }
    
    .navbar.scrolled .logo-main, 
    .navbar.scrolled .logo-sub {
        font-size: 1.6rem !important; /* Возвращаем размер лого */
    }
}

/* начало сайта, картинка, текст Hero-блока (header) __________________________________________________________________________________________________________________________________________________________________*/
.hero-block {
    position: relative; /* наложение оверлея и контента */
    width: 100%; /* ширина */
    height: 960px; /* или min-height: 700px; */
    background-image: url('start1.jpg'); /* картинка фона */
    background-size: cover; /* растяжение картинки, чтобы закрыть все пространство */
    background-position: center; /* центрирование картинки */
    display: flex; /* свободное положение блоков */
    align-items: center; /* Центрировать контент по вертикали */
    justify-content: center; /* Центрировать контент по горизонтали */
    color: white; /* Цвет текста на главном блоке */
    text-align: center; /* расположение текста */
    font-size: clamp(1.8rem, 5vw, 4rem);
}
.btn-hero {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0057b7 0%, #004494 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 87, 183, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.5s ease-out; 
}

/* Эффект при наведении */
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 183, 0.4);
    background: linear-gradient(135deg, #0066d6 0%, #0057b7 100%);
}

/* Эффект при нажатии */
.btn-hero:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 87, 183, 0.2);
}

/* Легкий отблеск (стеклянный блик) при наведении */
.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}
/* Темный слой-оверлей поверх картинки */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Полупрозрачный черный цвет */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1; /* Оверлей НАД картинкой */
}

/* Контент главного экрана */
.hero-content {
    position: relative;
    z-index: 2; /* Контент НАД оверлеем */
    max-width: 1000px;
    padding: 10px;
    font-size: clamp(1.8rem, 5vw, 4rem);
}

.hero-content h1 {
    font-size: 5rem; /* Очень крупный заголовок */
    font-weight: 660;
    line-height: 1.2; /* Уплотняет текст по высоте (по умолчанию ~1.2) */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Тень для читаемости */
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 30px;
    margin-top: 0px;
    color: rgba(255,255,255,0.9);
}

/* Стилизация кнопки специально для Hero */
.hero-content .btn-blue {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px; /* Кнопка-пилюля */
    text-transform: uppercase; /* Все заглавные */
    letter-spacing: 1px; /* Отступы между буквами */
}
/* встреча консула */
.hero-status {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем под кнопкой */
    margin-top: 30px;
    gap: 10px;
    animation-delay: 1.8s;
    opacity: 0; /* Изначально невидимы */
    animation: fadeInUp 1.5s ease-out forwards; /* forwards сохраняет финальное состояние */
}

.status-text {
    font-family: 'Inter', sans-serif; /* Или твой основной шрифт */
    font-weight: 400; /* Делаем шрифт тоньше */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8); /* Чуть приглушенный белый */
    letter-spacing: 1px;
    text-transform: uppercase; /* Делает надпись строже и аккуратнее */
}

.status-date {
    font-weight: 600; /* Дату выделяем чуть жирнее */
    color: #ff4d4d; /* Твой фирменный красный */
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

/* Пульсирующая точка (эффект живой очереди/активности) */
/* Основной стабильный кружочек */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    position: relative; /* Создаем контекст для позиционирования волны */
    flex-shrink: 0;     /* Запрещаем кружочку сжиматься */
}

/* Пульсирующая волна */
.status-dot::after {
    content: '';
    position: absolute;
    /* Центрируем волну относительно родителя */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100%;
    height: 100%;
    background-color: #ff4d4d;
    border-radius: 50%;
    z-index: -1; /* Волна под кружочком */
    
    /* Анимация (важно добавить заново, так как transform теперь занят центровкой) */
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}


/* 1. Создаем саму анимацию */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Начинаем чуть ниже */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Приходим в норму */
    }
}

/* 2. Применяем начальное состояние (скрываем элементы) */
.hero-content h1, 
.hero-content p, 
.hero-content .btn-blue {
    opacity: 0; /* Изначально невидимы */
    animation: fadeInUp 0.8s ease-out forwards; /* forwards сохраняет финальное состояние */
}

.hero-content h1 { /* анимация взлета текста 1*/
    animation-delay: 0.25s;
}

.hero-content p {/* анимация взлета текста 2*/
    animation-delay: 0.25s;
}

.hero-content .btn-blue {/* анимация взлета текста 3*/
    animation-delay: 0.25s;
}
@media (max-width: 768px) {
    .hero-block {
        height: 100vh; /* На мобильных оставляем 100% высоты */
        padding-top: 15px;
    }
    .hero-content h1 {
        font-size: 3rem; /* Очень крупный заголовок */
        margin: 0 0 0px 0;
        font-weight: 800;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Тень для читаемости */
    }
}
/* секция статистики __________________________________________________________________________________________________________________________________________________________________*/
/* --- БЛОК СТАТИСТИКИ --- */
.stats-section {
    padding: 90px 0;
    background-color: #f8fafc;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230057b7" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,149.3C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.stats-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    /* Резиновая сетка вместо 340px */
    grid-template-columns: minmax(280px, 1fr) 2fr; 
    gap: 60px;
    padding: 0 24px;
    align-items: center;
    box-sizing: border-box;
}

/* --- ЛЕВАЯ ЧАСТЬ: ЗАГОЛОВОК --- */
.stats-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 16px 0;
}

.stats-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* --- ПРАВАЯ ЧАСТЬ: СЕТКА С КАРТОЧКАМИ --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --- СТИЛИ КАРТОЧЕК --- */
.stat-card {
    position: relative;
    border-radius: 16px;
    padding: 24px 20px;
    min-height: 130px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Полупрозрачная белая подложка для читаемости текста поверх изображений */
.stat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* 82% белого поверх фоновой картинки */
    z-index: 1;
}

.stat-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Цифры */
.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0057b7; 
    line-height: 1;
    white-space: nowrap;
}

/* Подписи к цифрам */
.stat-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #2d3748; 
    line-height: 1.4;
}

/* --- ФОНОВЫЕ ИЗОБРАЖЕНИЯ КАРТОЧЕК --- */
/* Замените ссылки 'images/...' на реальные пути к вашим изображениям */
.stat-card-clients {
    background-color: #f8fafc; /* Карточку с клиентами можно оставить светлой или тоже добавить картинку */
}
.stat-card-clients {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    position: relative;
    border-left: 4px solid #8eb7e2; /* Синяя акцентная полоска */
}

.stat-icon-clients {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* На мобильных устройствах уменьшаем иконку */
@media (max-width: 640px) {
    .stat-icon-clients {
        width: 48px;
        height: 48px;
    }
}
.stat-card-passport {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcf8f8; /* Мягкий тепло-белый фон */
    position: relative;
    border-left: 4px solid #8B1E2D; /* Бордовый акцент слева под цвет паспорта */
}

.stat-icon-passport {
    width: 58px;
    height: 72px;
    flex-shrink: 0;
    margin-left: 12px;
    filter: drop-shadow(0px 4px 8px rgba(139, 30, 45, 0.15));
}

/* На адаптивности уменьшаем иконку */
@media (max-width: 640px) {
    .stat-icon-passport {
        width: 44px;
        height: 56px;
    }
}

.stat-card-flags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    position: relative;
    border-left: 4px solid #8eb7e2; /* Синий акцент */
}

.stat-icon-flags {
    width: 72px;
    height: 64px;
    flex-shrink: 0;
    margin-left: 8px;
    filter: drop-shadow(0px 3px 6px rgb(24, 37, 156));
}

@media (max-width: 640px) {
    .stat-icon-flags {
        width: 56px;
        height: 50px;
    }
}

.stat-card-hamburg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    position: relative;
    border-left: 4px solid #D4AF37; /* Золотой акцент для подчеркивания статуса и опыта */
}

.stat-icon-hamburg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-left: 8px;
    filter: drop-shadow(0px 3px 6px rgba(0, 87, 183, 0.12));
}

@media (max-width: 640px) {
    .stat-icon-hamburg {
        width: 50px;
        height: 50px;
    }
}

/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ И ПЛАНШЕТОВ --- */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: 1fr; /* Заголовок встает над сеткой */
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .stats-section {
        padding: 40px 0;
    }

    .stats-header h2 {
        font-size: 26px;
        white-space: normal; /* Гарантия от сдвига вправо на смартфонах */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* На телефонах карточки идут 2х2 */
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
        min-height: 110px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Для совсем узких экранов карточки встают по одной */
    }
}
/* секция почему мы? (deleted)__________________________________________________________________________________________________________________________________________________________________*/
.features-section {
    padding: 80px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    background: 
        radial-gradient(at 0% 0%, rgba(0, 87, 183, 0.05) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(0, 136, 204, 0.05) 0px, transparent 50%),
        radial-gradient(rgba(0, 87, 183, 0.1) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 40px 40px !important; /* Последнее — размер сетки */
}

.section-title { /* заголовок блока */
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Сама карточка */
.feature-card {
    display: flex;           /* Включаем гибкий контейнер */
    flex-direction: column;  /* Выстраиваем элементы в столбик */
    align-items: center;     /* Центрируем всё (иконку, h3, p) по горизонтали */
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавный "пружинистый" эффект */
    cursor: default;
       opacity: 0;
    transform: translateY(40px); /* Смещаем вниз */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Плавное выплывание */
}
.feature-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0057b7;
    line-height: 1.35;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.35;
}

.icon-box {
    width: 60px;          /* Ширина в покое */
    height: 60px;         /* Высота в покое */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Изначальный масштаб (1 — это 100%, то есть без изменений) */
    transform: scale(2) rotate(0deg); 
    
    /* Обязательно добавляем transition здесь, чтобы возвращение 
       в исходный размер тоже было плавным */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- АНИМАЦИЯ ПРИ НАВЕДЕНИИ --- */
.feature-card:hover {
    transform: translateY(-12px); /* Карточка всплывает вверх */
    background: #fff;
    border-color: #0057b7;
    box-shadow: 0 20px 40px rgba(0, 87, 183, 0.1); /* Мягкая синеватая тень */
}

.feature-card:hover .icon-box {
    transform: scale(3) rotate(5deg); /* Иконка немного увеличивается и поворачивается */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ваш путь к результату __________________________________________________________________________________________________________________________________________________________*/

.process-wrapper {
    display: flex;
    justify-content:space-between;
    position: relative;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Линия-соединитель */
.process-wrapper::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    width: 0; /* Изначально ширина 0 */
    height: 3px; /* Сделаем чуть толще для заметности */
    background: linear-gradient(90deg, #0088cc, #0057b7);
    z-index: 1;
    transition: width 1.5s ease-in-out; /* Плавное выезжание */
}
.process-wrapper.active::before {
    width: calc(100% - 100px); /* Выезжает на всю длину */
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

/* Кругляшок с номером */
.step-badge {
    width: 60px;
    height: 60px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 8px #ffffff, 0 10px 20px rgba(0, 136, 204, 0.2);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(100px); /* Смещаем вправо */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* "Пружинистый" эффект */
}
.process-step.active .step-badge {
    opacity: 1;
    transform: translateX(0); /* Возвращаем на место */
}

.process-step:hover .step-badge {
    transform: scale(1.1);
    background: #0057b7;
}


.step-content {
    opacity: 0 !important;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    /* Убираем transition-delay отсюда, перенесем его в активацию */
}
.process-step.active .step-content {
    opacity: 1 !important;
    transform: translateY(0);
    transition-delay: 0.4s; /* Ждем кружок */
}
.step-content h4 {
    font-size: 1.2rem;
    color: #1a2a3a;
    margin-bottom: 5px;
    font-weight: 800;
}
.step-content p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
}


/* Адаптивность для мобилок (превращаем в вертикальный список) */
@media (max-width: 768px) {
    .process-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px; /* Уменьшаем общий отступ секции */
        gap: 50px;
        position: relative;
    }

    /* 1. ЛИНИЯ: Сдвигаем максимально влево */
    .process-wrapper::before {
     display: none !important;
    }

    /* 2. ШАГ: Делаем его как строку (Кружок слева, Текст справа) */
    .process-step {
        display: flex;
        flex-direction: row; /* Выстраиваем в ряд */
        text-align: left;
        align-items: flex-start; /* Текст начинается сверху от кружка */
        gap: 20px; /* Расстояние между кружком и текстом */
        padding: 0;
        width: 100%;
    }

    /* 3. КРУЖОК: Уменьшаем размер */
    .step-badge {
        width: 40px;  /* Было 60px */
        height: 40px; /* Было 60px */
        font-size: 1.1rem;
        flex-shrink: 0; /* Чтобы кружок не сплющивался */
        margin: 0; 
        box-shadow: 0 0 0 5px #ffffff, 0 5px 15px rgba(0, 136, 204, 0.2);
        z-index: 2;
    }

    /* 4. ТЕКСТ: Сдвигаем вправо, чтобы не пересекался с линией */
    .step-content {
        padding-top: 5px; /* Выравниваем по центру кружка визуально */
        max-width: 80%; /* Чтобы текст не уходил за край экрана */
    }

    .step-content h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .step-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}


/* БЛОКИ УСЛУГ _________________________________________________________________________________________________________________________________________________________________________________*/
/* 1. БАЗОВЫЕ НАСТРОЙКИ СЕКЦИЙ (Липкость и слои) */
/* Контейнер секции */
.full-width-block {
    position: sticky;
    top: 60px;
    background: #ffffff;
    padding: 20px 0 40px 0;
    border-top: 1.5px solid #f0f0f0;
    border-bottom: 1.5px solid #d1d5db;
    /* Убираем лишние внешние отступы, чтобы блоки плотно прилегали */
    margin-top: -1.5px; 
    min-height: 400px;
    z-index: 1;
    padding-top: 0 !important;
    /* Тень создаст эффект наслоения при скролле */
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.03);
}

/* Сетка: Кнопки слева, Текст справа */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr; 
    gap: 40px;
    padding: 0 20px;
    align-items: start;
    position: relative;
    z-index: 1; /* Ниже чем services-nav */
}
.services-nav.is-stuck {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 1.5px solid #0057b7; /* Синяя полоска, когда заголовок в стопке */
}
.services-nav h2{
    position: sticky;
    background: #ffffff; /* Обязательно, чтобы перекрывать контент снизу */
    z-index: 10;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0; /* Тонкая линия разделения в стопке */
    margin-top: 0 !important;
    padding-top: 30px; /* Минимальный зазор для эстетики, если нужно */
    white-space: nowrap; /* ЗАПРЕТ ПЕРЕНОСА на новую строку */
    font-size: 1.6rem;
    line-height: 1;
}

.section-1 { 
    top: 90px; /* Первая под шапкой */
    z-index: 1; 
}
.section-2 { 
    top: 160px; /* Вторая липнет под заголовком первой (60+60) */
    z-index: 2; 
}
.section-3 { 
    top: 230px; /* Третья под второй (120+60) */
    z-index: 3; 
}
.section-4 { 
    top: 300px; 
    z-index: 4; 
}
/* Список кнопок в столбик */
.button-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Кнопки-ссылки */
.nav-btn {
    background: none;
    border: none;
    border-left: 2px solid #eee;
    padding: 8px 20px;
    text-align: left;
    font-size: 1rem;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    color: #0057b7;
    border-left-color: #0057b7;
}
.button-list, .services-display {
    position: relative;
    z-index: 1;
}
.nav-btn.active {
    font-weight: 700;
}

/* Правая часть с текстом */
.services-display, [id^="dynamic-text-"] {
    padding-top: 35px; /* Выравниваем по уровню кнопок */
    padding-left: 20px;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    will-change: opacity, transform;
}

#dynamic-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    transition: opacity 0.3s ease; /* Для плавной смены */
}

/* Адаптация для мобилок */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr; /* На мобилке всё в один столбик */
        gap: 30px;
        padding-left: 0px;
    }
    .services-display h2{ padding: 30px 20px 30px; }
    .services-display { padding-top: 0; margin-left: -14px;}
    .services-display, [id^="dynamic-text-"] {
    padding-top: 5px; /* Выравниваем по уровню кнопок */
    padding-left: 5px;
}
    .services-nav {margin-left: 7px;}
    .content-wrapper{margin-left: 20px;}

section .full-width-block .section-4 { /* общие настройки секций */
    padding: 50px; /* Больше отступов = больше "дороговизны" */
}
.services-nav h2{
    font-size: 1.3rem;
}
.nav-btn{
    padding: 8px 10px;
    text-align: left;
    font-size: 0.95rem;
}
}

/* FAQ СЕКЦИЯ*/

/* Липкость для FAQ, чтобы он встал под заголовок 4-й секции */
/*
.section-faq {
    position: relative;
    top: 0px; 
    z-index: 100;
    background: #ffffff; 
    padding-bottom: 100px;
    border-top: 1.5px solid #d1d5db;
    padding-top: 0 !important;
}
.section-faq h2 {
    margin: 0 !important;
    padding: 20px 0;
    white-space: nowrap;
}
.faq-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    padding-top: 20px;
}

.faq-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-left: 1px solid #eee;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: #0057b7;
    background: rgba(0, 87, 183, 0.02);
}

.faq-num {
    font-family: 'serif';
    font-style: italic;
    font-weight: 700;
    color: #0057b7;
    opacity: 0.5;
    font-size: 0.8rem;
}

.faq-item p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

*/
/* Сохраняем логику "стопки" */
.section-faq {
    position: relative;
    top: 0px; 
    z-index: 5;
    background: #ffffff; /* Должен быть белый фон */
    padding-top: 100px; /* Задаем явный отступ от шапки */
    padding-bottom: 120px;
    border-top: 1.5px solid #d1d5db;
}

/* 2. Настройка заголовка и подзаголовка */
.section-faq h2 {
    margin: 0 !important;
    padding: 0 0 10px 0;
    white-space: nowrap;
    font-size: 2.2rem; /* Сделаем чуть покрупнее */
}

.faq-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 50px; /* Отступ до начала вопросов */
    line-height: 1.5;
    max-width: 600px; /* Ограничим ширину подзаголовка */
}
.faq-header-content h2{
    margin: 0px 0px 0px;
    padding-bottom: 0px;
}
.faq-header-content p{
    margin: 0px 0px 20px;
}
/* 3. Контейнер для аккордеона */
.faq-accordion-container {
    max-width: 900px; /* Ограничиваем общую ширину для удобства чтения */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Отступ между плашками */
}

/* 4. Стили самой шторки ( faq-item ) */
.faq-item {
    background: #f1f1f1; /* Светло-серый фон плашки как на фото */
    border-radius: 20px; /* Сильное скругление */
    overflow: hidden; /* Важно для скрытия контента */
    transition: all 0.3s ease;
}

/* 5. Вопрос (заголовок шторки) */
.faq-question {
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a2a3a;
}

/* 6. Иконка стрелочки */
.faq-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контейнер для иконки (кружок) */
.faq-icon-circle {
    width: 34px;
    height: 34px;
    background: #d1d5db; 
    border-radius: 50%;
    display: flex;       /* Центрируем SVG внутри */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Сама SVG иконка */
.faq-arrow-svg {
    width: 20px;
    height: 20px;
    color: #7d848e; /* Цвет стрелки по умолчанию */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Изменяем жирность стрелки напрямую в path (если нужно еще жирнее) */
.faq-arrow-svg path {
    stroke-width: 3; /* Поставьте 3 или 3.5 для максимальной жирности */
}

/* Стили для активного (открытого) состояния */
.faq-item.active .faq-icon-circle {
    background: #0057b7; /* Синий фон кружка */
}

.faq-item.active .faq-arrow-svg {
    color: #ffffff;      /* Белая стрелка */
    transform: rotate(90deg); /* Поворот вниз */
}

/* 7. Плавная механика шторки */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr; /* Изначально закрыто */
    transition: grid-template-rows 0.4s ease;
}

.answer-content {
    overflow: hidden;
    padding: 0 35px; /* Отступ слева как у вопроса */
    opacity: 0; /* Изначально текст скрыт */
    transition: opacity 0.3s ease, padding 0.3s ease;
    color: #555;
    line-height: 1.6;
}

/*********************************
 * АКЦЕНТЫ ПРИ ОТКРЫТИИ (active) *
 *********************************/

.faq-item.active {
    background: #ffffff; /* Белый фон при открытии */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Легкая тень */
}

/* Шторка плавно раскрывается */
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

/* Текст плавно появляется */
.faq-item.active .answer-content {
    opacity: 1;
    padding-bottom: 30px; /* Нижний отступ текста */
}

/* Иконка меняет цвет и поворачивается вниз */
.faq-item.active .faq-icon-circle {
    background: #0057b7; /* Синий круг */

}

.faq-item.active .faq-icon-circle::after {
    color: #ffffff; /* Белая стрелка */
}

/* Адаптация под мобилки */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
/* КАК МЫ РАБОТАЕМ ___________________________________________________________________________________________________________________________________________________________ */
:root {
    --accent-color: #0057b7; /* Цвет элементов внутри иконки */
    --workflow-bg-color: #f0f4f8; /* Задайте нужный цвет заливки секции */
}

/* Настройка фона секции */
.workflow-section {
    position: relative;
    background-color: var(--workflow-bg-color);
    padding: 80px 0;
}

/* Фиксация родительского контейнера */
.workflow-section .container {
    position: relative;
}

/* Белый круг с градиентным размытием краев (Fade) */
/* Контейнер волны, привязанный к левому краю секции */
.wave-badge-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
}

/* Фоновая мягкая волна */
.badge-wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    z-index: -1;
}

/* Сам список: вытянут вертикально, отлично масштабируется */
.checklist-icon-large {
    width: 200px;
    height: auto;
    max-height: 85%;
    filter: drop-shadow(0px 8px 20px rgba(0, 87, 183, 0.08));
}

/* Сдвигаем текстовый контент, чтобы он не налезал на волну */
.workflow-section .section-header,
.workflow-section .process-wrapper {
    position: relative;
    z-index: 2;
}

/* Адаптив под планшеты и мобильные */
@media (max-width: 1024px) {
    .wave-badge-wrapper {
        display: none;
    }
    .workflow-section .section-header,
    .workflow-section .process-wrapper {
        margin-left: 0;
    }
}
.accent-fill { fill: var(--accent-color); }
.accent-stroke { stroke: var(--accent-color); }

/* Адаптив: скрываем круг на экранах меньше 1024px, чтобы не перекрывать текст */
@media (max-width: 1024px) {
    .circle-badge {
        display: none;
    }
}

.workflow-header {
    margin-bottom: 50px;
    text-align: left;
}
.step-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important; /* Выравнивание строго по верхнему краю */
    width: 100%;
    margin-bottom: 15px;
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #0057b7;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 87, 183, 0.1);
    line-height: 0.8 !important; /* Убирает лишнюю высоту строки у цифры */
    margin: 0 !important;
}

/*karta 01 telephone*/
.step-extra {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin: 0 !important;
    padding: 0 !important;
}
/* Размеры иконок в карточках */
/* Иконка телефона */
.phone-icon {
    width: 44px;
    height: 44px;
    display: block;
    margin-top: -40px; /* Поднимает иконку ровно на уровень верха цифр */
}
.phone-color-fill {
    fill: rgba(0, 87, 183, 0.25);
    transition: fill 0.3s ease;
}
.phone-color-stroke {
    stroke: rgba(0, 87, 183, 0.25);
    transition: stroke 0.3s ease;
}
/* Плавность движения трубки */
/* Анимация подъема трубки */
.phone-handset {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/*karta 02 document*/
/* Размеры и подгонка верхнего отступа */
.doc-icon {
    width: 44px;
    height: 44px;
    display: block;
    margin-top: -40px;
}

/* Цвета по умолчанию */
.doc-color-fill {
    fill: rgba(0, 87, 183, 0.25);
    transition: fill 0.3s ease;
}

.doc-color-fill-light {
    fill: rgba(0, 87, 183, 0.05);
    transition: fill 0.3s ease;
}

.doc-color-stroke {
    stroke: rgba(0, 87, 183, 0.25);
    transition: stroke 0.3s ease;
}

/* Начальное состояние развернутой ручки */
.doc-pen {
    transform-origin: 52px 46px; /* Точка вращения на кончике */
    transition: transform 0.3s ease;
}

/* Обновленная анимация движения ручки вправо */
@keyframes sign-motion {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        /* Наклон вправо и касание бумаги */
        transform: translate(-22px, -2px) rotate(25deg);
    }
    60% {
        /* Первое движение росчерка */
        transform: translate(-18px, 3px) rotate(20deg);
    }
    85% {
        /* Второе движение росчерка */
        transform: translate(-12px, -4px) rotate(15deg);
    }
    100% {
        /* Остановка ручки с наклоном вправо */
        transform: translate(-10px, -2px) rotate(20deg);
    }
}

/* Запуск при ховере */
.step-card:hover .doc-pen {
    animation: sign-motion 0.7s ease-in-out forwards;
}

.step-card:hover .doc-color-fill {
    fill: rgba(0, 87, 183, 0.5);
}

.step-card:hover .doc-color-fill-light {
    fill: rgba(0, 87, 183, 0.12);
}

.step-card:hover .doc-color-stroke {
    stroke: rgba(0, 87, 183, 0.5);
}

/*karta 03 crest*/
/* Размеры и подгонка верхнего отступа */
.crest-icon {
    width: 44px;
    height: 44px;
    display: block;
    margin-top: -40px;
}

/* Приглушенные цвета по умолчанию */
.crest-color-fill {
    fill: rgba(0, 87, 183, 0.25);
    transition: fill 0.3s ease;
}

.crest-color-stroke {
    stroke: rgba(0, 87, 183, 0.25);
    transition: stroke 0.3s ease;
}

/* При наведении на карточку герб просто подсвечивается */
.step-card:hover .crest-color-fill {
    fill: rgba(0, 87, 183, 0.5);
}

.step-card:hover .crest-color-stroke {
    stroke: rgba(0, 87, 183, 0.5);
}

/* При наведении: трубка поднимается, а цвет становится слегка насыщеннее */
.step-card:hover .phone-handset {
    transform: translateY(-6px) rotate(-3deg);
}

.step-card:hover .phone-color-fill {
    fill: rgba(0, 87, 183, 0.5);
}

.step-card:hover .phone-color-stroke {
    stroke: rgba(0, 87, 183, 0.5);
}

/* При наведении на ВСЮ карточку трубка взлетает вверх и слегка поворачивается */
.step-card:hover .phone-handset {
    transform: translateY(-7px) rotate(-3deg);
}



/*karta 04 handshake*/
/* Размеры и подгонка верхнего отступа */
.handshake-icon {
    width: 52px;
    height: 52px;
    display: block;
    margin-top: -42px;
}

/* Цвет фигуры (полупрозрачный синий в тон сайта) */
.handshake-path {
    fill: rgba(0, 87, 183, 0.25);
    transition: fill 0.3s ease;
}

/* Точка вращения ровно по центру иконки */
.handshake-hands {
    transform-origin: 256px 256px;
}

/* Анимация плавного качания вверх-вниз */
@keyframes handshake-shake {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-1.5deg); }
    50% { transform: translateY(2px) rotate(1deg); }
    75% { transform: translateY(-2px) rotate(-0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Эффекты при наведении на карточку */
.step-card:hover .handshake-hands {
    animation: handshake-shake 0.8s ease-in-out infinite;
}

.step-card:hover .handshake-path {
    fill: rgba(0, 87, 183, 0.55);
}
.step-card h3 {
    margin-bottom: 10px;
    color: #0059b8;
    font-size: 18px;
}
.whatsapp-btn {
    /* Базовые стили */
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    gap: 10px;
    /* Оформление */
    border: 2.5px solid #999ea3; /* Цвет рамки как на фото */
    border-radius: 30px;       /* Максимальное скругление */
    background-color: white;   /* Фон кнопки */
    
    /* Текст */
    color: #333;               /* Темно-серый текст */
    text-decoration: none;     /* Убираем подчеркивание ссылки */
    font-family: Inter;   /* Или ваш шрифт Inter */
    font-size: 14px;
    transition: all 0.3s ease; /* Плавность при наведении */
}

.arrow-icon {
    width: 18px;      /* Размер иконки */
    height: 18px;
    fill: none;       /* Убираем внутреннюю заливку */
    stroke: currentColor; /* Цвет линии такой же, как у текста кнопки */
    
    /* ВОТ ЗДЕСЬ МЫ ДЕЛАЕМ ЕЕ ЖИРНЕЕ */
    stroke-width: 3;  /* Попробуйте 2, 3 или 4, чтобы найти нужную толщину */
    
    stroke-linecap: round;   /* Скругляем концы линий */
    stroke-linejoin: round;  /* Скругляем углы */
}

/* Эффект при наведении */
.whatsapp-btn:hover {
    background-color: #ffffff;
    border-color: #035fb4;
}
/* collab ___________________________________________________________________________________________________________________________________________________________________*/
/* --- Стили для Блока "География Сотрудничества" --- */

.collaboration-banner {
    width: 100%;
    /* Мы зададим фиксированную высоту или 70% от высоты экрана, чтобы баннер был масштабным */
    height: 70vh; 
    min-height: 500px;
    background-image: url('твой-файл.png'); /* Укажи точный путь к картинке */
    background-size: cover; /* Картинка полностью закрывает блок */
    background-position: center; /* Рукопожатие ровно посередине */
    background-repeat: no-repeat;
    
    /* Сдвигаем баннер вниз, чтобы он был виден полностью */
    position: relative; 
    margin-top: 60px; /* Отступ от предыдущего блока (Услуги/Преимущества) */
    
    /* Добавляем границу сверху, которую мы обсуждали в самом начале (тонкая и полупрозрачная) */
    border-top: 1px solid rgba(0, 0, 0, 0.08); 
    
    display: flex;
    align-items: center; /* Текст по центру по вертикали */
    justify-content: center; /* Текст по центру по горизонтали */
    
    /* Добавляем легкое свечение баннеру */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    /* Плавное появление всего баннера при скролле (если JS подключен, можно убрать animation) */
    animation: fadeBannerIn 1.5s ease-out;
}

/* Эффект матового стекла поверх картинки, чтобы текст лучше читался */
.collaboration-banner::before {
    content: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2); /* Легкая белизна */
    backdrop-filter: blur(1px); /* Очень легкое размытие (опционально) */
    z-index: 1; /* Чтобы текст был ПОВЕРХ этого слоя */
}

/* Контейнер для текста внутри баннера */
.collaboration-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7); /* Делаем фон текста прозрачнее */
    backdrop-filter: blur(10px); /* Теперь размывается только кусочек под текстом */
    padding: 30px 50px;
    border-radius: 12px;
    z-index: 2; /* Текст поверх всех эффектов */
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05); /* Тонкая рамка текста */
}

/* Заголовок внутри баннера */
.collaboration-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Подзаголовок (капшн) */
.collaboration-caption {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}



/* --- Анимация появления --- */
@keyframes fadeBannerIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .collaboration-banner {
        height: 50vh; /* Уменьшаем высоту на телефонах */
        min-height: 350px;
        background-position: left center; /* Сдвигаем, чтобы руки были видны */
    }
    
    .collaboration-content {
        padding: 20px 30px;
        max-width: 85%;
    }
    
    .collaboration-title {
        font-size: 24px;
    }
    
    .collaboration-caption {
        font-size: 16px;
    }
}


/*.collab-img{
    display: block;    
    margin-left: auto;  
    margin-right: auto; 
    max-width: 100%;    
    height: auto;
}*/
/* ПОДВАЛ ________________________________________________________________________________________________________________________________________________________________________*/
footer {
    position: relative;
    z-index: 10;
    background: white;
    padding: 50px 0;
}

.site-footer {
    background-color: #1a2a3a; /* Глубокий темный фон */
    color: #ffffff;
    padding: 70px 0 30px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Колонки */
    gap: 50px;
    padding: 0 20px;
}

/* Логотип в футере */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.footer-logo span {
    font-weight: 400;
    letter-spacing: 2px;
    color: #0088cc;
    margin-left: 5px;
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Заголовки h3 */
.site-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 600;
}

/* Контактная информация */
.contact-info p {
    color: #a0aec0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-info span {
    font-size: 1.1rem;
}

/* Соцсети (уже настроенные нами ранее) */
.social-icons {
    display: flex;
    gap: 15px;
}

/* Иконка внутри карточки */
/* Контейнер для иконок */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Базовый стиль иконки */
.icon-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.icon-link svg {
    width: 22px;
    height: 22px;
    fill: #ccc; /* Спокойный серый цвет иконок в покое */
    transition: fill 0.3s ease;
}

/* Эффекты при наведении */
.icon-link:hover {
    transform: translateY(-5px); /* Прыжок вверх */
    background-color: white; /* Фон становится белым */
}



/* WhatsApp цвет */
.icon-link.wa:hover svg { fill: #25D366; }

/* Telegram цвет */
.icon-link.tg:hover svg { fill: #ffffff; }

/* TikTok цвет */
.icon-link.tt:hover svg { fill: #000000; }

/* Тень для активной иконки */
.icon-link:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-link svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.icon-link:hover {
    transform: translateY(-5px);
    background: #0088cc;
}

.footer-column {
    width: 100%;
    max-width: 385px;
    min-height: 268px; /* вместо height, чтобы блок мог расширяться при переносе текста */
    box-sizing: border-box; /* гарантирует, что паддинги не будут увеличивать ширину */
}
/* Нижняя панель */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #718096;
    font-size: 0.85rem;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    color: #718096;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 5px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #ffffff;
}

/* Стили модального окна */
.modal {
    z-index: 5;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
    position: relative;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.modal-content h2 { color: #1a2a3a; margin-bottom: 20px; }
.modal-content p { line-height: 1.6; margin-bottom: 15px; font-size: 0.9rem; }

/* Мобильная версия */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info p {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}
/* --- БАННЕР КУКИ --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Изначально спрятан снизу */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 850px;
    background-color: #1a202c; /* Темный благородный фон */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
    border-radius: 12px;
    padding: 16px 24px;
    z-index: 9999; /* Поверх всех элементов */
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Плавный выезд */
}

/* Класс активации баннера */
.cookie-banner.show {
    bottom: 24px; /* Приподнимаем над нижним краем */
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Текст внутри баннера */
.cookie-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: #ff4d4d; /* Твой фирменный красный */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cookie-link:hover {
    text-decoration: underline;
}


.cookie-buttons {
    display: flex;
    flex-direction: row; /* Выстраиваем кнопки по горизонтали */
    flex-wrap: nowrap;   /* Запрещаем кнопкам переноситься друг под друга */
    gap: 12px;           /* Расстояние между кнопками */
    align-items: center;
    flex-shrink: 0;      /* Запрещаем контейнеру кнопок сжиматься */
}
/* Кнопка "Принять" */
.cookie-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2378f8;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    cursor: pointer;
    white-space: nowrap; /* Запрещаем тексту внутри кнопки переноситься */
    transition: all 0.2s ease;
}

.cookie-btn:hover {
    background-color: #0db5df;
    transform: translateY(-1px);
}

.cookie-btn:active {
    transform: translateY(1px);
}
/* Кнопка "Отклонить" (второстепенная — аккуратная, серая, не отвлекает внимание) */
.cookie-btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}
/* Адаптив под мобилки */
@media (max-width: 640px) {
    .cookie-banner {
        width: 100%;
        bottom: -200px;
        border-radius: 12px 12px 0 0; /* На мобилках скругление только сверху */
        padding: 20px;
    }
    .cookie-banner.show {
        bottom: 0; /* Прижимаем к самому низу на телефонах */
    }
    .cookie-content {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }
    .cookie-buttons {
        flex-direction: column-reverse; /* На мобилках "Принять" окажется сверху, так удобнее кликать */
        width: 100%;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%; /* Обе кнопки на весь экран телефона */
        text-align: center;
    }
}
