@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0d99ff;
    --background-color: #000000;
    --text-color: #e0e0e0;
    --glass-bg: rgba(15, 17, 20, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-radius: 16px;
    --header-blur: blur(18px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Фон теперь один */
    background-image: url('input_file_2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main, footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 40px;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    background: rgba(10, 10, 10, 0.5);
    border-bottom: var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo { font-size: 1.8em; font-weight: 700; color: #fff; text-decoration: none; }
header nav { display: flex; align-items: center; }
header nav a { margin: 0 15px; color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
header nav a:hover { color: var(--primary-color); }

.contact-info { display: flex; align-items: center; gap: 15px; }
.contact-info .social-icon { font-size: 1.2em; color: var(--text-color); transition: color 0.3s ease; }
.contact-info .social-icon:hover { color: var(--primary-color); }
.contact-info .phone { font-size: 1em; font-weight: 500; text-decoration: none; color: var(--text-color); transition: color 0.3s ease; }
.contact-info .phone:hover { color: var(--primary-color); }
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #0a7cc5;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.contact-info .btn-primary { margin-left: 5px; }

.lang-switcher { position: relative; }
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 120px;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    z-index: 10;
}
.lang-switcher.active .lang-dropdown { display: block; }
.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    margin: 0;
    font-size: 0.9em;
    text-align: left;
}
.lang-dropdown a:hover { background-color: var(--primary-color); color: #fff; }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}
.hero h1 { font-size: 4.5em; font-weight: 700; color: #fff; line-height: 1.1; }
.hero .subtitle { font-size: 1.5em; font-weight: 400; margin-bottom: 40px; color: #b0b0b0; }
.hero .cta-text { font-size: 1.2em; margin-bottom: 20px; font-weight: 500; }
.usp-container { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.usp-item.glass-panel { max-width: 280px; padding: 30px; text-align: center; }
.usp-item i { font-size: 2.5em; color: var(--primary-color); margin-bottom: 15px; }
.usp-item h3 { font-size: 1.2em; margin-bottom: 10px; color: #fff; }

.content-section { padding-top: 100px; }
.content-section > .container > h2 { 
    text-align: center; 
    font-size: 2.8em; 
    font-weight: 600; 
    margin-bottom: 40px;
}
.capture-section .glass-panel, .final-capture .glass-panel { text-align: center; }
.capture-section .glass-panel h2, .final-capture .glass-panel h2 { margin: 0; margin-bottom: 30px; }

.content-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.image-content img { max-width: 100%; border-radius: 10px; opacity: 0.8; }

/* Для отзывов оставляем прежнее "умное" поведение */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* А для агентов создаем новый стиль с сеткой 2x2 */
.agents-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.agent-card { display: flex; flex-direction: column; }
.agent-card p { flex-grow: 1; }
.agent-card .btn-secondary { margin-top: 25px; }

.final-capture .glass-panel { background: linear-gradient(45deg, rgba(13, 153, 255, 0.6), rgba(5, 84, 138, 0.7)); }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-radius: var(--glass-radius);
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.faq-answer p { padding: 0 20px 20px 20px; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-color); }

footer { padding-top: 100px; padding-bottom: 40px; }
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ДОБАВЛЕНО ЭТО СВОЙСТВО */
    flex-wrap: wrap;
    gap: 40px;
}
.footer-left, .footer-center, .footer-right { flex: 1; min-width: 220px; }
.footer-left h3 { font-size: 2em; color: #fff; margin-bottom: 10px; }
.footer-center h4, .footer-right h4 { font-size: 1.2em; color: #fff; margin-bottom: 15px; }
.footer-content a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.footer-content a:hover { color: var(--primary-color); }
.footer-center a { display: block; margin-bottom: 10px; }
.footer-right .footer-phone { display: block; margin-bottom: 15px; }
.footer-right .social-icons { display: flex; gap: 20px; }
.footer-right .social-icons a { font-size: 1.5em; }
.footer-bottom { text-align: center; border-top: var(--glass-border); padding-top: 30px; margin-top: 30px; }
/* Логотип в шапке */
header .logo img {
    max-height: 40px; 
    display: block; /* Чтобы логотип был по центру относительно ссылок меню */
}

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.modal-content {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    margin: 10vh auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.close-btn { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-btn:hover, .close-btn:focus { color: #fff; }
.modal-body .btn-primary { margin-top: 25px; }
.modal-body h3 { font-size: 2em; }
.modal-body ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-color); position: absolute; left: 0; }
.modal-body ul { list-style: none; padding-left: 0; }
.modal-body ul li { padding-left: 25px; position: relative; margin-bottom: 10px; }

.hamburger-btn, .mobile-header-controls, .mobile-nav-contacts { display: none; }
@media (max-width: 992px) {
    .contact-info { display: none; }
    .mobile-header-controls { display: flex; align-items: center; }
    .mobile-header-controls .phone { color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 0.9em; margin-right: 15px; }
    .hamburger-btn { display: block; background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; z-index: 1100; margin-left: 15px; }
    header nav { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; flex-direction: column; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.95); backdrop-filter: var(--header-blur); transition: left 0.3s ease-in-out; z-index: 1050; }
    header nav.active { left: 0; }
    header nav > a { font-size: 1.5rem; padding: 15px 0; width: 80%; text-align: center; margin: 0; }
    .mobile-nav-contacts { display: flex; flex-direction: column; align-items: center; margin-top: 40px; padding-top: 20px; width: 100%; border-top: 1px solid var(--glass-border); }
    .social-icons-mobile { margin-bottom: 25px; }
    .social-icons-mobile a { font-size: 2rem; margin: 0 20px; color: var(--text-color); }
    .mobile-nav-contacts .btn-primary { padding: 12px 24px; font-size: 1.1rem; margin-left: 0; }
    .hero h1 { font-size: 4em; }
    .content-wrapper { flex-direction: column; gap: 40px; }
    #block-5 .content-wrapper { flex-direction: column-reverse; }
    .footer-content { text-align: center; }
    .footer-right .social-icons { justify-content: center; }
    
}
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    .hero h1 { font-size: 1.85em; line-height: 1.25; margin-bottom: 20px;}
    .hero .subtitle { font-size: 1em; line-height: 1.5;}
    .glass-panel { padding: 25px; }
    .usp-container { flex-direction: column; align-items: center; gap: 20px; }
    .usp-item.glass-panel { max-width: 100%; }
    .modal-content { width: 95%; padding: 25px; }
    .agents-container {grid-template-columns: 1fr;}
    header .logo img {max-height: 35px; }
    .content-section > .container > h2 {
    font-size: 2.2em; /* Был 2.8em */
    line-height: 1.2; /* Улучшаем межстрочный интервал */
}

.agent-card h3,
.usp-item h3 {
    font-size: 1.1em; /* Был 1.2em */
}

.capture-section .glass-panel h2,
.final-capture .glass-panel h2 {
    font-size: 1.5em; /* Уменьшаем заголовки в блоках захвата */
    line-height: 1.3;
}
}

/* Стиль для главной кнопки на первом экране */
#contact-us-hero {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.footer-email {
    display: block;
    margin-bottom: 15px;
}

/* Стили для логотипа и текста в подвале */
.footer-logo {
    display: block; /* Делаем ссылку блочным элементом */
    margin-bottom: 15px; /* Добавляем отступ снизу */
}

.footer-logo img {
    width: 160px; /* Задаем конкретную ширину */
    height: auto; /* Высота подстроится автоматически */
}

.footer-left p {
    margin: 0; /* Убираем лишние отступы, если они есть */
}

/* --- Стили для карусели отзывов --- */

/* Убираем лишний padding у контейнера, так как он теперь в слайдере */
.reviews-swiper.glass-panel {
    padding: 25px;
}

/* Стиль для самого слайда */
.reviews-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto; /* Высота будет подстраиваться под контент */
}

/* Заставляем текст занимать все доступное место, чтобы кнопка была внизу */
.reviews-swiper .review-card p {
    flex-grow: 1;
}
.reviews-swiper .review-card h4 {
    margin-top: 15px;
}

/* Адаптивный контейнер для видео, чтобы сохранялись пропорции 16:9 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Стили для стрелок навигации */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important; /* Цвет стрелок */
    top: 50%;
    transform: translateY(-50%);
}

/* Адаптивность карусели */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Прячем стрелки на маленьких экранах */
    }
}

/* --- Стили для логотипов в отзывах --- */

.company-logo {
    margin-top: 20px; /* Отступ от подписи сверху */
    text-align: center; /* Центрируем логотип */
}

.company-logo img {
    max-height: 340px; /* Ограничиваем высоту, чтобы все логотипы были одного порядка */
    max-width: 340px; /* Ограничиваем ширину для вытянутых логотипов */
    width: auto; /* Позволяем изображению быть меньше, если нужно */
    height: auto;
}

/* Контейнер для карточек команды */
.team-container {
    display: grid;
    /* Создает до 3 колонок, которые адаптируются под размер экрана */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Расстояние между карточками */
}

/* Стили для отдельной карточки сотрудника */
.team-card {
    display: flex;
    flex-direction: column;
    padding: 25px; /* Внутренние отступы в карточке */
}

/* "Шапка" карточки с аватаркой и именем */
.team-card-header {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    gap: 20px; /* Расстояние между аватаркой и текстом */
    margin-bottom: 20px; /* Отступ от описания снизу */
}

/* Стили для аватарки */
.team-card-header img {
    width: 75px;
    height: 75px;
    border-radius: 50%; /* Делает изображение круглым */
    object-fit: cover; /* Сохраняет пропорции изображения */
    border: 2px solid var(--primary-color); /* Рамка в основном цвете сайта */
}

/* Блок с именем и должностью */
.team-card-identity h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.team-card-identity p {
    margin: 0;
    opacity: 0.8; /* Делает текст должности менее ярким */
    font-size: 0.9em;
}

/* "Тело" карточки с основным описанием */
.team-card-body p {
    margin: 0;
    flex-grow: 1; /* Позволяет этому блоку занять все доступное место */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .team-container {
        /* На маленьких экранах будет одна колонка */
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
   text-align: left;
}

.footer-details-left,
.footer-details-right {
    flex: 1; /* Позволяет колонкам растягиваться */
    min-width: 300px; /* Минимальная ширина перед переносом */
}

/* Новое правило для выравнивания правого блока */
.footer-details-right {
    text-align: right;
}

.footer-details-left p {
    margin: 0 0 5px 0;
    font-size: 0.8em;
    opacity: 0.7;
    line-height: 1.5;
}

.footer-details-right a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-decoration: underline;
    color: #fff; /* <<< ВОТ ЭТО ИЗМЕНЕНИЕ: делаем текст ссылки белым */
    transition: color 0.3s ease; /* Добавляем плавность для красоты */
}

/* Добавим эффект при наведении, чтобы сохранить интерактивность */
.footer-details-right a:hover {
    color: var(--primary-color); /* При наведении ссылка станет синей, как и другие элементы сайта */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Сбрасываем выравнивание для мобильной версии, чтобы все было по центру */
    .footer-details-right {
        text-align: center; 
        margin-top: 20px;
    }
}
/* --- Стили для всплывающего окна Cookie --- */
.cookie-consent {
    position: fixed; /* <<<< ВОТ ЭТО СВОЙСТВО "ПРИЛЕПЛЯЕТ" ОКНО К ЭКРАНУ */
    bottom: 20px;
    left: 20px;
    max-width: 450px;
    z-index: 3000; /* Выше всех остальных элементов */

    /* Используем стиль glass-panel для единообразия */
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 25px;
    padding-top: 40px; /* Больше отступ сверху для крестика */

    /* Анимация появления */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cookie-consent.hidden {
    opacity: 0;
    transform: translateY(150%);
    pointer-events: none; /* Чтобы нельзя было нажать на скрытое окно */
}

.cookie-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}
.cookie-close-btn:hover {
    color: #fff;
}

.cookie-consent p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.cookie-links {
    margin-bottom: 20px;
}

.cookie-links a {
    display: inline-block;
    color: #fff;
    text-decoration: underline;
    font-size: 0.8em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.cookie-links a:hover {
    color: var(--primary-color);
}

.cookie-buttons .btn {
    margin-right: 10px;
}

/* Адаптация для мобильных */
@media (max-width: 500px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

/* --- Стили для страницы "Спасибо" --- */
.thank-you-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px; /* Сдвиг, чтобы контент не уезжал под шапку */
}

.thank-you-hero .glass-panel {
    max-width: 800px;
}

.thank-you-hero h1 {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.thank-you-hero .subtitle {
    font-size: 1.4em;
    color: var(--text-color);
    margin-bottom: 40px;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Для мобильных */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .thank-you-hero h1 {
        font-size: 3em;
    }
    .thank-you-hero .subtitle {
        font-size: 1.2em;
    }
}