:root {
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    --color-bg: #f5f5f7;
    --color-text: #1d1d1f;
    --color-muted: #86868b;
    --color-accent: #ff6b00;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.08);
}
body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); margin: 0; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; } .w-100 { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.glass-card { background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-soft); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.glass-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.8); z-index: 10; }

.header-actions .btn-primary-sm { background:var(--color-accent); color:white; padding:14px 28px; border-radius:30px; text-decoration:none; font-weight:600; box-shadow: 0 8px 20px rgba(255,107,0,0.25); }
.header-actions .btn-primary-sm:hover, .btn-primary:hover, button[type="submit"]:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 24px rgba(255,107,0,0.4) !important; }
.header-actions .phone-link:hover { color: var(--color-accent) !important; }

.hero-section { padding: 120px 0 80px; }

.btn-primary { display: inline-block; background: var(--color-accent); color: #fff; padding: 18px 36px; border-radius: 30px; font-size: 18px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }

.popular-routes-section { margin-top: 60px; }
.routes-slider { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.route-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(255,255,255,0.4)); box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), 0 12px 24px rgba(0,0,0,0.06); min-width: 280px; flex: 1 1 300px; border-radius: 20px; }
.route-info h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #1d1d1f; }
.route-price { font-size: 14px; color: #86868b; font-weight: 500; }

.tariffs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.tariff-card { padding: 24px; text-align: center; }
.tariff-img { height: 140px; background-size: contain; background-position: center; background-repeat: no-repeat; margin-bottom: 20px; }
.tariff-img.placeholder { background: linear-gradient(135deg, #e5e5ea, #d1d1d6); border-radius: 12px; }

.calc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin: 80px auto; }
#map-wrapper { height: 600px; overflow: hidden; padding: 0; }
#meridian-map { width: 100%; height: 100%; border-radius: 24px; }
.calc-form { padding: 32px; }
.input-group { margin-bottom: 20px; position: relative; }
input[type="text"], input[type="tel"], select { width: 100%; padding: 16px 20px; background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(0,0,0,0.05); border-radius: 16px; font-size: 16px; font-family: inherit; box-sizing: border-box; transition: background 0.3s, box-shadow 0.3s; appearance: none; }
input:focus, select:focus { outline: none; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15); }
.select-wrapper::after { content: "▼"; position: absolute; right: 20px; top: 18px; font-size: 12px; pointer-events: none; color: var(--color-muted); }

.price-display { display: flex; justify-content: space-between; align-items: center; font-size: 32px; font-weight: 700; margin: 30px 0 20px; }
#route-distance { font-size: 18px; color: var(--color-muted); font-weight: 500; }

.checkbox-group { display: flex; gap: 20px; margin-bottom: 24px; }
.custom-checkbox { display: flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: 500; }
.custom-checkbox input { display: none; }
.checkmark { width: 24px; height: 24px; background: rgba(255,255,255,0.5); border-radius: 8px; margin-right: 10px; border: 1px solid rgba(0,0,0,0.1); position: relative; transition: 0.2s; }
.custom-checkbox input:checked + .checkmark { background: var(--color-accent); border-color: var(--color-accent); }
.custom-checkbox input:checked + .checkmark::after { content: "✓"; position: absolute; color: white; left: 6px; top: 2px; font-size: 14px; }

.faq-section { margin-bottom: 100px; }
.faq-list { max-width: 800px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 0; overflow: hidden; }
details > summary { padding: 24px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; position: relative; outline: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; position: absolute; right: 24px; font-size: 24px; color: var(--color-accent); transition: transform 0.3s; }
details[open] > summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 24px 24px; color: var(--color-muted); animation: slideDown 0.3s ease-out; line-height: 1.6; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.autocomplete-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1000; padding: 8px 0; margin: 0; list-style: none; display: none; max-height: 250px; overflow-y: auto; }
.autocomplete-list.active { display: block; animation: slideDown 0.2s; }
.autocomplete-list li { padding: 12px 20px; cursor: pointer; transition: background 0.2s; }
.autocomplete-list li:hover { background: rgba(255, 107, 0, 0.05); }

.msg-btn { transition: transform 0.3s; }
.msg-btn:hover { transform: scale(1.1); }

.blur-in-up { opacity: 0; transform: translateY(40px); filter: blur(12px); transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease; }
.blur-in-up.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.flatpickr-calendar { background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(20px); border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 16px !important; box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; font-family: inherit !important; }
.flatpickr-day.selected { background: var(--color-accent) !important; border-color: var(--color-accent) !important; }

.premium-svg-pin { background: transparent; border: none; }

.glow-orb { position: absolute; width: 40vw; height: 40vw; max-width: 400px; max-height: 400px; border-radius: 50%; filter: blur(100px); opacity: 0.15; z-index: 1; animation: floatOrb 8s infinite ease-in-out alternate; pointer-events: none; }
@keyframes floatOrb { 0% { transform: translateY(0) scale(1); opacity: 0.1; } 100% { transform: translateY(40px) scale(1.1); opacity: 0.25; } }

/* Стили плавающей мобильной кнопки */
.sticky-mobile-btn { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: linear-gradient(135deg, var(--color-accent), #ff8c00); color: #fff; text-align: center; padding: 16px 20px; border-radius: 30px; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4); z-index: 1000; transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: none; }
.sticky-mobile-btn.visible { bottom: 25px; }

@media (max-width: 768px) {
    .header-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
    .glass-header .logo { font-size: 16px !important; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .glass-header .logo svg { width: 22px !important; height: 22px !important; }
    .glass-header .phone-link { font-size: 0 !important; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255, 107, 0, 0.1); border-radius: 50%; text-decoration: none; flex-shrink: 0; }
    .glass-header .phone-link svg { width: 20px !important; height: 20px !important; margin: 0 !important; fill: var(--color-accent); stroke: var(--color-accent); }
    .glass-header .btn-primary-sm { padding: 8px 14px !important; font-size: 13px !important; height: auto !important; border-radius: 20px !important; white-space: nowrap; flex-shrink: 0; }

    #map-wrapper { max-height: 350px !important; height: 350px; border-radius: 16px; margin-bottom: 20px; }
    .calc-form { padding: 15px !important; }
    .grid-2, .calc-grid, .checkbox-group { display: flex !important; flex-direction: column !important; gap: 12px !important; }
    .hero-section { padding: 100px 0 60px; }
    .hero-section h1 { font-size: 36px !important; }
    
    .glow-orb { filter: blur(60px); opacity: 0.2; }
    .hero-features .glass-card { width: 100%; justify-content: center; }

    input[type="text"], input[type="tel"], input[type="date"], input[type="time"], select { font-size: 16px !important; padding: 14px 16px !important; width: 100% !important; }

    .tariffs-grid, .routes-slider { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 20px; gap: 15px !important; justify-content: flex-start; }
    .tariffs-grid::-webkit-scrollbar, .routes-slider::-webkit-scrollbar { display: none; }
    
    .tariff-card, .route-card { flex: 0 0 85% !important; scroll-snap-align: center; min-width: auto; }

    .btn-primary, button[type="submit"] { width: 100% !important; height: 56px !important; display: flex; align-items: center; justify-content: center; padding: 0 !important; font-size: 17px !important; border-radius: 16px !important; }
    
    .price-display { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 28px; }
    
    /* Включаем плавающую кнопку на телефонах */
    .sticky-mobile-btn { display: block; }
}