/* Основные стили */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-radius: 15px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Секция "Геолокация и доставка" */
.location-section {
    padding: 100px 0;
    background: var(--white);
}

.location-content {
    max-width: 100%;
    margin: 0 auto;
}

.location-map {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
}

#map {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 250px;
}

.map-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.map-overlay p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.location-info {
    padding: 0 40px;
}

.location-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-title i {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.delivery-stats {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    border-radius: var(--border-radius);
    background-color: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.stat-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.stat-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
}

.delivery-regions {
    margin-bottom: 40px;
}

.delivery-regions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.regions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;

    border-radius: var(--border-radius);
    background-color: none;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}



.region-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}


.region-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-location {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.mapboxgl-ctrl-geocoder {
    min-width: 250px;
}

/* Секция FAQ */
.faq-section {
    padding: 100px 0;
    background: #1f2937;
    background-image: url('./images/truck-white.png');
    background-size: 400px;
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.95);
    z-index: 1;
}

.faq-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
}

.faq-info {
    padding: 0 40px;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faq-description {
    font-size: 1.1rem;
    color: rgba(185, 182, 182, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
}

.faq-contact {
    margin-bottom: 40px;
}

.faq-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 10px;

}



.faq-contact .contact-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
    background-color: #243040;
    border-radius: 50%;
    padding: 10px;
}

.faq-contact .contact-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(168, 167, 167);
    margin-bottom: 5px;
}

