/* ================= ШРИФТ (Montserrat, без наклона — Google Fonts в index.html) ================= */


/* ================= ПЕРЕМЕННЫЕ ================= */
:root {
    --red: #e30613;
    --blue: #003366;
}

/* ================= ОСНОВА ================= */
html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 70px;
    background: #111;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* desktop: keep header always pinned */
@media (min-width: 769px) {
    body { padding-top: 0; }
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    /* keep hero content below fixed header (no white gap) */
    .hero {
        height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 0;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    /* hero content offset under fixed header */
    .hero-overlay {
        padding-top: 110px;
        padding-left: 80px;
        padding-right: 80px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .hero-content {
        padding: 0 !important;
    }

    /* статистика и кнопка CTA ниже по экрану (только ПК) */
    .hero-content .hero-stats {
        margin-top: clamp(56px, 11vh, 160px);
    }

    .hero-content .hero-btn {
        margin-top: 28px;
    }
}

/* ЛЕВАЯ ЧАСТЬ */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 55px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* МЕНЮ */
.nav {
    display: flex;
    gap: 25px;
    margin-left: 40px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.nav a:hover {
    color: var(--red);
}

/* Авито в шапке (слева от телефона; margin-left: auto прижимает группу Авито+телефон+кнопку вправо) */
.header-avito {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-avito-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.header-avito-link {
    position: relative;
    overflow: hidden;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6a00;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-avito-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
    z-index: 1;
    pointer-events: none;
}

.header-avito-link.has-custom-logo .header-avito-img {
    display: block;
}

.header-avito-link.has-custom-logo > i {
    display: none;
}

.header-avito-link:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.55);
}

.header .phone {
    color: white;
    font-weight: bold;
    margin-left: 14px;
    flex-shrink: 0;
}

/* ================= HERO (УМЕНЬШЕН) ================= */
.hero {
    height: 60vh; /* было 65vh → стало меньше */

    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('images/hero-bg.jpg') center/cover no-repeat;

    display: flex;
    align-items: flex-start;

    padding: 40px 80px 10px 80px; /* меньше сверху → всё поднимется */
}

.overlay {
    width: 100%;
    color: white;
}



.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-left {
    max-width: 550px;
}

.hero-left h1 {
    font-size: 65px;
    line-height: 1.1;
}

.hero-list p {
    font-size: 20px;
    margin: 8px 0;
}

.hero-right {

    max-width: 420px;

    margin-left: auto;
    margin-right: 40px;

    margin-top: 60px; /* текст ниже */

    padding: 30px;

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,0.2);

}

.hero-text {
    font-size: 20px;      /* если хочешь крупнее */
    font-weight: 600;     /* жирнее */
    line-height: 1.6;

    margin-top: 20px;     /* 🔥 опускает только текст */
    margin-bottom: 20px;
}

.hero-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

/* ================= КНОПКА ================= */
.btn {
    background: linear-gradient(45deg, #e30613, #ff3b3b);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(227,6,19,0.4);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ================= 🚚 АНИМАЦИЯ ================= */
.truck {
    width: 120px;
    margin: 20px 0;
    animation: moveTruck 6s linear infinite;
}

.truck img {
    width: 100%;
    transform: scaleX(-1);
}

@keyframes moveTruck {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(200px); }
}

/* ================= СЕКЦИИ (ПОДТЯНУЛИ ВВЕРХ) ================= */
.services,
.delivery,
.about,
.process,
.warehouse,
.contacts-block {
    padding: 80px 80px;
    text-align: center;
}

/* ВАЖНО — подтягиваем вверх */
.services {
    margin-top: -30px;
}

/* СЕТКА */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* ================= КАРТОЧКИ ================= */
.card {

    position: relative;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s;
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer; /* <-- добавляем сюда */
}

.card i {
    font-size: 30px;
    color: var(--red);
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-10px) scale(1.05); /* карточка немного увеличивается */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* тень становится сильнее */
}

/* ================= КАК МЫ РАБОТАЕМ ================= */
.process .grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= СКЛАД ================= */
.warehouse img {
    width: 100%;
    border-radius: 15px;
}

/* ================= POPUP ================= */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999; /* ВОТ ЭТО ГЛАВНОЕ */
}

.popup-content {
    background: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    width: 500px;
}

.popup-content .btn {
    margin-top: 25px;
}

.popup-content .small {
    margin-top: 15px;
}



.popup input {
    width: 70%;
    padding: 10px;
    margin: 10px 0;
}

.close {
    float: right;
    cursor: pointer;
}

.small {
    font-size: 12px;
}

/* кнопка эффект */
.popup-content .btn {
    transition: 0.25s;
}

.popup-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(227,6,19,0.4);
}

/* при клике */
.popup-content .btn:active {
    transform: scale(0.96);
}




/* ================= НАШИ УСЛУГИ — заголовок и стрелка ================= */
.services h2 {
    font-size: 48px; /* увеличиваем размер заголовка */
    position: relative;
    display: inline-block; /* чтобы ::after центрировалось */
    margin-bottom: 20px; /* отступ до карточек */
}

/* стрелка под заголовком */
.services h2::after {
    content: "↓"; /* символ стрелки вниз */
    display: block;
    font-size: 24px;
    margin: 10px auto 0 auto; /* отступ сверху, центрирование */
    color: var(--red); /* красная стрелка */
    animation: bounceDown 1s infinite; /* добавляем анимацию */
}

/* анимация пульса вниз */
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}






.services .card {
    position: relative;
    padding: 70px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s, transform 0.3s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    color: white;
}

/* фон для каждой карточки */
.services .grid .card:nth-child(1) { background: url('images/card-1.jpg') center/cover no-repeat; }
.services .grid .card:nth-child(2) { background: url('images/card-2.jpg') center/cover no-repeat; }
.services .grid .card:nth-child(3) { background: url('images/card-3.jpg') center/cover no-repeat; }
.services .grid .card:nth-child(4) { background: url('images/card-4.jpg') center/cover no-repeat; }
.services .grid .card:nth-child(5) { background: url('images/card-5.jpg') center/cover no-repeat; }
.services .grid .card:nth-child(6) { background: url('images/card-6.jpg') center/cover no-repeat; }

/* затемнение */
.services .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    z-index: 0;
}

.services .card i,
.services .card h3 {
    position: relative;
    z-index: 1;
}

/* эффект наведения */
.services .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}









/* ================= Секция Доставка ================= */
.delivery {
    background: white; /* оставляем фон белым */
    color: black;      /* основной текст черный */
    padding: 30px 80px 80px 80px; /* было 80 сверху → стало 50 */
}

/* Заголовок Доставка из Китая — крупный по центру */
.delivery h2 {
    font-size: 48px;     /* крупный размер */
    margin-bottom: 28px; /* отступ до подзаголовка */
    text-align: center;   /* по центру */
}

/* Подзаголовок "Как мы работаем" — слева, чуть ниже */
.delivery .process-title {
    font-size: 28px;     /* поменьше крупного заголовка */
    margin-top: -20px;   /* немного выше, регулируешь на глаз */
    margin-bottom: 30px; /* отступ до карточек */
    text-align: left;    /* слева */
    color: black;        /* черный текст */
}

/* Сетка карточек */
.process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Карточка */
.process-card {
    background: #111; /* черный квадрат */
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;

    cursor: default;
}

