/* ============================================
   RESET & БАЗОВЫЕ ПЕРЕМЕННЫЕ
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --yellow: #FFCC00;
    --yellow-dark: #d4a800;
    --yellow-glow: rgba(255, 204, 0, 0.4);
    --yellow-gradient: linear-gradient(135deg, #FFCC00, #FFA500);
    --black: #000000;
    --black-light: #0a0a0a;
    --gray: #1a1a1a;
    --text-light: #e8e8e8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 204, 0, 0.08);
    --shadow-glow: 0 8px 40px rgba(255, 204, 0, 0.06);
    --radius-card: 24px;
    --radius-btn: 60px;
    --bg-color: #000000;
    --text-color: #e8e8e8;
    --header-bg: rgba(0, 0, 0, 0.85);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 204, 0, 0.08);
    --input-bg: rgba(0, 0, 0, 0.4);
    --muted-text: rgba(255, 255, 255, 0.35);
    --nav-link-color: rgba(255, 255, 255, 0.55);
    --nav-link-hover-bg: rgba(255, 204, 0, 0.05);
    --nav-link-active-bg: rgba(255, 204, 0, 0.08);
    --road-line-color: rgba(255, 204, 0, 0.03);
    --burger-color: #fff;
}

[data-theme="light"] {
    --bg-color: #f5f7fa;
    --text-color: #1a1a1a;
    --header-bg: rgba(255, 255, 255, 0.92);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(0, 0, 0, 0.04);
    --muted-text: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 8px 40px rgba(0, 0, 0, 0.06);
    --nav-link-color: rgba(0, 0, 0, 0.6);
    --nav-link-hover-bg: rgba(255, 204, 0, 0.1);
    --nav-link-active-bg: rgba(255, 204, 0, 0.15);
    --road-line-color: rgba(0, 0, 0, 0.03);
    --burger-color: #1a1a1a;
}

html { scroll-behavior: smooth; touch-action: manipulation; -ms-touch-action: manipulation; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color); color: var(--text-color);
    min-height: 100vh; overflow-x: hidden; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
    max-width: 100vw;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ============================================
   ROAD BACKGROUND
   ============================================ */
.road-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: var(--bg-color); transition: background 0.4s ease; }
.road-bg::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: repeating-linear-gradient(90deg, transparent 0px, transparent 60px, var(--road-line-color) 60px, var(--road-line-color) 62px); animation: roadLines 12s linear infinite; }
.road-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 20% 50%, rgba(255,204,0,0.015) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,204,0,0.01) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(255,204,0,0.008) 0%, transparent 40%); pointer-events: none; }
[data-theme="light"] .road-bg::after { background: radial-gradient(ellipse at 20% 50%, rgba(255,204,0,0.06) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,204,0,0.04) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(255,204,0,0.03) 0%, transparent 40%); }
@keyframes roadLines { 0%{transform:translateX(0)} 100%{transform:translateX(62px)} }

/* ============================================
   HEADER
   ============================================ */
