/* CSS Variables */
:root {
    --primary: #FF3366;
    --primary-light: #FF6B35;
    --secondary: #0A0A0A;
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --border-color: #222222;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow-glow: 0 0 60px rgba(255, 51, 102, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: inline-block;
    word-break: keep-all;
    overflow-wrap: normal;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.2;
}

.section-title .gradient-text {
    white-space: nowrap;
    display: inline-block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header .logo-icon {
    width: 100px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.3);
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .logo-icon {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.logo-icon {
    width: 100px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.hero .logo-icon {
    width: 300px;
    max-height: 300px;
    margin-bottom: -20px;
    margin-top: -20px;
    animation: fadeInScale 1s ease-out 0.2s both;
    filter: drop-shadow(0 0 40px rgba(220, 20, 60, 0.3));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .hero .logo-icon {
        width: 300px;
        max-height: 300px;
    }
}

.hero.scrolled .logo-icon {
    width: 100px;
    max-height: 80px;
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.2));
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

@media (max-width: 1024px) {
    .nav {
        display: none;
    }
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.header-phone,
.header-telegram {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
}

.header-phone {
    font-weight: 600;
}

.header-telegram {
    transition: opacity 0.3s ease;
}

.header-telegram:hover {
    opacity: 0.8;
}

.phone-icon,
.telegram-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon {
    font-size: 18px;
    line-height: 1;
}

.telegram-icon {
    object-fit: contain;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 51, 102, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 51, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 102, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-title .gradient-text {
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-car-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-card-content {
    padding: 24px;
}

.hero-card-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.hero-card-price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

/* Advantages Section */
.advantages {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary) 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.advantage-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 90%;
    max-width: 480px;
    margin: 5% auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.modal-content {
    text-align: center;
    width: 100%;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group label {
    display: block;
    margin-bottom: 2%;
    font-weight: 500;
    color: var(--text-secondary);
    width: 90%;
    text-align: left;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 90%;
    padding: 4.5% 5%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 110%;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 56px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-button {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2%;
    padding: 3.5% 7%;
    margin: 0 auto;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.modal-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Catalog Section */
.catalog {
    position: relative;
    padding: 20px 0;
    background: var(--secondary);
}

.catalog .container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    order: -1;
}

.catalog-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

/* Country Toggle */
.country-toggle-container {
    margin: 0 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 0;
}

.country-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.country-button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.1);
    min-width: 100px;
    text-align: center;
}

.country-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(255, 51, 102, 0.3),
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

.country-button.active {
    background: var(--gradient);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-color: rgba(255, 51, 102, 0.5);
    box-shadow: 
        0 4px 20px rgba(255, 51, 102, 0.4),
        4px 4px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .catalog-header {
        margin-bottom: 8px;
    }
    
    .catalog-header .section-title {
        text-align: center;
        width: 100%;
    }

    .country-toggle-container {
        margin: 10px 0 20px;
        padding: 0 16px;
    }
    
    .country-buttons {
        gap: 8px;
    }
    
    .country-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .country-button.active {
        font-size: 0.95rem;
    }
    
    .country-toggle {
        max-width: 100%;
    }
    
    .toggle-track {
        height: 50px;
    }
    
    .toggle-knob {
        height: 42px;
    }
    
    .toggle-track.active-0 .toggle-knob {
        left: 4px;
    }
    
    .toggle-track.active-1 .toggle-knob {
        left: calc(20%);
    }
    
    .toggle-track.active-2 .toggle-knob {
        left: calc(40%);
    }
    
    .toggle-track.active-3 .toggle-knob {
        left: calc(60%);
    }
    
    .toggle-track.active-4 .toggle-knob {
        left: calc(80%);
    }
    
    .toggle-label {
        font-size: 0.875rem;
        font-weight: 600;
        padding: 0 4px;
    }
    
}

@media (max-width: 480px) {
    .country-toggle-container {
        margin: 10px 0 15px;
        padding: 0 12px;
    }
    
    .country-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .country-button {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .country-button.active {
        font-size: 0.85rem;
    }
}

.catalog-filters {
    display: flex;
    gap: 16px;
}

.catalog-filters select {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    min-width: 180px;
}

/* Advanced Filters */
/* Sort Section */
.sort-section {
    margin-top: 0;
    margin-bottom: 32px;
    order: 2;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.sort-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.sort-icon svg {
    width: 100%;
    height: 100%;
}

.sort-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    flex: 1;
    max-width: 300px;
    padding: 12px 16px;
    padding-right: 48px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF3366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover:not(:disabled),
.sort-select:focus:not(:disabled) {
    border-color: var(--primary);
    outline: none;
    background-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.sort-select:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: var(--bg-dark);
}

.sort-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 12px 16px;
}

@media (max-width: 768px) {
    .sort-container {
        gap: 8px;
    }
    
    .sort-icon {
        width: 20px;
        height: 20px;
    }
    
    .sort-select {
        max-width: 200px;
        font-size: 0.8125rem;
        padding: 10px 14px;
        padding-right: 40px;
    }
}

@media (max-width: 480px) {
    .sort-container {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .sort-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .sort-select {
        max-width: none;
        flex: 1;
        min-width: 0;
        font-size: 0.75rem;
        padding: 8px 12px;
        padding-right: 36px;
    }
}

.advanced-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    order: 1;
    position: relative;
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.advanced-filters.blocked {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.sort-section.blocked {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.sort-section.blocked .sort-select {
    cursor: not-allowed;
    opacity: 0.5;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus,
.filter-group input:hover,
.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--secondary);
}

/* Custom Scrollbar for Select Dropdowns */
.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF3366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin: 4px 0;
}

.filter-group select option:checked,
.filter-group select option:hover {
    background: var(--primary);
    color: white;
}

/* Scrollbar styles for all elements */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

.filter-group input::placeholder {
    color: var(--text-muted);
}

.filter-button-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    grid-column: span 2;
}

.filter-submit-button,
.filter-reset-button {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-submit-button {
    background: var(--gradient);
    color: white;
}

.filter-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.filter-reset-button {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.filter-reset-button:hover {
    background: var(--bg-dark);
    border-color: var(--text-secondary);
}

/* Скрываем кнопку переключения на десктопе по умолчанию */
.filter-toggle-mobile {
    display: none;
}

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

@media (max-width: 768px) {
    .advanced-filters {
        padding: 24px 16px;
    }

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

    .filter-button-group {
        grid-column: span 2;
    }

    /* Скрываем дополнительные фильтры на планшетах по умолчанию */
    .filter-group-mobile-hidden {
        display: none;
    }

    /* Показываем кнопку переключения на планшетах */
    .filter-toggle-mobile {
        display: block;
        grid-column: span 2;
    }

    /* Когда фильтры развернуты */
    .filters-expanded .filter-group-mobile-hidden {
        display: flex;
    }

    .filters-expanded .filter-toggle-button .toggle-icon {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    .advanced-filters {
        padding: 16px 12px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-button-group {
        grid-column: span 1;
        flex-direction: row;
        gap: 10px;
    }

    .filter-submit-button,
    .filter-reset-button {
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Скрываем дополнительные фильтры на мобильных по умолчанию */
    .filter-group-mobile-hidden {
        display: none;
    }

    /* Показываем кнопку переключения только на мобильных */
    .filter-toggle-mobile {
        display: block;
        grid-column: span 1;
    }

    /* Когда фильтры развернуты */
    .filters-expanded .filter-group-mobile-hidden {
        display: flex;
    }

    .filters-expanded .filter-toggle-button .toggle-icon {
        transform: rotate(180deg);
    }
}

.filter-toggle-button {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
}

.filter-toggle-button:hover {
    background: var(--bg-dark);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.access-overlay {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 100;
    padding: 40px 20px;
    margin: 0;
    pointer-events: auto;
    min-height: 400px;
}

@media (max-width: 768px) {
    .access-overlay {
        padding: 20px 16px;
        top: 80px;
        min-height: 350px;
        left: 0;
        right: 0;
    }
    
    .access-content {
        margin-top: 20px;
        padding: 40px 24px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .access-overlay {
        padding: 16px 12px;
        top: 60px;
        min-height: 300px;
    }
    
    .access-content {
        padding: 32px 20px;
        margin-top: 10px;
    }
    
    .access-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .access-content p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .lock-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
}

.access-overlay.hidden {
    display: none;
}

.access-content {
    text-align: center;
    max-width: 500px;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow);
    margin: 0 auto;
    position: relative;
    z-index: 101;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .access-content {
        padding: 40px 24px;
        max-width: 100%;
        margin: 0 16px;
    }

    .access-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .access-content p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .lock-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }
}

.access-overlay.hidden ~ .cars-grid {
    max-height: none;
    overflow: visible;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.access-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.access-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    filter: blur(8px);
    pointer-events: none;
    transition: filter 0.5s ease, max-height 0.5s ease, overflow 0.5s ease;
    order: 3;
    position: relative;
    max-height: 400px;
    overflow: hidden;
    scroll-margin-top: 200px; /* Offset для скролла, чтобы заголовок и фильтры были скрыты */
    align-items: stretch;
}

.cars-grid.unlocked {
    filter: none;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
        max-height: 400px;
        padding: 0 16px;
    }
    
    .cars-grid.unlocked {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .cars-grid {
        gap: 12px;
        margin-bottom: 24px;
        padding: 0 12px;
    }
}

.car-card-link {
    display: flex;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.car-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.car-card-link:hover .car-card {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.car-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.car-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    min-height: 0;
}

@media (max-width: 768px) {
    .car-card {
        border-radius: var(--radius-md);
    }
    
    .car-image {
        height: 200px;
    }
    
    .car-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .car-image {
        height: 180px;
    }
    
    .car-content {
        padding: 16px;
    }
    
    .car-title {
        font-size: 1.1rem;
    }
    
    .car-year {
        font-size: 0.85rem;
    }
    
    .car-spec {
        font-size: 0.75rem;
    }
    
    .car-price-rub {
        font-size: 1.2rem;
    }
}

.car-brand {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.car-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.car-year {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.car-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.car-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.car-price-cny {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.car-price-rub {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    order: 4;
    flex-wrap: wrap;
    padding: 0 16px;
    margin: 0 auto;
    max-width: 100%;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pagination button:hover,
.pagination button.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination.blocked {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.pagination.blocked button {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
        padding: 0 16px;
        margin: 0 auto 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        max-width: 100%;
    }
    
    .pagination::-webkit-scrollbar {
        display: none;
    }
    
    .pagination button {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* Скрываем многоточие на мобильных, если оно не помещается */
    .pagination button:disabled:not([onclick]) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 3px;
        padding: 0 12px;
        margin-bottom: 20px;
    }
    
    .pagination button {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
}

/* Reviews Section */
.reviews {
    padding: 120px 0;
    background: var(--secondary);
    overflow: hidden;
}

.reviews .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.review-track {
    position: relative;
    width: 100%;
}

.review-card {
    display: none !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.review-card.active {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 50%;
}

.author-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    gap: 4px;
}

.review-rating .star {
    color: #FF3366;
    font-size: 24px;
}

.review-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: left;
}

.review-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.review-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-color);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
}

.review-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.review-prev {
    left: 0;
}

.review-next {
    right: 0;
}

.review-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .review-card.active {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .reviews-slider {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 80px 0;
    }

    .review-card {
        padding: 32px 24px;
    }

    .reviews-slider {
        padding: 0 20px;
    }

    .review-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .author-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }

    .author-name {
        font-size: 20px;
    }

    .review-rating .star {
        font-size: 20px;
    }

    .review-text {
        font-size: 15px;
    }
}

/* Team Section */
.team {
    padding: 120px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.team .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.team-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.team-track {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.team-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.team-card-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.team-avatar {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar-placeholder svg {
    width: 100%;
    height: 100%;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    filter: brightness(1.1) contrast(1.15);
    transition: transform 0.3s ease;
}

.team-info {
    flex: 1;
    text-align: left;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.team-position {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.team-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.team-nav.team-prev {
    left: 0;
}

.team-nav.team-next {
    right: 0;
}

.team-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.team-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.team-dot:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.team-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .team-slider {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 80px 0;
    }

    .team-slider {
        padding: 0 20px;
    }

    .team-card {
        padding: 32px 24px;
    }

    .team-card-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .team-info {
        text-align: center;
    }

    .team-avatar {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .team-name {
        font-size: 1.25rem;
    }

    .team-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .team {
        padding: 60px 0;
    }

    .team-card {
        padding: 34px 30px;
    }

    .team-card-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .team-info {
        text-align: center;
    }

    .team-avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .team-name {
        font-size: 1.1rem;
    }

    .team-position {
        font-size: 0.9rem;
    }

    .team-description {
        font-size: 0.85rem;
    }

    .team-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Calculate by Link Section */
.calculate-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.calculate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 51, 102, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.calculate-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.calculate-content .section-title {
    margin-bottom: 16px;
}

.calculate-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.calculate-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.calculate-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4%;
    margin-bottom: 4%;
    width: 100%;
}

.calculate-input-group input {
    width: 90%;
    padding: 4.5% 5%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 110%;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 56px;
}

.calculate-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
}

.calculate-input-group input::placeholder {
    color: var(--text-muted);
}

.calculate-btn {
    width: 90%;
    padding: 4.5% 7%;
    margin-top: 4%;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 110%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
    box-sizing: border-box;
    min-height: 56px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.5);
}

.calculate-examples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.example-label {
    color: var(--text-muted);
    font-size: 14px;
}

.example-link {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-link:hover {
    background: var(--bg-dark);
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .calculate-section {
        padding: 60px 0;
    }

    .calculate-form {
        padding: 5%;
    }

    .calculate-input-group {
        gap: 4%;
        margin-bottom: 3%;
    }

    .calculate-input-group input {
        width: 90%;
        padding: 5% 5.5%;
        font-size: 105%;
        min-height: 52px;
    }

    .calculate-btn {
        width: 90%;
        padding: 5% 6.5%;
        margin-top: 4%;
        font-size: 105%;
        min-height: 52px;
    }

    .calculate-description {
        font-size: 95%;
    }

    .calculate-examples {
        flex-direction: column;
        gap: 2%;
    }
}

@media (max-width: 480px) {
    .calculate-form {
        padding: 4%;
    }

    .calculate-input-group {
        gap: 4%;
        margin-bottom: 2.5%;
    }

    .calculate-input-group input {
        width: 90%;
        padding: 5.5% 6%;
        font-size: 100%;
        min-height: 50px;
    }

    .calculate-btn {
        width: 90%;
        padding: 5.5% 7%;
        margin-top: 4%;
        font-size: 100%;
        min-height: 50px;
    }

    .example-link {
        width: 100%;
    }
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--bg-dark) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6%;
    width: 100%;
}

.contact-form {
    width: 100%;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 6.5%;
    text-align: center;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    width: 90%;
}

/* Footer */
/* News Section */
.news-section {
    padding: 140px 0 120px;
    background: var(--bg-dark);
    min-height: calc(100vh - 80px);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 60px;
    text-align: center;
    font-family: var(--font-heading);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-link:hover .news-card {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(255, 51, 102, 0.25);
}

.news-card-link:hover .news-card-title {
    color: var(--primary);
}

.news-card-image {
    width: 100%;
    height: 240px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.news-card-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.news-card-month {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: var(--font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.news-card-tag {
    padding: 4px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* News Detail Section */
.news-detail-section {
    padding: 140px 0 120px;
    background: var(--bg-dark);
    min-height: calc(100vh - 80px);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 32px;
    transition: color 0.3s ease;
}

.news-back-link:hover {
    color: var(--primary);
}

.news-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.news-detail-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.news-detail-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-heading);
}

.news-detail-month {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.news-detail-year {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.news-detail-meta {
    margin-top: 20px;
}

.news-detail-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.news-detail-tag {
    padding: 6px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.news-detail-image {
    width: 100%;
    height: 500px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
}

.news-detail-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-detail-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-dark);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
}

.news-detail-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.news-detail-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.news-detail-content ul {
    margin: 24px 0;
    padding-left: 28px;
}

.news-detail-content li {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.news-detail-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.news-detail-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.news-detail-contact-btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-detail-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.4);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 120px 0 80px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-card-content {
        padding: 24px;
    }

    .news-card-image {
        height: 200px;
    }

    .news-card-title {
        font-size: 1.25rem;
    }

    .news-detail-section {
        padding: 120px 0 80px;
    }

    .news-detail {
        padding: 32px 24px;
    }

    .news-detail-title {
        font-size: 1.75rem;
    }

    .news-detail-image {
        height: 300px;
    }

    .news-detail-content {
        font-size: 1rem;
    }

    .news-detail-content h2 {
        font-size: 1.5rem;
    }

    .news-detail-lead {
        font-size: 1.1rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-title {
        font-size: 1.1rem;
    }

    .news-card-excerpt {
        font-size: 0.9rem;
    }

    .news-detail-section {
        padding: 100px 0 60px;
    }

    .news-detail {
        padding: 24px 20px;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }

    .news-detail-image {
        height: 250px;
    }

    .news-detail-content {
        font-size: 0.95rem;
    }

    .news-detail-content h2 {
        font-size: 1.25rem;
    }

    .news-detail-lead {
        font-size: 1rem;
        padding: 16px;
    }

    .news-detail-contact-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 120px 0 80px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .news-item {
        padding: 32px 24px;
    }

    .news-header {
        flex-direction: column;
        gap: 20px;
    }

    .news-date {
        align-self: flex-start;
    }

    .news-title {
        font-size: 1.5rem;
    }

    .news-image-placeholder {
        height: 250px;
    }

    .news-text {
        font-size: 1rem;
    }

    .news-text h3 {
        font-size: 1.25rem;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .news-item {
        padding: 24px 20px;
    }

    .news-title {
        font-size: 1.25rem;
    }

    .news-image-placeholder {
        height: 200px;
    }

    .news-contact-btn {
        width: 100%;
        text-align: center;
    }
}

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 100px;
    height: auto;
    max-height: 80px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a,
.footer-links p {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-color: #22c55e;
}

.toast.toast-error {
    border-color: #ef4444;
}

.toast.toast-info {
    border-color: #3b82f6;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

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

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

@media (max-width: 768px) {
    .header {
        border-bottom: 1px solid var(--border-color);
    }

    .header-content {
        height: 60px;
    }

    .header .container {
        padding: 0 16px;
    }

    .nav {
        display: none;
    }

    .logo {
        gap: 8px;
    }

    .header .logo-icon {
        width: 40px;
        height: 40px;
        max-height: 40px;
        object-fit: contain;
        opacity: 0;
        transform: scale(0.3);
        visibility: hidden;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header.scrolled .logo-icon {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        max-height: 40px;
        object-fit: contain;
    }

    .logo-text {
        font-size: 1rem;
        font-weight: 600;
    }

    .header-contacts {
        gap: 4px;
    }

    .header-phone,
    .header-telegram {
        font-size: 0.75rem;
        gap: 6px;
    }

    .phone-icon,
    .telegram-icon {
        width: 16px;
        height: 16px;
    }

    .phone-icon {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: space-between;
    }

    .stat {
        flex: 1;
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-visual {
        margin-top: 30px;
        display: flex;
    }

    .scroll-indicator {
        display: none;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        overflow-x: hidden;
    }

    .hero .container {
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero .logo-icon {
        width: 500px;
        max-width: 90vw;
        max-height: 500px;
        height: auto;
        margin: 0 auto;
        filter: drop-shadow(0 0 30px rgba(220, 20, 60, 0.4));
    }

    .hero.scrolled .logo-icon {
        width: 40px;
        max-height: 40px;
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
        filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.2));
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        text-align: center;
    }

    .hero-title .gradient-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        margin-top: 12px;
    }


    .cta-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 18px 32px;
    }

    .advantages {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
        line-height: 1.3;
    }

    .section-title .gradient-text {
        white-space: nowrap;
        display: inline-block;
        font-size: inherit;
    }

    .advantage-card {
        display: flex;
        gap: 16px;
        padding: 24px;
        align-items: center;
    }

    .advantage-icon {
        font-size: 2.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .advantage-text {
        flex: 1;
    }

    .advantage-card h3 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    .advantage-card p {
        margin-top: 0;
    }

    .catalog {
        padding: 20px 0;
    }

    .reviews {
        padding: 20px 0;
    }

    .contact {
        padding: 20px 0;
    }

    .toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
        max-width: calc(100% - 5%);
        width: auto;
        min-width: calc(100% - 5%);
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: clamp(2rem, 4.5vw, 2.2rem);
        line-height: 1.3;
    }

    .section-title .gradient-text {
        white-space: nowrap;
        display: inline-block;
        font-size: inherit;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal {
        padding: 5%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 5% 5.5%;
        font-size: 105%;
        min-height: 52px;
    }

    .submit-button {
        padding: 5% 6.5%;
        font-size: 105%;
        min-height: 52px;
    }

    .contact-form textarea {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        gap: 20px;
        padding: 0 12px;
    }

    .header .logo-icon {
        width: 40px;
        height: 40px;
        max-height: 40px;
        opacity: 0;
        transform: scale(0.3);
        visibility: hidden;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header.scrolled .logo-icon {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }

    .hero .logo-icon {
        width: 400px;
        max-width: 85vw;
        max-height: 400px;
        height: auto;
        filter: drop-shadow(0 0 25px rgba(220, 20, 60, 0.4));
    }

    .hero.scrolled .logo-icon {
        width: 40px;
        max-height: 40px;
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
        filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.2));
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.3;
    }

    .hero-title .gradient-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        margin-top: 8px;
    }


    .cta-button {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .hero .container {
        padding: 0 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 5.5% 6%;
        font-size: 100%;
        min-height: 50px;
    }

    .submit-button {
        padding: 5.5% 7%;
        font-size: 100%;
        min-height: 50px;
    }

    .contact-form textarea {
        min-height: 100px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-sm);
}

.mobile-nav-item:active {
    background: var(--bg-card-hover);
    transform: scale(0.95);
}

.mobile-nav-icon {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav-text {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.scroll-to-top:active {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
    
    .scroll-to-top {
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }
    
    .mobile-nav-item {
        padding: 6px 8px;
    }
    
    .mobile-nav-icon {
        font-size: 18px;
    }
    
    .mobile-nav-text {
        font-size: 9px;
    }
    
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 70px;
        right: 16px;
    }
}

/* Add padding to body on mobile to account for fixed bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
    
    .footer {
        padding-bottom: calc(24px + 70px);
    }
}