/* Номер */
.process-card span {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--red);
    margin-bottom: 10px;
}

/* Текст */
.process-card h4 {
    font-size: 18px;
    margin: 0;
}

/* Эффект наведения */
.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}



/* Чёрный блок */
.process-wrapper {
    background: #111;
    padding: 80px; /* было 90 → стало компактнее */
    border-radius: 25px;
    margin-top: 40px;

    max-width: 1200px; /* было 1350 → уже */
    margin-left: auto;
    margin-right: auto;
    border: 3px solid var(--red);
box-shadow: 0 0 0 4px rgba(227,6,19,0.15);
}

/* Заголовок */
.process-wrapper .process-title {
    color: white;
    text-align: left;
    margin-bottom: 30px;
}

/* Сетка как на скрине */
.process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Карточка */
.process-card {
    background: #f1f1f1;
    padding: 35px;
    border-radius: 18px;
    position: relative;
    transition: 0.3s;

    height: 160px;              /* фиксированная высота */
    display: flex;
    flex-direction: column;
    justify-content: center;    /* центрируем текст */
}

/* Текст */
.process-card h4 {
    margin: 20px 0 0 0;
    font-size: 20px;
    color: black;
    line-height: 1.3;
}

.process-card span {
   position: absolute;
    top: 15px;
    left: 15px;

    font-size: 16px;
    font-weight: bold;
    color: gray;
}
/* Кружок с иконкой */
.process-card .icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; 
}

/* Hover */
.process-card:hover {
    transform: translateY(-5px);
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* было 20 */
}


/* фон карточек доставки */
.delivery-grid .card {
    position: relative;
    padding: 60px 30px;
    border-radius: 15px;
    color: white;
    overflow: hidden;
}

/* картинки */
.delivery-grid .card:nth-child(1) {
    background: url('images/train.jpg') center/cover no-repeat;
}

.delivery-grid .card:nth-child(2) {
    background: url('images/truck-1.jpg') center/cover no-repeat;
}

.delivery-grid .card:nth-child(3) {
    background: url('images/truck-2.jpg') center/cover no-repeat;
}

/* затемнение */
.delivery-grid .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* текст поверх */
.delivery-grid .card * {
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: 0.3s;
}

.delivery-grid .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}


/* ===== ЗАГОЛОВОК ДОСТАВКИ ===== */

.delivery-title {
    text-align: center;
    margin: 40px 0 20px 0;
}

.delivery-title h3 {
    font-size: 42px;
    color: black;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* красная линия */
.delivery-title h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* подзаголовок */
.delivery-title p {
    font-size: 18px;
    color: #555;
}

/* ===== БЛОК ПОД КАРТОЧКАМИ ===== */

.delivery-cta {
    text-align: center;
    margin-top: 55px;
}

.delivery-cta p {
    font-size: 18px;
    color: #555; /* как подзаголовок */
    margin-bottom: 15px;
}

/* кнопка чуть меньше основной */
.delivery-btn {
    padding: 12px 25px;
    font-size: 16px;
}

/* ================= ПОИСК ПОСТАВЩИКОВ (НОВЫЙ) ================= */

.suppliers {
    
    margin-top: 100px;
    position: relative;
    position: relative;
    overflow: hidden;

    padding-top: 180px;  /* БОЛЬШЕ СВЕРХУ */
    padding-bottom: 180px;

    background: url('images/suppliers-bg.jpg') center/cover no-repeat;

}


/* затемнение отдельным слоем */
.suppliers::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* было 0.65 → стало легче */
    z-index: 0;
}

/* чтобы карточка была поверх */


.suppliers-box {
    position: relative;
    z-index: 1;

    max-width: 1200px;
    margin: 0 auto;

    background: white;

    padding: 50px 120px 70px; /* было 80 → стало компактнее сверху */

    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);

    text-align: left;
}

/* ЗАГОЛОВОК */
.suppliers-title {
    font-size: 42px;
    color: black;
    margin-bottom: 20px;
}




.suppliers-title span {
    color: var(--red);
}

.suppliers-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--red);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ТЕКСТ */
.suppliers-text {
    font-size: 22px;
    color: black;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* СПИСОК — ТЕПЕРЬ РЕАЛЬНО ПО ЦЕНТРУ */
.suppliers-list {
    margin: 30px 0;
}

/* один пункт */
.suppliers-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: start;
    gap: 15px;

    margin: 16px 0;
}




/* текст */
.suppliers-item span {
    font-size: 20px;
    color: black;
    line-height: 1.4;
}

/* иконки */
.suppliers-item i {
    color: var(--red);
    font-size: 18px;
    min-width: 20px;
    margin-top: 5px;
}





/* текст */
.suppliers-item span {
    color: black;
font-size: 20px;
    gap: 15px;

}


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



.suppliers-btn {
    display: block;
    margin: 30px auto 0 auto;
    padding: 15px 36px;
    font-size: 15px;
    
}

.suppliers-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.suppliers-content {
    flex: 1;
}

.suppliers-image {
    flex: 1;
    text-align: right;
}

.suppliers-image img {
    max-width: 400px;
    width: 100%;
}


.suppliers-box {
    position: relative;
}

/* ================= ВЫКУП И ПРОВЕРКА ================= */




/* ================= ВЫКУП И ПРОВЕРКА ================= */

.inspection {
    margin: 80px;
    border-radius: 25px;
    overflow: hidden; /* чтобы фон не вылезал */
}

/* фон с затемнением */
.inspection-inner {
    padding: 100px 80px;
    text-align: center;

    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('images/inspection.jpg') center/cover no-repeat;
}

/* заголовок */
.inspection-title {
    font-size: 42px;
    color: white;
    margin-bottom: 10px;
}

.inspection-subtitle {
    font-size: 18px;
    color: white; /* было #ddd */
    margin-bottom: 60px;
}

