/* Ramillas Font Face Declarations */
@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial ExtraLight Italic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Light Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Medium.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Medium Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Bold Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial ExtraBold Italic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramillas';
    src: url('шрифты/TT Ramillas Trial Black Italic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Заголовки - жирные */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.service-card h3,
.car-title,
.navbar h1,
.page-header h1,
.about-text h2,
.contact-info h3,
.footer h3,
.footer h4,
.btn,
button {
    font-weight: 700;
}

/* Обычный текст - обычный вес */
p, span, div, a, li, label, input, textarea, select,
.section-subtitle,
.service-card p,
.car-card p,
.about-description,
.hero-subtitle,
.car-meta,
.microcopy,
.breadcrumbs,
.contact-info p,
.nav-link,
.stat-label,
.lang-btn,
.lang-option {
    font-weight: 400;
}

:root {
    /* Основные цвета */
    --primary-color: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary-color: #1f2937;
    --accent-color: #FF8C42;
    --accent-purple: #8B5CF6;
    --accent-orange: #FF8C42;
    --accent-lime: #84CC16;
    
    /* Текст */
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    
    /* Фоны */
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-grid: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        rgba(0, 0, 0, 0.02) 30px,
        rgba(0, 0, 0, 0.02) 31px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 30px,
        rgba(0, 0, 0, 0.02) 30px,
        rgba(0, 0, 0, 0.02) 31px
    );
    
    --border-color: #e5e7eb;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
    
    /* Статусы */
    --success: #84CC16;
    --warning: #FF8C42;
    --info: #8B5CF6;
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 140, 66, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(132, 204, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50% 40% 60% 30%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 8s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 50% 40% 60% 30%;
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
        border-radius: 40% 60% 30% 50%;
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
        border-radius: 60% 30% 50% 40%;
    }
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 700;
}

.breadcrumbs span {
    color: var(--text-secondary);
    opacity: 0.6;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Catalog */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.filters::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.1) 0%, transparent 70%);
    border-radius: 50% 40% 60% 30%;
    filter: blur(40px);
    pointer-events: none;
}

.filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    flex: 1;
}

.filter label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.filter select, .filter input {
    height: 46px;
    padding: 0 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.filter select:hover, .filter input:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.filter select:focus, .filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.filter select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filters .btn {
    margin-top: 0;
    padding: 0 24px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 12px;
}

.filter-cta {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.filters .btn-secondary {
    background: var(--text-primary);
    color: white;
    border: none;
}

.filters .btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
    transition: opacity 0.2s ease;
}

.car-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(139, 92, 246, 0.3);
}

.car-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    overflow: hidden;
}

.car-media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.car-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-media img {
    transform: scale(1.05);
}

.car-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 2;
}

.status-in-stock { 
    background: rgba(132, 204, 22, 0.95); 
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.3);
}
.status-in-transit { 
    background: rgba(255, 140, 66, 0.95); 
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}
.status-on-request { 
    background: rgba(139, 92, 246, 0.95); 
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.car-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.car-meta span {
    position: relative;
    padding-left: 8px;
}

.car-meta span:not(:first-child)::before {
    content: '•';
    position: absolute;
    left: -8px;
    color: var(--border-color);
}

.car-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
    margin-top: auto;
}

.car-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 700;
}

.car-price strong {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: -0.5px;
}

.car-body .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
}

.microcopy {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0.8;
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: start;
}

.details-panel {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.details-panel::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 12px;
    font-size: 14px;
}

