/*
Theme Name: ГК Дизель
Theme URI: https://example.com
Author: Ваше Имя
Author URI: https://example.com
Description: Корпоративная тема для ГК «Дизель» с лендингом на главной.
Version: 1.0
Text Domain: diesel
*/

/* === VARIABLES === */
:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #F4F7FB;
    --accent: #0052B4;
    --accent-dark: #003A82;
    --accent-light: #E8F0FB;
    --urgent: #E84040;
    --text-main: #1A1A2E;
    --text-secondary: #5A6474;
    --text-small: #8A94A6;
    --divider: #DDE4EF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --container: 1280px;
    --gap: 24px;
    --radius-card: 16px;
    --radius-btn: 8px;
    --radius-pill: 100px;
    --shadow-card: 0 4px 20px rgba(0,82,180,0.06);
    --shadow-card-hover: 0 12px 32px rgba(0,82,180,0.12);
    --transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* === GLOBAL SMOOTH SCROLL === */
html {
    scroll-behavior: smooth;
}

/* Отступ для якорных ссылок из-за фиксированного хедера */
#contacts, #quiz, #engines, #trust {
    scroll-margin-top: 100px;
}
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--accent-dark); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; text-align: center; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 600px; margin: 0 auto 48px; font-size: 1.1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-secondary { background: var(--bg-secondary); }

/* === COMPONENTS === */
.badge {
    display: inline-block; background: var(--accent-light); color: var(--accent);
    padding: 6px 16px; border-radius: var(--radius-pill); font-size: 12px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.badge-white { background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(4px); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: var(--radius-btn); font-weight: 700; font-size: 15px;
    cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; gap: 8px;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,82,180,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--accent-light); transform: translateY(-2px); }

.card {
    background: var(--bg-main); border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); padding: 32px; transition: var(--transition);
    border: 1px solid transparent;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--accent-light); }

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === HEADER === */
.header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px); height: 72px; display: flex; align-items: center;
    transition: var(--transition); border-bottom: 1px solid transparent;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-bottom-color: var(--divider); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--accent-dark); display: flex; flex-direction: column; line-height: 1; }
.logo span { font-size: 11px; color: var(--text-small); font-weight: 500; margin-top: 4px; letter-spacing: 0.05em; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--text-main); position: relative; }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: 0.3s; }
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 700; font-size: 16px; color: var(--text-main); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; }
.burger span { width: 24px; height: 2px; background: var(--accent-dark); transition: 0.3s; }

