/* ═══════════════════════════════════════════════════════════════
   MOTORAVTO.RU — Main Stylesheet
   Dark editorial: Cormorant + Jost, --bg #F4F1ED, --red #C31010
   ═══════════════════════════════════════════════════════════════ */

/* ─── Переменные ────────────────────────────────────────────── */
:root {
    --bg:      #F4F1ED;
    --white:   #FFFFFF;
    --black:   #0E0C0A;
    --ink:     #1C1916;
    --muted:   #8C8880;
    --rule:    rgba(14,12,10,.10);
    --red:     #C31010;
    --red2:    #930C0C;
    --light:   #EBE7E1;
    --radius:  4px;
    --hdr-h:   68px;
    --cw:      1240px;
    --shadow:  0 2px 20px rgba(14,12,10,.09);
}

/* ─── Сброс ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; box-sizing: border-box; }

/* ─── Контейнер ─────────────────────────────────────────────── */
.container { max-width: var(--cw); margin: 0 auto; padding: 0 24px; }

/* ─── Типографика ────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: var(--black);
}

/* ─────────────────────────────────────────────────────────────
   ШАПКА
   ───────────────────────────────────────────────────────────── */
.site-header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--hdr-h);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}
.logo {
    font-family: 'Jost', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
    flex-shrink: 0;
}
.logo span { color: var(--red); }

.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    transition: color .2s;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }

.header-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-phone {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    transition: color .2s;
    letter-spacing: .3px;
}
.header-phone:hover { color: var(--white); }

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.7);
    transition: color .2s;
    background: none;
    border: none;
    padding: 0;
}
.cart-btn:hover { color: var(--white); }
.cart-count {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    margin-left: 4px;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--black);
    padding: 20px 24px 28px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: rgba(255,255,255,.7);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .5px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding-bottom: 12px;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); }
.mobile-messengers {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

/* ─── Основной контент ───────────────────────────────────────── */
.main-content { flex: 1; }

/* ─────────────────────────────────────────────────────────────
   ГЛАВНАЯ СТРАНИЦА
   ───────────────────────────────────────────────────────────── */

/* Hero */
.hero {
    background: var(--black);
    color: var(--white);
    padding: 96px 0 84px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(195,16,16,.10) 0%, transparent 65%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-label {
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
    font-weight: 500;
}
.hero-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(38px, 6vw, 70px);
    font-weight: 600;
    line-height: 1.04;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,.45); }
.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-search {
    display: flex;
    max-width: 500px;
    margin-top: 40px;
}
.hero-search input {
    flex: 1;
    padding: 14px 18px;
    font-size: 14px;
    border: 1.5px solid rgba(255,255,255,.12);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: rgba(255,255,255,.06);
    color: var(--white);
    outline: none;
    transition: border-color .2s;
}
.hero-search input::placeholder { color: rgba(255,255,255,.28); }
.hero-search input:focus { border-color: rgba(255,255,255,.28); }
.hero-search button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background .2s;
    white-space: nowrap;
}
.hero-search button:hover { background: var(--red2); }

/* Фичи */
.features-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--rule);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.feature-card {
    text-align: center;
    padding: 36px 20px 32px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-title {
    font-family: 'Cormorant', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Категории */
.cats-section { padding: 64px 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    color: var(--black);
}
.section-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    letter-spacing: .5px;
    white-space: nowrap;
    transition: opacity .2s;
}
.section-link:hover { opacity: .7; }
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.cat-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    transition: box-shadow .2s, border-color .2s;
    display: block;
}
.cat-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(195,16,16,.18);
}
.cat-icon { font-size: 26px; margin-bottom: 10px; }
.cat-name { font-size: 13px; font-weight: 500; color: var(--ink); }

/* Отзывы */
.reviews-section { padding: 64px 0; background: var(--white); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.review-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px;
}
.review-stars { color: #D4A31A; font-size: 14px; margin-bottom: 12px; }
.review-text { font-size: 14px; line-height: 1.75; color: var(--ink); margin-bottom: 16px; }
.review-author { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* CTA-полоса */
.home-cta {
    padding: 80px 0;
    background: var(--black);
    text-align: center;
}
.home-cta h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}
.home-cta p { color: rgba(255,255,255,.45); font-size: 15px; margin-bottom: 36px; }
.home-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────
   КНОПКИ
   ───────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 600; letter-spacing: .5px;
    border: none; cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary:hover { background: var(--red2); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--white);
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 500;
    border: 1px solid rgba(255,255,255,.22);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-decoration: none;
}
.btn-outline:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }

.btn-wa-call {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff;
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .2s;
}
.btn-wa-call:hover { background: #1dab52; }

.btn-tg-call {
    display: inline-flex; align-items: center; gap: 8px;
    background: #229ED9; color: #fff;
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .2s;
}
.btn-tg-call:hover { background: #1a82b8; }

.btn-call {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08); color: var(--white);
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.18);
    transition: background .2s;
}
.btn-call:hover { background: rgba(255,255,255,.14); }

/* мобильные мессенджеры */
.btn-wa { background: rgba(37,211,102,.15); color: #1a8e42; padding: 10px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; display: inline-block; }
.btn-tg { background: rgba(34,158,217,.15); color: #1a82b8; padding: 10px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; display: inline-block; }

/* ─────────────────────────────────────────────────────────────
   КАТАЛОГ
   ───────────────────────────────────────────────────────────── */
.catalog-wrap { padding: 32px 0 64px; }

/* Поиск */
.search-bar { display: flex; margin-bottom: 28px; max-width: 680px; }
.search-input {
    flex: 1;
    padding: 13px 18px;
    font-size: 14px;
    border: 1.5px solid var(--rule);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}
.search-input:focus { border-color: rgba(195,16,16,.3); }
.search-input::placeholder { color: var(--muted); }
.search-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff;
    border: none; padding: 13px 22px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13px; font-weight: 600; letter-spacing: .3px;
    transition: background .2s; cursor: pointer; white-space: nowrap;
}
.search-btn:hover { background: var(--red2); }

/* Раскладка каталога */
.catalog-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 28px;
    align-items: start;
}

/* Боковые фильтры */
.filters-sidebar {
    position: sticky;
    top: calc(var(--hdr-h) + 16px);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 20px 16px;
}
.filter-section { margin-bottom: 22px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.filter-scroll { max-height: 200px; overflow-y: auto; }
.filter-scroll::-webkit-scrollbar { width: 3px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }
.filter-opt {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ink);
    padding: 5px 0; cursor: pointer;
    border-radius: 3px; transition: color .15s;
}
.filter-opt:hover { color: var(--red); }
.filter-opt.checked { font-weight: 600; }
.filter-opt input[type="radio"] { accent-color: var(--red); flex-shrink: 0; }