.specs div {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.specs div:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .catalog-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .details-grid { grid-template-columns: 1fr; }
    .page-header .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .filters {
        padding: 20px;
        gap: 14px;
    }
    .filter {
        min-width: 100%;
    }
    .filter-cta {
        min-width: 100%;
    }
    .catalog-grid {
        gap: 20px;
    }
    .page-header {
        padding: 140px 0 60px;
    }
    .page-header .section-title {
        font-size: 2rem;
    }
    .page-header .section-subtitle {
        font-size: 1.125rem;
    }
    .car-body {
        padding: 16px;
    }
    .car-title {
        font-size: 17px;
    }
    .car-price strong {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .catalog-grid { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .filter { 
        min-width: 100%;
    }
    .car-body {
        padding: 18px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-white);
}

/* Blob decorations - применяем только к не-главным страницам */
/* Исключаем главную страницу с видео - она сохраняет темный фон */
.index-page {
    background: transparent;
    background-image: none;
}

/* Применяем светлую тему с сеткой ко всем страницам кроме главной */
body:not(.index-page) {
    background: var(--bg-white);
    background-image: var(--bg-grid);
    background-size: 30px 30px;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled .logo h1 {
    color: var(--text-primary);
}

.navbar.scrolled .logo-img {
    filter: none;
}

.navbar.scrolled .logo .tagline {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.navbar.scrolled .nav-link::after {
    background: var(--accent-purple);
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent-purple);
}

.navbar.scrolled .menu-toggle span {
    background: var(--text-primary);
}

.navbar.scrolled .lang-btn {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.navbar.scrolled .lang-btn:hover {
    background: var(--text-primary);
    opacity: 0.9;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-family: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.3px;
    margin-top: -4px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-switcher:hover .lang-arrow {
    transform: rotate(180deg);
}

.language-switcher .lang-dropdown.active ~ .lang-btn .lang-arrow,
.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.lang-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Fallback для браузеров без поддержки video */
    margin-top: 0;
    padding-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.start-button {
    margin: 3rem auto 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 3px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
    z-index: 2;
}



.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.start-button:hover::before {
    width: 100%;
    height: 100%;
}

.start-button:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.start-button:active {
    transform: scale(0.95);
}

.start-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.start-engine {
    font-size: 1rem;
    letter-spacing: 1px;
}

.start-start {
    font-size: 1.7rem;
    letter-spacing: 1.5px;
}

.start-button-border {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    overflow: visible;
}

.start-button:hover .start-button-border {
    opacity: 1;
}

.border-text {
    font-family: 'Manrope', sans-serif;
}

.border-glow {
    stroke-dasharray: 503; /* Длина окружности: 2 * π * 80 ≈ 503 */
    stroke-dashoffset: 503;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.12s linear;
    stroke: url(#neonGradient);
    filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 8px currentColor) drop-shadow(0 0 12px currentColor);
    animation: neonGlowPulse 3s ease-in-out infinite alternate;
    overflow: visible;
    z-index: 0;
    transform: rotate(-90deg);
    transform-origin: center;
}

@keyframes neonGlowPulse {
    0% {
        filter: drop-shadow(0 0 4px #ff0000) drop-shadow(0 0 8px #ff0000) drop-shadow(0 0 12px #ff0000);
    }
    50% {
        filter: drop-shadow(0 0 4px #ff00ff) drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 12px #ff00ff);
    }
    100% {
        filter: drop-shadow(0 0 4px #0000ff) drop-shadow(0 0 8px #0000ff) drop-shadow(0 0 12px #0000ff);
    }
}


.char-text {
    font-size: 10px;
    fill: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
}

@keyframes neonBorderGlow {
    0% {
        filter: drop-shadow(0 0 4px #ff0000) drop-shadow(0 0 8px #ff0000) drop-shadow(0 0 12px #ff0000);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        filter: drop-shadow(0 0 4px #ff00ff) drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 12px #ff00ff);
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.5);
    }
    100% {
        filter: drop-shadow(0 0 4px #0000ff) drop-shadow(0 0 8px #0000ff) drop-shadow(0 0 12px #0000ff);
        box-shadow: 0 0 10px rgba(0, 0, 255, 0.8), 0 0 20px rgba(0, 0, 255, 0.5);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Registration Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: 'Manrope', sans-serif;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.btn-submit,
.btn-cancel {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    border: none;
}

.btn-submit {
    background: linear-gradient(135deg, #4b4f55 0%, #2b2f32 50%, #101216 100%);
    color: #f5f5f5;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-cancel {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-white);
    border: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Кнопки в hero-секции - белые */
.hero .btn-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.hero .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0.5rem auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-white);
    position: relative;
}

body:not(.index-page) .services {
    background-image: var(--bg-grid);
}

.catalog-page {
    padding-top: 40px;
    padding-bottom: 80px;
    position: relative;
}

.catalog-page::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.12) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70%;
    filter: blur(50px);
    pointer-events: none;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

/* Empty state for catalog */
.catalog-grid:empty::before {
    content: 'Нет автомобилей, соответствующих фильтрам';
    display: block;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 1.125rem;
    grid-column: 1 / -1;
    background: var(--bg-white);
    border-radius: 20px;
    border: 2px dashed var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.page-header .section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-header .section-subtitle {
    max-width: 700px;
    font-size: 1.25rem;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #84CC16 0%, #2563eb 50%, #8B5CF6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.1) 0%, rgba(132, 204, 22, 0.05) 100%);
    transition: all 0.3s ease;
}

.service-card:nth-child(1) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.15) 0%, rgba(132, 204, 22, 0.08) 100%);
}

.service-card:nth-child(2) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.service-card:nth-child(3) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.service-card:nth-child(4) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.service-card:nth-child(5) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.15) 0%, rgba(132, 204, 22, 0.08) 100%);
}

.service-card:nth-child(6) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.15) 0%, rgba(132, 204, 22, 0.08) 100%);
}

.service-card:nth-child(7) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.service-card:nth-child(8) .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 28px;
    height: 28px;
    stroke: #84CC16;
    transition: all 0.3s ease;
}

.service-card:nth-child(1) .service-icon {
    stroke: #84CC16;
}

.service-card:nth-child(2) .service-icon {
    stroke: #2563eb;
}

.service-card:nth-child(3) .service-icon {
    stroke: #2563eb;
}

.service-card:nth-child(4) .service-icon {
    stroke: #2563eb;
}

.service-card:nth-child(5) .service-icon {
    stroke: #84CC16;
}

.service-card:nth-child(6) .service-icon {
    stroke: #84CC16;
}

.service-card:nth-child(7) .service-icon {
    stroke: #8B5CF6;
}

.service-card:nth-child(8) .service-icon {
    stroke: #2563eb;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin: 0;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-white);
    position: relative;
}

body:not(.index-page) .about {
    background-image: var(--bg-grid);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.about-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: var(--shadow-xl);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-white);
    position: relative;
}

body:not(.index-page) .contact {
    background-image: var(--bg-grid);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50% 40% 60% 30%;
    filter: blur(60px);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .navbar.scrolled .nav-menu {
        background: var(--bg-white);
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(0, 0, 0, 0.6);
    }

    .navbar.scrolled .lang-dropdown {
        border: 1px solid var(--border-color);
        background: var(--bg-white);
    }

    .lang-dropdown.active {
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: white;
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: var(--text-primary);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .service-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