/* сетка */
.inspection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* карточки */
.inspection-card {
    background: rgba(255,255,255,0.95); /* полупрозрачные */
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* иконки */
.inspection-card .icon {
    font-size: 35px;
    margin-bottom: 15px;
}

/* hover без движения */
.inspection-card:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* CTA */
.inspection-cta {
    margin-top: 50px;
}

.inspection-cta p {
    color: white; /* было #ddd */
    margin-bottom: 15px;
    font-size: 18px;
}

/* ================= ФУЛФИЛМЕНТ НОВЫЙ ================= */




.fulfillment {
    margin-top: 80px;
    padding: 100px 0;

    background: url('images/fulfillment-bg.jpg') center/cover no-repeat;
    position: relative;
}

/* затемнение */
.fulfillment::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* белая карточка */
.fulfillment-box {
    position: relative;
    z-index: 1;

    max-width: 1000px;
    margin: 0 auto;

    background: white;
    padding: 50px 70px;
    border-radius: 20px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* заголовок */
.fulfillment-title {
    font-size: 42px;
    text-align: center;
    color: black;
    margin-bottom: 20px;
}

/* линия */
.fulfillment-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* текст */
.fulfillment-text {
    font-size: 20px;
    color: black;
    text-align: left; /* ← ВОТ ЭТО ГЛАВНОЕ */
    margin-bottom: 15px;
    line-height: 1.6;
}

/* список */
.fulfillment-list {
    margin: 30px 0;
}

/* элемент */
.fulfillment-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 15px;
    align-items: start;
    margin: 14px 0;
}

.fulfillment-item i {
    color: var(--red);
    font-size: 18px;
    margin-top: 5px;
}

.fulfillment-item span {
    font-size: 19px;
    color: black;
    line-height: 1.5;
}

/* кнопка по центру */
.fulfillment-btn {
    display: block;
    margin: 30px auto 0 auto;
}



/* ===== СКЛАД ГАЛЕРЕЯ ===== */

.warehouse-gallery .container {
    max-width: 100%;
    padding: 0 40px; /* или 20px если хочешь почти впритык */
}

.warehouse-slider-outer {
    display: block;
    max-width: none;
    width: calc(100% - 80px);
    margin: 40px auto;
}

.warehouse-arrow {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: #fff;
    color: var(--red);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.warehouse-arrow:hover {
    background: var(--red);
    color: #fff;
}

/* слайдер */
.warehouse-slider {
    overflow: hidden;
    width: 100%;
}

/* движение */
.warehouse-track {
    display: flex;
    gap: 25px;
    width: max-content; /* 🔥 ВАЖНО */
    animation: warehouseScroll 50s linear infinite;
}

/* 🔥 стоп при наведении */
.warehouse-slider:hover .warehouse-track {
    animation-play-state: paused;
}

/* картинки */
.warehouse-track img {
    width: 400px; /* не маленькие, но и не огромные */
    height: 400px;
    object-fit: cover;

    border-radius: 15px;

    transition: 0.3s;
    cursor: pointer;
}

/* hover эффект */
.warehouse-track img:hover {
    transform: scale(1.05);
}

/* анимация */
@keyframes warehouseScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.warehouse-slider {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 20px;
    border: 3px solid var(--red);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.warehouse-track img:hover {
    transform: scale(1.06);
}

/* ================= WHY ================= */

.why {
    padding: 80px 80px; /* было 80px 0 → стало как у других блоков */
    background: #fff;
}

.why-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    position: relative;
}

.why-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* сетка */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto; /* центр */
}




/* карточка */
.why-card {
    position: relative;
    background: white;
    padding: 38px 22px 30px;
    border-radius: 18px;
    text-align: center;

    border: 1.5px solid #111;

    transition: 0.25s;
}

/* hover */
.why-card:hover {
    transform: none;
    box-shadow: none;
}

/* иконка */
.why-card i {
    font-size: 30px;
    color: var(--red);
    margin-bottom: 15px;
}

/* заголовок */
.why-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

/* текст */
.why-card p {
    font-size: 14px;
    color: #555;
}

/* 🔴 СТИКЕР */
.why-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;

    background: var(--red);
    color: white;

    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;

    border-radius: 6px;
}



/* ================= О КОМПАНИИ (ПРЕМИУМ ВЕРСИЯ) ================= */

.about-company {
    padding: 120px 80px;
    background: #fff; /* чисто белый */
}

/* ФОН */
.about-box {
    max-width: 1300px;
    margin: 20px auto 0;

    padding: 40px 60px;

    background: none;   /* ❌ никакого фона */
    box-shadow: none;   /* ❌ убрали тень */
    border-radius: 0;   /* ❌ убрали карточность */
}

/* затемнение */
.about-box::before {
    position: relative; /* ОБЯЗАТЕЛЬНО */

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45); /* мягче и чище */

    z-index: 0;
}

/* флекс */
.about-flex {
    display: flex;
    align-items: stretch; /* 🔥 НЕ stretch */
    gap: 60px;
}



/* 📸 ФОТО */
.about-image {
    flex: 1.2;
    position: relative;
}

/* 📝 НОВЫЙ ТЕКСТ НАД ФОТО (ПК ВЕРСИЯ) */
.about-new-caption {
    position: absolute;
    top: -40px;
    left: 20px; /* сдвигаем вправо */
    
    font-size: 18px;
    color: #666; /* серый цвет как было */
    font-weight: 500;
    white-space: nowrap;
    
    max-width: 600px;
    text-align: left;
}

.about-image img {
    width: 100%;
    max-width: 520px;
 
    object-fit: cover;   /* чтобы не ломалось */
    border-radius: 20px;

    border: 4px solid var(--red); /* 🔥 акцент */

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}


/* контент */
.about-content {
       display: flex;
}

/* карточка */
.about-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.08);

    max-width: 600px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height: auto;        /* 🔥 */

      min-height: 520px; /* примерно как фото */
}



/* заголовок */
.about-card-title {
    font-size: 30px;
    margin-bottom: 20px;
    color: #000;
}

/* текст */
.about-card p {
    font-size: 20px;
    line-height: 1.6;
    color: #111;
    margin-bottom: 18px;
}

/* акценты */
.about-card span {
    color: var(--red);
    font-weight: bold;
}

/* факты */
.about-features {
    margin-top: 25px;
}

.about-features div {
    font-size: 16px;
    margin: 8px 0;
}

/* кнопка */
.about-btn {
    margin-top: 25px;
}

/* ================= ЦИФРЫ ================= */

.stats-big {
    padding: 80px 80px 100px;
    background: #fff;
}

/* контейнер */
.stats-container {
    max-width: 1200px;
    margin: -200px auto 0; /* 🔥 поднимаем вверх */

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

/* блок */
.stat {
    text-align: center;
    transition: 0.3s;
}

.stat:hover {
    transform: translateY(-8px);
}

/* 🔥 ЦИФРЫ */
.stat h2 {
    font-size: 56px;
    color: #000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* 🔥 КРАСНАЯ ЧЕРТОЧКА */
.stat h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: red;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* текст */
.stat p {
    font-size: 18px;
    color: #111;
    font-weight: 600;
    line-height: 1.5;
}

.about-company {
    border-top: 1px solid #eee;
}


.about-image {
    position: relative;
}

/* подпись */
.about-image {
    position: relative;
}

/* подпись */
.about-image {
    flex: none;              /* 🔥 убираем растягивание */
    text-align: center;      /* центрируем */
}

.about-image img {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto;
}

.about-image {
    position: relative;
    display: inline-block;   /* теперь по размеру картинки */
}

/* подпись */
.about-image {
    position: relative;
    display: inline-block;
}

/* подпись */
.about-caption {
    position: absolute;
    top: -30px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(520px, 92vw);
    text-align: center;

    font-size: 16px;
    color: #888; /* мягкий серый */

    white-space: normal; /* на моб/узких экранах не уезжаем */
}




/* ================= ОТЗЫВЫ СЛАЙДЕР ================= */

/* блок */
.reviews {
    padding: 100px 80px;
    background: #fff; /* было серое */
}

/* заголовок */
.reviews-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
}

/* красная линия */
.reviews-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* верх с авито */
.reviews-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.avito-logo {
    width: 40px;
}

.reviews-top p {
    font-size: 18px;
    margin: 0;
}

.reviews-avito-line {
    margin-top: 4px;
}

.reviews-avito-link {
    font-size: 18px;
    font-weight: bold;
    color: var(--red);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.reviews-avito-link:hover {
    text-decoration: underline;
}

/* слайдер */
.reviews-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

/* лента */
.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease; /* плавная анимация */
}

/* сами картинки */
.reviews-track img {
    width: 280px;
    height: 560px;

    object-fit: contain;
    background: #111;

    padding: 10px; /* рамка */
    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    flex-shrink: 0;
}
/* стрелки */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

/* hover */
.arrow:hover {
    background: var(--red);
    color: white;
}


/* ================= КОНТАКТЫ НОВЫЕ ================= */

.contacts-new {
    padding: 100px 80px;
    background: #111;
    color: white;
}

.contacts-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    position: relative;
}

