/* ======================================================
   CUSTOM.CSS - Импорт и таможня (Китайская версия)
   Версия: 2.1
   Цвета: #c40c23, #333, #fff | Базовый шрифт: 16px
====================================================== */

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root { --red: #c40c23; --red-dark: #9e0a1c; --red-light: rgba(196,12,35,0.08); --dark: #333; --gray-light: #f5f5f5; --gray-border: #e0e0e0; --text: #333; --text-muted: #666; }

/* ---------- БАЗОВЫЕ СТИЛИ ---------- */
.import-services { font-size: 20px; line-height: 1.8; background: linear-gradient(135deg, #fff 0%, var(--gray-light) 100%); padding: 40px 0 80px; color: var(--text); }
.import-services p, .import-services li, .import-services div, .import-services span { font-size: inherit; }

/* ---------- ЗАГОЛОВКИ ---------- */
.import-services .hero-title { font-size: 52px; font-weight: 800; margin-bottom: 20px; color: #fff; }
.import-services .hero-title span { font-size: 26px; font-weight: 400; color: rgba(255,255,255,0.95); }
.import-services .section-title { font-size: 40px; font-weight: 800; margin-bottom: 45px; color: var(--dark); border-left: 5px solid var(--red); padding-left: 22px; }
.import-services h3, .import-services .problem-card h3, .import-services .step-content h3, .import-services .support-card h3, .import-services .tariff-card__title { font-size: 20px; font-weight: 700; }
.import-services .hero-desc, .import-services .why-card p, .import-services .final-message p { font-size: 18px; line-height: 1.55; }
.import-services .problem-card p, .import-services .step-content p, .import-services .support-card p, .import-services .tariff-card__features li { font-size: 18px; line-height: 1.8;}
.import-services .hero-stat__value { font-size: 32px; font-weight: 800; color: #fff; }
.import-services .tariff-card__price { font-size: 32px; font-weight: 800; color: var(--red); }
.section-label { font-size: 16px; letter-spacing: 4px; text-transform: uppercase; color: var(--red); margin-bottom: 15px; font-weight: 700; }

/* ---------- АНИМАЦИИ ---------- */
.animate-on-scroll { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.8s cubic-bezier(0.2,0.9,0.4,1.1), transform 0.7s cubic-bezier(0.2,0.9,0.4,1.1); }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0) scale(1); }
.problem-card, .tariff-card, .support-card { transition: all 0.35s ease-out; }
.problem-card:hover, .tariff-card:hover, .support-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 35px rgba(196,12,35,0.12); border-color: var(--red); }

/* ---------- ОТСТУПЫ МЕЖДУ БЛОКАМИ ---------- */
.why-now, .problems-section, .how-we-help, .comparison-section, .tariffs-section, .route-section, .support-links, .wechat-block, .final-message { margin-bottom: 90px; }

/* ---------- HERO БЛОК (КАРТИНКА ВИДНА) ---------- */
.hero-block { position: relative; border-radius: 28px; overflow: hidden; margin-bottom: 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.hero-image { position: relative; z-index: 1; display: block; }
.hero-image img, .hero-banner { display: block; width: 100%; height: auto; }
.hero-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2; pointer-events: none; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; }
.hero-title, .hero-desc, .hero-stat__value, .hero-stat__label { text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.95); color: var(--red); padding: 8px 24px; border-radius: 50px; font-size: 14px; margin-bottom: 20px; font-weight: 700; }
.hero-desc { max-width: 767px; margin: 0 auto 30px; color: #fff; }
.hero-stats { display: flex; justify-content: center; gap: 45px; margin-bottom: 35px; flex-wrap: wrap; }
.hero-stat { text-align: center; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); padding: 8px 20px; border-radius: 50px; }
.hero-stat__label { font-size: 16px; color: rgba(255,255,255,0.9); }


/* ---------- КНОПКИ ---------- */
.btn-red { background: var(--red); border: none; padding: 16px 44px; font-weight: 700; color: #fff; transition: all 0.3s; border-radius: 50px; display: inline-block; text-decoration: none; font-size: 18px; }
.btn-red:hover, .btn-red:focus { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(196,12,35,0.35); color: #fff !important; text-decoration: none; }
.btn-scroll { cursor: pointer; }

/* ---------- WHY NOW (улучшенный, более выразительный) ---------- */
.why-card { 
    background: linear-gradient(135deg, #fff 0%, rgba(196,12,35,0.02) 100%); 
    border: 1px solid var(--gray-border); 
    border-radius: 28px; 
    padding: 40px 30px; 
    text-align: center; 
    height: 100%; 
    transition: all 0.35s ease-out; 
    box-shadow: 0 12px 24px rgba(0,0,0,0.06); 
}
.why-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--red); 
    box-shadow: 0 25px 40px rgba(196,12,35,0.15); 
    background: linear-gradient(135deg, #fff, rgba(196,12,35,0.05));
}
.why-card i { 
    color: var(--red); 
    margin-bottom: 25px; 
    font-size: 56px; 
}
.why-card h3 { 
    margin-bottom: 15px; 
    font-size: 22px; 
    font-weight: 700;
}
.why-card p { 
    color: var(--text-muted); 
    line-height: 1.55; 
    font-size: 15px;
}
@media (max-width: 767px) { 
    .why-card { padding: 30px 20px; } 
    .why-card i { font-size: 48px; } 
    .why-card h3 { font-size: 20px; }
}

/* ---------- ПРОБЛЕМЫ (с видимой фоновой картинкой) ---------- */
.problems-section { 
    position: relative; 
    margin-bottom: 90px; 
    padding: 40px 30px; 
    border-radius: 28px; 
    background: url('/pages/images/problems-bg.jpg') no-repeat bottom center; 
    background-size: cover; 
}
/* Лёгкое затемнение для читаемости текста — НО картинка остаётся видна */
.problems-section::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.1);
    border-radius: 28px; 
    z-index: 1; 
}
.problems-section .section-label,
.problems-section .section-title,
.problems-grid { 
    position: relative; 
    z-index: 2; 
}
.problems-grid { margin: 0 -15px; }
.problem-card { background: rgba(255,255,255,0.95); border: 1px solid var(--gray-border); border-radius: 20px; padding: 28px 20px; margin-bottom: 30px; height: 100%; text-align: center; box-shadow: 0 8px 18px rgba(0,0,0,0.04); }
.problem-card i { color: var(--red); margin-bottom: 20px; font-size: 48px; }
.problem-card h3 { margin-bottom: 12px; }
.problem-card p { color: var(--text-muted); min-height: 65px; }


.section-label { 
    font-size: 22px !important; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    color: var(--red) !important; 
    margin-bottom: 18px; 
    font-weight: 800 !important; 
}

/* ---------- CANVAS для таймлайна (перебивает основные стили) ---------- */
#timelineCanvas { 
    display: block !important; 
    width: 100% !important; 
    height: 120px !important; 
    margin-bottom: 30px !important; 
    border-radius: 20px !important; 
    min-height: 120px !important; 
    max-height: 120px !important; 
    overflow: hidden !important; 
}

