/*
 * ============================================
 * ПРИНЦИПЫ ДИЗАЙНА САЙТА - ОБЯЗАТЕЛЬНО К ИЗУЧЕНИЮ
 * ============================================
 * 
 * ВСЕ, КТО РАБОТАЕТ НАД ЭТИМ САЙТОМ, ДОЛЖНЫ СЛЕДОВАТЬ ЭТИМ ПРИНЦИПАМ:
 * 
 * 1. МИНИМАЛИСТИЧНЫЙ ДИЗАЙН НА УРОВНЕ APPLE
 *    - Чистые линии, много белого пространства
 *    - Минимум декоративных элементов
 *    - Фокус на контенте, а не на эффектах
 *    - Использование системных шрифтов Apple
 * 
 * 2. ЕДИНООБРАЗИЕ СТИЛЕЙ - НЕТ УНИКАЛЬНЫХ РЕШЕНИЙ
 *    - Каждое дизайн-решение должно повторяться минимум 2-3 раза
 *    - Использовать CSS переменные для цветов, отступов, размеров
 *    - Одинаковые элементы должны выглядеть одинаково
 *    - Нет визуального шума - только необходимые элементы
 * 
 * 3. ПРОФЕССИОНАЛЬНАЯ АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
 *    - Mobile-first подход
 *    - Плавные переходы между breakpoints
 *    - Все элементы должны быть удобны на touch-экранах
 *    - Минимальные размеры для кликабельных элементов: 44x44px
 * 
 * ============================================
 */

/* CSS Переменные для единообразия */
:root {
    /* Цвета - минималистичная палитра Apple */
    --color-text-primary: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #86868b;
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #fbfbfd;
    --color-bg-tertiary: #f5f5f7;
    --color-bg-dark: #000000;
    --color-accent: #0071e3;
    --color-accent-hover: #0051a5;
    --color-success: #34c759;
    
    /* Отступы - единая система */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 88px;
    --spacing-5xl: 112px;
    
    /* Размеры шрифтов - типографическая система */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 17px;
    --font-size-md: 19px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    --font-size-2xl: 40px;
    --font-size-3xl: 56px;
    
    /* Радиусы скругления - единообразие */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 20px;
    --radius-full: 980px;
    
    /* Тени - минималистичные */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    
    /* Transitions - единая анимация */
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Breakpoints */
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
    --breakpoint-desktop: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Предотвращение переполнения текста на всех элементах */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: var(--color-text-primary);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body > header {
    margin-top: 0;
}

body > .hero {
    margin-top: 0;
    padding-top: 0;
}

.container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
}

.header .container {
    padding: 0 var(--spacing-md);
    max-width: 100%;
}

.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    color: var(--color-text-primary);
    padding: 0;
    position: fixed;
    top: var(--spacing-sm);
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0 var(--spacing-md);
    border-radius: var(--radius-xl);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.header:hover {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: var(--spacing-xs) 0;
    gap: 0;
    width: 100%;
    position: relative;
}

/* Скрытие любых полей ввода в шапке */
.header input,
.header input[type="text"],
.header input[type="search"],
.header .search-input,
.header .search-field {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Мобильная кнопка меню */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn svg {
    transition: opacity 0.2s ease;
}

.mobile-menu-btn.active svg {
    opacity: 0.6;
}

/* Мобильная навигация */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) 0;
    margin-top: 0;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    z-index: 1001;
}

.mobile-nav.active {
    max-height: 500px;
    opacity: 1;
    padding: var(--spacing-md) 0;
}

.mobile-nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 400;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-nav-link-sub {
    padding-left: 40px;
    font-size: 15px;
    color: #6e6e73;
}

/* Скрытие на десктопе */
@media (min-width: 769px) {
    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .header-content .nav {
        display: flex !important;
    }
}

.header-content .logo {
    margin-left: 0;
    padding-left: 0;
    flex-shrink: 0;
}

/* Скрытие любых элементов между логотипом и навигацией */
.header-content .logo::after,
.header-content .logo::before {
    display: none !important;
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

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

.logo-svg {
    width: 32px;
    height: 32px;
    animation: rotate 4s linear infinite;
    transform-origin: center center;
    object-fit: contain;
}

.company-name {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.2;
}

.nav-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: -0.011em;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    line-height: 1.47059;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
}

.nav-dropdown:hover > .nav-link {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
}