.header { background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 2px solid var(--card-border); padding: 10px 0; position: sticky; top: 0; z-index: 999; transition: background 0.4s ease, border-color 0.4s ease; }
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-color); flex-shrink: 0; min-width: 0; }
.logo-wrapper { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.logo-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.8s ease; }
.logo-gif { opacity: 1; z-index: 2; }
.logo-static { opacity: 0; z-index: 1; }
.logo-gif.finished { opacity: 0; }
.logo-static.finished { opacity: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-text .brand { font-size: 24px; font-weight: 900; color: var(--text-color); white-space: nowrap; letter-spacing: -0.5px; transition: color 0.4s ease; overflow: hidden; text-overflow: ellipsis; }
.logo-text .brand .yellow { color: var(--yellow); background: var(--yellow-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-text .sub { font-weight: 400; font-size: 10px; color: var(--muted-text); letter-spacing: 0.5px; white-space: nowrap; transition: color 0.4s ease; }

.nav-links { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center; }
.nav-links a { font-weight: 500; font-size: 14px; color: var(--nav-link-color); padding: 8px 16px; border-radius: 40px; transition: all 0.3s ease; text-decoration: none; white-space: nowrap; border: 1px solid transparent; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 0; height: 2px; background: var(--yellow-gradient); transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px; }
.nav-links a:hover { color: var(--text-color); background: var(--nav-link-hover-bg); border-color: var(--card-border); }
.nav-links a:hover::after { width: 60%; }
.nav-links a.active { color: var(--text-color); background: var(--nav-link-active-bg); border-color: var(--card-border); }
.nav-links a.active::after { width: 60%; }
.nav-links a .nav-icon { margin-right: 5px; font-size: 12px; opacity: 0.6; }
.nav-links .btn-order { background: var(--yellow-gradient); color: #000 !important; border: none; padding: 8px 22px; border-radius: 40px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 0 30px rgba(255,204,0,0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.nav-links .btn-order::after { display: none; }
.nav-links .btn-order:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 40px rgba(255,204,0,0.3); background: linear-gradient(135deg, #ffd633, #FFA500); color: #000 !important; }
.nav-links .btn-order .car-icon { display: inline-block; animation: carDrive 2.5s ease-in-out infinite; font-size: 15px; }
@keyframes carDrive { 0%{transform:translateX(0) scale(1)} 30%{transform:translateX(4px) scale(1.05)} 60%{transform:translateX(0) scale(1)} 80%{transform:translateX(-3px) scale(1.03)} 100%{transform:translateX(0) scale(1)} }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-color); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 18px; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--yellow); background: rgba(255,204,0,0.1); transform: rotate(15deg); }
.theme-toggle i { transition: transform 0.3s ease; }
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline-block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: inline-block; color: #ff8c00; }
.phone-btn { background: var(--yellow-gradient); color: #000 !important; padding: 7px 18px; border-radius: 40px; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; text-decoration: none; border: none; box-shadow: 0 0 30px rgba(255,204,0,0.1); white-space: nowrap; }
.phone-btn i { font-size: 13px; }
.phone-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 40px rgba(255,204,0,0.25); background: linear-gradient(135deg, #ffd633, #FFA500); }

.burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 6px; flex-shrink: 0; }
.burger span { width: 26px; height: 2.5px; background: var(--burger-color); border-radius: 4px; transition: 0.3s ease; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 60px 0 80px; position: relative; }
.hero::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 200px; background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%); z-index: 1; pointer-events: none; transition: background 0.4s ease; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero-text h1 { font-size: 56px; font-weight: 900; line-height: 1.05; letter-spacing: -2px; background: linear-gradient(180deg, var(--text-color) 0%, rgba(128,128,128,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text h1 .yellow { background: var(--yellow-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text p { font-size: 18px; color: var(--muted-text); margin: 20px 0 30px; max-width: 480px; line-height: 1.7; transition: color 0.4s ease; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges .badge { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); padding: 8px 22px; border-radius: 40px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; color: var(--text-color); transition: all 0.3s ease; }
.hero-badges .badge:hover { border-color: rgba(255,204,0,0.25); background: rgba(255,204,0,0.04); transform: translateY(-2px); }
.hero-badges .badge i { color: var(--yellow); }
.hero-image { width: 100%; border-radius: 28px; overflow: hidden; position: relative; background: transparent; }
.hero-image::after { display: none !important; }
.hero-image:hover { transform: scale(1.01); }
.hero-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.7s ease; }
.hero-image:hover img { transform: scale(1.04); }
.hero-img-dark { opacity: 1; position: relative; z-index: 2; }
.hero-img-light { opacity: 0; position: absolute; top: 0; left: 0; z-index: 1; }
[data-theme="light"] .hero-img-dark { opacity: 0; z-index: 1; }
[data-theme="light"] .hero-img-light { opacity: 1; z-index: 2; }
[data-theme="light"] .hero-image { box-shadow: none; border: none; background: transparent; }
[data-theme="light"] .hero-image:hover { box-shadow: none; border: none; }


/* ⭐ CTA-КНОПКИ В HERO */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 60px; font-weight: 700; font-size: 16px; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; white-space: nowrap; }
.hero-btn i { font-size: 18px; }

.hero-btn-primary { background: var(--yellow-gradient); color: #000; box-shadow: 0 8px 30px rgba(255,204,0,0.2); position: relative; overflow: hidden; }
.hero-btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: 0.6s; }
.hero-btn-primary:hover::before { left: 100%; }
.hero-btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(255,204,0,0.35); background: linear-gradient(135deg, #ffd633, #FFA500); }

.hero-btn-secondary { background: transparent; color: var(--text-color); border: 2px solid rgba(255,204,0,0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-btn-secondary:hover { border-color: var(--yellow); background: rgba(255,204,0,0.08); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,204,0,0.1); }
.hero-btn-secondary i { color: var(--yellow); }

/* Светлая тема */
[data-theme="light"] .hero-btn-secondary { border-color: rgba(212,168,0,0.4); color: #1a1a1a; background: rgba(255,255,255,0.6); }
[data-theme="light"] .hero-btn-secondary:hover { background: rgba(255,204,0,0.12); border-color: #d4a800; }

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .hero-buttons { margin-top: 24px; }
    .hero-btn { padding: 14px 26px; font-size: 15px; }
}

@media (max-width: 768px) {
    .hero-buttons { gap: 10px; margin-top: 20px; }
    .hero-btn { padding: 13px 22px; font-size: 14px; border-radius: 50px; gap: 8px; }
    .hero-btn i { font-size: 16px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .hero-btn { justify-content: center; padding: 14px 20px; font-size: 14px; width: 100%; }
}

@media (max-width: 360px) {
    .hero-btn { padding: 12px 16px; font-size: 13px; }
    .hero-btn i { font-size: 14px; }
}




/* ============================================
   СЕКЦИИ
   ============================================ */
.section { padding: 70px 0; }
.section-title { font-size: 42px; font-weight: 800; text-align: center; letter-spacing: -1px; background: linear-gradient(180deg, var(--text-color) 0%, rgba(128,128,128,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title .yellow { background: var(--yellow-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { text-align: center; color: var(--muted-text); font-size: 17px; margin: 6px 0 45px; max-width: 600px; margin-left: auto; margin-right: auto; transition: color 0.4s ease; }

.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.adv-item { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 30px 16px; text-align: center; transition: all 0.4s ease; }
.adv-item:hover { border-color: rgba(255,204,0,0.15); transform: translateY(-6px); box-shadow: var(--shadow-glow); background: rgba(255,204,0,0.02); }
.adv-item i { font-size: 34px; color: var(--yellow); margin-bottom: 10px; display: inline-block; transition: transform 0.4s ease; }
.adv-item:hover i { transform: scale(1.1) rotate(-3deg); }
.adv-item h5 { font-size: 16px; font-weight: 600; color: var(--text-color); margin-bottom: 4px; transition: color 0.4s ease; }
.adv-item p { font-size: 13px; color: var(--muted-text); transition: color 0.4s ease; }

.about-text { max-width: 800px; margin: 0 auto; text-align: center; color: var(--muted-text); font-size: 17px; line-height: 1.8; transition: color 0.4s ease; }
.about-text p { margin-bottom: 16px; }

.tariffs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.tariff-card { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 28px 20px 30px; text-align: center; transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275); cursor: default; overflow: hidden; position: relative; }
.tariff-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--yellow-gradient); opacity: 0; transition: opacity 0.4s ease; }
.tariff-card:hover::before { opacity: 1; }
.tariff-card:hover { transform: translateY(-12px) scale(1.02); border-color: rgba(255,204,0,0.15); box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 40px rgba(255,204,0,0.03); }
.tariff-card .car-image { width: 100%; height: 160px; border-radius: 16px; overflow: hidden; margin-bottom: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--card-border); transition: border-color 0.4s ease; }
.tariff-card:hover .car-image { border-color: rgba(255,204,0,0.1); }
.tariff-card .car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.tariff-card:hover .car-image img { transform: scale(1.06); }
.tariff-card h3,
.tariff-card h4 { font-size: 22px; font-weight: 700; color: var(--text-color); margin-bottom: 2px; transition: color 0.4s ease; }
.tariff-card .price-tag { font-size: 32px; font-weight: 900; color: var(--yellow); margin: 4px 0; text-shadow: 0 0 30px rgba(255,204,0,0.05); }
.tariff-card .price-tag small { font-size: 16px; font-weight: 400; color: var(--muted-text); }
.tariff-card .cars { font-size: 13px; color: var(--muted-text); min-height: 32px; line-height: 1.5; transition: color 0.4s ease; }
.tariff-card .popular { display: inline-block; background: var(--yellow-gradient); padding: 3px 16px; border-radius: 40px; font-size: 11px; font-weight: 700; color: #000; margin-top: 8px; }
.tariff-card .badge-label { display: inline-block; color: var(--yellow); font-size: 12px; font-weight: 500; margin-top: 6px; opacity: 0.6; }

.pay-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.pay-item { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--card-border); padding: 16px 36px; border-radius: 60px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 17px; color: var(--text-color); transition: all 0.3s ease; }
.pay-item:hover { border-color: rgba(255,204,0,0.15); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.pay-item i { font-size: 26px; color: var(--yellow); }

.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 800px; margin: 0 auto; }
.route-item { display: flex; align-items: center; justify-content: center; background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: 16px; padding: 16px 20px; text-align: center; font-weight: 600; color: var(--muted-text); text-decoration: none; transition: all 0.3s ease; }
.route-item:hover { border-color: rgba(255,204,0,0.15); color: var(--text-color); transform: translateY(-4px); box-shadow: var(--shadow-glow); }

.contact-block { background: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--card-border); border-radius: 40px; padding: 44px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 10px; transition: all 0.4s ease; }
.contact-block:hover { border-color: rgba(255,204,0,0.06); box-shadow: var(--shadow-glow); }
.contact-block h3 { font-size: 26px; font-weight: 700; color: var(--text-color); transition: color 0.4s ease; }
.contact-block p { color: var(--muted-text); transition: color 0.4s ease; }
.contact-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-socials a { background: rgba(0,0,0,0.3); padding: 12px 26px; border-radius: 60px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--card-border); transition: all 0.3s ease; font-weight: 500; color: var(--text-color); text-decoration: none; font-size: 14px; }
.contact-socials a:hover { background: var(--yellow-gradient); color: #000; border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,204,0,0.15); }
[data-theme="light"] .contact-socials a { background: rgba(0,0,0,0.04); }

.footer { border-top: 1px solid var(--card-border); padding: 28px 0; margin-top: 30px; color: var(--muted-text); font-size: 13px; transition: border-color 0.4s ease, color 0.4s ease; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer a { color: var(--muted-text); transition: all 0.3s ease; text-decoration: none; }
.footer a:hover { color: var(--yellow); }

.float-taxi { position: fixed; bottom: 28px; right: 28px; width: 62px; height: 62px; border-radius: 50%; background: var(--yellow-gradient); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #000; box-shadow: 0 10px 40px rgba(255,204,0,0.3); z-index: 999; transition: all 0.3s ease; animation: pulse-taxi 2.5s infinite; text-decoration: none; border: none; }
.float-taxi:hover { transform: scale(1.12); box-shadow: 0 15px 50px rgba(255,204,0,0.4); }
@keyframes pulse-taxi { 0%{box-shadow:0 0 0 0 rgba(255,204,0,0.25)} 70%{box-shadow:0 0 0 18px rgba(255,204,0,0)} 100%{box-shadow:0 0 0 0 rgba(255,204,0,0)} }

.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-item { transition-delay: 0s; }
.reveal.visible .reveal-item:nth-child(1) { transition-delay: 0.06s; }
.reveal.visible .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.reveal.visible .reveal-item:nth-child(3) { transition-delay: 0.18s; }
.reveal.visible .reveal-item:nth-child(4) { transition-delay: 0.24s; }
.reveal.visible .reveal-item:nth-child(5) { transition-delay: 0.30s; }
.reveal.visible .reveal-item:nth-child(6) { transition-delay: 0.36s; }
.reveal.visible .reveal-item:nth-child(7) { transition-delay: 0.42s; }
.reveal.visible .reveal-item:nth-child(8) { transition-delay: 0.48s; }
.reveal.visible .reveal-item:nth-child(9) { transition-delay: 0.54s; }
.reveal.visible .reveal-item:nth-child(10) { transition-delay: 0.60s; }

/* ============================================
   ПУБЛИЧНАЯ ИСТОРИЯ ПОЕЗДОК
   ============================================ */
.recent-trips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.trip-card { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: 20px; padding: 20px; transition: all 0.3s ease; }
.trip-card:hover { border-color: rgba(255,204,0,0.15); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.trip-route { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: 15px; color: var(--text-color); }
.trip-route i { color: var(--yellow); font-size: 11px; flex-shrink: 0; }
.trip-from, .trip-to { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-details { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.trip-price { font-size: 22px; font-weight: 900; background: var(--yellow-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.trip-tariff { font-size: 13px; color: var(--muted-text); background: rgba(255,255,255,0.04); padding: 3px 12px; border-radius: 20px; border: 1px solid var(--card-border); }
[data-theme="light"] .trip-tariff { background: rgba(0,0,0,0.04); }
.trip-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-text); padding-top: 12px; border-top: 1px solid var(--card-border); }
.trip-meta i { margin-right: 4px; color: var(--yellow); font-size: 11px; }

/* ============================================
   СТРАНИЦА КОНТАКТОВ
   ============================================ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.contact-info { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 40px 36px; transition: all 0.4s ease; }
.contact-info:hover { border-color: rgba(255,204,0,0.06); }
.contact-info h2 { font-size: 28px; font-weight: 700; color: var(--text-color); margin-bottom: 8px; transition: color 0.4s ease; }
.contact-info .sub { color: var(--muted-text); font-size: 16px; margin-bottom: 30px; transition: color 0.4s ease; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
[data-theme="light"] .contact-item { border-bottom-color: rgba(0,0,0,0.05); }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon { width: 48px; height: 48px; flex-shrink: 0; background: rgba(255,204,0,0.06); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--yellow); transition: all 0.3s ease; }
.contact-item:hover .icon { background: rgba(255,204,0,0.1); transform: scale(1.05); }
.contact-item .info { flex: 1; }
.contact-item .info .label { font-size: 12px; color: var(--muted-text); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item .info .value { font-size: 18px; font-weight: 600; color: var(--text-color); margin-top: 2px; transition: color 0.4s ease; }
.contact-item .info .value a { color: var(--text-color); text-decoration: none; transition: all 0.3s ease; }
.contact-item .info .value a:hover { color: var(--yellow); }
.messenger-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.messenger-buttons a { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); padding: 12px 24px; border-radius: 60px; text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 15px; transition: all 0.3s ease; }
[data-theme="light"] .messenger-buttons a { background: rgba(0,0,0,0.03); }
.messenger-buttons a:hover { background: var(--yellow-gradient); color: #000; border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,204,0,0.12); }
.messenger-buttons a i { font-size: 20px; color: var(--yellow); transition: color 0.3s ease; }
.messenger-buttons a:hover i { color: #000; }
.messenger-buttons .messenger-max svg { color: var(--yellow); transition: color 0.3s ease; }
.messenger-buttons .messenger-max:hover svg { color: #000; }
.rating-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--card-border); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rating-block .rating-label { font-size: 14px; color: var(--muted-text); font-weight: 500; }
.rating-block iframe { border-radius: 8px; background: rgba(255,255,255,0.02); padding: 2px 0; }
.contact-map { background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--radius-card); overflow: hidden; min-height: 400px; transition: all 0.4s ease; }
.contact-map:hover { border-color: rgba(255,204,0,0.06); }
.contact-map iframe { width: 100%; height: 100%; min-height: 450px; border: none; display: block; }

/* ============================================
   СТРАНИЦА ГОРОДОВ
   ============================================ */
.page-title { font-size: 42px; font-weight: 800; text-align: center; padding: 40px 0 8px; background: linear-gradient(180deg, var(--text-color) 0%, rgba(128,128,128,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-title .yellow { background: var(--yellow-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-sub { text-align: center; color: var(--muted-text); font-size: 17px; margin-bottom: 40px; transition: color 0.4s ease; }

.cities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 60px; }
.city-card { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: var(--radius-card); overflow: hidden; transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275); display: flex; align-items: center; min-height: 120px; max-width: 100%; }
.city-card:hover { transform: translateY(-6px) scale(1.01); border-color: rgba(255,204,0,0.15); box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(255,204,0,0.03); }
.city-card .city-image { width: 35%; min-width: 80px; max-width: 180px; height: auto; min-height: 100px; aspect-ratio: 4/3; flex-shrink: 0; overflow: hidden; background: rgba(0,0,0,0.3); }
.city-card .city-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.city-card:hover .city-image img { transform: scale(1.08); }
.city-card .city-content { flex: 1; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.city-card .city-name { font-size: 18px; font-weight: 700; color: var(--text-color); transition: color 0.4s ease; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.city-card .city-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow-gradient); color: #000; font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: 40px; text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 0 20px rgba(255,204,0,0.05); white-space: nowrap; flex-shrink: 0; }
.city-card .city-btn:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(255,204,0,0.2); background: linear-gradient(135deg, #ffd633, #FFA500); }
.city-card .city-btn i { font-size: 11px; transition: transform 0.3s ease; }
.city-card .city-btn:hover i { transform: translateX(3px); }

/* ============================================
   ПОИСК НА СТРАНИЦЕ ГОРОДОВ
   ============================================ */
.search-wrapper { position: relative; max-width: 600px; margin: 0 auto 40px; height: 60px; }
.search-wrapper input { width: 100%; height: 100%; padding: 0 50px 0 52px; background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: 60px; color: var(--text-color); font-size: 17px; font-weight: 500; outline: none; transition: border-color 0.3s ease, box-shadow 0.3s ease; -webkit-appearance: none; appearance: none; }
.search-wrapper input::placeholder { color: var(--muted-text); font-weight: 400; }
.search-wrapper input:focus { border-color: rgba(255,204,0,0.3); box-shadow: 0 0 30px rgba(255,204,0,0.06); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--yellow); font-size: 18px; pointer-events: none; z-index: 2; line-height: 1; }
.search-clear { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-text); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, color 0.3s ease; z-index: 2; line-height: 1; }
.search-clear:hover { color: var(--yellow); }
.search-results-count { display: none; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted-text); font-weight: 500; position: absolute; left: 0; right: 0; top: 100%; }

/* ============================================
   ПОПУЛЯРНЫЕ МАРШРУТЫ
   ============================================ */
.routes-section { margin-bottom: 20px; }
.popular-routes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.route-card { display: flex; align-items: center; gap: 12px; background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 20px; text-decoration: none; transition: all 0.3s ease; cursor: pointer; }
.route-card:hover { border-color: rgba(255,204,0,0.2); background: rgba(255,204,0,0.04); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.route-card .route-from { font-weight: 600; font-size: 15px; color: var(--text-color); white-space: nowrap; transition: color 0.3s ease; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.route-card .route-arrow { color: var(--yellow); font-size: 12px; flex-shrink: 0; transition: transform 0.3s ease; }
.route-card:hover .route-arrow { transform: translateX(4px); }
.route-card .route-to { font-weight: 600; font-size: 15px; color: var(--yellow); white-space: nowrap; transition: color 0.3s ease; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ============================================
   СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ============================================ */
.privacy-page { padding: 40px 0 60px; }
.privacy-page h1 { font-size: 40px; font-weight: 800; background: var(--yellow-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-align: center; margin-bottom: 8px; }
.privacy-page .privacy-date { text-align: center; color: var(--muted-text); font-size: 16px; margin-bottom: 40px; transition: color 0.4s ease; }
.privacy-content { max-width: 900px; margin: 0 auto; background: var(--card-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 40px 48px; }
.privacy-content h2 { font-size: 24px; font-weight: 700; color: var(--yellow); margin: 30px 0 12px; }
.privacy-content h2:first-of-type { margin-top: 0; }
.privacy-content p { color: var(--muted-text); font-size: 16px; line-height: 1.8; margin-bottom: 14px; transition: color 0.4s ease; }
.privacy-content ul { color: var(--muted-text); font-size: 16px; line-height: 1.8; padding-left: 24px; margin-bottom: 14px; transition: color 0.4s ease; }
.privacy-content ul li { margin-bottom: 6px; }
.privacy-content .back-link { display: inline-block; margin-top: 30px; color: var(--yellow); text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 1px solid var(--card-border); padding: 10px 28px; border-radius: 40px; }
.privacy-content .back-link:hover { background: rgba(255,204,0,0.06); border-color: rgba(255,204,0,0.15); transform: translateY(-2px); }

/* ============================================
          МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    * { touch-action: manipulation; -ms-touch-action: manipulation; }
    a, button, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 204, 0, 0.2); }
    body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    input, textarea, select { -webkit-user-select: auto; user-select: auto; }
}

@media (max-width: 1200px) {
    .cities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { max-width: 100%; font-size: 16px; }
    .hero-image { max-height: 350px; }
    /* Города: 2 колонки на планшетах */
    .cities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .contact-block { flex-direction: column; text-align: center; gap: 28px; }
    .logo-wrapper { width: 50px; height: 50px; }
    .logo-text .brand { font-size: 20px; }
    .logo-text .sub { font-size: 9px; }
    .nav-links a { font-size: 13px; padding: 6px 12px; }
    .nav-links .btn-order { font-size: 13px; padding: 6px 16px; }
    .privacy-content { padding: 30px 28px; }
    .privacy-page h1 { font-size: 32px; }
    .contacts-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-map { min-height: 300px; }
    .contact-map iframe { min-height: 350px; }
    .section-title { font-size: 34px; }
}

@media (max-width: 850px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
    .hero-text h1 { font-size: 28px; letter-spacing: -1px; }
    .hero-text p { font-size: 14px; margin: 10px 0 16px; }
    .hero-badges .badge { font-size: 10px; padding: 4px 12px; }
    .hero-image { max-height: 250px; border-radius: 18px; }
    .hero-image:hover { transform: none; }
    /* Города: 1 колонка, картинка пропорциональная */
    .cities-grid { grid-template-columns: 1fr; gap: 14px; }
    .city-card .city-image { width: 30%; min-width: 90px; max-width: 140px; }
    .city-card .city-content { padding: 14px 16px; gap: 10px; }
    .city-card .city-name { font-size: 16px; }
    .city-card .city-btn { font-size: 12px; padding: 7px 14px; }
    /* Хедер: скрываем телефон, оставляем только тему + бургер */
 .phone-btn { display: inline-flex; padding: 6px 14px; font-size: 13px; gap: 6px; }
    .nav-links { display: none; flex-direction: column; width: 100%; background: var(--header-bg); backdrop-filter: blur(30px); padding: 16px 0; border-radius: 16px; border: 1px solid var(--card-border); margin-top: 8px; gap: 4px; order: 10; flex: 1 1 100%; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 16px; padding: 12px 20px; width: 100%; text-align: center; white-space: normal; border-radius: 8px; }
    .nav-links a::after { display: none; }
    .nav-links .btn-order { font-size: 16px; padding: 12px 20px; justify-content: center; border-radius: 8px; }
    .burger { display: flex; }
    .header .container { flex-wrap: wrap; }
    .logo-wrapper { width: 44px; height: 44px; }
    .logo-text .brand { font-size: 17px; }
    .logo-text .sub { font-size: 8px; }
    .header-right { margin-left: auto; gap: 6px; }
    .page-title { font-size: 32px; }
    .contact-info { padding: 28px 24px; }
    .rating-block { flex-direction: column; align-items: flex-start; gap: 10px; }
    .privacy-content { padding: 24px 20px; }
    .section { padding: 50px 0; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 28px; }
    .section-sub { font-size: 15px; margin: 4px 0 30px; }
    .header { padding: 6px 0; }
    .header .container { gap: 6px; }
    .logo-wrapper { width: 38px; height: 38px; }
    .logo-text .brand { font-size: 15px; }
    .logo-text .sub { font-size: 7px; }
    .burger span { width: 22px; height: 2px; }
    .hero { padding: 30px 0 50px; }
    .hero-grid { gap: 16px; }
    .hero-text h1 { font-size: 24px; letter-spacing: -1px; }
    .hero-text p { font-size: 13px; margin: 8px 0 14px; }
    .hero-badges .badge { font-size: 10px; padding: 3px 10px; }
    .hero-image { border-radius: 16px; max-height: 180px; }
    .hero-image:hover { transform: none; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .adv-item { padding: 18px 10px; border-radius: 16px; }
    .adv-item i { font-size: 24px; margin-bottom: 6px; }
    .adv-item h5 { font-size: 14px; }
    .adv-item p { font-size: 11px; }
    .about-text { font-size: 15px; padding: 0 4px; }
    .tariffs-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .tariff-card { padding: 18px 12px 20px; border-radius: 18px; }
    .tariff-card .car-image { height: 100px; border-radius: 12px; }
    .tariff-card h3,
    .tariff-card h4 { font-size: 18px; }
    .tariff-card .price-tag { font-size: 24px; }
    .tariff-card .price-tag small { font-size: 13px; }
    .tariff-card .cars { font-size: 11px; min-height: 28px; }
    .tariff-card .popular { font-size: 10px; padding: 2px 12px; }
    .tariff-card .badge-label { font-size: 10px; }
    .routes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .route-item { font-size: 13px; padding: 12px 14px; border-radius: 12px; }
    .pay-wrap { gap: 12px; }
    .pay-item { font-size: 14px; padding: 10px 20px; border-radius: 40px; }
    .pay-item i { font-size: 20px; }
    .contact-block { padding: 28px 20px; border-radius: 28px; flex-direction: column; text-align: center; gap: 20px; }
    .contact-block h3 { font-size: 22px; }
    .contact-block p { font-size: 14px; }
    .contact-socials { justify-content: center; }
    .contact-socials a { font-size: 12px; padding: 8px 16px; border-radius: 40px; }
    .footer { padding: 20px 0; font-size: 11px; }
    .footer .container { flex-direction: column; text-align: center; gap: 8px; }
    .float-taxi { width: 52px; height: 52px; font-size: 22px; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; }
    .theme-toggle { width: 36px; height: 36px; font-size: 16px; }
    .recent-trips-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .trip-card { padding: 16px; }
    .trip-route { font-size: 13px; gap: 6px; }
    .trip-price { font-size: 18px; }
    .trip-tariff { font-size: 11px; padding: 2px 10px; }
    .trip-meta { font-size: 11px; }
    .popular-routes-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
    .route-card { padding: 12px 16px; }
    .route-card .route-from, .route-card .route-to { font-size: 13px; }
    .search-wrapper { height: 52px; }
    .search-wrapper input { padding: 0 44px 0 46px; font-size: 15px; }
    .search-icon { left: 16px; font-size: 16px; }
    .search-clear { right: 14px; font-size: 18px; }
}

@media (max-width: 480px) {
    /* Города: вертикальная раскладка на узких экранах */
    .city-card { flex-direction: column; min-height: auto; text-align: center; }
    .city-card .city-image { width: 100%; max-width: 100%; height: 140px; min-height: 140px; aspect-ratio: auto; }
    .city-card .city-content { flex-direction: column; padding: 14px; gap: 10px; width: 100%; }
    .city-card .city-name { font-size: 17px; white-space: normal; text-align: center; }
    .city-card .city-btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-text h1 { font-size: 20px; }
    .hero-text p { font-size: 12px; margin: 8px 0 12px; }
    .hero-badges .badge { font-size: 9px; padding: 3px 10px; gap: 4px; }
    .hero-image { max-height: 160px; border-radius: 12px; }
    .adv-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .adv-item { padding: 14px 8px; border-radius: 12px; }
    .adv-item i { font-size: 20px; }
    .adv-item h5 { font-size: 13px; }
    .adv-item p { font-size: 10px; }
    .tariffs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tariff-card { padding: 14px 10px 16px; border-radius: 14px; }
    .tariff-card .car-image { height: 80px; }
    .tariff-card h3,
    .tariff-card h4 { font-size: 16px; }
    .tariff-card .price-tag { font-size: 20px; }
    .tariff-card .cars { font-size: 10px; min-height: 24px; }
    .routes-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .route-item { font-size: 12px; padding: 10px 12px; }
    .contact-block { padding: 20px 16px; border-radius: 20px; }
    .contact-block h3 { font-size: 18px; }
    .contact-socials a { font-size: 11px; padding: 6px 12px; }
    .pay-item { font-size: 13px; padding: 8px 16px; }
    .pay-item i { font-size: 18px; }
    /* Хедер на очень маленьких экранах */
    .logo-wrapper { width: 32px; height: 32px; }
    .logo-text .brand { font-size: 13px; }
    .logo-text .sub { display: none; }
    .theme-toggle { width: 32px; height: 32px; font-size: 13px; }
    .burger span { width: 20px; height: 2px; }
    .header-right { gap: 4px; }
    .float-taxi { width: 48px; height: 48px; font-size: 20px; bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; }
    .section-title { font-size: 24px; }
    .section-sub { font-size: 13px; }
    .page-title { font-size: 26px; padding-top: 24px; }
    .contact-item .icon { width: 40px; height: 40px; font-size: 17px; }
    .contact-item .info .value { font-size: 14px; }
    .messenger-buttons a { font-size: 13px; padding: 8px 14px; }
    .privacy-content { padding: 16px 14px; }
    .privacy-page h1 { font-size: 24px; }
    .privacy-content h2 { font-size: 18px; }
    .privacy-content p { font-size: 14px; }
    .privacy-content ul { font-size: 14px; padding-left: 18px; }
    .recent-trips-grid { grid-template-columns: 1fr; }
    .popular-routes-grid { grid-template-columns: 1fr; gap: 8px; }
    .route-card { padding: 10px 12px; gap: 8px; }
    .route-card .route-from, .route-card .route-to { font-size: 12px; }
    .route-card .route-arrow { font-size: 10px; }
    .search-wrapper { height: 46px; }
    .search-wrapper input { padding: 0 38px 0 40px; font-size: 14px; border-radius: 40px; }
    .search-icon { left: 14px; font-size: 14px; }
    .search-clear { right: 12px; font-size: 16px; }
        .header .container { padding: 8px 10px; gap: 6px; }
    .logo-text .brand { font-size: 13px; }
    .logo-text .sub { font-size: 9px; }
    .logo-gif, .logo-static { width: 28px; height: 28px; }
    .header-right { gap: 4px; }
    .header-right .phone-btn { padding: 5px 8px; font-size: 11px; border-radius: 20px; }
    .header-right .phone-btn span { display: none; }
    .theme-toggle { width: 30px; height: 30px; font-size: 13px; }
    .burger { width: 30px; height: 30px; }
    .burger span { width: 18px; height: 2px; }
}

@media (max-width: 360px) {
    .hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-image { max-height: 200px; order: -1; }
    .logo-wrapper { width: 28px; height: 28px; }
    .logo-text .brand { font-size: 12px; }
    .theme-toggle { width: 30px; height: 30px; font-size: 12px; }
    .header .container { padding: 6px 8px; gap: 4px; }
    .logo-text .brand { font-size: 12px; }
    .logo-text .sub { display: none; }
    .logo-gif, .logo-static { width: 24px; height: 24px; }
    .header-right { gap: 3px; }
    .header-right .phone-btn { padding: 4px 7px; font-size: 10px; }
    .theme-toggle { width: 28px; height: 28px; font-size: 12px; }
    .burger { width: 28px; height: 28px; }
    .burger span { width: 16px; height: 2px; }
}

/* Кнопка MAX мессенджер */
.messenger-max svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

[data-theme="light"] .messenger-max svg {
    color: var(--yellow);
}

/* ============================================================
   LEAFLET: тёмная тема через CSS-фильтр (OSM-тайлы светлые)
   ============================================================ */
.leaflet-tile-pane {
    filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}
[data-theme="light"] .leaflet-tile-pane {
    filter: none;
}
/* Убираем стандартный белый фон под тайлами — мелькает при загрузке */
.leaflet-container { background: #1a1a1a !important; }
[data-theme="light"] .leaflet-container { background: #e5e5e5 !important; }
/* ============================================================
   ИТОГОВАЯ СТОИМОСТЬ ПОЕЗДКИ (страница маршрута)
   Клиент должен видеть сумму сразу, а не считать «км × тариф».
   ============================================================ */
.route-price-hero {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 26px 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25), 0 0 40px rgba(255, 204, 0, .04);
}
.route-price-hero-main { text-align: center; margin-bottom: 22px; }
.route-price-hero-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-text);
    margin-bottom: 10px;
}
.route-price-hero-value {
    display: block;
    font-size: clamp(34px, 7vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    background: var(--yellow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.route-price-hero-note {
    display: block;
    font-size: 14px;
    color: var(--muted-text);
}
.route-price-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.route-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, .05);
    color: var(--text-color);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.route-price-btn:hover { transform: translateY(-2px); border-color: rgba(255, 204, 0, .45); }
.route-price-btn-primary {
    background: var(--yellow-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 30px rgba(255, 204, 0, .2);
}
.route-price-btn-primary:hover { box-shadow: 0 0 45px rgba(255, 204, 0, .32); }
@media (max-width: 480px) {
    .route-price-hero { padding: 20px 18px; }
    .route-price-btn { padding: 12px 20px; font-size: 15px; flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   БЛОК «БЕЗОПАСНОСТЬ И АВТОПАРК»
   ============================================================ */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 34px;
}
.safety-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .35s ease, border-color .35s ease;
}
.safety-card:hover { transform: translateY(-4px); border-color: rgba(255, 204, 0, .22); }
.safety-ico {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    background: rgba(255, 204, 0, .12);
    color: var(--yellow);
}
.safety-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text-color); }
.safety-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-text); }

@media (max-width: 480px) {
    .safety-grid { grid-template-columns: 1fr; }
}
