* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --bg-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1f 100%);
    --text-dark: #eef2ff;
    --bg-light: linear-gradient(135deg, #f3f7ff 0%, #e7efff 50%, #dce7ff 100%);
    --text-light: #0b1f36;
    --panel-light: #ffffff;
    --panel-light-alt: #f6f9ff;
    --border-light: #bdd1f7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

body.dark-theme {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.light-theme {
    background: var(--bg-light);
    color: var(--text-light);
}

body.light-theme .header,
body.light-theme .language-bar,
body.light-theme .theme-toggle,
body.light-theme .bottom-mac-menu,
body.light-theme .ticker-wrap,
body.light-theme .ticker-bottom,
body.light-theme .hero-form,
body.light-theme .currency-card,
body.light-theme .car-card,
body.light-theme .review-card,
body.light-theme .faq-item,
body.light-theme .delivery-map,
body.light-theme .carvertical-section,
body.light-theme .partners-grid .partner-card {
    background: var(--panel-light);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border-color: var(--border-light);
}

body.light-theme .hero {
    background: radial-gradient(ellipse at 30% 40%, #ffffff, #e6efff);
}

body.light-theme .hero-text h1,
body.light-theme .section-title,
body.light-theme .logo {
    background: linear-gradient(135deg, #0b1f36, #1f5cb8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme .mac-menu-item,
body.light-theme .theme-toggle span,
body.light-theme .lang-burger span,
body.light-theme .hero-text p,
body.light-theme .faq-answer,
body.light-theme .partner-card p {
    color: var(--text-light);
}

body.light-theme input,
body.light-theme textarea,
body.light-theme select,
body.light-theme .chat-input-area input {
    background: #ffffff;
    color: #102949;
    border: 1px solid #8fb0e8;
}

body.light-theme .chat-message.bot {
    background: #eaf2ff;
    color: #102949;
    border-left-color: #3b82f6;
}

body.light-theme .chat-input-area {
    border-top-color: var(--border-light);
}

body.light-theme footer,
body.light-theme section[style*="background: linear-gradient(135deg, #030617, #0a0f2c);"] {
    background: linear-gradient(135deg, #dce8ff, #eef4ff) !important;
}

body.light-theme #footerFormTitle {
    color: #0b1f36 !important;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.btn-primary {
    background: linear-gradient(95deg, #3b82f6, #1e3a8a);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:active { transform: scale(0.96); }

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(15, 23, 47, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid rgba(59,130,246,0.5);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.theme-toggle:hover { transform: scale(1.02); background: rgba(59,130,246,0.3); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle span { font-size: 0.85rem; font-weight: 500; color: #eef2ff; }

.language-bar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(15, 23, 47, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(59,130,246,0.5);
}

.lang-burger { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.lang-burger svg { width: 1rem; height: 1rem; fill: #3b82f6; }
.lang-burger span { font-size: 0.85rem; font-weight: 500; color: #eef2ff; }

.lang-dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    background: rgba(15,23,47,0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
    border: 1px solid rgba(59,130,246,0.5);
    z-index: 1002;
}

.lang-dropdown.show { display: flex; }

.lang-dropdown-btn {
    background: rgba(30,42,94,0.8);
    border: none;
    color: #eef2ff;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.lang-dropdown-btn:hover, .lang-dropdown-btn.active { background: linear-gradient(135deg, #3b82f6, #1e3a8a); transform: translateX(5px); }

.bottom-mac-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(20, 25, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 8px 20px;
    display: flex;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

.mac-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    color: #eef2ff;
    background: transparent;
    border: none;
    font-family: inherit;
}

.mac-menu-item svg { width: 1.2rem; height: 1.2rem; margin-bottom: 4px; fill: currentColor; }
.mac-menu-item span { font-size: 0.7rem; font-weight: 500; }
.mac-menu-item:hover, .mac-menu-item.active { background: rgba(59,130,246,0.3); transform: translateY(-3px); }

@media (max-width: 768px) {
    .bottom-mac-menu { padding: 6px 12px; gap: 4px; bottom: 12px; }
    .mac-menu-item { padding: 6px 10px; }
    .mac-menu-item svg { width: 1rem; height: 1rem; }
    .mac-menu-item span { font-size: 0.6rem; }
    .theme-toggle { top: 12px; right: 12px; padding: 6px 12px; }
    .theme-toggle span { display: none; }
    .language-bar { top: 12px; left: 12px; padding: 6px 12px; }
}

@media (max-width: 480px) {
    .bottom-mac-menu { padding: 4px 8px; }
    .mac-menu-item { padding: 4px 8px; }
    .mac-menu-item span { display: none; }
    .mac-menu-item svg { margin-bottom: 0; }
}

.header {
    background: rgba(10,15,44,0.9);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(59,130,246,0.3);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: transform 0.3s;
}

.header.hide-header { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; }
.logo { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #FFFFFF, #60a5fa, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; animation: float 3s infinite; }

.icon-vk {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.float-btn:hover { transform: scale(1.1) rotate(5deg); }
.float-btn svg { width: 28px; height: 28px; fill: white; }
.float-tg { background: linear-gradient(135deg, #0088cc, #006699); }
.float-vk { background: linear-gradient(135deg, #4c75a3, #2a4a7a); }
.float-max { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.float-call { background: linear-gradient(135deg, #3b82f6, #1e3a8a); animation: pulse 2s infinite; }

@media (max-width: 768px) {
    .floating-buttons { bottom: 90px; right: 15px; gap: 10px; }
    .float-btn { width: 44px; height: 44px; }
    .float-btn svg { width: 24px; height: 24px; }
}

.ticker-wrap { background: linear-gradient(90deg, #050a1a, #0a0f2c, #050a1a); padding: 10px 0; overflow: hidden; border-bottom: 1px solid rgba(59,130,246,0.3); margin-top: 70px; }
.ticker { display: flex; white-space: nowrap; animation: marquee 45s linear infinite; gap: 40px; }

.ticker-bottom { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(90deg, #0f172f, #1e2a5e, #0f172f); border-top: 1px solid #3b82f6; padding: 8px 0; overflow: hidden; z-index: 999; }
.ticker-bottom-content { display: flex; white-space: nowrap; animation: marquee 40s linear infinite; gap: 40px; }
.city-time-item { display: inline-flex; align-items: center; gap: 12px; background: rgba(59,130,246,0.2); padding: 5px 20px; border-radius: 40px; }
.city-coat { width: 32px; height: 32px; border-radius: 50%; background: #ffd700; display: inline-flex; align-items: center; justify-content: center; font-weight: bold; color: #1e3a8a; font-size: 0.9rem; }
.weather-icon { font-size: 1.1rem; margin-left: 5px; }

.hero { padding: 80px 0; background: radial-gradient(ellipse at 30% 40%, #0a0f2c, #030617); position: relative; overflow: hidden; }
.hero:before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%); animation: rotate 60s linear infinite; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; background: linear-gradient(135deg, #ffffff, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.stat-number { font-size: 2rem; font-weight: 800; color: #3b82f6; }
.hero-form { flex: 0.9; background: rgba(15,25,55,0.6); backdrop-filter: blur(16px); padding: 32px; border-radius: 32px; border: 1px solid rgba(59,130,246,0.4); }
.form-group { margin-bottom: 18px; }
input, textarea, select { width: 100%; padding: 14px 20px; border-radius: 60px; border: 1px solid rgba(45,58,110,0.8); background: rgba(15,23,47,0.8); color: white; font-family: inherit; }
section { padding: 70px 0; border-bottom: 1px solid rgba(59,130,246,0.2); }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 40px; text-align: center; background: linear-gradient(135deg, #eef2ff, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title:after { content: ''; display: block; width: 70px; height: 3px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); margin: 12px auto 0; border-radius: 4px; }

.carvertical-section { background: rgba(15,23,47,0.6); border-radius: 28px; padding: 40px; text-align: center; margin: 30px 0; }
.vin-btn { display: inline-block; background: linear-gradient(135deg, #22c55e, #15803d); color: white; padding: 14px 32px; border-radius: 60px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.3s; margin: 20px 10px; }
.vin-btn:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(34,197,94,0.4); }
.vin-btn svg { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; fill: white; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.partner-card { background: rgba(15,23,47,0.7); border-radius: 24px; padding: 20px; text-align: center; transition: all 0.3s; border: 1px solid rgba(59,130,246,0.3); }
.partner-card:hover { transform: translateY(-5px); border-color: #3b82f6; }
.partner-card svg { width: 48px; height: 48px; margin-bottom: 15px; fill: #3b82f6; }
.partner-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.partner-card p { font-size: 0.85rem; opacity: 0.86; }

.currency-widget { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.currency-card { background: rgba(15,23,47,0.8); border-radius: 24px; padding: 20px 30px; text-align: center; }
.currency-rate { font-size: 1.5rem; font-weight: 700; color: #3b82f6; }
.cashback-banner { background: linear-gradient(135deg, #f59e0b, #d97706); border-radius: 28px; padding: 30px; text-align: center; animation: pulse 2s infinite; }
.delivery-map { background: rgba(15,23,47,0.6); border-radius: 28px; padding: 30px; }
.map-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-top: 20px; }
.map-city { background: rgba(59,130,246,0.2); border-radius: 40px; padding: 10px; text-align: center; cursor: pointer; transition: all 0.3s; }
.map-city:hover { background: #3b82f6; transform: translateY(-3px); color: white; }
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 30px; }
.car-card { background: rgba(15,23,47,0.8); border-radius: 28px; overflow: hidden; border: 1px solid rgba(59,130,246,0.3); transition: all 0.3s; }
.car-card:hover { transform: translateY(-5px); border-color: #3b82f6; }
.car-info { padding: 20px; }
.economy-badge { background: linear-gradient(95deg, #22c55e, #15803d); padding: 4px 12px; border-radius: 40px; font-size: 0.7rem; display: inline-block; margin-top: 10px; color: #fff; }
.car-groups { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.group-btn { background: rgba(30,42,94,0.7); border: 1px solid rgba(59,130,246,0.3); color: #eef2ff; padding: 10px 24px; border-radius: 60px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; }
.group-btn.active, .group-btn:hover { background: linear-gradient(135deg, #3b82f6, #1e3a8a); transform: translateY(-2px); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: rgba(15,23,47,0.7); border-radius: 24px; padding: 20px; }
.review-stars { color: #fbbf24; margin: 10px 0; }
.faq-item { background: rgba(15,23,47,0.7); border-radius: 24px; margin-bottom: 16px; }
.faq-question { padding: 18px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.faq-answer { padding: 0 24px 24px 24px; border-top: 1px solid rgba(59,130,246,0.3); display: none; }
.faq-answer.show { display: block; }
footer { background: linear-gradient(135deg, #030617, #0a0f2c); padding: 40px 0; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: inherit; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; display: none; justify-content: center; align-items: center; }
.modal-content { background: rgba(15,23,47,0.98); backdrop-filter: blur(15px); border-radius: 28px; padding: 30px; max-width: 500px; width: 90%; border: 1px solid #3b82f6; }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-grid { flex-direction: column; }
    .section-title { font-size: 1.6rem; }
    .partners-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