@media (max-width: 900px) {
    .nav, .header .btn { display: none; }
    .burger { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; background: #fff; z-index: 999;
    padding: 80px 24px 24px; transform: translateX(100%); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-size: 20px; font-weight: 700; color: var(--text-main);}
.mobile-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: var(--bg-secondary); border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* === HERO SLIDER === */
.hero { position: relative; height: 85vh; min-height: 600px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; transition: transform 6s ease-out; }
.hero-slide.active .hero-bg { transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(185 214 251 / 92%) 0%, rgb(0 58 130 / 36%) 40%, rgba(0, 58, 130, 0.2) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 650px; color: #fff; padding: 0 24px; }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-nav { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; border: 2px solid transparent; }
.hero-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 768px) {
    .hero { height: auto; min-height: 100vh; padding: 120px 0 80px; }
    .hero-overlay { background: linear-gradient(90deg, rgb(185 214 251 / 92%) 0%, rgb(0 58 130 / 36%) 40%, rgba(0, 58, 130, 0.2) 100%); }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
     .section {
        padding: 20px 0;
    }
}

/* === MARQUEE === */
.marquee { background: var(--accent); color: #fff; padding: 14px 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-item { padding: 0 32px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 12px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === ENGINES === */
.engines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .engines-grid { grid-template-columns: 1fr; } }
.engine-card-accent { border: 2px solid var(--accent); background: linear-gradient(180deg, #fff 0%, var(--accent-light) 100%); position: relative; }
.engine-badge { position: absolute; top: -12px; right: 24px; background: var(--urgent); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.engine-specs { margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.engine-spec-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.engine-spec-row span:last-child { font-family: var(--font-mono); font-weight: 600; color: var(--text-main); }

/* === QUIZ === */
.quiz-section { background: var(--accent-dark); color: #fff; position: relative; overflow: hidden; }
.quiz-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,82,180,0.4) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 900px) { .quiz-grid { grid-template-columns: 1fr; gap: 40px; } }
.quiz-section h2 { color: #fff; text-align: left; }
.quiz-section .section-subtitle { text-align: left; color: rgba(255,255,255,0.7); margin: 0 0 32px 0; }

.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { 
    .quiz-options { grid-template-columns: 1fr; } 
    .header-phone { display: none; }
}
.quiz-option {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; padding: 24px; cursor: pointer; transition: var(--transition);
    display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #fff;
}
.quiz-option:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); transform: translateY(-4px); }
.quiz-option-title { font-weight: 700; font-size: 16px; }
.quiz-option-desc { font-size: 13px; color: rgba(255,255,255,0.6); }

/* === TRUST BLOCK NEW === */
.trust-grid-new {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    text-align: center;
}

@media (max-width: 1024px) {
    .trust-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .trust-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 8px;
}

.trust-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 4px;
}

.trust-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

/* === FINAL FORM === */
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 48px; height: 48px; background: var(--accent-light); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { font-size: 13px; color: var(--text-small); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-value { font-size: 18px; font-weight: 600; color: var(--text-main); }
.contact-value a { color: var(--accent); }

.form-card { background: #fff; border-radius: var(--radius-card); box-shadow: 0 20px 60px rgba(0,82,180,0.1); padding: 40px; border: 1px solid var(--divider); }
.form-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.form-sub { text-align: center; color: var(--text-secondary); margin-bottom: 32px; font-size: 15px; }
.form-group { margin-bottom: 20px; }
.form-input, .form-select {
    width: 100%; background: var(--bg-secondary); border: 2px solid transparent;
    border-radius: var(--radius-btn); padding: 16px; font-size: 16px; color: var(--text-main); transition: var(--transition);
}
.form-input:focus, .form-select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(0,82,180,0.1); }
.honeypot { display: none; }

/* === FOOTER === */
.footer { background: var(--accent-dark); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; }
.footer a { display: block; font-size: 15px; color: rgba(255,255,255,0.8); padding: 6px 0; transition: 0.3s; }
.footer a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* Анимация-маркер для формы при переходе из квиза */
.form-card.highlight-marker {
    animation: markerPulse 1.5s ease-in-out;
    border-color: var(--urgent) !important;
    box-shadow: 0 0 0 6px rgba(232, 64, 64, 0.15), 0 20px 60px rgba(0,82,180,0.1) !important;
}

@keyframes markerPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.03); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Активное состояние карточки квиза */
.quiz-option {
    position: relative;
    transition: all 0.3s ease;
}

.quiz-option.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.quiz-option.active::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: #fff;
    color: var(--accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Анимация-маркер для формы при переходе из квиза */
.form-card.highlight-marker {
    animation: markerPulse 1.5s ease-in-out;
    border-color: var(--urgent) !important;
    box-shadow: 0 0 0 6px rgba(232, 64, 64, 0.15), 0 20px 60px rgba(0, 82, 180, 0.1) !important;
}

@keyframes markerPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.03); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* === ДВА НАПРАВЛЕНИЯ === */
.directions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .directions-grid {
        grid-template-columns: 1fr;
    }
}

.dir-card {
    position: relative;
    padding: 40px 32px;
    border-top: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.dir-card:hover {
    border-top-color: var(--accent-dark);
}

.dir-num {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.dir-card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.dir-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.dir-list {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    flex-grow: 1;
}

.dir-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.5;
    border-bottom: 1px solid var(--divider);
}

.dir-list li:last-child {
    border-bottom: none;
}

.dir-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.dir-badge {
    display: inline-block;
    background: var(--urgent);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    align-self: flex-start;
}

.dir-card .btn {
    align-self: flex-start;
}

/* === КАТАЛОГ ТЕХНИКИ === */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cat-card:hover::before {
    transform: scaleX(1);
}

.cat-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 16px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cat-card:hover .cat-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

.cat-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--accent-dark);
}

.cat-brands {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
    min-height: 36px;
}

.cat-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.cat-card:hover .cat-tag {
    background: var(--accent);
    color: #fff;
}

/* Отступ для якоря catalog */
#catalog {
    scroll-margin-top: 100px;
}

/* === ДВИГАТЕЛИ ЯМЗ === */
.yamz-engines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .yamz-engines-grid {
        grid-template-columns: 1fr;
    }
}

.yamz-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--divider);
}

.yamz-card-accent {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, #fff 0%, var(--accent-light) 100%);
    box-shadow: 0 8px 32px rgba(0, 82, 180, 0.15);
}