.faq-contact .contact-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.faq-questions {
    padding: 0 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
    background: rgba(37, 99, 235, 0.2);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.faq-cta {
    margin-top: 40px;
    text-align: left;
}

.faq-button-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.btn-faq {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-faq:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

@media (max-width: 768px) {
    .faq-button-container {
        /* по вертикали (если нужно) */
        gap: 15px;
        /* немного увеличим расстояние между кнопками */
        width: 100%;
    }

    .btn-faq {
        width: 80%;
        /* или 100%, если хочешь на всю ширину */
        text-align: center;
    }
}

.faq-arrow {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.faq-arrow i {
    color: white;
    font-size: 1.2rem;
    transform: rotate(45deg);
    transition: var(--transition);
}

.faq-button-container:hover .faq-arrow {
    transform: translateX(5px);
}

.faq-button-container:hover .faq-arrow i {
    transform: rotate(85deg);
}

/* Секция контактов */
/* ====== CONTACT SECTION ====== */
/* ====== CONTACT SECTION ====== */
.contact-section {
    padding: 100px 0;
    background: #ebeff4;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.contact-title i {
    color: var(--primary-color, #2563eb);
    font-size: 2.2rem;
}

/* ====== GRID (FORM + INFO) ====== */
.contact-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
}

/* ====== FORM ====== */
.contact-form {
    flex: 1 1 45%;
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    width: 100%;
    resize: none;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #2563eb);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    display: inline-block;
    background: var(--primary-color, #2563eb);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.form-status {
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* ====== INFO (IMAGE + CONTACTS) ====== */
.contact-info {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* ====== CONTACT DETAILS ====== */
/* ====== CONTACT DETAILS ====== */
.contact-details {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    padding: 18px 20px;
    box-sizing: border-box;
}

/* контейнер для первого ряда (телефон + почта) */
.contact-row-inline {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    /* если экран узкий — упадут вниз */
    margin-bottom: 16px;
}

/* сами блоки телефон/почта внутри строки */
.contact-row-inline .contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1 1 calc(50% - 10px);
    /* две колонки по 50% */
    min-width: 200px;
    /* не ломаться на узких экранах */
    margin-bottom: 0;
    /* убираем нижний отступ — он ниже у соцсети */
    box-sizing: border-box;
}

/* иконка в блоке */
.contact-row-inline .contact-item i {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color, #2563eb);
    font-size: 1.25rem;

}

/* заголовок и текст внутри блока */
.contact-row-inline .contact-item h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: black;
}

.contact-row-inline .contact-item p {
    margin: 0;
    color: black;
    line-height: 1.4;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ---------- Соцсети — отдельным блоком под первой строкой ---------- */
/* Если соцсети идут внутри отдельного .contact-item (после .contact-row-inline) */
.contact-details>.contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    /* отступ сверху, чтобы отделить от row-inline */
}

/* если внутри этого contact-item есть .contact-social-links */
.contact-social-links {
    display: flex;
    gap: 12px;
    margin-left: 6px;
    /* немного сдвинем вправо относительно заголовка */
}

.contact-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    transition: all 0.18s ease;
}



/* ---------- FALLBACK: если contact-item — прямые дети .contact-info (без .contact-details) ---------- */
/* Тогда два первых .contact-item станут inline-блоками по 50%, а последний (соцсети) будет 100% */
.contact-info>.contact-item {
    display: inline-flex;
    vertical-align: top;
    width: calc(50% - 10px);
    gap: 12px;
    box-sizing: border-box;
    min-width: 200px;
    margin-bottom: 0;
}

.contact-info>.contact-item:last-of-type {
    /* соцсети (последний блок) — растягиваем на всю ширину и ставим снизу */
    display: flex;
    width: 100%;
    margin-top: 12px;
    align-items: center;
}

/* стили иконки для fallback (совпадают с основными) */
.contact-info>.contact-item i {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color, #2563eb);
}

/* ---------- Мобильный: упадут друг под друга ---------- */
@media (max-width: 760px) {
    .contact-row-inline {
        flex-direction: column;
        gap: 12px;
    }

    .contact-row-inline .contact-item,
    .contact-info>.contact-item {
        width: 100%;
        min-width: 0;
        display: flex;
    }

    .contact-details>.contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-social-links {
        justify-content: flex-start;
        margin-left: 0;
    }
}


/* Header стили */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
    will-change: background;
}

/* Верхний header */
.header-top {
    background: rgba(31, 41, 55, 0.9);
    padding: 8px 0;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin: 0 auto;
    max-width: 80%;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.contact-info-top {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-info-top .contact-item {
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-info-top .contact-item:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.contact-info-top .contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.social-links-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.follow-us {
    color: var(--white);
    font-size: 0.9rem;
    margin-right: 10px;
}

.social-link-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-link-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: var(--white);
}

/* Основной header */
.header-main {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin: 10px auto 0;
    max-width: 80%;
    box-shadow: var(--shadow);
}

.header-content {
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    /* можно подогнать под размер навбара */
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 45px;
    /* чуть больше или меньше — как визуально подходит */
    width: auto;
    object-fit: contain;
    display: inline-block;
    margin-bottom: 10px;
    /* если нужно отступ вниз */
}

.footer-logo {
    filter: brightness(0) invert(1);
    /* делает логотип светлым на тёмном фоне */
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: var(--transition);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-call {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    margin-top: 0;
    /* Убираем отступ, header будет поверх */
    min-height: 80vh;
}

.carousel {
    height: 100vh;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.carousel-bg {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Темные наложения для лучшей читаемости */
.truck-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.plane-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ship-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;

    /* Отступ для header */
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-text {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

.btn-order {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-order:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Дополнительная информация в карусели */
.additional-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.animate-truck {
    animation: truckMove 4s ease-in-out infinite;
}

.animate-plane {
    animation: planeFly 3s ease-in-out infinite;
}

.animate-ship {
    animation: shipWave 5s ease-in-out infinite;
}

/* Кастомные анимации */
@keyframes truckMove {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(20px) scale(1.1);
    }
}

@keyframes planeFly {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(-5deg);
    }

    75% {
        transform: translateY(20px) rotate(5deg);
    }
}

@keyframes shipWave {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимации появления */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Дополнительные анимации */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.8);
    }
}

/* Анимированные иконки */
.animated-icon {
    animation: bounce 2s ease-in-out infinite;
}

.animated-icon:nth-child(2n) {
    animation-delay: 0.5s;
}

.animated-icon:nth-child(3n) {
    animation-delay: 1s;
}

.transport-icon .animated-icon {
    animation: glow 3s ease-in-out infinite;
}

.feature-icon .animated-icon {
    animation: wiggle 2s ease-in-out infinite;
}

/* Карусель индикаторы - скрыты */
.carousel-indicators {
    display: none;
}

/* Карусель стрелки */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* Секция с карточками */


/* Секция "О нас" */
.about-section {

    background: #ebeff4;

}

.about-content {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 130px;
    margin-bottom: 100px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.about-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-description i {
    color: var(--primary-color);
    margin-right: 10px;
}

.transport-options {
    margin-bottom: 40px;
}

.transport-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.transport-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.transport-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transport-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.transport-content h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.transport-content p {
    color: var(--text-light);
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 19px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.about-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 13px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    background-image: url('./images/warehouse2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    height: 93% !important;
}

.image-placeholder {}

.image-placeholder:hover {
    transform: scale(1.02);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
}

/* Секция "Наши услуги" */
.services-section {

    background: #ebeff4;
}

/* Оптимизация рендеринга секций ниже первого экрана */
.about-section,
.services-section,
.location-section,
.faq-section,
.contact-section,

.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

.services-content {
    max-width: 100%;
    margin: 0 auto;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.services-controls {
    display: flex;
    gap: 15px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 350px !important;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 20px 10px 20px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 20px 15px 20px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 20px 25px 20px;
    flex-grow: 1;
}

.btn-service {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0 20px 25px 20px;
    transition: var(--transition);
    text-align: center;
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

/* Стрелки карусели услуг */
.service-carousel-control {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.service-carousel-control:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.service-carousel-control i {
    color: var(--white);
    font-size: 1.5rem;
}

@media (min-width: 1600px) {
    .services-content {
        margin-bottom: -230px !important;
    }
}

/* Секция "Наши склады" */
/* Секция */
.warehouses-section {
    background: #ebeff4;

}

.warehouses-content {
    max-width: 1300px;
    margin: 0 auto;


}

.warehouse-wrapper {
    position: relative;
    margin-bottom: 130px;
}

.warehouse-slide {
    display: none;
    align-items: center;
    gap: 40px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.warehouse-slide.active {
    display: flex;
}

/* Фото */
.warehouse-image {
    position: relative;
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.warehouse-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.warehouse-image:hover img {
    transform: scale(1.05);
}

/* Стрелки внутри фото */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

/* Контент */
.warehouse-info {
    flex: 1;
}

.warehouse-city {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.warehouse-type {
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.warehouse-desc {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    width: 540px;
}

.warehouse-details {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.warehouse-addresses {
    background: #fff;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 80px;
}

.addresses-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.addresses-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.addresses-list li {
    margin-bottom: 10px;
    text-align: center;
}


/* Точки */
.slider-dots {
    text-align: center;
    margin-top: 25px;
}

.slider-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots span.active {
    background: var(--primary-color);
    width: 12px;
    height: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
    .warehouse-slide {
        flex-direction: column;

    }


    .warehouse-image {
        width: 100%;
        padding: 0;
    }

    .warehouse-image img {
        height: 250px;
        border-radius: var(--border-radius);
    }

    .warehouse-info {
        text-align: center;
        margin-bottom: 15px;

    }

    .slider-btn {
        width: 38px;
        height: 38px;
        top: calc(50% - 19px);

    }
}

@media (max-width: 600px) {
    .warehouse-city {
        font-size: 1.5rem;

    }

    .warehouse-desc {
        font-size: 0.95rem;
        text-align: center;
        padding: 10px;
        width: 400px;
    }
}


.prohibited-section {
    background: #f8fafc;
    padding: 70px 20px;
}

.prohibited-content {
    max-width: 1230px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.prohibited-intro {
    max-width: 780px;
    margin: 0 auto 50px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.prohibited-item {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 0 0 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prohibited-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.prohibited-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.prohibited-item-content {
    padding: 13px;
}


.prohibited-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;

}

.prohibited-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;

}

.prohibited-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff8f0;
    border: 1px solid #ffe3c2;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-top: 50px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.prohibited-note i {
    color: #f59e0b;
    font-size: 1.4rem;
}

.prohibited-note p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .prohibited-intro {
        font-size: 0.95rem;
    }

    .prohibited-item-content {
        padding: 20px 15px 0;
    }
}




/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 80%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-text {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info-footer .contact-item-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-info-footer .contact-item-footer i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white) !important;
}

.social-link i {
    color: inherit;
    /* заставляем иконку брать цвет от ссылки */
    transition: var(--transition);
}

.social-link:hover i {
    color: white !important;
    /* при наведении — тот же цвет, что и у ссылки */
}

.footer-bottom {
    max-width: 80%;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #ffffff;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsive дизайн */
@media (max-width: 991.98px) {
    .header-top {
        display: none;
        /* Скрываем верхний header на мобильных */
    }

    .header-main {
        max-width: 95%;
    }

    .hero-section {
        margin-top: 0;
        /* Убираем отступ для мобильных */
    }

    .carousel-content {
        padding-top: 40px !important;
        /* Добавляем отступ для header на мобильных */
        display: block;
        justify-content: flex-end;
        align-items: flex-end;
        padding-bottom: 10px;
    }

    .carousel-text {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius);
        padding: 20px;
        margin: 20px;
        text-align: left;
        margin-left: -5px !important;
    }

    .carousel-text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        text-align: center;
        margin-left: 20px;
    }

    .carousel-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .btn-order {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .header-content {
        padding: 0 15px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius);
        margin-top: 10px;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    /* Оптимизация для мобильных */
    .carousel-item {
        transform: none;
        backface-visibility: visible;
    }

    .carousel-bg {
        background-attachment: scroll;
        transform: translateZ(0);
    }

    .image-placeholder {
        padding: 120px 20px;
        transform: translateZ(0);
        width: 100%;
        margin: 0;
    }

    .about-image {
        width: 100%;
        margin: 0;
    }

    .cards-section {
        width: 95%;
        margin-top: -30vh;
        /* Уменьшаем подъем на мобильных */
        padding: 60px 0 40px 0;
    }

    .card-item {
        padding: 25px 15px;
        margin-bottom: 20px;
        height: auto;
    }

    .about-content {
        max-width: 100%;
        padding: 10px 5px;
        margin-top: 50px;

    }

    .services-section {
        padding-top: 50px;
    }

    .warehouses-section {
        padding: 10px;


    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .services-header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .services-title {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .service-carousel-control {
        width: 50px;
        height: 50px;
    }

    /* Показываем по одной услуге на мобильных */
    .service-card {
        margin-bottom: 20px;
    }

    /* Адаптивность для секции геолокации */
    .location-info {
        padding: 0 20px;
        margin-top: 40px;
    }

    .location-title {
        font-size: 2rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .location-map {
        height: 400px;
    }

    .map-overlay {
        position: static;
        margin: 20px;
        max-width: none;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    /* Адаптивность для FAQ */
    .faq-section {
        padding: 60px 0;
    }

    .faq-info {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .faq-questions {
        padding: 0 20px;
    }

    .faq-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .faq-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .faq-contact .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 15px;
    }

    .transport-options {
        margin-bottom: 30px;
    }

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

    .contact-info {
        display: none;
    }

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

    .carousel-text {
        font-size: 1.1rem;
    }

    .truck-animation i,
    .plane-animation i,
    .ship-animation i {
        font-size: 5rem;
    }

    .footer-content {
        max-width: 95%;
        padding: 30px 15px;
    }

    .footer-bottom {
        max-width: 95%;
    }
}

@media (max-width: 767.98px) {
    .header-top-content {
        max-width: 95%;
        padding: 0 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info-top {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-text {
        font-size: 1rem;
    }

    .about-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .services-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .service-carousel-control {
        width: 40px;
        height: 40px;
    }

    .service-carousel-control.prev {
        left: -20px;
    }

    .service-carousel-control.next {
        right: -20px;
    }

    .cards-section {
        width: 95%;
        margin-top: -20vh;
        /* Еще меньше подъем на маленьких экранах */
        padding: 50px 0 30px 0;
    }

    .card-item {
        height: auto;
        padding: 20px 15px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.2rem;
    }

    .card-item h5 {
        font-size: 1rem;
    }

    .card-item h6 {
        font-size: 0.9rem;
    }

    .card-item p {
        font-size: 0.8rem;
    }

    .btn-order {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .truck-animation,
    .plane-animation,
    .ship-animation {
        height: 200px;
    }

    .truck-animation i,
    .plane-animation i,
    .ship-animation i {
        font-size: 4rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    /* На мобилке показываем стрелки для услуг, чтобы было явно */
    .service-carousel-control {
        display: flex !important;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    /* Мобилка: скрыть стрелки только у hero-карусели */
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        display: none !important;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        text-align: left !important;
    }

    /* Убираем лишний отступ снизу у услуг на мобильных */
    .services-section {
        padding-bottom: 10px;
    }

    #servicesCarousel .carousel-item .col-12.mb-4 {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 575.98px) {

    /* Услуги: убираем фиксированную высоту, чтобы не было пустого места */
    .services-section {
        height: 700px !important;
    }

    /* Hero: крупнее типографика и кнопка на мобильных */
    .carousel-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .carousel-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .btn-order {
        padding: 14px 30px;
        font-size: 1.05rem;
        border-radius: 56px;
    }

    .truck-animation i,
    .plane-animation i,
    .ship-animation i {
        font-size: 3rem;
    }

    .services-title {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .services-header {
        gap: 20px;
    }

    .service-carousel-control {
        width: 45px;
        height: 45px;
    }

    /* По одной карточке на слайд в услугах */
    #servicesCarousel .carousel-inner .carousel-item>.row {
        display: block;
    }

    #servicesCarousel .carousel-inner .carousel-item .col-lg-4,
    #servicesCarousel .carousel-inner .carousel-item .col-md-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .service-image {
        height: 150px;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin: 15px 15px 8px 15px;
    }

    .service-price {
        font-size: 1.3rem;
        margin: 0 15px 12px 15px;
    }

    .service-card p {
        margin: 0 15px 20px 15px;
        font-size: 0.9rem;
    }

    .btn-service {
        margin: 0 15px 20px 15px;
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Дополнительная оптимизация для маленьких экранов */
    .image-placeholder {
        padding: 80px 15px;
    }

    .carousel-bg {
        background-attachment: scroll;
        will-change: transform;
    }

    .header {
        backdrop-filter: blur(5px);
    }

    /* Дополнительная адаптивность для геолокации */
    .location-section {
        padding: 60px 0;
    }

    .location-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .location-map {
        height: 300px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-content h4 {
        font-size: 1.2rem;
    }

    .region-item {
        padding: 12px;
    }

    .btn-location {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Дополнительная адаптивность для FAQ */
    .faq-section {
        padding: 40px 0;
        background-size: 300px;
        background-position: right bottom;
    }

    .faq-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .faq-description {
        font-size: 0.9rem;
    }

    .faq-contact .contact-item {
        padding: 12px;
    }

    .faq-contact .contact-item h4 {
        font-size: 1rem;
    }

    .faq-contact .contact-item p {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 10px;
    }

    .faq-answer p {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    .btn-faq {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Адаптивность для контактов */
    .contact-section {
        padding: 60px 0;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 30px;
        flex-direction: column;
        gap: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-block {
        padding: 20px;
    }

    .contact-block-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .contact-block-header i {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .contact-block-header h3 {
        font-size: 1.2rem;
    }

    .contact-map {
        height: 300px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        padding: 6px 10px;
    }

    /* Дополнительная адаптивность для контактов на маленьких экранах */
    .contact-section {
        padding: 40px 0;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-grid {
        gap: 15px;
        margin-bottom: 25px;
    }

    .contact-block {
        padding: 15px;
    }

    .contact-block-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .contact-block-header i {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }

    .contact-block-header h3 {
        font-size: 1.1rem;
    }

    .contact-block-content p {
        font-size: 0.9rem;
    }

    .contact-map {
        height: 250px;
    }

    .social-link {
        padding: 5px 8px;
        font-size: 0.9rem;
    }

    .social-link i {
        font-size: 1rem;

    }

    /* Hero: высота 80% экрана на телефонах */
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-content {
        height: 80vh;
        min-height: 80vh;
    }

    .hero-section .carousel-bg {
        background-position: center bottom;
    }

    /* About (мобилка): заголовок перед картинкой, картинка крупнее, затем контент */
    .about-section .row {
        display: flex;
        flex-direction: column;
    }

    .about-section .about-image {
        order: 2;
        width: 100%;
    }

    .about-section .about-text {
        order: 3;
    }

    /* Прячем исходный заголовок внутри текста для мобилки */
    .about-section .about-text .section-title {
        display: none !important;
    }

    /* Стили заголовка, который будет вставлен перед картинкой через JS */
    .about-section .mobile-section-title {
        font-size: 1.9rem;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 16px 0;
        text-align: left;
        padding: 0 20px;
    }

    /* Картинка покрупнее на мобилке */
    .about-section .image-placeholder {
        width: 100%;
        min-height: 300px;
        border-radius: var(--border-radius);
    }

    /* Чуть ниже описание в about на мобилке */
    .about-section .about-description {
        margin-top: 12px;
    }

    /* Куда мы доставляем: скрыть CTA на мобилке, оставить место */
    .location-cta {
        min-height: 40px;
    }

    .location-cta .btn {
        display: none !important;
    }
}

/* Desktop/tablet: возвращаем видимую высоту для about image */
@media (min-width: 576px) {
    .about-section .image-placeholder {
        min-height: 420px;
    }
}

/* Дополнительные эффекты */
.carousel-bg {
    background-attachment: scroll;
}

@media (min-width: 992px) {
    .carousel-bg {
        background-attachment: fixed;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.logistics-content {
    max-width: 100%;
    background: #ebeff4;
    margin-bottom: -140px;
}

.logistics-content h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;


}

.logistics-container {
    max-width: 1330px;
    margin: 0 auto;
    position: relative;
    padding: 50px;
}

.logistics-step-wrapper {
    margin: 30px;
    margin-bottom: 200px;
    position: relative;
}

.logistics-linestep {
    text-align: center;
    max-width: 250px;
    position: absolute;
}

.logistics-linestep .num {
    color: #fff;
    border-radius: 100px;
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    background: #2563eb;
}

.logistics-linestep p {
    width: 250px;
    position: absolute;
    margin-top: 7px;
    font-weight: 500;
    line-height: normal;
    font-size: 18px;
}

.logistics-linestep p.top {
    bottom: 50px;
    left: -110px;
}

.logistics-linestep p.bottom {
    left: -110px;
}

.logistics-linestep p.left {
    width: 200px;
    right: 34px;
    top: -17px;
}

.logistics-linestep p.right {
    width: 200px;
    left: 34px;
    top: -17px;
}

.logistics-linestep {
    visibility: hidden;
}

.logistics-path {
    visibility: hidden;
}

.logistics-step-wrapper.move-line .logistics-path {
    visibility: visible;
    stroke-dasharray: 3700;
    stroke-dashoffset: 3700;
    animation: logistics-moveline 4s linear forwards;
}

.logistics-step-wrapper.move-line .logistics-linestep {
    animation-name: logistics-show-step-item;
    animation-duration: .2s;
    animation-fill-mode: forwards;
}

.logistics-step-wrapper.move-line .logistics-linestep1 {
    animation-delay: .4s;
}

.logistics-step-wrapper.move-line .logistics-linestep2 {
    animation-delay: .8s;
}

.logistics-step-wrapper.move-line .logistics-linestep3 {
    animation-delay: 1.2s;
}

.logistics-step-wrapper.move-line .logistics-linestep4 {
    animation-delay: 1.6s;
}

.logistics-step-wrapper.move-line .logistics-linestep5 {
    animation-delay: 2s;
}

.logistics-step-wrapper.move-line .logistics-linestep6 {
    animation-delay: 2.4s;
}

.logistics-step-wrapper.move-line .logistics-linestep7 {
    animation-delay: 2.8s;
}

.logistics-step-wrapper.move-line .logistics-linestep8 {
    animation-delay: 3.2s;
}

@keyframes logistics-show-step-item {
    from {
        transform: scale(.2);
        opacity: 0;
    }

    to {
        visibility: visible;
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes logistics-moveline {
    to {
        stroke-dashoffset: 0;
    }
}

/* Steps Section Styles (Mobile) */
.steps-section {

    background-color: #fff;
}

.steps-section h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    top: 30px;

}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    /* padding: 60px 100px; */
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-label {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 16px;
    width: max-content;
}

.step-label p {
    font-size: 15px;
    font-weight: 900;
    color: grey;
    margin: 0;
    text-transform: uppercase;
}

.step-label h6 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 2px 0 0;
}

.step:last-child .line {
    display: none;
}

.circle {
    width: 28px;
    height: 28px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1px 0;
}

.circle svg {
    width: 56px;
    height: 20px;
    fill: #2563eb;
}

.circle.done {
    border-color: #2563eb;
}

.circle.done svg {
    fill: #2563eb;
}

.circle.active {
    border-color: #2563eb;
}

.circle.active span {
    width: 12px;
    height: 12px;
    background-color: #2563eb;
    border-radius: 50%;
    display: block;
}

.circle:not(.done):not(.active) {
    border-color: #ccc;
}

.circle:not(.done):not(.active) span {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    display: block;
}

.line {
    width: 2px;
    height: 64px;
    margin: 0 auto;
}

.line.blue {
    background-color: #2563eb;
}

.line.gray {
    background-color: #d1d5db;
}

/* Mobile Enhancements for Steps Section */
@media (max-width: 768px) {
    .steps-section {
        padding: 40px 60px;
    }

    .step-section h1 {
        padding-top: 30px;
        font-size: large;
    }

    .about-content {
        margin-bottom: 0;
    }

    .services-header {
        margin-bottom: 20px;
    }

    .circle {
        width: 34px;
        height: 34px;
    }

    .circle.active span,
    .circle:not(.done):not(.active) span {
        width: 14px;
        height: 14px;
    }

    .step-label p {
        font-size: 12px;
    }

    .step-label h6 {
        font-size: 16px;
    }

    .line {
        height: 80px;
    }
}

/* Visibility Media Queries */
@media (max-width: 768px) {

    /* Hide logistics on mobile */
    .logistics-container {
        display: none;
    }

    .logistics-content {
        display: none;
    }
}

@media (min-width: 769px) {

    /* Hide steps-section on desktop */
    .steps-section {
        display: none;
    }
}