/* ---------- ТАЙМЛАЙН ---------- */
.steps-timeline { position: relative; padding-left: 45px; }
.steps-timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--red), #e0e0e0); border-radius: 3px; }
.step-item { display: flex; gap: 28px; margin-bottom: 45px; position: relative; }
.step-number { flex-shrink: 0; width: 52px; height: 52px; background: var(--red-light); border: 2px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: var(--red); transition: all 0.3s; }
.step-item:hover .step-number { background: var(--red); color: #fff; transform: scale(1.05); }
.step-content { flex: 1; word-break: break-word; }
.step-content h3 { margin-bottom: 8px; line-height: 1.3; }
.step-content p { color: var(--text-muted); }

/* ---------- ТАБЛИЦА СРАВНЕНИЯ ---------- */
.comparison-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.comparison-card { flex: 1; min-width: 280px; border-radius: 28px; padding: 30px; transition: all 0.35s; box-shadow: 0 12px 25px rgba(0,0,0,0.05); }
.comparison-card--ours { background: linear-gradient(135deg, #fff, var(--red-light)); border: 2px solid var(--red); }
.comparison-card--alone { background: linear-gradient(135deg, #fff, #f8f8f8); border: 1px solid var(--gray-border); }
.comparison-card:hover { transform: translateY(-8px); box-shadow: 0 25px 40px rgba(0,0,0,0.1); }
.comparison-card__header { text-align: center; margin-bottom: 25px; }
.comparison-card__header i { color: var(--red); margin-bottom: 10px; font-size: 32px; }
.comparison-card__header h3 { font-size: 24px; margin: 0; }
.comparison-card__list { list-style: none; padding: 0; }
.comparison-card__list li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.comparison-card__list li i { margin-right: 12px; width: 22px; }
.comparison-card--ours .comparison-card__list li i { color: var(--red); }
.comparison-card--alone .comparison-card__list li i { color: #c0c0c0; }

/* Анимированный эффект вместо картинки */
.compare-effect { 
    margin-bottom: 10px; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    border-radius: 28px; 
    background: linear-gradient(135deg, rgba(196,12,35,0.03), rgba(196,12,35,0.01));
    padding: 20px 20px;
}
.effect-lines { position: relative; height: 60px; margin-bottom: 30px; }
.effect-line { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: lineMove 3s ease-in-out infinite; }
.effect-line:nth-child(1) { top: 0; width: 80%; left: 10%; animation-delay: 0s; }
.effect-line:nth-child(2) { top: 20px; width: 60%; left: 20%; animation-delay: 0.5s; }
.effect-line:nth-child(3) { top: 40px; width: 40%; left: 30%; animation-delay: 1s; }
.effect-line:nth-child(4) { top: 50px; width: 20%; left: 40%; animation-delay: 1.5s; }
@keyframes lineMove { 0% { opacity: 0; transform: translateX(-20px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(20px); } }
.effect-dots { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: space-around; align-items: center; }
.effect-dots span { width: 8px; height: 8px; background: var(--red); border-radius: 50%; opacity: 0; animation: dotPulse 4s ease-in-out infinite; }
.effect-dots span:nth-child(1) { animation-delay: 0s; }
.effect-dots span:nth-child(2) { animation-delay: 0.6s; }
.effect-dots span:nth-child(3) { animation-delay: 1.2s; }
.effect-dots span:nth-child(4) { animation-delay: 1.8s; }
.effect-dots span:nth-child(5) { animation-delay: 2.4s; }
.effect-dots span:nth-child(6) { animation-delay: 3.0s; }
@keyframes dotPulse { 0% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.5); } }


/* ---------- ТАРИФЫ ---------- */
.tariffs-note { color: var(--text-muted); margin-bottom: 30px; text-align: center; font-size: 14px; }
.tariffs-grid { margin: 0 -15px; }
.tariff-card { background: #fff; border: 1px solid var(--gray-border); border-radius: 24px; padding: 28px 20px; margin-bottom: 30px; height: 100%; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
.tariff-card:hover { transform: translateY(-8px); border-color: var(--red); box-shadow: 0 25px 40px rgba(196,12,35,0.15); }
.tariff-card--highlight { border: 2px solid var(--red); background: linear-gradient(135deg, #fff, var(--red-light)); }
.tariff-card__title { font-weight: 800; margin-bottom: 12px; }
.tariff-card__period { margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.tariff-card__features { list-style: none; padding: 0; text-align: left; }
.tariff-card__features li { padding: 8px 0; padding-left: 24px; position: relative; word-break: break-word; }
.tariff-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: bold; }
.tariffs-note-bottom { margin-top: 25px; padding: 16px; background: linear-gradient(135deg, #f8f8f8, #f0f0f0); border-radius: 16px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* ---------- МАРШРУТ ПОСТАВКИ (КРАСНЫЙ ГРАДИЕНТ) ---------- */
.route-section { 
    text-align: left; 
    background: linear-gradient(135deg, var(--red) 0%, #8a0818 100%); 
    border-radius: 32px; 
    padding: 50px 30px; 
    margin-bottom: 90px; 
}
.route-section .section-label { 
    color: #fff !important; 
    background: rgba(255,255,255,0.2); 
    display: inline-block; 
    padding: 6px 20px; 
    border-radius: 50px; 
    margin-bottom: 15px; 
    letter-spacing: 3px; 
    font-size: 13px; 
}
.route-section .section-title { color: #fff; border-left-color: #fff; margin-bottom: 40px; }
.route-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 40px; }
.route-step { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 14px 28px; border-radius: 60px; border: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; white-space: normal; word-break: break-word; color: #fff; font-weight: 500; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.route-step:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px) scale(1.02); border-color: rgba(255,255,255,0.6); }
.route-arrow i { color: rgba(255,255,255,0.9); font-size: 20px; margin: 0 5px; }
.route-result {   padding: 20px 30px;    border-radius: 60px;    font-weight: 700;    color: #fff;    display: inline-block;    
backdrop-filter: blur(4px);     margin-right: 10px; font-size: 18px;}

@media (max-width: 767px) { 
    .route-section { padding: 30px 20px; } 
    .route-step { padding: 10px 18px; font-size: 14px; } 
    .route-flow { gap: 8px; } 
    .route-arrow i { font-size: 16px; } 
    .route-result { padding: 15px 20px; font-size: 14px; }
}


/* ---------- БЛОК СВЯЗИ С ДРУГИМИ УСЛУГАМИ ---------- */
.support-grid { margin: 0 -15px; }
.support-card { display: block; background: linear-gradient(135deg, #fff, #fafafa); border: 1px solid var(--gray-border); border-radius: 24px; padding: 32px 20px; margin-bottom: 25px; text-align: center; transition: all 0.35s; color: var(--dark); text-decoration: none; box-shadow: 0 10px 22px rgba(0,0,0,0.05); }
.support-card:hover { transform: translateY(-8px); border-color: var(--red); box-shadow: 0 25px 40px rgba(196,12,35,0.12); text-decoration: none; }
.support-card i { color: var(--red); margin-bottom: 20px; font-size: 48px; }
.support-card h3 { margin-bottom: 12px; }
.support-card p { margin: 0; }
.support-card--active { border: 2px solid var(--red); background: linear-gradient(135deg, #fff, var(--red-light)); cursor: default; }
.support-card--active:hover { transform: none; box-shadow: 0 10px 22px rgba(0,0,0,0.05); }

/* ---------- WECHAT БЛОК ---------- */
.wechat-container { background: linear-gradient(135deg, #fff, #fafafa); border-radius: 40px; padding: 50px 30px; text-align: center; border: 1px solid var(--gray-border); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.wechat-icon { color: var(--red); margin-bottom: 20px; font-size: 64px; }
.wechat-qr { width: 220px; height: 220px; margin: 0 auto 20px; display: block; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.wechat-id { font-size: 20px; margin-bottom: 10px; }
.wechat-id strong { color: var(--red); }
.wechat-tip { color: var(--text-muted); margin-top: 15px; font-size: 15px; }

/* ---------- ФИНАЛЬНЫЙ МЕССЕДЖ ---------- */
.final-message { text-align: center; background: linear-gradient(135deg, var(--red-light), rgba(196,12,35,0.03)); padding: 45px; border-radius: 32px; border-left: 5px solid var(--red); color: var(--dark); box-shadow: 0 10px 25px rgba(0,0,0,0.04); }
.final-message p { margin-bottom: 15px; }
.final-message .ru-text { color: var(--red); }

/* ======================================================
   АДАПТИВНОСТЬ — 5 БРЕЙКПОИНТОВ
====================================================== */
@media (max-width: 480px) {
    .import-services { padding: 20px 0 50px; }
    .import-services .hero-title { font-size: 32px; }
    .import-services .hero-title span { font-size: 20px; }
    .import-services .section-title { font-size: 26px; padding-left: 15px; }
    .import-services h3 { font-size: 18px; }
    .import-services .hero-stat__value { font-size: 24px; }
    .import-services .tariff-card__price { font-size: 28px; }
    .hero-stats { gap: 20px; }
    .hero-stat { padding: 6px 14px; }
    .problem-card p { min-height: 75px; font-size: 14px; }
    .wechat-qr { width: 140px; height: 140px; }
    .support-card { padding: 24px 15px; }
    .support-card h3 { font-size: 18px; }
    .final-message { padding: 25px; }
    .route-step { padding: 10px 16px; font-size: 13px; }
}
@media (min-width: 481px) and (max-width: 767px) {
    .import-services .hero-title { font-size: 38px; }
    .import-services .hero-title span { font-size: 22px; }
    .import-services .section-title { font-size: 30px; }
    .hero-stats { gap: 30px; }
    .problem-card p { min-height: 70px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .tariffs-grid .col-sm-6, .support-grid .col-sm-6 { width: 50%; }
    .import-services .hero-title { font-size: 44px; }
}
@media (min-width: 992px) and (max-width: 1252px) {
    .tariffs-grid .col-md-4, .support-grid .col-md-4 { width: 33.333%; }
}
@media (min-width: 1253px) {
    .tariffs-grid .col-md-4 { width: 33.333%; }
}
@media (max-width: 767px) {
    .why-now, .problems-section, .how-we-help, .comparison-section, .tariffs-section, .route-section, .support-links, .wechat-block, .final-message { margin-bottom: 60px; }
    .hero-image { display: none; }
    .hero-overlay { position: relative; background: linear-gradient(135deg, #fff, #f0f0f0); padding: 30px 20px; }
    .hero-title { color: var(--dark) !important; }
    .hero-title span { color: var(--text-muted) !important; }
    .hero-desc { color: var(--text) !important; text-shadow: none; }
    .hero-stat { background: var(--gray-light); }
    .hero-stat__value { color: var(--red) !important; }
    .hero-stat__label { color: var(--text-muted) !important; }
    .hero-block { margin-bottom: 40px; }
    .steps-timeline { padding-left: 20px; }
    .step-item { flex-direction: row; gap: 15px; margin-bottom: 35px; }
    .step-number { width: 40px; height: 40px; font-size: 20px; flex-shrink: 0; }
    .step-content h3 { font-size: 17px; }
    .step-content p { font-size: 14px; }
    .route-flow { flex-direction: column; }
    .route-arrow { transform: rotate(90deg); }
}