.yamz-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.yamz-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.yamz-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.yamz-tag-recommend {
    background: var(--accent);
    color: #fff;
}

.yamz-tag-urgent {
    background: var(--urgent);
    color: #fff;
}

.yamz-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    color: var(--accent-dark);
}

.yamz-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.yamz-specs {
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.yamz-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.yamz-spec-row:not(:last-child) {
    border-bottom: 1px solid var(--divider);
}

.yamz-spec-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.yamz-spec-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.yamz-spec-value-accent {
    color: var(--accent);
    font-weight: 700;
}

/* Pill-ссылки на модели двигателей */
.yamz-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.yamz-pill {
    display: inline-block;
    padding: 10px 20px;
    border: 1.5px solid var(--divider);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    background: #fff;
}

.yamz-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 180, 0.2);
}

/* Отступ для якоря yamz-engines */
#yamz-engines {
    scroll-margin-top: 100px;
}

/* === ПОЧЕМУ ВЫБИРАЮТ НАС === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.adv-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.adv-card:hover::before {
    transform: scaleX(1);
}

.adv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 82, 180, 0.12);
}

.adv-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.adv-card:hover .adv-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

.adv-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--accent-dark);
    line-height: 1.3;
}

.adv-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Отступ для якоря advantages */
#advantages {
    scroll-margin-top: 100px;
}

/* === КАК МЫ ДОСТАВЛЯЕМ === */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .delivery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .delivery-grid {
        grid-template-columns: 1fr;
    }
}

.del-card {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.del-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 82, 180, 0.1);
}

.del-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
    transition: var(--transition);
}

.del-card:hover .del-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

.del-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--accent-dark);
}

.del-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Список городов */
.delivery-cities {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    border-left: 4px solid var(--accent);
}

.delivery-cities p {
    font-size: 13px;
    color: var(--text-small);
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.delivery-cities em {
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 500;
}

/* Отступ для якоря delivery */
#delivery {
    scroll-margin-top: 100px;
}

/* === ПРИМЕРЫ РАБОТ === */
.portfolio-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.portfolio-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0;
    cursor: grab;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-carousel.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.portfolio-card {
    flex: 0 0 320px;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
    transition: var(--transition);
    user-select: none;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.portfolio-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--accent-dark);
}

.portfolio-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.portfolio-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.portfolio-link:hover {
    gap: 8px;
}

/* Стрелки навигации */
.portfolio-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 82, 180, 0.3);
}

.portfolio-arrow:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

.portfolio-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.portfolio-arrow:disabled:hover {
    background: var(--accent);
    transform: scale(1);
}

@media (max-width: 768px) {
    .portfolio-wrapper {
        gap: 8px;
    }
    
    .portfolio-arrow {
        width: 40px;
        height: 40px;
    }
    
    .portfolio-card {
        flex: 0 0 280px;
    }
}

/* Отступ для якоря portfolio */
#portfolio {
    scroll-margin-top: 100px;
}

/* === ОТРАСЛИ === */
.industries-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.industry-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--divider);
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.industry-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 180, 0.25);
}

.industry-tag-icon {
    font-size: 20px;
    line-height: 1;
}

.industry-tag-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .industry-tag {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .industry-tag-icon {
        font-size: 18px;
    }
}

/* Отступ для якоря industries */
#industries {
    scroll-margin-top: 100px;
}

/* === ОПЛАТА === */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.pay-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.pay-card:hover::before {
    transform: scaleX(1);
}

.pay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 82, 180, 0.12);
}

.pay-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.pay-card:hover .pay-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

.pay-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    color: var(--accent-dark);
    line-height: 1.3;
}

.pay-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.payment-note {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    padding: 20px;
    background: var(--accent-light);
    border-radius: var(--radius-card);
    border-left: 4px solid var(--accent);
}

/* Отступ для якоря payment */
#payment {
    scroll-margin-top: 100px;
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА === */
.nav { display: flex; gap: 32px; align-items: center; }
.nav-item { position: relative; height: 72px; display: flex; align-items: center; }

.nav-link { 
    font-size: 15px; font-weight: 600; color: var(--text-main); 
    display: flex; align-items: center; transition: color 0.3s; 
}
.nav-link:hover { color: var(--accent); }