.contacts-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* обёртка */
.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* левая часть */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.contact-item i {
    color: var(--red);
    font-size: 20px;
}

/* форма */
.contacts-form {
    background: white;
    color: black;
    padding: 40px;
    border-radius: 20px;
    width: 350px;
}

.contacts-form h3 {
    margin-bottom: 20px;
}

.contacts-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

.contacts-form button {
    width: 100%;
}

/* МЫ В СОЦ СЕТЯХ */
.contacts-social {
    max-width: 1100px;
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.contacts-social-title {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
}

.contacts-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contacts-soc-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.contacts-soc-btn:hover {
    transform: scale(1.08);
}

.contacts-soc-btn.telegram {
    background: #2aabee;
}

.contacts-soc-btn.vk {
    background: #0077ff;
}

.contacts-soc-btn.avito {
    position: relative;
    overflow: hidden;
    background: #ff6a00;
    font-size: 24px;
}

.contacts-soc-avito-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
    z-index: 1;
    pointer-events: none;
}

.contacts-soc-btn.avito.has-custom-logo .contacts-soc-avito-img {
    display: block;
}

.contacts-soc-btn.avito.has-custom-logo > i {
    display: none;
}



/* ================= FOOTER ================= */

.footer {
    background: #000;
    color: white;
    padding: 50px 80px 20px;
}

/* верх */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

/* логотип */
.footer-logo img {
    width: 60px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-weight: bold;
}

/* ссылки */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

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

/* реквизиты */
.footer-info p {
    font-size: 14px;
    color: #aaa;
    margin: 5px 0;
}

/* низ */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 15px;
    font-size: 14px;
    color: #777;
}



/* ================= FLOAT SOCIAL (одна кнопка → раскрытие) ================= */

.floating-social {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
}

.float-fab-main {
    position: relative;
    overflow: hidden;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(145deg, #e30613, #b5050f);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-fab-custom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
    z-index: 1;
    pointer-events: none;
}

.float-fab-main.has-fab-photo .float-fab-custom {
    display: block;
}

.float-fab-main.has-fab-photo .icon-fab-msg {
    display: none;
}

.floating-social.is-open .float-fab-main .float-fab-custom {
    display: none !important;
}

.floating-social.is-open .float-fab-main .icon-fab-close {
    position: relative;
    z-index: 2;
}

.float-fab-main:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.float-fab-main .icon-fab-close {
    display: none;
    font-size: 24px;
}

.floating-social.is-open .float-fab-main .icon-fab-msg {
    display: none;
}

.floating-social.is-open .float-fab-main .icon-fab-close {
    display: block;
}

.float-fab-links {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 58px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.floating-social.is-open .float-fab-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.float-fab-links .float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.float-fab-links .float-btn:hover {
    transform: scale(1.08);
}

.float-btn.phone {
    background: #16a34a;
}

.float-btn.telegram {
    background: #2aabee;
}

.float-btn.vk {
    background: #0077ff;
}

/* мобильные: меню вверх; column-reverse — телефон у красной кнопки, дальше вверх TG / VK */
@media (max-width: 768px) {
    .floating-social {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        right: max(14px, env(safe-area-inset-right, 0px));
    }

    .float-fab-main {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .float-fab-links {
        bottom: calc(100% + 12px);
        top: auto;
        flex-direction: column-reverse;
        gap: 10px;
        transform: translateY(12px);
        width: 54px;
        align-items: center;
    }

    .floating-social.is-open .float-fab-links {
        transform: translateY(0);
    }

    .float-fab-links .float-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin: 0;
    }
}

#successMessage {
    display: none;
    color: #e30613;
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    text-align: center;
}



/* ошибка */
.input-error {
    border: 1px solid red !important;
    animation: shake 0.3s;
}

/* тряска */
@keyframes shake {
    0% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    50% { transform: translateY(4px); }
    75% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* анимация появления */
.popup {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    opacity: 1;
}

/* сам блок */
.popup-content {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: 0.35s ease;
}

/* когда открыт */
.popup.active .popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* кнопка в header */
.header-btn {
    margin-left: 18px;
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 14px;
}

/* burger + mobile menu (desktop defaults) */
.burger {
    display: none;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px;
    margin-left: auto;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 4px 0;
}

.mobile-menu {
    display: none;
}

.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* dropdown */
.nav-item {
    position: relative;
    display: flex;
    align-items: center; /* выравнивает по линии */
}

.nav {
    display: flex;
    gap: 25px;
    margin-left: 40px;
    align-items: center; /* ВОТ ЭТО ФИКСИТ КРИВОТУ */
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* было 120% → из-за этого и был разрыв */
    left: 0;

    background: #111;
    border-radius: 10px;

    display: flex;
    flex-direction: column;

    min-width: 220px;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;

    transition: 0.25s;
    z-index: 1000;
}

.dropdown-menu a {
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--red);
    color: white;
}

/* появление */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}


section {
    scroll-margin-top: 90px;
}

#main-examples {
    scroll-margin-top: 90px;
}


.animate {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.6s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}



.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* слева */
.animate-left {
    transform: translateX(-60px);
}

.animate-left.show {
    transform: translateX(0);
}

/* справа */
.animate-right {
    transform: translateX(60px);
}

.animate-right.show {
    transform: translateX(0);
}


.card {
    cursor: pointer;
}



.delivery-intro {
    max-width: 800px;
    margin: 10px auto 80px;
    text-align: center;
    color: #000; /* ← черный */
    font-size: 18px; /* чуть крупнее */
    line-height: 1.7;
}



/* бейдж */
.badge {
    display: inline-block;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
}

.badge.light {
    background: rgba(0,0,0,0.08);
}

.delivery h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
}

/* красная линия */
.delivery h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ================= БЕЛАЯ ДОСТАВКА (центр, без карточек) ================= */

.delivery > .delivery-subtext {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.delivery-white-showcase {
    max-width: 1000px;
    margin: 8px auto 52px;
    padding: 0 12px;
}

.delivery-white-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 44px;
    align-items: center;
}

.delivery-white-visual {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--red);
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    aspect-ratio: 4 / 3;
}

.delivery-white-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-white-content {
    padding: 4px 0;
    text-align: left;
}

.delivery-white-badge {
    display: inline-block;
    margin: 0 0 14px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.09);
    color: var(--red);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delivery-white-title {
    margin: 0 0 22px;
    font-size: 34px;
    font-weight: 800;
    color: #111;
    line-height: 1.15;
}

.delivery-white-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.delivery-white-list li {
    position: relative;
    padding: 14px 0 14px 38px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 17px;
    line-height: 1.45;
    color: #333;
}

.delivery-white-list li:last-child {
    border-bottom: none;
}

.delivery-white-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.delivery-white-lead {
    margin: 26px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: #444;
    font-weight: 600;
}

@media (max-width: 900px) {
    .delivery-white-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .delivery-white-content {
        text-align: center;
        max-width: 520px;
        margin: 0 auto;
    }

    .delivery-white-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .delivery-white-list {
        max-width: 480px;
        margin: 0 auto;
    }

    .delivery-white-list li {
        text-align: left;
    }
}