.nav-link:active {
    background: rgba(0, 0, 0, 0.12);
}

.nav-link.active {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: -0.011em;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    line-height: 1.47059;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
}

.dropdown-item.active {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
}

.hero {
    background-color: var(--color-bg-dark);
    color: var(--color-bg-primary);
    padding: 0 0 var(--spacing-5xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-top: 0;
    margin-top: 0;
    top: 0;
}

/* Декоративные элементы удалены для минималистичного дизайна */

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
    filter: blur(4px) brightness(0.75);
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: block;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    background-color: transparent;
    min-height: 100vh;
}

.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-video-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    background: #000000;
    filter: blur(4px) brightness(0.75);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-logo {
    width: 280px;
    height: 280px;
    margin: 0 auto var(--spacing-2xl);
    display: block;
    object-fit: contain;
    transition: var(--transition-base);
}

.hero-logo:hover {
    opacity: 0.9;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 8px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.15);
    position: relative;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    margin-top: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Статистика удалена для минималистичного дизайна */

/* Унифицированные заголовки секций */
.section-title {
    font-size: var(--font-size-3xl);
    line-height: 1.07143;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    color: var(--color-text-primary);
}

.catalog {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background: var(--color-bg-secondary);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 320px);
    gap: 24px;
    margin-top: 64px;
    justify-content: center;
}

/* Унифицированные карточки товаров - используются везде */
.car-card,
.category-card,
.feature-card,
.contact-card,
.pipe-item {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.car-card:hover,
.category-card:hover,
.feature-card:hover,
.contact-card:hover,
.pipe-item:hover {
    box-shadow: var(--shadow-lg);
}




.car-image {
    width: 100%;
    height: 300px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

/* Уникальный test-card удален - используйте унифицированные карточки */


.car-image:empty::before {
    content: '';
}

.car-info {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-brand {
    font-size: 28px;
    line-height: 1.28571;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.car-model {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: #6e6e73;
    margin-bottom: 16px;
}

.car-price {
    font-size: 24px;
    line-height: 1.33333;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.car-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.005em;
    color: #6e6e73;
}

.car-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.capacity-value {
    position: relative;
    font-weight: 600;
}

/* Унифицированная кнопка - используется везде */
.btn-view,
a.btn-view {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.011em;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-view:hover {
    background: rgba(29, 29, 31, 0.85);
    opacity: 0.9;
}

.btn-view:active {
    opacity: 0.8;
}

.btn-view span,
.btn-view,
a.btn-view {
    position: relative;
    z-index: 1;
}

a.btn-view {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

a.btn-view:visited {
    color: #fff;
}

a.btn-view:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.3);
}

.btn-view:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.consent-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6e6e73;
    margin: 10px 0 14px;
}

.consent-row a {
    color: #0071e3;
    text-decoration: none;
}

.consent-row a:hover {
    text-decoration: underline;
}

.car-card.consent-required {
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.35), 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Унифицированные секции - одинаковые отступы везде */
.about-company {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background-color: var(--color-bg-primary);
}

.custom-order {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background: var(--color-bg-secondary);
}

.custom-order-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Упрощенный блок введения - убраны декоративные элементы */
.custom-order-intro {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: var(--color-text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.custom-order-lead {
    font-size: var(--font-size-2xl);
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-bg-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.005em;
}

.custom-order-intro p {
    font-size: var(--font-size-md);
    line-height: 1.47368;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: -0.011em;
}

/* Унифицированные карточки - используются везде */
.custom-order-form-wrapper {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-base);
}

.custom-order-form-wrapper:hover {
    box-shadow: var(--shadow-lg);
}

.custom-order-form {
    width: 100%;
}

.custom-order-form .form-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 8px;
    color: #1d1d1f;
    text-align: center;
}

.custom-order-form .form-subtitle {
    font-size: 19px;
    line-height: 1.47368;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: #6e6e73;
    margin-bottom: 40px;
    text-align: center;
}

.custom-order-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

.custom-order-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.011em;
}

/* Унифицированные поля ввода - используются во всех формах */
.custom-order-form .form-group input,
.custom-order-form .form-group textarea,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 0.5px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.011em;
    font-family: inherit;
    transition: var(--transition-base);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.custom-order-form .form-group input::placeholder,
.custom-order-form .form-group textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-tertiary);
    opacity: 0.7;
}

.custom-order-form .form-group input:focus,
.custom-order-form .form-group textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background-color: var(--color-bg-primary);
}