/* Контейнер выпадающего списка */
.dropdown-menu {
    position: absolute;
    top: 100%; left: 50%; transform: translateX(-15%) translateY(10px);
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0,82,180,0.15);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
    gap: 32px;
    min-width: 120vh;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    border: 1px solid var(--divider);
}

/* Показываем меню при наведении */
.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-15%) translateY(0);
}

/* Колонка внутри меню */
.dropdown-column { display: flex; flex-direction: column; gap: 12px; }

.dropdown-parent-link {
    font-weight: 700; color: var(--accent-dark); font-size: 16px;
    padding-bottom: 8px; border-bottom: 2px solid var(--accent-light);
    transition: color 0.2s;
}
.dropdown-parent-link:hover { color: var(--accent); }

.dropdown-sublist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dropdown-sublist a {
    font-size: 14px; color: var(--text-secondary); transition: color 0.2s; padding: 4px 0;
}
.dropdown-sublist a:hover { color: var(--accent); padding-left: 4px; }

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-cat-parent {
    display: block; font-weight: 700; color: var(--accent-dark); font-size: 16px;
    padding: 8px 0;
}
.mobile-cat-children { list-style: none; padding: 8px 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.mobile-cat-children a { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 900px) {
    .nav { display: none; }
    .dropdown-menu { display: none !important; } /* Скрываем десктопное дропдаун на мобильных */
}
/* Хлебные крошки */
.diesel-breadcrumbs {
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-small);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.diesel-breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.diesel-breadcrumbs a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.diesel-breadcrumbs .bc-sep {
    color: var(--divider);
    font-weight: 400;
}

.diesel-breadcrumbs .bc-current {
    color: var(--text-main);
    font-weight: 600;
}

@media (max-width: 600px) {
    .diesel-breadcrumbs {
        font-size: 13px;
        gap: 6px;
    }
}
.single p {
    margin-bottom: 16px;
}

/* Контейнер заголовка категории */
.mobile-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ссылка на родительскую категорию */
.mobile-cat-parent {
    flex-grow: 1;
    text-decoration: none;
    color: var(--text-color, #1f2937);
    font-size: 15px;
    transition: color 0.2s;
}

.mobile-cat-parent:hover {
    color: var(--accent, #d32f2f);
}

/* Кнопка переключения (стрелка) */
.mobile-cat-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-small, #6b7280);
    transition: transform 0.3s ease, color 0.2s;
    border-radius: 50%;
}

.mobile-cat-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--accent, #d32f2f);
}

/* Поворот стрелки при активном состоянии */
.mobile-cat-group.active .mobile-cat-toggle {
    transform: rotate(180deg);
}

/* Скрытое подменю с плавной анимацией */
.mobile-cat-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    padding-left: 16px;
    list-style: none;
    margin: 0;
}

/* Раскрытое подменю */
.mobile-cat-group.active .mobile-cat-children {
    max-height: 600px; /* Достаточно большое значение для любого контента */
    transition: max-height 0.4s ease-in;
}

/* Элементы подменю */
.mobile-cat-children li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-cat-children li:last-child {
    border-bottom: none;
}

.mobile-cat-children a {
    text-decoration: none;
    color: var(--text-small, #4b5563);
    font-size: 14px;
    display: block;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-cat-children a:hover {
    color: var(--accent, #d32f2f);
    padding-left: 4px;
}

/* Дополнительные отступы для ссылок внизу мобильного меню */
.mobile-menu-links a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: var(--text-color, #1f2937);
    font-weight: 500;
}
.product-description {
    padding-top: 10px;
}

.product-main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-small);
}

.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-btn {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.thumb-btn:hover {
    opacity: 0.9;
}

.thumb-btn.active {
    border-color: var(--accent);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0, 82, 180, 0.2);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-sticky-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid var(--divider);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

/* === ТАБЫ === */
.product-tabs {
    margin-top: 40px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--divider);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.tab-btn:hover {
    color: var(--accent);
    background: rgba(0, 82, 180, 0.05);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: #fff;
}

.tabs-content {
    padding: 32px;
    background: #fff;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === ТАБЛИЦА КОМПЛЕКТОВ === */
.komplekt-specs-table {
    margin-top: 40px;
}

.komplekt-specs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.komplekt-specs-table th,
.komplekt-specs-table td {
    padding: 16px;
    text-align: left;
}

/* === ОБЩИЕ ЭЛЕМЕНТЫ === */
.product-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 24px;
    line-height: 1.2;
}

.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 40px;
}

.product-specs-table,
.product-application,
.product-modifications {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main);
}

