:root {
    --text-main: #333333;
    --text-muted: #666666;
    --green: #59ac34;
    --pink: #df2187;
    --bg-dark: #2c2d2e;
    --container-w: 1464px; /* Десктопная ширина как в оригинале */
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-main); font-size: 15px; line-height: 1.5; overflow-x: hidden; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 15px; width: 100%; }
.section-title { text-align: center; font-size: clamp(32px, 5vw, 42px); font-weight: 700; /*margin-bottom: clamp(30px, 5vw, 50px);*/ margin-bottom: clamp(15px, 0vw, 50px); color: #222; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; height: 90px; }
.header__container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo__img { /*height: 46px; */display: block; position: relative; z-index: 1001; width: 180px}

.nav__list { display: flex; list-style: none; gap: 40px; }
.nav__link { text-decoration: none; color: #222; font-weight: 500; font-size: 16px; transition: color 0.2s; }
.nav__link:hover { color: var(--green); }
.nav__link_ { text-decoration: none; color: #222; font-weight: 500; font-size: 16px; transition: color 0.2s; }
.nav__link_:hover { color: var(--green); }

/* Бургер (Скрыт на ПК) */
.burger { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.burger span { display: block; height: 2px; width: 100%; background: #222; border-radius: 2px; transition: 0.3s; }

/* Hero */

.hero__title { font-size: clamp(36px, 6vw, 52px); font-weight: 700; line-height: 1.2; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); color: #fff}
.hero__subtitle { font-size: clamp(22px, 4vw, 36px); font-weight: 400; opacity: 0.9; }

/* Advantages */
.map-section-wrapper{
    background: url('/b2b_test/img/map.png') center/80% no-repeat;
}
.advantages {
    padding: clamp(60px, 8vw, 90px) 0 40px; /* Немного уменьшил нижний паддинг, чтобы блоки были ближе */

}
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 60px) 40px; text-align: center; }
.adv-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: #111; line-height: 1.3; }
.adv-item p { color: var(--text-muted); font-size: 15px; line-height: 1.5; max-width: 270px; margin: 0 auto; }

/* Statistics */
/* .statistics { padding: clamp(50px, 8vw, 70px) 0; } */
.statistics {
   /* padding: 0 0 clamp(60px, 8vw, 90px);*/ /* Убрал верхний паддинг для лучшего слияния */
    background: transparent; /* УБИРАЕМ ФОН ОТСЮДА */
}
.statistics .section-title {
    margin-bottom: 15px;
}
.policy-link {text-decoration: underline;color: var(--green);}
.stats__body { display: flex; gap: 50px; align-items: stretch; }
.stats__numbers { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-content: center; text-align: center }
.stat-val { font-size: clamp(38px, 5vw, 48px); font-weight: 800; color: #111; line-height: 1; margin-bottom: 8px; }
.stat-text { color: var(--text-muted); font-size: 16px; }
.stats__image { flex: 1; }
.stats__image img { width: 100%; height: 100%;/* min-height: 300px;*/ min-height: 150px; object-fit: contain; border-radius: 6px; }

/* Workflow */
/*.workflow { padding: clamp(60px, 8vw, 80px) 0; background: #fafafa;}*/
.workflow__body { display: flex; gap: 60px; }
.workflow__image { flex: 0 0 380px; }
.workflow__image img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; border-radius: 8px; }
.workflow__steps { flex: 1; display: flex; flex-direction: column; gap: clamp(30px, 5vw, 40px); justify-content: center; }
.step { display: flex; gap: 20px; }
.step__num { width: 36px; height: 36px; background: #222; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.step__text h4 { font-size: 19px; font-weight: 600; margin-bottom: 10px; color: #111; }
.step__text p { color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }
.step__accent { /*color: var(--pink);*/ font-style: italic; font-weight: 400; display: block; }

/* Form */
.request { padding: clamp(60px, 8vw, 90px) 0; }
.form { /*max-width: 900px;*/ max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 25px; }
.form__group label { display: block; font-size: 13px; font-weight: 500; color: #555; margin-bottom: 8px; }
.form__group input, .form__group select, .form__group textarea { width: 100%; padding: 14px 16px; border: 1px solid #dcdcdc; border-radius: 12px; font-family: var(--font-main); font-size: 15px; outline: none; transition: border-color 0.2s; background: #fff; }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus { border-color: var(--green); }
.select-wrapper { position: relative; }
.select-wrapper::after { content: '▼'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #888; pointer-events: none; }
select { appearance: none; cursor: pointer; }

.textarea-wrapper { position: relative; }
textarea { resize: vertical; min-height: 120px; }
.textarea-icons { position: absolute; right: 15px; bottom: 15px; display: flex; gap: 10px; opacity: 0.5; cursor: pointer; }

/* Форма: нижняя часть */
.tz-link { display: inline-block; margin-top: 10px; margin-bottom: 25px; color: var(--green); text-decoration: underline; font-size: 14px; align-self: flex-start; }
.checkbox-container { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; cursor: pointer; align-self: flex-start; }
.checkbox-container input { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.checkbox-text { font-size: 14px; color: #333; }
.submit-btn { background: var(--green); color: #fff; border: none; padding: 16px 40px; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; margin-bottom: 25px; align-self: flex-start; transition: background 0.2s; }
.submit-btn:hover { background: #4ca12c; }

.form__legal { font-size: 12px; color: #999; line-height: 1.6; align-self: flex-start; }
.form__legal a { color: #999; text-decoration: underline; margin-right: 15px; display: inline-block; margin-bottom: 5px; }

/* Footer */
/*.footer { background: var(--bg-dark); color: #fff; padding: clamp(40px, 6vw, 60px) 0; }
.footer__logo { text-align: center; margin-bottom: clamp(30px, 5vw, 50px); }
.footer__logo img { height: 46px; }
.footer__content { display: flex; justify-content: center; gap: 50%;}
.footer__col { text-align: left; }
.footer__col strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.footer__col p { font-size: 16px; line-height: 1.6; color: #ccc; }*/
.footer {
    background-color: #1e1e22; /* Темный графит со скрина */
    color: #fff;
    padding: 70px 0 50px;
    font-family: 'Inter', sans-serif;
}

/*.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}*/
/* Общие настройки сетки футера */
.footer__grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 2fr; /* Увеличиваем место под контакты */
    gap: 40px;
    align-items: start;
}

/* Сетка внутри контактов */
.contacts-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки равной ширины */
    column-gap: 30px; /* Отступ между колонками */
    row-gap: 10px;    /* Отступ между строками */
    padding-bottom: 30px;
}



.contact-label {
    color: #8a8a8e;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.contact-val {
    font-size: 14px;
    font-weight: 600; /* Делаем текст контактов плотнее */
    line-height: 1.4;
    color: #ffffff;
    text-decoration: none;
}

.footer__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

/* Принудительно открытый контент для десктопа */
.accordion__content {
    display: block !important;
    max-height: none !important;
}

.accordion__arrow {
    display: none; /* Скрыто на ПК */
}

.footer__nav {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 15px;
}

.footer__nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.footer__nav a.bold { font-weight: 700; }
.footer__nav a:hover { opacity: 0.7; }

/* Контакты */
/*.contact-item { margin-bottom: 18px; }*/
/*.contact-label { display: block; font-size: 13px; color: #8a8a8e; margin-bottom: 4px; }*/
/*.contact-val { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; display: block; }*/
.bold-phone { font-size: 14px; font-weight: 800; }

.footer__divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer__legal {
    font-size: 14px;
    line-height: 1.8;
    color: #8a8a8e;
    padding-bottom: 50px;
}

.footer__legal-mt { margin-top: 15px; }
.footer__legal a { color: inherit; text-decoration: underline; }

.footer__legal-mt { margin-top: 15px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.modal__dialog { background: #fff; padding: 40px; border-radius: 6px; text-align: center; max-width: 400px; width: 100%; }
.modal__dialog h3 { font-size: 24px; margin-bottom: 15px; color: #111; }
.modal__dialog p { color: var(--text-muted); margin-bottom: 25px; }

/* --- Стили для ошибок валидации --- */
.form__group input.error,
.form__group select.error,
.form__group textarea.error {
    border-color: #e74c3c !important;
    background-color: #fff5f5;
}

/* Анимация тряски при ошибке (для UX) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.form__group input.error {
    animation: shake 0.3s ease-in-out;
}

/* Подсветка текста чекбокса при ошибке */
.checkbox-text.error {
    color: #e74c3c;
}

/* ==========================================================================
   АДАПТИВНОСТЬ (Responsive Design)
   ========================================================================== */

/* Планшеты (Tablet Landscape & Portrait) */
@media (max-width: 1024px) {
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }

    .stats__body { flex-direction: column; }
    .stats__image img { max-height: 400px; }

    .workflow__body { flex-direction: column; }
    .workflow__image { display: none; } /* Скрываем высокую картинку самолета для экономии места */

/*    .footer__content { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .footer__col { text-align: center; }*/
    .footer__content { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Мобильные телефоны (Mobile) */
@media (max-width: 768px) {
    .stat-val { font-size: 21px;}
    .stat-text {font-size: 15px;}
    /* Бургер меню */
    .burger { display: flex; }
/*    .nav { position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px); background: #fff; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }*/
    .nav { position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px); background: #fff; display: block; align-items: center; text-align: center; transition: 0.3s ease; }
    .nav.active { left: 0; }
    .nav__list { flex-direction: column; align-items: center; gap: 30px;padding-top: 30px; }
    .nav__link { font-size: 20px; }
    .nav__link_ { font-size: 20px; }

    /* Анимация иконки бургера */
    .burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Сетки в 1 колонку */
    .advantages__grid { grid-template-columns: 1fr; }
    .stats__numbers { grid-template-columns: 1fr 1fr; text-align: center; gap: 25px; }

    .form__row { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
    .submit-btn { width: 100%; align-self: stretch; } /* Кнопка на всю ширину */

    .footer{
        padding: 0;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    /* Аккордеоны */
    .footer__col.accordion {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .accordion__header {
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .footer__title { margin-bottom: 0; }

    .contacts-grid-container {
        grid-template-columns: 1fr;
    }

    .accordion__arrow {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        transition: 0.3s;
    }

    .accordion__content {
        max-height: 0 !important;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    /* Состояние "Открыто" */
    .footer__col.active .accordion__content {
        max-height: 500px !important;
        padding-bottom: 20px;
    }

    .footer__col.active .accordion__arrow {
        transform: rotate(-135deg);
    }

    /* Статичные контакты на мобилке */
    .footer__contacts-static {
        padding: 30px 0;
    }
}

/* Маленькие экраны */
@media (max-width: 480px) {
    .step { flex-direction: column; text-align: center; align-items: center; }
    .checkbox-container { align-items: flex-start; }
    .checkbox-container input { margin-top: 3px; }
}