.custom-order-form .form-group input:hover,
.custom-order-form .form-group textarea:hover,
.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.custom-order-form .form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.custom-order-form .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e73;
    margin: 24px 0 28px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-order-form .consent-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

.custom-order-form .consent-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0071e3;
    flex-shrink: 0;
}

.custom-order-form .consent-row a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.custom-order-form .consent-row a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Унифицированная кнопка отправки - используется во всех формах */
.custom-order-form .btn-submit,
.btn-submit {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.011em;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
}

.custom-order-form .btn-submit:hover,
.btn-submit:hover {
    background: rgba(29, 29, 31, 0.85);
    opacity: 0.9;
}

.custom-order-form .btn-submit:active,
.btn-submit:active {
    opacity: 0.8;
}

.custom-order-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Индикатор загрузки для кнопок */
.btn-submit.loading {
    position: relative;
    pointer-events: none;
}

.btn-submit .spinner {
    display: inline-block;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-submit.loading .spinner {
    animation: spin 1s linear infinite;
}


.custom-order-form-wrapper .success-message.show {
    display: block;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.about-text-block {
    max-width: 900px;
    margin: 0 auto 64px;
    text-align: left;
}

.about-lead {
    font-size: var(--font-size-xl);
    line-height: 1.28571;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.003em;
    text-align: left;
}

.about-text-block p {
    font-size: var(--font-size-md);
    line-height: 1.47368;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.011em;
    text-align: left;
    word-wrap: break-word;
    hyphens: auto;
}

/* About Images */
.about-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .about-images {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 48px;
    }
}

.features {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background-color: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}


.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.003em;
    line-height: 1.33333;
}

.feature-text {
    font-size: 17px;
    line-height: 1.47059;
    color: #6e6e73;
    letter-spacing: -0.011em;
}

.catalog-page {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    margin-top: 0;
    background-color: var(--color-bg-primary);
}

/* Общий отступ для всех секций, чтобы контент не перекрывался шапкой */
section:not(.hero) {
    scroll-margin-top: 88px;
}

.page-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 48px;
}

.page-title {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.002em;
    margin-bottom: 60px;
    text-align: center;
    color: #1d1d1f;
}