.delivery-intro{
    max-width:800px;
    margin:20px auto 40px;
    text-align:center;
    font-size:22px;
    line-height:1.8;
}



.delivery-intro-wrapper {
    max-width: 820px;             /* ширина блока */
    margin: 20px auto 40px;       /* центр и отступы сверху/снизу */
    padding: 30px 40px;           /* внутренние отступы */
    border: 3px solid #E53935;    /* красная рамка */
    border-radius: 12px;          /* скругление углов */
    text-align: center;           /* центрируем текст */
    background-color: rgba(255, 255, 255, 0.85); /* полупрозрачный белый фон, чтобы фоновая картинка была видна */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* легкая тень */
    font-size: 22px;               /* размер текста */
    line-height: 1.8;              /* межстрочный интервал */
    font-weight: 500;              /* чуть жирнее */
}

/* выделение ключевых слов красным */
.delivery-intro-wrapper span {
    color: #E53935;
    font-weight: 600;
}

/* иконки */
.delivery-icon{
    margin:10px 0 25px;
}

.delivery-icon i{
    color:var(--red);
    font-size:26px;
}

/* большая стрелка */
.delivery-arrow{
    font-size:46px;
    color:var(--red);
    margin-top:20px;
    animation:arrowMove 1.2s infinite;
}

/* анимация */
@keyframes arrowMove{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(15px)}
}


.delivery-section {
    text-align: center;
    margin-top: 40px;
}

.delivery-subtext {
    color: #666666;       /* одинаковый серый цвет */
    font-size: 18px;       /* одинаковый размер */
    line-height: 1.6;      /* одинаковый интерлиньяж */
    margin-top: 10px;      /* расстояние между текстами */
}

/* ================= HERO ================= */

.hero{
position:relative;
height:80vh;
display:flex;
align-items:flex-start;
padding-top:120px;
justify-content:center;
overflow:hidden;
text-align:center;
color:white;
}

/* видео */

.hero-video{
position:absolute;
top:50%;
left:50%;
width:120%;
height:120%;
object-fit:cover;
transform:translate(-50%,-50%);
z-index:-2;
}

/* затемнение */

.hero::after{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,0.6);
z-index:-1;
}

/* контент */

.hero-content{
max-width:900px;
margin:0 auto;
padding:20px;
display:flex;
flex-direction:column;
align-items:center;
}

/* заголовок */

.hero h1{
font-size:72px;
line-height:1.1;
margin-bottom:30px;
}

/* статистика */

.hero-stats{
display:flex;
gap:50px;
margin-bottom:30px;
}

.hero-stats b{
font-size:28px;
display:block;
}

.hero-stats span{
font-size:14px;
opacity:0.8;
}

/* кнопка */

.hero-btn{
font-size:20px;
padding:18px 45px;
}

/* ================= ROUTE ================= */

.hero-route {
    position: absolute;
    bottom: clamp(100px, 18vh, 200px);
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 92vw);
    max-width: 92%;
    z-index: 5;
    pointer-events: none;
}

/* линия */

.route-line{
    stroke:#e30613;
    stroke-width:3;
    fill:none;

    stroke-dasharray:1000;
    stroke-dashoffset:1000;
}

/* точки */

.route-dot{
fill:#e30613;
}

/* подписи */

.route-label{
position:absolute;
transform:translate(-50%, 0);
color:white;
font-size:14px;
font-weight:bold;
}

/* Китай */
.route-label.china{
left:80px;
top:135px;
}

/* Москва */
.route-label.russia{
left:750px;
top:135px;
}

/* Только на очень низком экране (ПК) — иначе дорога видна; скрытие по JS при реальном наезде на кнопку */
@media (min-width: 769px) and (max-height: 620px) {
    .hero-route {
        display: none !important;
    }
}

/* если JS видит наезд на кнопку/статистику — дорога скрывается */
.hero-route.hero-route--hidden-overlap {
    display: none !important;
    visibility: hidden;
}


/* анимация линии */

@keyframes routeDraw{
to{
stroke-dashoffset:0;
}
}

.route-dot {
    fill: #e30613;
    filter: drop-shadow(0 0 6px rgba(227,6,19,0.7));
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}





/* плавный переход между видео */


.hero-video {
  position: absolute;
  opacity: 0;
  transition: none; /* 🔥 обязательно убрать CSS transition */
}

.hero-video.active {
  opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, 0.45); /* степень затемнения */
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

/* стрелка */
.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;

    border-bottom: 2px solid white;
    border-right: 2px solid white;

    transform: rotate(45deg);
    animation: scrollArrow 1.2s infinite;
}

/* ✅ НОВАЯ анимация БЕЗ исчезновения */
@keyframes scrollArrow {
    0% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(6px, 6px);
    }
    100% {
        transform: rotate(45deg) translate(0, 0);
    }
}


/* ================= FAQ ================= */

.faq {
    padding: 100px 80px;
    background: #f8f8f8;
}

/* заголовок */

.faq-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    position: relative;
}

.faq-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* контейнер */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* элемент */

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;

    border: 2px solid #eee;
    transition: 0.3s;
}

/* вопрос */

.faq-question {
    padding: 22px 25px;
    font-size: 18px;
    font-weight: bold;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
}

/* плюс */

.faq-icon {
    font-size: 24px;
    color: var(--red);
}

/* ответ */

.faq-answer {
    max-height: 0;
    overflow: hidden;

    padding: 0 25px;

    font-size: 16px;
    color: #555;

    transition: 0.3s;
}

/* когда открыт */

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 15px 25px 25px;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* hover */

.faq-item:hover {
    border-color: var(--red);
}











@media (max-width:768px){

/* ❌ убираем тяжелый hero */
.hero-video-wrapper{
    display:none;
}

/* ❌ убираем маршрут */
.hero-route{
    display:none;
}

/* ❌ убираем hover-анимации */
.card:hover{
    transform:none;
    box-shadow:none;
}

/* ❌ убираем стрелки слайдера */
.arrow{
    display:none;
}

}







/* ================= SUPER MOBILE FIX ================= */
@media (max-width:768px){

/* ===== 1. УБИРАЕМ ВСЁ ТЯЖЁЛОЕ ===== */

/* видео */
.hero-video-wrapper{
    display:none !important;
}

/* маршрут */
.hero-route{
    display:none !important;
}

/* сложные анимации */
.animate,
.animate-left,
.animate-right{
    opacity:1 !important;
    transform:none !important;
}

/* отключаем hover */
.card:hover,
.process-card:hover{
    transform:none !important;
    box-shadow:none !important;
}

/* ===== 2. HERO УПРОЩАЕМ ===== */

.hero{
    background:url('images/hero-bg.jpg') center/cover no-repeat;
    padding:120px 20px 60px;
    height:auto;
}

.hero h1{
    font-size:30px;
}

.hero-stats{
    flex-direction:column;
    gap:15px;
}

.hero-btn{
    width:100%;
}

/* ===== 3. HEADER УПРОЩАЕМ ===== */

.header .phone{
    display:none; /* убираем номер в шапке */
}

.header-btn{
    display:none; /* убираем кнопку */
}

/* ===== 4. СЕТКИ В КОЛОНКУ ===== */

.grid,
.process-cards,
.inspection-grid,
.why-grid{
    display:flex;
    flex-direction:column;
}

/* ===== 5. КАРТОЧКИ ===== */

.card{
    padding:20px !important;
}

/* ===== 7. ОТСТУПЫ ===== */

section{
    padding:60px 20px !important;
}

/* ===== 8. ТЕКСТ ===== */

h2{
    font-size:26px;
}

p{
    font-size:15px;
}

/* ===== 9. СЛАЙДЕР ===== */

.reviews-track img{
    width:200px;
    height:400px;
}

.arrow{
    display:none;
}

}