.product-specs-table h3,
.product-application h3,
.product-modifications h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent-dark);
}

.product-specs-table p,
.product-application p,
.product-modifications p {
    margin-bottom: 16px;
}

.product-modifications ul,
.product-modifications ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.product-modifications li {
    margin-bottom: 8px;
}

.product-price-block {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-btn);
    margin-bottom: 5px;
    border-left: 4px solid var(--accent);
}

.product-price-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.product-price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-dark);
    font-family: var(--font-mono);
    line-height: 1;
}

.product-status-badge {
    display: inline-block;
    background: var(--urgent);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 15px;
}

.product-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.product-benefits-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 15px;
    color: var(--text-main);
}

.product-benefits-list li:last-child {
    border-bottom: none;
}

.product-order-btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,58,130,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-card);
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-small);
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--urgent);
    transform: rotate(90deg);
}

#orderForm .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--divider);
    border-radius: var(--radius-btn);
    margin-bottom: 16px;
    font-family: var(--font-body);
    transition: 0.3s;
}

#orderForm .form-input:focus {
    border-color: var(--accent);
    outline: none;
}

.modal-success-state {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: #10B981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.modal-success-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--accent-dark);
}

.modal-success-state p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}
/* ============================================
   АДАПТИВНОСТЬ (ПЛАНШЕТЫ)
   ============================================ */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        /* УБРАЛИ display: block - оставляем grid! */
    }
        
    .product-sidebar {
        margin-bottom: 32px;
    }
    
    .sidebar-sticky-card {
        position: static !important;
    }
    
    .product-main-image-wrapper {
        aspect-ratio: 16 / 9;
        max-height: 50vh;
    }
    
    .product-main-img {
        object-fit: contain;
    }
    
    .tabs-content {
        padding: 24px;
    }
}
/* === ГЛОБАЛЬНОЕ ИСПРАВЛЕНИЕ ГОРИЗОНТАЛЬНОГО СКРОЛЛА === */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Запрещаем любым элементам выходить за пределы экрана */
img, video, svg {
    max-width: 100%;
    height: auto;
}
/* ============================================
   АДАПТИВНОСТЬ (ПЛАНШЕТЫ МАЛЕНЬКИЕ)
   ============================================ */
@media (max-width: 768px) {
    .product-layout {
        display: block;
    }
    .komplekt-specs-table table {
        font-size: 14px;
    }  
    
    .komplekt-specs-table th,
    .komplekt-specs-table td {
        padding: 12px 8px;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        font-size: 14px;
        padding: 14px 12px;
    }
}

/* ============================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ)
   ============================================ */
@media (max-width: 600px) {
    .product-main-image-wrapper {
        aspect-ratio: 4 / 3;
        max-height: 40vh;
    }
    
    .product-title {
        font-size: 1.8rem;
        margin-top: 16px;
        margin-bottom: 20px;
    }
    
    .sidebar-sticky-card {
        padding: 24px 20px;
    }
    
    .product-price-value {
        font-size: 28px;
    }
    
    /* Табы в одну колонку на мобильных */
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        flex: 1 1 100%;
        font-size: 15px;
        padding: 16px;
        border-bottom: 1px solid var(--divider);
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid var(--divider);
        border-left: 3px solid var(--accent);
        background: var(--accent-light);
    }
    
    .tabs-content {
        padding: 20px 16px;
    }
    
    /* Таблица комплектов - карточки */
    .komplekt-specs-table table,
    .komplekt-specs-table thead,
    .komplekt-specs-table tbody,
    .komplekt-specs-table tr,
    .komplekt-specs-table td {
        display: block;
        width: 100%;
    }
    
    .komplekt-specs-table thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .komplekt-specs-table tr {
        margin-bottom: 16px;
        border: 1px solid var(--divider);
        border-radius: var(--radius-btn);
        overflow: hidden;
    }
    
    .komplekt-specs-table td {
        padding: 12px 16px;
        text-align: left;
        border: none;
        position: relative;
    }
    
    .komplekt-specs-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent);
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Миниатюры меньше на мобильных */
    .thumb-btn {
        width: 70px;
        height: 70px;
    }
    
    /* Модальное окно */
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-close {
        top: 12px;
        right: 16px;
        font-size: 24px;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
   ============================================ */
@media (max-width: 400px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price-value {
        font-size: 24px;
    }
    
    .thumb-btn {
        width: 60px;
        height: 60px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 14px 12px;
    }
}