.catalog-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 450px));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 1200px) {
    .catalog-categories {
        grid-template-columns: repeat(auto-fit, minmax(400px, 450px));
        max-width: 1400px;
        gap: 40px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .category-image {
        height: 280px;
    }
    
    .category-info {
        padding: 45px;
    }
    
    .car-image {
        height: 280px;
    }
    
    .car-info {
        padding: 45px;
    }
}

@media (min-width: 1600px) {
    .catalog-categories {
        grid-template-columns: repeat(auto-fit, minmax(400px, 450px));
        max-width: 1800px;
        gap: 40px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .category-image {
        height: 260px;
    }
    
    .category-info {
        padding: 50px;
    }
    
    .car-image {
        height: 260px;
    }
    
    .car-info {
        padding: 50px;
    }
}

@media (min-width: 1920px) {
    .catalog-categories {
        max-width: 2000px;
        gap: 50px;
        margin: 0 auto;
        justify-content: center;
    }
}


.category-image {
    width: 100%;
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-placeholder {
    font-size: 48px;
    color: #86868b;
    font-weight: 300;
}

.category-info {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.category-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.catalog-section {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background-color: var(--color-bg-primary);
}

.catalog-section .container,
.catalog-page .container {
    max-width: 1024px;
}

@media (min-width: 1200px) {
    .catalog-section .container,
    .catalog-page .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .catalog-section .container,
    .catalog-page .container {
        max-width: 1800px;
        padding: 0 60px;
    }
}

@media (min-width: 1920px) {
    .catalog-section .container,
    .catalog-page .container {
        max-width: 2000px;
        padding: 0 80px;
    }
}

.product-detail-section {
    padding: 120px 0;
    background-color: #ffffff !important;
    opacity: 1;
    visibility: visible;
}

.product-detail-section .container {
    max-width: 1400px;
    padding: 0 40px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

.product-detail-image-wrapper {
    position: sticky;
    top: 100px;
    background: #f5f5f7;
    border-radius: 18px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-detail-main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.btn-order-scroll {
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
}

.btn-order-scroll:hover {
    background: #2d2d2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-order-scroll:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-title {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.002em;
    color: #1d1d1f;
    margin-bottom: 0;
}

.product-detail-price {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin: 0;
}

.product-detail-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fbfbfd;
    border-radius: 18px;
}

.product-description {
    padding: 20px 0;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.product-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #6e6e73;
    letter-spacing: -0.01em;
    margin: 0;
}

.product-actions {
    margin-top: 20px;
}

.product-actions .btn-view {
    width: 100%;
    max-width: 400px;
}

.product-additional-info {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-features,
.product-applications,
.product-technical-details,
.product-specifications {
    background: #fbfbfd;
    border-radius: 18px;
    padding: 40px;
}

.product-features h3,
.product-applications h3,
.product-technical-details h3,
.product-specifications h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.product-features {
    grid-column: 1;
}

.product-applications {
    grid-column: 2;
}

.product-technical-details {
    grid-column: 1 / -1;
}

.product-specifications {
    grid-column: 1 / -1;
}

.features-list,
.applications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li,
.applications-list li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.features-list li::before,
.applications-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: 700;
    font-size: 18px;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.technical-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.technical-label {
    font-size: 14px;
    font-weight: 500;
    color: #6e6e73;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.technical-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.specifications-content {
    margin-top: 20px;
}

.specifications-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.specifications-content p:last-child {
    margin-bottom: 0;
}

.specifications-content strong {
    font-weight: 600;
    color: #1d1d1f;
}

.product-order-form-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.product-order-form-section .container {
    max-width: 1400px;
    padding: 0 40px;
}

.product-order-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.product-order-form {
    margin-top: 30px;
}

.product-order-form .form-title {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.002em;
    margin-bottom: 8px;
    color: #1d1d1f;
    text-align: center;
}

.product-order-form .form-subtitle {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #6e6e73;
    margin-bottom: 40px;
    text-align: center;
}

.product-order-form .form-group {
    margin-bottom: 24px;
    position: relative;
}

.product-order-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.product-order-form .form-group input,
.product-order-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #1d1d1f;
}

.product-order-form .form-group input::placeholder,
.product-order-form .form-group textarea::placeholder {
    color: #86868b;
}

.product-order-form .form-group input:focus,
.product-order-form .form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.product-order-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.product-order-form .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e73;
    cursor: pointer;
}

.product-order-form .consent-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.product-order-form .consent-row a {
    color: #0071e3;
    text-decoration: none;
    transition: opacity 0.2s;
}

.product-order-form .consent-row a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.product-order-form .btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.product-order-form .btn-submit:hover {
    background: #2d2d2f;
    transform: scale(1.02);
}

.product-order-form .btn-submit:active {
    transform: scale(0.98);
}

.product-order-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#productSuccessMessage {
    display: none;
    background: #34c759;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
    animation: successSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#productSuccessMessage.show {
    display: block;
}

#componentSuccessMessage {
    display: none;
    background: #34c759;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

#componentSuccessMessage.show {
    display: block;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6e6e73;
}

.breadcrumbs a {
    color: #0071e3;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
}

.breadcrumbs span {
    color: #86868b;
}

/* Упрощенный section-intro - убраны декоративные элементы */
.section-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: var(--color-text-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.section-intro p {
    font-size: var(--font-size-md);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
    margin: 0;
}

.empty-category {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-category p {
    font-size: 18px;
    line-height: 1.8;
    color: #6e6e73;
    letter-spacing: -0.01em;
}

.components-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.components-section:first-of-type {
    margin-top: 60px;
    padding-top: 0;
    border-top: none;
}

.components-section-title {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 40px;
    text-align: center;
}

.pipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, max-content));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    justify-items: center;
}

@media (min-width: 1200px) {
    .pipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, max-content));
        max-width: 1400px;
        gap: 40px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        justify-items: center;
    }
    
    .pipe-item {
        padding: 45px;
    }
}

@media (min-width: 1600px) {
    .pipes-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, max-content));
        max-width: 1800px;
        gap: 40px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        justify-items: center;
    }
    
    .pipe-item {
        padding: 50px;
    }
}

@media (min-width: 1920px) {
    .pipes-grid {
        max-width: 2000px;
        gap: 50px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        justify-items: center;
    }
}


.pipe-image {
    width: 100%;
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.pipe-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.pipe-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.pipe-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.pipe-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pipe-specs .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    font-size: 15px;
}

.pipe-specs .spec-label {
    font-weight: 500;
    color: #6e6e73;
}