/* Топ каталога */
.catalog-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.results-count { font-size: 13px; color: var(--muted); }
.results-count strong { color: var(--ink); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.af-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(195,16,16,.07); color: var(--red);
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
}
.af-tag a { color: var(--red); opacity: .55; font-size: 14px; line-height: 1; }
.af-tag a:hover { opacity: 1; }
.clear-all { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.clear-all:hover { color: var(--red); }

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 14px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
}
.product-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(195,16,16,.15);
}
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card-photo {
    position: relative;
    aspect-ratio: 4/3; overflow: hidden;
    background: var(--light);
}
.card-photo img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.product-card:hover .card-photo img { transform: scale(1.04); }
.no-photo {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 11px; color: var(--muted); letter-spacing: .5px;
}
.card-cond {
    position: absolute; top: 8px; left: 8px;
    font-size: 9px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 3px 8px; border-radius: 20px;
}
.cond-new      { background: rgba(16,185,129,.13); color: #065F46; }
.cond-used     { background: rgba(245,158,11,.13); color: #92400E; }
.cond-contract { background: rgba(99,102,241,.13); color: #3730A3; }

.card-body {
    padding: 14px 14px 10px;
    flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.card-title {
    font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: calc(13px * 1.4 * 2);
}
.card-article { font-size: 11px; color: var(--muted); }
.card-price {
    font-size: 16px; font-weight: 600; color: var(--black);
    margin-top: auto; padding-top: 6px;
}
.btn-add-cart {
    width: 100%; background: transparent; color: var(--red);
    border: none; border-top: 1px solid var(--rule);
    padding: 11px; font-size: 12px; font-weight: 600; letter-spacing: .5px;
    cursor: pointer; transition: background .2s, color .2s;
}
.btn-add-cart:hover, .btn-add-cart.added { background: var(--red); color: #fff; }

/* Пагинация */
.pagination {
    display: flex; gap: 6px; justify-content: center;
    margin-top: 40px; flex-wrap: wrap;
}
.pg-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--rule); border-radius: var(--radius);
    font-size: 13px; font-weight: 500; color: var(--ink);
    background: var(--white); transition: all .2s; text-decoration: none;
}
.pg-link:hover { border-color: var(--red); color: var(--red); }
.pg-link.active { background: var(--red); border-color: var(--red); color: #fff; }
.pg-dots {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; font-size: 13px; color: var(--muted);
}

/* Пустое состояние */
.empty-state { text-align: center; padding: 72px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-text {
    font-family: 'Cormorant', serif;
    font-size: 22px; font-weight: 600; color: var(--muted);
    margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────
   КАРТОЧКА ТОВАРА
   ───────────────────────────────────────────────────────────── */
.product-page { padding: 32px 0 80px; }
.breadcrumb {
    font-size: 12px; color: var(--muted);
    margin-bottom: 28px;
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--red); }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: start;
}
.main-photo {
    aspect-ratio: 1; overflow: hidden;
    border-radius: var(--radius); background: var(--light);
    margin-bottom: 12px;
}
.main-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb {
    width: 70px; height: 70px; object-fit: cover;
    border-radius: var(--radius); cursor: pointer;
    border: 2px solid transparent; opacity: .6;
    transition: opacity .2s, border-color .2s;
}
.thumb.active, .thumb:hover { border-color: var(--red); opacity: 1; }
.no-photo-lg {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    background: var(--light); border-radius: var(--radius);
    font-size: 13px; color: var(--muted);
}
.product-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 600; color: var(--black);
    margin-bottom: 14px; line-height: 1.12;
}
.product-price {
    font-size: 34px; font-weight: 600;
    color: var(--black); margin-bottom: 14px; letter-spacing: -.5px;
}
.product-cond-row { margin-bottom: 24px; }
.product-cond-row .card-cond { position: static; font-size: 11px; }
.product-attrs { border-top: 1px solid var(--rule); margin-bottom: 28px; }
.attr-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px;
}
.attr-label { color: var(--muted); flex-shrink: 0; }
.attr-val { font-weight: 500; text-align: right; color: var(--ink); }
.product-actions {
    display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.btn-cart-lg {
    display: flex; align-items: center; gap: 10px;
    background: var(--red); color: #fff;
    border: none; padding: 15px 28px;
    border-radius: var(--radius); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .2s; flex: 1;
    justify-content: center; min-width: 160px;
}
.btn-cart-lg:hover { background: var(--red2); }
.product-desc { border-top: 1px solid var(--rule); padding-top: 24px; }
.desc-title {
    font-size: 9px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.desc-text { font-size: 14px; line-height: 1.8; color: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   КОРЗИНА
   ───────────────────────────────────────────────────────────── */
.cart-page { padding: 44px 0 80px; }
.page-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600; color: var(--black); margin-bottom: 32px;
}
.cart-layout {
    display: grid; grid-template-columns: 1fr 380px;
    gap: 40px; align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 16px;
}
.ci-photo {
    width: 68px; height: 68px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden; background: var(--light);
}
.ci-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo-sm { width: 100%; height: 100%; }
.ci-info { flex: 1; min-width: 0; }
.ci-title {
    font-size: 13px; font-weight: 500; color: var(--ink);
    display: block; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ci-title:hover { color: var(--red); }
.ci-article { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ci-cond {
    font-size: 9px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 2px 7px; border-radius: 20px; display: inline-block;
}
.ci-qty {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.ci-qty button {
    width: 28px; height: 28px;
    border: 1px solid var(--rule); border-radius: 50%;
    background: var(--white); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, border-color .2s;
    line-height: 1; color: var(--ink);
}
.ci-qty button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.ci-price { font-size: 15px; font-weight: 600; color: var(--black); flex-shrink: 0; min-width: 80px; text-align: right; }
.ci-remove {
    background: none; border: none; font-size: 20px;
    color: var(--muted); cursor: pointer; transition: color .2s; padding: 0 4px;
}
.ci-remove:hover { color: var(--red); }

/* Сводка корзины */
.cart-summary {
    background: var(--white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 28px;
    position: sticky; top: calc(var(--hdr-h) + 16px);
}
.cs-title {
    font-family: 'Cormorant', serif;
    font-size: 22px; font-weight: 600; margin-bottom: 6px;
}
.cs-total {
    font-size: 34px; font-weight: 600; color: var(--black);
    margin-bottom: 16px; letter-spacing: -.5px;
}
.cs-note {
    font-size: 12px; color: var(--muted); line-height: 1.6;
    margin-bottom: 24px; padding: 12px;
    background: rgba(195,16,16,.04);
    border-radius: var(--radius);
    border-left: 3px solid var(--red);
}

/* Форма заказа */
.order-form { display: flex; flex-direction: column; gap: 10px; }
.form-input {
    width: 100%; padding: 12px 14px;
    font-size: 14px; border: 1.5px solid var(--rule);
    border-radius: var(--radius); background: var(--bg);
    color: var(--ink); outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--muted); }
textarea.form-input { resize: vertical; min-height: 70px; line-height: 1.5; }
.form-label {
    font-size: 9px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); margin-bottom: -4px;
}
.form-radio {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13px; color: var(--ink); cursor: pointer;
    line-height: 1.4; padding: 5px 0;
}
.form-radio input[type="radio"] { accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }
.form-agree {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 12px; color: var(--muted); cursor: pointer; line-height: 1.5;
}
.form-agree input[type="checkbox"] { accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }
.form-agree a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.btn-order {
    width: 100%; background: var(--red); color: #fff; border: none;
    padding: 15px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .2s; margin-top: 4px;
}
.btn-order:hover { background: var(--red2); }

/* ─────────────────────────────────────────────────────────────
   АВТОСЕРВИС
   ───────────────────────────────────────────────────────────── */
.service-page { padding: 44px 0 80px; }
.page-subtitle { font-size: 15px; color: var(--muted); margin-bottom: 40px; margin-top: -16px; }
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px; margin-bottom: 52px;
}
.service-card {
    background: var(--white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 28px; transition: box-shadow .2s;
}
.service-card:hover { box-shadow: var(--shadow); }
.sc-title {
    font-family: 'Cormorant', serif;
    font-size: 20px; font-weight: 600; color: var(--black); margin-bottom: 8px;
}
.sc-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.sc-price { font-size: 15px; font-weight: 600; color: var(--red); }
.service-cta {
    background: var(--black); color: var(--white);
    border-radius: var(--radius); padding: 52px 40px; text-align: center;
}
.scta-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(24px, 3.5vw, 36px); font-weight: 600;
    color: var(--white); margin-bottom: 12px;
}
.service-cta p { color: rgba(255,255,255,.45); font-size: 14px; margin-bottom: 28px; }
.scta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────
   КОНТАКТЫ
   ───────────────────────────────────────────────────────────── */
.contacts-page { padding: 44px 0 80px; }
.contacts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px; margin-bottom: 48px;
}
.contact-block {
    background: var(--white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 28px 22px;
}
.cb-label {
    font-size: 9px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.cb-value { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; }
a.cb-value:hover { color: var(--red); }
.requisites-block {
    background: var(--white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 32px; max-width: 520px;
}
.req-title {
    font-family: 'Cormorant', serif;
    font-size: 22px; font-weight: 600; color: var(--black); margin-bottom: 16px;
}
.req-row {
    font-size: 14px; color: var(--ink);
    padding: 8px 0; border-bottom: 1px solid var(--rule);
    display: flex; gap: 16px;
}
.req-row:last-child { border-bottom: none; }
.req-row span { color: var(--muted); flex-shrink: 0; min-width: 90px; }

/* ─────────────────────────────────────────────────────────────
   ТРЕКИНГ ЗАКАЗА
   ───────────────────────────────────────────────────────────── */
.tracking-wrap { padding: 44px 0 80px; max-width: 680px; }
.track-form-row { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.track-input {
    flex: 1; min-width: 220px; padding: 13px 16px;
    font-size: 14px; border: 1.5px solid var(--rule);
    border-radius: var(--radius); background: var(--white);
    color: var(--ink); outline: none; transition: border-color .2s;
}
.track-input:focus { border-color: var(--red); }
.track-input::placeholder { color: var(--muted); }
.track-btn {
    background: var(--red); color: #fff; border: none;
    padding: 13px 28px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .2s; white-space: nowrap;
}
.track-btn:hover { background: var(--red2); }

.order-track-card {
    background: var(--white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
}
.otc-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.otc-num-label {
    font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px;
}
.otc-num { font-family: 'Cormorant', serif; font-size: 22px; font-weight: 600; color: var(--black); }
.otc-date { font-size: 12px; color: var(--muted); margin-top: 3px; }
.otc-status-badge { font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 20px; }
.status-progress { display: flex; overflow-x: auto; margin-bottom: 24px; padding-bottom: 4px; }
.sp-step { flex: 1; min-width: 58px; text-align: center; position: relative; }
.sp-dot {
    width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff;
    border: 2px solid #e5e7eb; background: #e5e7eb; position: relative; z-index: 1;
}
.sp-dot.done { background: var(--step-col, #888); border-color: var(--step-col, #888); }
.sp-dot.current { background: var(--step-col, #888); border-color: var(--step-col, #888); box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
.sp-line {
    position: absolute; top: 9px;
    left: calc(50% + 10px); right: calc(-50% + 10px);
    height: 2px; background: #e5e7eb;
}
.sp-line.done { background: var(--step-col, #888); }
.sp-label { font-size: 10px; line-height: 1.3; color: var(--muted); }
.sp-label.current { font-weight: 600; color: var(--ink); }
.otc-details {
    border-top: 1px solid var(--rule); padding-top: 16px;
    font-size: 13px; color: var(--ink); line-height: 2;
}
.otc-cancel-note {
    background: #FEF2F2; border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 16px;
    color: #991B1B; font-size: 13px;
    border-left: 3px solid #EF4444;
}
.sbp-pay-btn {
    display: block; margin-top: 16px;
    background: var(--black); color: #fff;
    text-align: center; padding: 14px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background .2s;
}
.sbp-pay-btn:hover { background: #222; }

/* ─────────────────────────────────────────────────────────────
   ОФЕРТА
   ───────────────────────────────────────────────────────────── */
.oferta-page { padding: 44px 0 80px; max-width: 760px; }
.oferta-text h3 {
    font-family: 'Cormorant', serif;
    font-size: 20px; font-weight: 600; color: var(--black);
    margin: 28px 0 10px;
}
.oferta-text p { font-size: 14px; line-height: 1.8; color: var(--ink); margin-bottom: 8px; }
.oferta-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.oferta-date { font-size: 13px; color: var(--muted); margin-top: 40px; }

/* ─────────────────────────────────────────────────────────────
   ПОДВАЛ
   ───────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,.35);
    padding: 44px 0 36px;
    margin-top: auto;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-logo {
    font-size: 14px; font-weight: 600; letter-spacing: 3px;
    color: rgba(255,255,255,.5); text-transform: uppercase;
}
.footer-logo span { color: var(--red); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
    font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: .3px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────
   ПЛАВАЮЩИЕ КНОПКИ
   ───────────────────────────────────────────────────────────── */
.float-btns {
    position: fixed; bottom: 28px; right: 22px;
    display: flex; flex-direction: column; gap: 10px; z-index: 90;
}
.fb-wa, .fb-tg, .fb-phone {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    transition: transform .2s, box-shadow .2s;
}
.fb-wa:hover, .fb-tg:hover, .fb-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.fb-wa    { background: #25D366; color: #fff; }
.fb-tg    { background: #229ED9; color: #fff; }
.fb-phone { background: var(--red); color: #fff; }
.fb-wa svg, .fb-tg svg, .fb-phone svg { width: 22px; height: 22px; }

/* ─────────────────────────────────────────────────────────────
   АДАПТИВ
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 180px 1fr; gap: 20px; }
    .product-layout { gap: 32px; }
    .cart-layout { grid-template-columns: 1fr 320px; }
}

@media (max-width: 768px) {
    :root { --hdr-h: 56px; }
    .container { padding: 0 16px; }
    .main-nav { display: none; }
    .header-phone { display: none; }
    .burger { display: flex; }
    .logo { font-size: 15px; letter-spacing: 2px; }

    .catalog-wrap { padding: 20px 0 48px; }
    .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
    .filters-sidebar {
        position: static;
        display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px; padding: 14px;
    }
    .filter-scroll { max-height: 140px; }

    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .product-price { font-size: 28px; }
    .product-actions { flex-direction: column; }
    .btn-cart-lg { min-width: unset; }

    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cs-total { font-size: 28px; }

    .hero { padding: 56px 0 48px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-search { flex-direction: column; }
    .hero-search input {
        border-right: 1.5px solid rgba(255,255,255,.12);
        border-bottom: none;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .hero-search button { border-radius: 0 0 var(--radius) var(--radius); }

    .service-cta { padding: 36px 24px; }
    .float-btns { bottom: 20px; right: 16px; }
    .fb-wa, .fb-tg, .fb-phone { width: 46px; height: 46px; }
    .footer-links { gap: 14px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; }
    .search-input {
        border-right: 1.5px solid var(--rule);
        border-bottom: none;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .search-btn { border-radius: 0 0 var(--radius) var(--radius); }
    .page-title { font-size: 26px; }
    .cart-item { flex-wrap: wrap; }
    .ci-price { width: 100%; text-align: left; }
    .track-form-row { flex-direction: column; }
    .reviews-grid { grid-template-columns: 1fr; }
}