@media (max-width:768px){

.nav{
    display:none;
}

}

html, body {
    overflow-x: hidden;
}




@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 20px;
    }

    .hero-content {
        padding-top: 0 !important;
        margin-top: 60px !important;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-stats {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .stat b {
        font-size: 16px;
    }

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

    .hero-btn {
        margin-top: 20px;
        width: 100%;
    }
}



@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 10px 15px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo {
        width: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav {
        display: none; /* меню скрываем на телефоне */
    }

    .header .phone {
        display: none;
    }
}









@media (max-width: 768px) {
    h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }

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



@media (max-width: 768px) {

    .delivery,
    .why,
    .suppliers,
    .inspection,
    .fulfillment {
        padding: 40px 15px; /* было больше — делаем компактно */
    }

}



@media (max-width: 768px) {

    .delivery,
    .why,
    .suppliers,
    .inspection,
    .fulfillment {
        background-size: cover;
        background-position: center;
    }

}




@media (max-width: 768px) {

    section {
        padding: 40px 15px;
    }

    h2 {
        margin-bottom: 15px;
    }

}


@media (max-width: 768px) {

    .card,
    .why-card,
    .inspection-card,
    .process-card {
        padding: 15px;
        font-size: 13px;
    }

    .card h3,
    .why-card h3 {
        font-size: 15px;
    }

}




@media (max-width:768px){
    .suppliers-box,
    .fulfillment-box,
    .about-card,
    .contacts-form {
        padding: 15px !important;
    }
}


@media (max-width:768px){
    h1 { font-size: 26px !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }

    p, span {
        font-size: 14px !important;
        line-height: 1.5;
    }
}



img, video {
    max-width: 100%;
    height: auto;
}











@media (max-width:768px){

/* ===== БЛОК ===== */
.inspection{
    margin: 20px 10px;
    border-radius: 15px;
}

/* ===== ФОН ===== */
.inspection-inner{
    padding: 40px 15px;

    /* делаем фон проще и понятнее */
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        url('images/inspection.jpg') center/cover no-repeat;
}

/* ===== ЗАГОЛОВОК ===== */
.inspection-title{
    font-size: 22px;
    line-height: 1.3;
}

.inspection-subtitle{
    font-size: 14px;
    margin-bottom: 25px;
}

/* ===== СЕТКА → В КОЛОНКУ ===== */
.inspection-grid{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== КАРТОЧКИ ===== */
.inspection-card{
    padding: 18px 15px;
    border-radius: 12px;

    /* делаем аккуратнее */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* иконка */
.inspection-card .icon{
    font-size: 24px;
    margin-bottom: 8px;
}

/* текст */
.inspection-card h4{
    font-size: 14px;
    line-height: 1.4;
}

/* ===== CTA ===== */
.inspection-cta{
    margin-top: 25px;
}

.inspection-cta p{
    font-size: 14px;
}

/* ===== КНОПКА ===== */
.inspection-cta .btn{
    width: 100%;
    padding: 14px;
}

}





/* ===== слайдер ===== */

@media (max-width:768px){

/* warehouse mobile — см. MOBILE REBUILD */

}



@media (max-width:768px){

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

/* 📝 НОВЫЙ ТЕКСТ НАД ФОТО (МОБИЛЬНАЯ ВЕРСИЯ) */
.about-new-caption {
    position: static; /* убираем absolute позиционирование */
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    white-space: normal; /* разрешаем перенос строк */
    padding: 0 20px;
}

/* картинка */
.about-image img{
    max-width: 280px;
    border-radius: 15px;
}

/* карточка */
.about-card{
    padding: 20px;
    min-height: auto;
}

/* текст */
.about-card p{
    font-size: 14px;
}

.about-card-title{
    font-size: 20px;
}

}





@media (max-width:768px){

.stats-container{
    margin: 40px auto 0; /* убрали отрицательный */
    grid-template-columns: 1fr;
    gap: 25px;
}

/* цифры */
.stat h2{
    font-size: 32px;
}

.stat p{
    font-size: 14px;
}

}




@media (max-width:768px){

.reviews-track{
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

/* карточки */
.reviews-track img{
    flex: 0 0 auto;
    scroll-snap-align: start;

    width: 200px;
    height: 400px;
}

}



@media (max-width:768px){

.reviews-track{
    transform: none !important;
    transition: none !important;

    overflow-x: auto;
    display: flex;
    gap: 15px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* элементы */
.reviews-track img{
    flex: 0 0 auto;
    scroll-snap-align: start;

    width: 260px;
    height: 500px;
}

}




@media (max-width:768px){

.warehouse-slider{
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    border-radius: 0; /* растягиваем */
}

.warehouse-track img{
    width: 300px;
    height: 260px;
    object-fit: cover;
}

}

@media (max-width:768px){

.suppliers-title{
    font-size: 22px;
    text-align: center;
}

.suppliers-title span{
    font-size: 22px; /* возвращаем норм размер */
}

}



@media (max-width:768px){

.about-image img{
    max-width: 340px;
    width: 100%;
}

}



@media (max-width:768px){

.about-caption{
    position: static;
    display: block;

    text-align: center;
    margin-bottom: 10px;

    font-size: 14px;
    color: #888;
}

}




/* ==== FIX OVERRIDES (НЕ ЛОМАЕТ СТРУКТУРУ) ==== */

@media (max-width:768px){

.reviews-track{
    display:flex !important;
    overflow-x:auto !important;
    transform:none !important;
}

/* warehouse mobile — см. MOBILE REBUILD */

.about-image{
    display:flex;
    justify-content:center;
}

.about-image img{
    margin:0 auto !important;
    display:block;
}

.suppliers-title span{
    font-size:22px !important;
}

}


@media (max-width:768px){

.hero{
    padding:100px 15px 40px;
}

.hero h1{
    font-size:24px;
    font-weight:900;
}

.hero-btn{
    width:100%;
    padding:16px;
    font-size:16px;
}

}







@media (max-width:768px){

.suppliers-image{
    display:none;
}

.delivery-intro-wrapper{
    display:none;
}

}



@media (max-width:768px){

section{
    padding:40px 15px !important;
}

h2{
    font-size:22px !important;
    margin-bottom:15px;
}

p{
    font-size:14px !important;
    line-height:1.5;
}

}




@media (max-width:768px){

.services h2{
    margin-bottom:10px; /* было больше */
}

.services h2::after{
    margin:5px auto 0; /* стрелка ближе */
    font-size:18px;
}

.services .grid{
    margin-top:10px; /* карточки ближе к стрелке */
}

}




@media (max-width:768px){

.why-card{
    padding:12px !important;
    border-radius:12px;
}

.why-card h3{
    font-size:14px !important;
}

.why-card p{
    font-size:12px !important;
}

.why-grid{
    gap:10px !important;
}

}



@media (max-width:768px){
.delivery-arrow{
    display:none !important;
}
}


/* ================= MOBILE REBUILD (SAFE OVERRIDES) ================= */
@media (max-width: 768px) {
    /* global */
    *, *::before, *::after { box-sizing: border-box; }
    html, body { overflow-x: hidden; }
    body { padding-top: 64px; }

    /* consistent spacing between blocks */
    section { padding: 52px 18px !important; }

    h1 { font-size: 30px !important; line-height: 1.22 !important; }
    h2 { font-size: 24px !important; line-height: 1.25 !important; margin-bottom: 16px !important; }
    h3 { font-size: 18px !important; line-height: 1.25 !important; }
    p { font-size: 15px !important; line-height: 1.55 !important; }

    /* header */
    .header {
        padding: 10px 16px !important;
        gap: 10px;
        flex-wrap: nowrap;
        position: fixed !important; /* надежнее sticky на iOS */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    .logo { height: 40px !important; }
    .logo-text { font-size: 14px !important; }

    .header-avito {
        display: none !important;
    }

    .nav { display: none !important; }
    .header .phone { display: none !important; }
    .header-btn { display: none !important; }

    .burger { display: inline-flex !important; align-items: center; justify-content: center; }

    /* offcanvas menu */
    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        pointer-events: none;
    }

    .mobile-menu__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.55);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .mobile-menu__panel {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: min(360px, 86vw);
        background: #111;
        color: #fff;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        padding: 18px 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.35);
    }

    .mobile-menu.open { pointer-events: auto; }
    .mobile-menu.open .mobile-menu__overlay { opacity: 1; }
    .mobile-menu.open .mobile-menu__panel { transform: translateX(0); }

    .mobile-menu__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-menu__brand { font-weight: 800; letter-spacing: 0.5px; }

    .mobile-menu__close {
        appearance: none;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 28px;
        line-height: 1;
        padding: 8px 10px;
        cursor: pointer;
    }

    .mobile-menu__links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 6px;
    }

    .mobile-menu__links a,
    .mobile-menu__accordion {
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        font-size: 15px;
        padding: 12px 12px;
        border-radius: 12px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .mobile-menu__accordion {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        cursor: pointer;
    }

    .mobile-menu__submenu {
        display: none;
        margin-top: -6px;
        padding-left: 10px;
        gap: 8px;
        flex-direction: column;
    }
    .mobile-menu__submenu.open { display: flex; }
    .mobile-menu__submenu a {
        font-weight: 600;
        font-size: 14px;
        background: rgba(255,255,255,0.04);
    }

    .mobile-menu__cta {
        margin-top: auto;
        display: grid;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    .mobile-menu__cta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-menu__cta-row .mobile-menu__phone {
        flex: 1;
        min-width: 0;
        padding: 8px 0;
        font-size: 15px;
        line-height: 1.25;
        word-break: break-word;
        color: #fff;
        text-decoration: none;
        font-weight: 800;
    }

    .mobile-menu__avito-btn {
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ff6a00;
        color: #fff;
        font-size: 24px;
        text-decoration: none;
        box-shadow: 0 8px 20px rgba(255, 106, 0, 0.42);
        border: 2px solid rgba(255, 255, 255, 0.35);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-menu__avito-btn:active {
        transform: scale(0.95);
    }

    .mobile-menu__avito-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: none;
        z-index: 1;
        pointer-events: none;
    }

    .mobile-menu__avito-btn.has-custom-logo .mobile-menu__avito-img {
        display: block;
    }

    .mobile-menu__avito-btn.has-custom-logo > i {
        display: none;
    }

    .mobile-menu__btn { width: 100% !important; }

    /* hero: контент выше по экрану, кнопка по центру (горизонтально и в блоке) */
    .hero-video-wrapper { display: block !important; }
    .hero-route { display: none !important; }

    .hero {
        height: 88dvh !important;
        max-height: 88dvh !important;
        min-height: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hero > .hero-overlay {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: calc(52px + env(safe-area-inset-top, 0px)) 18px calc(40px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        object-fit: cover !important;
    }

    .hero-content {
        padding: 0 !important;
        min-height: 0 !important;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px !important;
        transform: translateY(-42px);
    }

    .hero h1 {
        font-size: clamp(25px, 6.8vw, 31px) !important;
        line-height: 1.18 !important;
        margin: 0 0 10px !important;
        padding: 0 8px !important;
        text-align: center !important;
        max-width: 26ch;
        width: 100%;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px !important;
        margin-bottom: 6px !important;
        width: 100%;
        max-width: 420px;
    }
    .hero-stats b { font-size: 19px !important; }
    .hero-stats span { font-size: 14px !important; }

    .hero-btn {
        width: min(100%, 360px) !important;
        max-width: 360px;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 17px 26px !important;
        font-size: 18px !important;
        margin-top: 10px !important;
        align-self: center !important;
    }

    .hero .scroll-down {
        bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 10px !important;
    }

    /* services */
    .grid { grid-template-columns: 1fr !important; gap: 14px !important; }
    .services .card { padding: 40px 22px !important; }
    .services h2::after { font-size: 18px !important; margin-top: 6px !important; }

    .delivery { padding: 48px 16px !important; }

    /* delivery: белая доставка */
    .delivery-white-showcase {
        margin: 12px 0 36px !important;
        padding: 0 !important;
    }
    .delivery-white-inner {
        gap: 20px !important;
    }
    .delivery-white-visual {
        border-radius: 16px !important;
        max-width: 420px;
        margin: 0 auto;
    }
    .delivery-white-title {
        font-size: 22px !important;
        margin-bottom: 16px !important;
    }
    .delivery-white-list li {
        font-size: 15px !important;
        padding: 12px 0 12px 34px !important;
    }
    .delivery-white-list li::before {
        top: 11px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }
    .delivery-white-lead {
        font-size: 16px !important;
        margin-top: 18px !important;
    }
    .delivery-white-badge {
        font-size: 11px !important;
        padding: 7px 14px !important;
    }

    /* «Как мы работаем» — заголовок вынесен визуально из тёмной карточки, по центру + красная черта */
    .process-wrapper {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 8px 0 24px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        max-width: 100% !important;
    }

    .process-wrapper .process-title {
        order: -1 !important;
        text-align: center !important;
        color: #111 !important;
        font-size: 26px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin: 0 auto 0 !important;
        width: 100%;
        position: relative;
    }

    .process-wrapper .process-title::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        background: var(--red);
        margin: 12px auto 0;
        border-radius: 2px;
    }

    .process-cards {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        background: #111 !important;
        border: 3px solid var(--red) !important;
        border-radius: 20px !important;
        padding: 20px 14px !important;
        box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.12) !important;
    }

    .process-card {
        height: auto !important;
        padding: 18px 14px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 150px;
        border-radius: 16px !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .process-card:active {
        transform: scale(0.98);
    }
    .process-card h4 {
        margin: 18px 0 0 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 260px;
    }
    .process-card .icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        top: 12px !important;
        right: 12px !important;
    }

    /* suppliers */
    .suppliers { padding: 64px 16px !important; }
    .container { padding: 0 18px !important; }
    .suppliers-box {
        padding: 36px 20px !important;
        text-align: left !important;
        border: 4px solid var(--red);
        border-radius: 18px;
    }
    .suppliers-title {
        text-align: center !important;
        font-size: 28px !important;
        line-height: 1.25 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suppliers-title::after {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .suppliers-text { font-size: 19px !important; }
    .suppliers-item span { font-size: 16px !important; }
    .suppliers-title span,
    .suppliers-text span {
        font-size: 1em !important; /* red highlight same size as text */
    }

    /* inspection */
    .inspection { margin: 16px !important; border-radius: 16px !important; }
    .inspection-inner { padding: 48px 16px !important; }
    .inspection-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .inspection-card { padding: 18px 14px !important; border-radius: 14px !important; }
    .inspection-subtitle { font-size: 19px !important; }
    .inspection-card p { font-size: 16px !important; }

    /* fulfillment */
    .fulfillment { padding: 64px 16px !important; }
    .fulfillment-box { padding: 22px 16px !important; }
    .fulfillment-text { font-size: 19px !important; }
    .fulfillment-item span { font-size: 14px !important; }
    .fulfillment-btn { width: 100% !important; }

    /* warehouse gallery: на всю ширину экрана, крупнее фото и рамка */
    .warehouse-gallery {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden;
    }

    .warehouse-gallery .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .warehouse-gallery .delivery-title {
        padding-left: 18px;
        padding-right: 18px;
        margin-bottom: 14px;
    }

    .warehouse-slider-outer {
        display: block !important;
        position: relative;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .warehouse-arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 4;
        width: 44px !important;
        height: 44px !important;
        font-size: 26px !important;
        border-width: 3px !important;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }

    .warehouse-arrow--prev {
        left: 10px;
    }

    .warehouse-arrow--next {
        right: 10px;
    }

    .warehouse-slider {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 18px 16px !important;
        border-radius: 0 !important;
        border: 5px solid var(--red) !important;
        box-shadow: none !important;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .warehouse-track {
        animation: none !important;
        width: max-content;
        gap: 16px !important;
        padding: 0 2px 4px;
    }

    .warehouse-track img {
        width: min(82vw, 360px) !important;
        height: min(82vw, 360px) !important;
        flex: 0 0 auto;
        scroll-snap-align: center;
        border-radius: 14px !important;
    }

    .contacts-social {
        margin-top: 40px !important;
        padding-top: 32px !important;
    }
    .contacts-social-title {
        font-size: 18px !important;
    }
    .contacts-soc-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 22px !important;
    }

    /* about */
    .about-company { padding: 72px 16px !important; }
    .about-box { padding: 0 !important; }
    .about-flex { flex-direction: column !important; gap: 16px !important; }
    .about-image {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .about-caption {
        position: static !important;
        width: 100% !important;
        max-width: 360px;
        padding: 0 10px;
        white-space: normal !important;
        margin: 0 0 10px 0 !important;
        text-align: center !important;
        align-self: center !important;
    }
    .about-image img { max-width: 340px !important; }
    .about-card { padding: 22px 16px !important; min-height: auto !important; }
    .about-card p { font-size: 19px !important; line-height: 1.55 !important; }
    .about-card p span,
    .about-card span {
        font-size: 1em !important; /* keep red highlights same size */
    }

    /* stats */
    .stats-container {
        margin: 24px auto 0 !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .stat h2 { font-size: 32px !important; }

    /* reviews: make it swipeable */
    .arrow { display: none !important; }
    .reviews-track {
        transform: none !important;
        transition: none !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 14px !important;
    }
    .reviews-track img {
        width: 240px !important;
        height: 460px !important;
        scroll-snap-align: start;
    }

    /* появления при скролле (перебиваем «всегда видно» из SUPER MOBILE) */
    .animate:not(.show),
    .animate-left:not(.show),
    .animate-right:not(.show) {
        opacity: 0 !important;
        transform: translate3d(0, 40px, 0) !important;
        transition:
            opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    .animate-left:not(.show) {
        transform: translate3d(-28px, 32px, 0) !important;
    }

    .animate-right:not(.show) {
        transform: translate3d(28px, 32px, 0) !important;
    }

    .animate.show,
    .animate-left.show,
    .animate-right.show {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .services .card,
    .why-card,
    .inspection-card,
    .fulfillment-item {
        transition: transform 0.32s ease, box-shadow 0.32s ease !important;
    }

    .faq-item {
        transition: box-shadow 0.28s ease, transform 0.28s ease;
    }

    /* contacts */
    .contacts-new { padding: 64px 16px !important; }
    .contacts-wrapper { flex-direction: column !important; gap: 18px !important; }
    .contacts-form { width: 100% !important; padding: 22px 16px !important; }
    .contact-item { font-size: 14px !important; }

    /* popup */
    .popup-content {
        width: min(420px, 92vw) !important;
        padding: 24px 16px !important;
    }
    .popup input { width: 100% !important; }
}


/* Уважение к prefers-reduced-motion на мобилке */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .animate,
    .animate-left,
    .animate-right,
    .animate.show,
    .animate-left.show,
    .animate-right.show {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ================= ПЛАНШЕТ / iPad (769px — 1180px) ================= */
@media (min-width: 769px) and (max-width: 1180px) {

    .header {
        padding: 10px 28px !important;
    }

    .nav {
        gap: 16px;
        margin-left: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .header .phone {
        font-size: 14px;
        margin-left: 12px;
    }

    .header-btn {
        margin-left: 12px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .hero-overlay {
        padding-top: 96px !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-bottom: 32px !important;
    }

    .hero h1 {
        font-size: clamp(36px, 5.5vw, 52px) !important;
        line-height: 1.12 !important;
        margin-bottom: 20px !important;
    }

    .hero-content .hero-stats {
        margin-top: clamp(28px, 5vh, 72px) !important;
        gap: 28px !important;
    }

    .hero-stats b {
        font-size: 22px;
    }

    .hero-stats span {
        font-size: 13px;
    }

    .hero-btn {
        padding: 16px 32px;
        font-size: 17px;
    }

    .hero-route {
        bottom: clamp(72px, 14vh, 140px);
        width: min(720px, 94vw);
        transform: translateX(-50%) scale(0.92);
        transform-origin: center bottom;
    }

    .route-label {
        font-size: 13px;
    }

    .route-label.china {
        left: 9%;
    }

    .route-label.russia {
        left: 82%;
    }

    .services,
    .delivery,
    .why,
    .inspection,
    .fulfillment,
    .about-company,
    .contacts-new,
    .faq,
    .reviews {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .services h2,
    .delivery h2,
    .why-title,
    .faq-title,
    .reviews-title,
    .contacts-title {
        font-size: 36px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }

    .services .card {
        padding: 48px 24px !important;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .process-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .process-wrapper {
        padding: 48px 32px !important;
    }

    .delivery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .delivery-grid .card:last-child {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .inspection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .delivery-white-inner {
        gap: 32px;
    }

    .delivery-white-title {
        font-size: 28px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .contacts-wrapper {
        gap: 32px !important;
    }

    .contacts-form {
        width: 100%;
        max-width: 380px;
    }

    .footer {
        padding: 40px 40px 20px !important;
    }

    .floating-social {
        right: 16px;
        bottom: 22px;
    }
}

/* iPad / планшет в альбомной ориентации, низкая высота — дорога чуть ниже, без полного скрытия */
@media (min-width: 769px) and (max-width: 1180px) and (max-height: 800px) {
    .hero-content .hero-stats {
        margin-top: clamp(20px, 4vh, 48px) !important;
    }

    .hero-route {
        bottom: 56px;
        transform: translateX(-50%) scale(0.85);
        transform-origin: center bottom;
    }
}