.pipe-specs .spec-value {
    color: #1d1d1f;
    font-weight: 500;
}

.pipes-contact {
    margin-top: 60px;
    padding: 40px;
    background: #f5f5f7;
    border-radius: 18px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pipes-contact p {
    font-size: 16px;
    line-height: 1.6;
    color: #6e6e73;
    letter-spacing: -0.01em;
}

/* Унифицированная секция для страниц с текстом (политика конфиденциальности) */
.about {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background-color: var(--color-bg-primary);
}

.about-text {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: var(--spacing-2xl);
    background-color: var(--color-bg-primary);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Lists in legal pages (privacy) without bullets */
.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.about-text li {
    margin: 6px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Все элементы внутри about-text должны правильно переноситься */
.about-text p,
.about-text h3,
.about-text h4,
.about-text strong,
.about-text em {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.contacts {
    padding: var(--spacing-5xl) 0;
    padding-top: var(--spacing-4xl);
    background-color: var(--color-bg-primary);
}

.contacts-content {
    text-align: center;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}



.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-value {
    font-size: var(--font-size-md);
    line-height: 1.47368;
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: -0.011em;
    margin: 0;
}

.contact-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.contact-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: #0088cc;
    color: var(--color-bg-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    margin-top: var(--spacing-xs);
}

.btn-telegram:hover {
    background: #006ba3;
    opacity: 0.9;
    color: var(--color-bg-primary);
    text-decoration: none;
}

.btn-telegram svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-info {
    font-size: 19px;
    line-height: 1.47368;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: #1d1d1f;
    padding: 32px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.01);
    border-radius: 18px;
}

.contact-info p {
    margin-bottom: 16px;
    color: #6e6e73;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.011em;
}

.footer {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    font-size: var(--font-size-xs);
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.011em;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.footer-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    opacity: 0.7;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: auto;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 18px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#modalBody {
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    display: none !important;
    visibility: hidden !important;
}

.car-detail-view {
    margin-bottom: 0;
    padding: 60px;
    background: #ffffff;
}

.car-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.car-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.car-detail-image:empty::before {
    content: '';
}

.car-detail-title {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.003em;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.car-detail-price {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #1d1d1f;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.car-detail-specs {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    background-color: rgba(0, 0, 0, 0.01);
    margin-bottom: 0;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
}

.spec-label {
    font-weight: 500;
    color: #6e6e73;
}

.spec-value {
    color: #1d1d1f;
    font-weight: 500;
}

.order-form {
    margin-top: 0;
    padding: 60px;
    background: #fbfbfd;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.002em;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.form-subtitle {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #6e6e73;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #1d1d1f;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #86868b;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #2d2d2f;
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Унифицированное сообщение об успехе */
.success-message,
.custom-order-form-wrapper .success-message {
    display: none;
    background: var(--color-success);
    color: var(--color-bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-base);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    box-shadow: var(--shadow-md);
    animation: successSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message.show {
    display: block;
}

@media (min-width: 1400px) {
    .product-detail-section .container {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .product-detail-content {
        gap: 80px;
    }
    
    .product-order-form-section .container {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .product-order-form-wrapper {
        max-width: 1000px;
    }
}

@media (min-width: 1920px) {
    .product-detail-section .container {
        max-width: 1800px;
        padding: 0 80px;
    }
    
    .product-order-form-section .container {
        max-width: 1800px;
        padding: 0 80px;
    }
    
    .product-order-form-wrapper {
        max-width: 1100px;
    }
}

@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(2, 320px);
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: 100%;
        justify-content: center;
    }
    
    .pipes-grid {
        max-width: 100%;
        justify-items: center;
    }
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ - ПРОФЕССИОНАЛЬНЫЙ УРОВЕНЬ
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header .container {
        padding: 0 var(--spacing-sm);
    }
    
    .custom-order-content {
        padding: 0;
    }
    
    .about-text {
        padding: var(--spacing-lg) var(--spacing-md);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .about-text p,
    .about-text h3,
    .about-text h4,
    .about-text strong,
    .about-text em,
    .about-text ul,
    .about-text li {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        box-sizing: border-box;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
    
    .hero-subtitle {
        font-size: 22px;
        line-height: 1.3;
    }
    
    
    .custom-order {
        padding: var(--spacing-3xl) 0;
    }
    
    .custom-order-lead {
        font-size: var(--font-size-xl);
    }
    
    .custom-order-intro {
        padding: var(--spacing-xl) var(--spacing-lg);
        margin: 0 var(--spacing-md) var(--spacing-2xl);
    }
    
    .custom-order-intro p {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    .custom-order-form-wrapper {
        padding: var(--spacing-xl) var(--spacing-lg);
        margin: 0 var(--spacing-md);
    }
    
    .custom-order-form .form-title {
        font-size: var(--font-size-xl);
        line-height: 1.2;
    }
    
    .custom-order-form .form-subtitle {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        line-height: 1.15;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }
    
    .car-card {
        max-width: 100%;
    }
    
    .car-image {
        height: 280px;
    }
    
    .car-info {
        padding: 45px;
    }
    
    .catalog {
        padding: 60px 0;
    }
    
    .catalog-page,
    .catalog-section {
        padding: 60px 0;
        padding-top: 100px !important;
    }
    
    .components-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .components-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .pipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        justify-items: center;
    }
    
    .pipe-item {
        padding: 30px;
        max-width: 100%;
    }
    
    .components-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .components-section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .pipes-contact {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .about-company,
    .features,
    .contacts {
        padding: var(--spacing-3xl) 0;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .product-detail-section {
        padding: 60px 0;
    }
    
    .product-detail-section .container {
        padding: 0 30px;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-detail-image-wrapper {
        position: relative;
        top: 0;
        min-height: 300px;
        padding: 30px;
        gap: 20px;
    }
    
    .btn-order-scroll {
        max-width: 100%;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .product-detail-title {
        font-size: 36px;
    }
    
    .product-detail-price {
        font-size: 32px;
    }
    
    .product-order-form-section .container {
        padding: 0 30px;
    }
    
    .product-order-form-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .product-order-form-wrapper {
        padding: 40px 30px;
    }
    
    .product-order-form .form-title {
        font-size: 32px;
    }
    
    .product-order-form .form-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .header {
        top: var(--spacing-xs);
        margin: 0 var(--spacing-xs);
        border-radius: var(--radius-md);
    }
    
    .header-content {
        min-height: 42px;
        padding: var(--spacing-xs) 0;
        flex-wrap: wrap;
    }
    
    .logo {
        gap: 10px;
        flex-shrink: 0;
    }
    
    .logo-img {
        width: 56px;
        height: 56px;
    }
    
    .logo-svg {
        width: 30px;
        height: 30px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .nav {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-link {
        font-size: 15px;
        font-weight: 500;
        padding: 8px 14px;
        letter-spacing: -0.011em;
    }
    
    .dropdown-menu {
        min-width: 180px;
        padding: 6px;
    }
    
    .dropdown-item {
        font-size: 16px;
        font-weight: 500;
        padding: 12px 16px;
        letter-spacing: -0.011em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-text-block {
        margin-bottom: 48px;
    }
    
    .about-lead {
        font-size: 24px;
        line-height: 1.33333;
        margin-bottom: 20px;
    }
    
    .about-text-block p {
        font-size: 17px;
        line-height: 1.47059;
        margin-bottom: 20px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10% auto;
    }
    
    .car-detail-view {
        padding: 30px 20px;
    }
    
    .car-detail-image {
        height: 250px;
    }
    
    .car-detail-title {
        font-size: 32px;
    }
    
    .car-detail-price {
        font-size: 24px;
    }
    
    .order-form {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 28px;
    }
    
    .form-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-logo {
        width: 180px;
        height: 180px;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        line-height: 1.16667;
        margin-top: var(--spacing-sm);
    }
    
    .loader-animation {
        width: 200px;
        height: 120px;
    }
    
    .loader-dot {
        width: 12px;
        height: 12px;
    }
    
    .custom-order {
        padding: var(--spacing-3xl) 0;
    }
    
    .custom-order-lead {
        font-size: var(--font-size-xl);
        line-height: 1.125;
        margin-bottom: var(--spacing-sm);
    }
    
    .custom-order-intro {
        margin-bottom: var(--spacing-2xl);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .custom-order-intro p {
        font-size: var(--font-size-sm);
    }
    
    .custom-order-form-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: var(--radius-md);
        margin: 0 var(--spacing-xs);
    }
    
    .custom-order-form .form-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xs);
        line-height: 1.25;
    }
    
    .custom-order-form .form-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
        line-height: 1.5;
    }
    
    .custom-order-form .form-group {
        margin-bottom: 18px;
    }
    
    .custom-order-form .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
        display: block;
    }
    
    .custom-order-form .form-group input,
    .custom-order-form .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .custom-order-form .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .custom-order-form .consent-row {
        font-size: 12px;
        line-height: 1.5;
        padding: 12px;
        margin: 20px 0 16px;
        border-radius: 10px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .custom-order-form .consent-row input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .custom-order-form .btn-submit {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
    }
    
    .custom-order-intro {
        padding: 24px 16px;
        margin: 0 8px 32px;
        border-radius: 12px;
    }
    
    .custom-order-lead {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 12px;
    }
    
    .custom-order-intro p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: var(--spacing-2xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 var(--spacing-xs);
    }
    
    .page-title {
        font-size: 22px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 var(--spacing-xs);
    }
    
    .about-text {
        padding: var(--spacing-md);
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        font-size: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .about-text p,
    .about-text h3,
    .about-text h4,
    .about-text strong,
    .about-text em,
    .about-text ul,
    .about-text li {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .header {
        top: var(--spacing-xs);
        margin: 0 var(--spacing-xs);
        border-radius: var(--radius-md);
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-xs);
        min-height: auto;
        padding: var(--spacing-xs) 0;
        flex-wrap: wrap;
    }
    
    .logo {
        flex-shrink: 0;
        gap: 8px;
    }
    
    .logo-img {
        width: 52px;
        height: 52px;
    }
    
    .logo-svg {
        width: 28px;
        height: 28px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .nav {
        flex: 1;
        justify-content: flex-end;
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 17px;
        font-weight: 400;
        letter-spacing: -0.011em;
        line-height: 1.47059;
        padding: 8px 12px;
        white-space: nowrap;
        letter-spacing: -0.011em;
    }
    
    .dropdown-menu {
        min-width: 160px;
        left: auto;
        right: 0;
    }
    
    .car-image {
        height: 240px;
    }
    
    .car-info {
        padding: 20px;
    }
    
    .car-brand {
        font-size: 20px;
    }
    
    .car-model {
        font-size: 14px;
    }
    
    .car-price {
        font-size: 18px;
    }
    
    .catalog {
        padding: 40px 0;
    }
    
    .catalog-page,
    .catalog-section {
        padding: 40px 0;
        padding-top: 100px !important;
    }
    
    .product-detail-section {
        padding: 60px 0;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-image-wrapper {
        position: relative;
        top: 0;
        min-height: 300px;
        gap: 20px;
    }
    
    .btn-order-scroll {
        max-width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .product-detail-title {
        font-size: 32px;
    }
    
    .product-detail-price {
        font-size: 28px;
    }
    
    .product-additional-info {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .product-features,
    .product-applications,
    .product-technical-details,
    .product-specifications {
        padding: 30px 20px;
    }
    
    .product-features h3,
    .product-applications h3,
    .product-technical-details h3,
    .product-specifications h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .technical-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .technical-item {
        padding: 14px;
    }
    
    .features-list li,
    .applications-list li {
        font-size: 15px;
        padding: 10px 0;
        padding-left: 24px;
    }
    
    .specifications-content p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .product-order-form-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .product-order-form-wrapper {
        padding: 30px 20px;
    }
    
    .product-order-form .form-title {
        font-size: 28px;
    }
    
    .product-order-form .form-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .product-order-form .form-group {
        margin-bottom: 20px;
    }
    
    .product-order-form .form-group input,
    .product-order-form .form-group textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .product-order-form .consent-row {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .about-company,
    .features {
        padding: 40px 0;
    }
    
    .contacts {
        padding: 40px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    
    .contact-value {
        font-size: 16px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .category-info {
        padding: 20px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .modal-content {
        padding: 16px;
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .car-detail-view {
        padding: 20px 16px;
    }
    
    .car-detail-title {
        font-size: 26px;
    }
    
    .car-detail-price {
        font-size: 20px;
    }
    
    .order-form {
        padding: 20px 16px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
    
    .btn-view,
    .btn-submit {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
    color: var(--color-text-primary);
    min-width: 44px;
    min-height: 44px;
}

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

.back-to-top:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 0.9;
}

.back-to-top:active {
    opacity: 0.8;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transform: rotate(-90deg);
}


/* Анимации при скролле отключены */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Мобильные стили для навигации */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .header-content .nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .back-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

