:root {
    --navy: #1f2937;
    --navy-2: #2a3546;
    --yellow: #fcc419;
    --yellow-hover: #f2b705;
    --red: #d62828;
    --red-hover: #b71f1f;
    --text: #141b2d;
    --muted: #6b7484;
    --line: #e3e7ee;
    --bg: #f5f7fa;
    --panel: #fff;
    --soft: #eef2f7;
    --blue: #1d6fd8;
    --green: #22a447;
    --green-bg: #e7f5e9;
    --orange: #e08a00;
    --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.4 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 16px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }

/* ---------- Верхняя полоса ---------- */
.topline { background: #161e2a; color: #c3cad6; font-size: 12px; position: relative; z-index: 30; }
.topline__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topline a, .topline button { color: inherit; text-decoration: none; }
.topline a:hover, .topline button:hover { color: var(--yellow); }
.topline__menu { display: flex; align-items: center; gap: 24px; height: 100%; white-space: nowrap; }
.topline__dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.topline__dropdown button { display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: inherit; }
.topline__dropdown .ico { width: 12px; height: 12px; stroke-width: 2.4; transition: transform .15s; }
.topline__submenu {
    display: none; position: absolute; top: 100%; left: -12px; min-width: 150px; padding: 6px;
    background: #fff; border-radius: 6px; box-shadow: 0 10px 28px rgba(10, 20, 40, .2);
}
.topline__submenu a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--text); font-size: 13px; }
.topline__submenu a:hover { background: var(--soft); color: var(--text); }
.topline__dropdown:hover .topline__submenu, .topline__dropdown:focus-within .topline__submenu { display: block; }
.topline__dropdown:hover .ico, .topline__dropdown:focus-within .ico { transform: rotate(180deg); }
.topline__contacts { display: flex; align-items: center; gap: 24px; }
.topline__contacts a { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topline__contacts .ico { width: 14px; height: 14px; color: var(--red); }

/* ---------- Шапка ---------- */
.topbar { background: var(--navy); color: #fff; position: relative; z-index: 25; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { display: block; height: 44px; width: auto; }
.catalog-btn {
    display: flex; align-items: center; gap: 12px; flex: none; height: 38px; padding: 0 18px;
    background: var(--yellow); color: var(--text); border-radius: 4px; text-decoration: none; font-weight: 600;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.catalog-btn { border: 0; }
.catalog-btn:hover { background: var(--yellow-hover); }
.catalog-btn__close, .catalog-btn[aria-expanded="true"] .catalog-btn__open { display: none; }
.catalog-btn[aria-expanded="true"] .catalog-btn__close { display: block; }

/* ---------- Меню каталога ---------- */
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; animation: mega-in .16s ease-out; pointer-events: none; }
.mega__panel { pointer-events: auto; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega__panel {
    display: grid; grid-template-columns: 340px 1fr 260px; gap: 24px; padding: 20px;
    background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 24px 60px rgba(20, 30, 50, .18); max-height: calc(100vh - 140px); overflow: hidden;
}
.mega__col { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.mega__title {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 4px 4px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.mega__title a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); text-decoration: none; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; }
.mega__title a .ico { width: 16px; height: 16px; }
.mega__title a:hover { text-decoration: underline; }
.mega__loading { padding: 12px 4px; color: var(--muted); }

.mega__roots { overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: #cfd5de transparent; }
.mega-root {
    display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 8px; border-radius: 8px;
    color: inherit; text-decoration: none;
}
.mega-root__ico { width: 40px; height: 40px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: #4a5262; transition: background .15s, color .15s; }
.mega-root__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega-root > span:nth-child(2) { min-width: 0; }
.mega-root__name { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.mega-root__desc { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-root__count { font-size: 12px; color: var(--muted); }
.mega-root:hover { background: #f7f9fb; }
.mega-root.is-active { background: #fff8dc; }
.mega-root.is-active .mega-root__ico { background: var(--yellow); color: var(--navy); }

.mega__subs { overflow-y: auto; columns: 2; column-gap: 28px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: #cfd5de transparent; }
.mega-sub { break-inside: avoid; padding: 6px 0 10px; }
.mega-sub__head { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.mega-sub__head:hover, .mega-sub__list a:hover { color: var(--blue); }
.mega-sub__list { list-style: none; margin: 2px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.mega-sub__list a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #4a5262; text-decoration: none; font-size: 13.5px; }
.mega-sub__list small { color: var(--muted); }
.mega-count { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: #fff3c4; color: #7a5a00; }

.mega__promo { align-self: start; background: var(--soft); border-radius: 10px; padding: 14px 14px 18px; display: flex; flex-direction: column; }
.mega__promo-art {
    position: relative; aspect-ratio: 1 / .8; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 10px;
    background: radial-gradient(circle at 30% 20%, rgba(252, 196, 25, .55), transparent 55%),
                radial-gradient(circle at 80% 90%, rgba(255, 130, 40, .35), transparent 50%), #121822;
}
.mega__promo-vin { font-size: 56px; font-weight: 800; letter-spacing: .06em; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.mega__promo-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #f7d76b; padding: 4px 10px; border: 1px dashed rgba(252, 196, 25, .5); border-radius: 4px; }
.mega__promo-title { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none; }
.mega__promo-title .ico { width: 18px; height: 18px; }
.mega__promo-title:hover { color: var(--blue); }
.mega__promo p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mega__promo-phone { display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.mega__promo-phone .ico { width: 16px; height: 16px; color: #e0a800; }
.mega-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(10, 15, 25, .35); animation: fade-in .16s; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Шапка категории ---------- */
.cat-head { margin-bottom: 16px; }
.cat-head__title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.cat-head p { margin: 4px 0 0; }
.cat-head__children { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-head__children a {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px;
    background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px;
}
.cat-head__children a:hover { border-color: var(--yellow); }
.cat-head__children small { color: var(--muted); }
.search { margin-left: 44px; }
.search { flex: 1; display: flex; height: 44px; max-width: 640px; }
.search input {
    flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 0 16px;
    background: #fff; color: var(--text); outline: none;
}
.search input:focus { box-shadow: inset 0 0 0 2px var(--yellow); }
.search button {
    width: 52px; border: 0; border-radius: 0 6px 6px 0; background: var(--yellow); color: var(--navy);
    display: grid; place-items: center;
}
.search button:hover { background: var(--yellow-hover); }
.search .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.actions { display: flex; gap: 28px; margin-left: auto; }
.action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; font-size: 13px; }
.action .ico { width: 24px; height: 24px; }
.action:hover { color: var(--yellow); }
.action__badge {
    position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------- Страница ---------- */
.page { flex: 1; padding-bottom: 48px; }
.crumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 16px 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.message { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; background: #fff7dc; border: 1px solid #f6e1a0; }
.message--error { background: #fdecec; border-color: #f3c2c2; }

/* ---------- Главная ---------- */
.home { margin-bottom: -48px; }
.home h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.home h3 { margin: 0; }

.hbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 26px;
    border-radius: 6px; border: 1px solid transparent; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.hbtn .ico { width: 20px; height: 20px; }
.hbtn--yellow { background: var(--yellow); color: var(--text); }
.hbtn--yellow:hover { background: var(--yellow-hover); }
.hbtn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hbtn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.hero { position: relative; overflow: hidden; background: #10151d; color: #fff; }
.hero__photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
    background: url(home/hero.jpg) center / cover no-repeat;
}
.hero__photo::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #10151d 0%, rgba(16, 21, 29, .85) 18%, rgba(16, 21, 29, 0) 55%);
}
.hero__inner { position: relative; padding-top: 72px; padding-bottom: 60px; }
.hero__title { margin: 0; max-width: 620px; font-size: 48px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.hero__title span { color: var(--yellow); }
.hero__lead { max-width: 540px; margin: 22px 0 0; font-size: 18px; line-height: 1.55; color: #dfe4ec; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 20px 44px; list-style: none; margin: 56px 0 0; padding: 0; font-size: 14px; color: #dfe4ec; line-height: 1.4; }
.hero__features li { display: flex; align-items: center; gap: 14px; max-width: 230px; }
.hero__features .ico { width: 34px; height: 34px; color: var(--yellow); stroke-width: 1.6; }

.hsec { padding: 56px 0; background: #fff; }
.hsec--soft { background: var(--bg); }
.hsec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.hsec h2::before, .why h2::before {
    content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; border-radius: 2px;
    background: var(--yellow);
}
.hsec__sub { margin: 6px 0 0; color: var(--muted); }
.hsec__more { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.hsec__more .ico { width: 16px; height: 16px; }
.hsec__more:hover { text-decoration: underline; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 28px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, border-color .15s;
}
.service:hover { border-color: var(--red); box-shadow: 0 10px 28px rgba(20, 30, 50, .08); }
.service__ico { width: 64px; height: 64px; fill: none; stroke: #f2b705; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.service p { flex: 1; margin: 8px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.service__btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 6px;
    background: var(--soft); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none;
}
.service__btn .ico { width: 16px; height: 16px; }
.service__btn:hover { background: var(--yellow); }

.why { position: relative; background: #fff; }
.why__photo { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: url(home/why.jpg) center / cover no-repeat; }
.why__inner { display: flex; justify-content: flex-end; }
.why__body { width: 50%; padding: 56px 0 56px 48px; }
.why h2 span { color: var(--red); }
.why__lead { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.why__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; }
.why__list li { display: flex; gap: 18px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.5; }
.why__list b { display: block; margin-bottom: 2px; color: var(--text); font-size: 16px; }
.why__ico { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--text); display: grid; place-items: center; }
.why__ico .ico { width: 22px; height: 22px; }

.finder {
    padding: 30px 32px; border-radius: 12px; color: #fff;
    background: url(home/parts-bg.jpg) right center / auto 100% no-repeat, linear-gradient(90deg, #1b2230 55%, #252e3d);
}
.finder h3 { font-size: 22px; font-weight: 700; }
.finder p { margin: 6px 0 0; color: #c9d0db; font-size: 14px; }
.finder__form { display: flex; max-width: 620px; height: 52px; margin-top: 20px; }
.finder__form input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 0 18px; background: #fff; color: var(--text); outline: none; }
.finder__form input:focus { box-shadow: inset 0 0 0 2px var(--yellow); }
.finder__form button {
    display: flex; align-items: center; gap: 10px; padding: 0 28px; border: 0; border-radius: 0 6px 6px 0;
    background: var(--yellow); color: var(--text); font-weight: 700;
}
.finder__form button:hover { background: var(--yellow-hover); }
.finder__form .ico { width: 22px; height: 22px; stroke-width: 2.2; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 12px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none;
    transition: box-shadow .15s, border-color .15s;
}
.cat-card:hover { border-color: var(--red); box-shadow: 0 10px 28px rgba(20, 30, 50, .08); }
.cat-card img { width: 100%; max-width: 170px; aspect-ratio: 111 / 90; object-fit: contain; }
.cat-card b { flex: 1; display: flex; align-items: center; margin-top: 10px; font-size: 15px; line-height: 1.25; }
.cat-card span {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 6px;
    background: #eef4fd; color: var(--blue); font-size: 13px; font-weight: 600;
}
.cat-card span .ico { width: 14px; height: 14px; }
.cat-card span { transition: background .15s, color .15s; }
.cat-card:hover span { background: var(--red); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.step__num {
    grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
    display: grid; place-items: center; font-size: 18px; font-weight: 800;
    box-shadow: 0 0 0 5px rgba(214, 40, 40, .12);
}
.step__ico { width: 34px; height: 34px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step div { grid-column: 2; max-width: 210px; }
.step b { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 12px; right: 4px; width: 16px; height: 16px;
    background: var(--red); opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.reviews-row { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: stretch; }
.reviews-col { min-width: 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.review header { display: flex; align-items: center; gap: 12px; }
.review img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review header b { display: block; font-size: 15px; }
.review time { color: var(--muted); font-size: 12px; }
.stars { display: flex; gap: 2px; margin-top: 12px; }
.stars svg { width: 16px; height: 16px; fill: var(--yellow); stroke: none; }
.review p { margin: 10px 0 0; color: #4a5262; font-size: 13.5px; line-height: 1.55; }

.cta {
    display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px 24px; border-radius: 12px; color: #fff;
    border-top: 4px solid var(--red);
    background: radial-gradient(circle at 100% 100%, rgba(214, 40, 40, .28), transparent 55%), #161e2a;
}
.cta h2 { font-size: 24px; color: var(--yellow); }
.cta h2::before { display: none; }
.cta h2 span { white-space: nowrap; }
.cta p { margin: 0 0 8px; color: #c9d0db; font-size: 14px; line-height: 1.5; }
.cta .hbtn { height: 48px; width: 100%; }

.contacts { display: grid; grid-template-columns: 1.15fr 1fr .7fr; gap: 20px; margin-top: 24px; }
.contacts__map { min-height: 240px; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; }
.contacts__card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contacts__card h3 { font-size: 17px; font-weight: 700; }
.contacts__card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; font-size: 15px; }
.contacts__card li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; }
.contacts__card .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--red); }

.groups__title { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.group-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: var(--text); }
.group-card:hover { border-color: var(--yellow); box-shadow: 0 6px 20px rgba(20, 30, 50, .08); }
.group-card b { display: block; font-size: 18px; margin-bottom: 4px; }
.group-card span { color: var(--muted); font-size: 14px; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: 410px 1fr; gap: 24px; margin-bottom: 16px; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.gallery__main {
    position: relative; aspect-ratio: 4 / 2.15; border-radius: 8px; background: linear-gradient(180deg, #f7f8fa, #eceff3);
    display: grid; place-items: center; overflow: hidden;
}
.gallery__ico { position: absolute; width: 180px; height: 180px; fill: #1d2330; stroke: #3a4251; stroke-width: 1.2; opacity: .95; }
.gallery__label { position: relative; display: flex; flex-direction: column; align-items: center; color: #fff; margin-top: 30px; text-align: center; }
.gallery__label b { font-size: 24px; font-weight: 800; letter-spacing: .02em; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery__label span { font-size: 14px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product__info { min-width: 0; padding-top: 4px; }
.product__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 15px; background: var(--soft); font-size: 14px; color: #3b4352; }
.tag--brand { background: var(--yellow); color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.product__title { margin: 14px 0 0; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.product__subtitle { margin: 4px 0 0; font-size: 23px; font-weight: 700; }
.product__meta { margin: 18px 0 0; font-size: 17px; color: #333b4a; }
.product__meta .code { white-space: nowrap; }
.note { display: flex; align-items: center; gap: 24px; margin-top: 18px; padding: 16px 24px; border-radius: 8px; background: var(--soft); color: #4a5262; }
.note p { margin: 0; line-height: 1.6; }
.note__ico { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Кнопки и поля ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 40px; padding: 0 24px;
    border-radius: 6px; border: 1px solid transparent; text-decoration: none; font-weight: 500; white-space: nowrap; background: none;
}
.btn--outline { border-color: #c9d6ea; color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); }
.link-btn { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--blue); padding: 0 8px; height: 40px; }
.link-btn .ico { width: 22px; height: 22px; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters__row + .filters__row { margin-top: 10px; }
.filters__unit { color: var(--muted); padding: 0 6px; }

.chip, .select, .field {
    display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border: 1px solid var(--line);
    border-radius: 4px; background: #fff; white-space: nowrap;
}
.chip:hover { border-color: #c8ced8; }
.chip.is-active { background: var(--yellow); border-color: var(--yellow); font-weight: 600; }
.chip--static { color: var(--muted); cursor: default; }
.days { display: flex; gap: 4px; margin-left: 12px; }
.days .chip { min-width: 74px; justify-content: center; }

.select { gap: 16px; justify-content: space-between; min-width: 110px; }
.select .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.select--native { position: relative; padding: 0; min-width: 172px; }
.select--native select {
    appearance: none; -webkit-appearance: none; border: 0; background: none; height: 100%; width: 100%;
    padding: 0 44px 0 20px; outline: none; cursor: pointer;
}
.select--native .ico { position: absolute; right: 18px; pointer-events: none; }
.select--wide { min-width: 190px; }
.field--qty { width: 86px; padding: 0 12px; outline: none; }
.field--qty:focus, .select--native:focus-within { border-color: var(--yellow); }
.field--price { min-width: 190px; justify-content: center; font-weight: 500; }

.dropdown { position: relative; }
.dropdown__toggle .count { margin-left: -8px; color: var(--muted); font-size: 13px; }
.dropdown__menu {
    display: none; position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; max-height: 320px; overflow: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(20, 30, 50, .14); padding: 8px;
}
.dropdown.is-open .dropdown__menu { display: block; }
.dropdown__menu label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 4px; cursor: pointer; }
.dropdown__menu label:hover { background: var(--soft); }
.dropdown__menu input { accent-color: #e0a800; width: 16px; height: 16px; }
.dropdown__menu small { margin-left: auto; color: var(--muted); }

.range { position: relative; flex: 1; min-width: 200px; height: 40px; margin: 0 10px; }
.range__track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--line); border-radius: 2px; }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--yellow); border-radius: 2px; }
.range input {
    position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
    -webkit-appearance: none; appearance: none;
}
.range input::-webkit-slider-runnable-track { background: none; height: 40px; }
.range input::-moz-range-track { background: none; }
.range input::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 10px; border-radius: 50%;
    background: var(--yellow); border: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.range input::-moz-range-thumb {
    pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 0; cursor: pointer;
}

/* ---------- Таблица предложений ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.offers { width: 100%; border-collapse: collapse; }
.offers th, .offers td { border-bottom: 1px solid var(--line); padding: 6px 20px; text-align: left; vertical-align: middle; }
.offers td + td, .offers th + th { border-left: 1px solid var(--line); }
.offers thead th { height: 36px; background: #f7f9fb; font-weight: 500; font-size: 14px; white-space: nowrap; }
.offers thead button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-weight: inherit; }
.offers thead button .ico { width: 14px; height: 14px; stroke-width: 2.4; color: var(--blue); opacity: 0; transition: transform .15s; }
.offers thead button.is-sorted { font-weight: 700; }
.offers thead button.is-sorted .ico { opacity: 1; }
.offers thead button.is-desc .ico { transform: rotate(180deg); }
.offers tbody tr:last-child td { border-bottom: 0; }
.offers tbody tr:not(.offers__group):hover td { background: #fafbfd; }
.offers__group td { background: var(--green-bg); color: #1d5e2c; font-weight: 700; padding: 6px 20px; }
.offers__group--requested td { background: #fff6d6; color: #6b4f00; }
.offers__group--order td { background: #fdf1e1; color: #8a5300; }

.c-photo { width: 96px; padding-left: 20px !important; padding-right: 12px !important; }
.c-qty, .c-term { text-align: center !important; }
.c-price { text-align: right !important; white-space: nowrap; }
.c-order { text-align: center !important; width: 166px; }
.thumb { width: 48px; height: 40px; display: grid; place-items: center; border-radius: 4px; background: #f1f3f6; margin: 0 auto; }
.thumb svg { width: 30px; height: 30px; fill: #1d2330; stroke: #3a4251; stroke-width: 1.4; }
.brand-link { font-weight: 500; }
.code { font-weight: 500; white-space: nowrap; }
/* Длинный артикул не растягивает колонку: обрезается, полностью виден в title */
.code--cell { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.desc { font-size: 13.5px; color: #333b4a; line-height: 1.3; }
.desc small { display: block; color: var(--muted); }
.qty { color: #4a5262; }
.term { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 14px; white-space: nowrap; }
.term::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.term--order { color: var(--orange); }
.price { font-size: 17px; font-weight: 800; }
.price--none { color: var(--muted); font-weight: 500; font-size: 14px; }
.order { display: flex; gap: 12px; justify-content: center; }
.order .select--native { min-width: 74px; height: 34px; }
.order select { padding: 0 30px 0 14px; }
.order .select--native .ico { right: 10px; }
.cart-btn {
    width: 46px; height: 34px; border: 0; border-radius: 4px; background: var(--yellow); display: grid; place-items: center; flex: none;
}
.cart-btn:hover { background: var(--yellow-hover); }
.cart-btn.is-added { background: var(--green); color: #fff; }
.cart-btn:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.offers__empty td { text-align: center; color: var(--muted); padding: 32px 20px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; }
.pager__info { color: var(--muted); font-size: 14px; }
.pager__pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager__btn {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center;
    border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 600;
}
.pager__btn:hover:not(:disabled):not(.is-active) { border-color: #c8ced8; }
.pager__btn.is-active { background: var(--yellow); border-color: var(--yellow); cursor: default; }
.pager__btn:disabled { color: #c3c9d3; cursor: default; }
.pager__btn .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.pager__btn--prev .ico { transform: rotate(90deg); }
.pager__btn--next .ico { transform: rotate(-90deg); }
.pager__gap { min-width: 24px; text-align: center; color: var(--muted); }

.requested {
    display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 10px 10px 10px 12px;
    background: #f0f5fc; border: 1px solid #dfe8f5; border-radius: 10px; font-size: 17px;
}
.requested b { font-weight: 800; }
.requested__ico { width: 36px; height: 36px; border-radius: 50%; background: #dde8f7; color: var(--blue); display: grid; place-items: center; flex: none; }
.requested__ico .ico { width: 18px; height: 18px; }
.requested__btn { margin-left: auto; font-size: 14px; }
.requested__btn .ico { width: 24px; height: 24px; }

/* ---------- Марки на главной ---------- */
.brands-sec { position: relative; overflow: hidden; padding: 64px 0; color: #fff; background: #161e2a; }
.brands-sec::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 0% 0%, rgba(214, 40, 40, .28), transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(252, 196, 25, .14), transparent 45%);
}
.brands-sec__inner { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.brands-sec h2 { color: #fff; }
.brands-sec h2::before {
    content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--yellow);
}
.brands-sec__intro p { margin: 14px 0 26px; color: #c9d0db; line-height: 1.6; }
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.brand {
    display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 14px; border: 0; border-radius: 10px;
    background: #fff; box-shadow: inset 0 -3px 0 transparent; transition: transform .18s, box-shadow .18s;
}
.brand img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .18s, opacity .18s; }
.brand:hover, .brand:focus-visible { transform: translateY(-3px); box-shadow: inset 0 -3px 0 var(--red), 0 12px 24px rgba(0, 0, 0, .25); }
.brand:hover img, .brand:focus-visible img { filter: none; opacity: 1; }

/* ---------- Новости ---------- */
.news-card {
    display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    transition: box-shadow .18s, transform .18s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 30, 50, .1); }
.news-card__cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.news-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__cover img { transform: scale(1.04); }
/* Обложка без фото: крупная надпись на фирменном фоне с косой штриховкой */
.news-card__cover--stock { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .12) 0 10px, transparent 10px 22px), linear-gradient(135deg, #ffd43b, #f2b705); color: var(--text); }
.news-card__cover--sale { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 10px, transparent 10px 22px), linear-gradient(135deg, #e03131, #a61e1e); color: #fff; }
.news-card__cover--service { background: radial-gradient(circle at 100% 0%, rgba(214, 40, 40, .55), transparent 60%), linear-gradient(135deg, #2a3546, #121822); color: #fff; }
/* Подряд идущие «Поступления» чередуют жёлтую и тёмную обложку, чтобы лента не сливалась */
.news-card:nth-child(even) .news-card__cover--stock { background: repeating-linear-gradient(-45deg, rgba(252, 196, 25, .06) 0 10px, transparent 10px 22px), linear-gradient(135deg, #1f2937, #10151d); color: var(--yellow); }
.news-card__word { padding: 0 24px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; text-align: center; text-transform: uppercase; }
.news-card__tag {
    position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, .92);
    color: var(--text); font-size: 12px; font-weight: 700;
}
.news-card[data-tag="sale"] .news-card__tag { background: var(--red); color: #fff; }
.news-card__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 22px; }
.news-card time { color: var(--muted); font-size: 13px; }
.news-card h3 { margin: 6px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.news-card p {
    margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-home { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.news-home .news-card__cover { aspect-ratio: auto; height: 210px; }
.news-card--wide .news-card__word { font-size: 38px; }
.news-card--wide h3 { font-size: 20px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; margin: 4px 0 24px; }
.page-head h1 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.page-head h1::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--yellow); }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter .chip { border-radius: 20px; font-weight: 600; }
.news-filter .chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card--lead { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; }
.news-card--lead .news-card__cover { aspect-ratio: auto; min-height: 280px; }
.news-card--lead .news-card__word { font-size: 40px; }
.news-card--lead .news-card__body { justify-content: center; padding: 28px; }
.news-card--lead h3 { font-size: 24px; }
.news-card--lead p { -webkit-line-clamp: 5; font-size: 15px; }
.news-grid.is-filtered .news-card--lead { grid-column: auto; display: flex; }
.news-grid.is-filtered .news-card--lead .news-card__cover { aspect-ratio: 16 / 9; min-height: 0; }
.news-grid.is-filtered .news-card--lead .news-card__word { font-size: 28px; }
.news-grid.is-filtered .news-card--lead .news-card__body { padding: 18px 20px 22px; justify-content: flex-start; }
.news-grid.is-filtered .news-card--lead h3 { font-size: 17px; }

.news-subscribe {
    display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 22px 24px; border-radius: 12px;
    background: linear-gradient(90deg, #fff6d6, #fdecec);
}
.news-subscribe > .ico { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 12px; background: #fff; color: var(--red); }
.news-subscribe p { flex: 1; margin: 0; color: #4a5262; font-size: 14px; }
.news-subscribe b { display: block; color: var(--text); font-size: 16px; }
.news-subscribe .hbtn { height: 46px; }
.news-subscribe .hbtn .ico { width: 16px; height: 16px; }

/* ---------- Страница «Автосервис» ---------- */
#view-about { margin-bottom: -48px; }
.phero { position: relative; overflow: hidden; background: #10151d; color: #fff; }
.phero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; background: center 30% / cover no-repeat; }
.phero__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #10151d, rgba(16, 21, 29, .6) 35%, rgba(16, 21, 29, .1)); }
.phero__inner { position: relative; padding-top: 64px; padding-bottom: 104px; }
.phero__title { margin: 0; font-size: 50px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.phero__title span { color: var(--red); }
.phero__lead { max-width: 560px; margin: 18px 0 0; color: #dfe4ec; font-size: 18px; line-height: 1.55; }

.facts { position: relative; z-index: 1; margin-top: -52px; }
.facts__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact {
    padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-left-width: 0;
    box-shadow: 0 18px 40px rgba(20, 30, 50, .1);
}
.fact:first-child { border-left-width: 1px; border-radius: 12px 0 0 12px; }
.fact:last-child { border-radius: 0 12px 12px 0; }
.fact b { display: block; color: var(--red); font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.fact span { color: var(--muted); font-size: 14px; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
    position: relative; overflow: hidden; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.svc:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 30, 50, .08); }
.svc__num { position: absolute; top: 12px; right: 18px; font-size: 54px; font-weight: 800; line-height: 1; color: var(--soft); }
.svc__ico { position: relative; width: 52px; height: 52px; fill: none; stroke: #f2b705; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.svc ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; color: #4a5262; font-size: 14px; line-height: 1.4; }
.svc li { position: relative; padding-left: 16px; }
.svc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.store { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks li::before {
    content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%;
    background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141b2d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.oem { display: flex; gap: 16px; margin-top: 28px; padding: 18px 20px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.oem .ico { width: 26px; height: 26px; color: var(--red); }
.oem p { margin: 0; color: #4a5262; font-size: 14px; line-height: 1.55; }
.oem b { color: var(--text); }
.order-steps { padding: 28px; border-radius: 14px; color: #fff; background: #161e2a; border-top: 4px solid var(--red); }
.order-steps h3 { font-size: 22px; font-weight: 800; }
.order-steps ol { list-style: none; counter-reset: st; margin: 20px 0 24px; padding: 0; display: grid; gap: 18px; }
.order-steps li { counter-increment: st; position: relative; padding-left: 50px; color: #c9d0db; font-size: 14px; line-height: 1.5; }
.order-steps li::before {
    content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--yellow); color: var(--text); display: grid; place-items: center; font-weight: 800;
}
.order-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: -14px; width: 2px; background: rgba(255, 255, 255, .12); }
.order-steps li b { display: block; color: #fff; font-size: 15px; }
.order-steps .hbtn { width: 100%; height: 50px; }

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.partner {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 22px;
    overflow: hidden; border-radius: 12px; color: #fff; transition: transform .18s, box-shadow .18s;
}
.partner:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 30, 50, .18); }
/* Название партнёра крупным «водяным знаком» в правом верхнем углу */
.partner::before {
    content: attr(data-mark); position: absolute; top: 14px; right: -6px; font-size: 64px; font-weight: 800; letter-spacing: -.02em;
    line-height: 1; color: rgba(255, 255, 255, .08); white-space: nowrap;
}
.partner--green { background: radial-gradient(circle at 100% 0%, rgba(120, 220, 120, .35), transparent 55%), linear-gradient(135deg, #1b6b3a, #0d2e1b); }
.partner--red { background: radial-gradient(circle at 100% 0%, rgba(255, 120, 120, .35), transparent 55%), linear-gradient(135deg, #b71f1f, #4a0d0d); }
.partner--navy { background: repeating-linear-gradient(-45deg, rgba(252, 196, 25, .05) 0 10px, transparent 10px 22px), linear-gradient(135deg, #2a3546, #121822); }
.partner span, .partner b { position: relative; }
.partner span { color: var(--yellow); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.partner b { margin-top: 4px; font-size: 22px; font-weight: 800; }

.page-cta { padding: 48px 0; color: #fff; background: radial-gradient(circle at 85% 50%, rgba(214, 40, 40, .35), transparent 45%), #161e2a; }
.page-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-cta h2 { color: #fff; }
.page-cta p { margin: 8px 0 0; color: #c9d0db; }
.page-cta a:not(.hbtn) { color: var(--yellow); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Страница «Контакты» ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phone-card {
    display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 22px 24px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.phone-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 30, 50, .08); }
.phone-card__ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--red); display: grid; place-items: center; }
.phone-card__ico .ico { width: 24px; height: 24px; }
.phone-card__label { color: var(--muted); font-size: 14px; }
.phone-card b { font-size: 22px; font-weight: 800; white-space: nowrap; }
.phone-card--accent { background: var(--yellow); border-color: var(--yellow); }
.phone-card--accent .phone-card__label { color: #5c4500; }
.phone-card--accent .phone-card__ico { background: rgba(255, 255, 255, .6); }

.visit { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 20px; }
.visit__map { min-height: 440px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }
.visit__card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; border-top: 4px solid var(--red); display: flex; flex-direction: column; }
.visit__card h2 { font-size: 24px; }
.visit__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.visit__list li { display: flex; gap: 14px; color: #4a5262; line-height: 1.5; }
.visit__list .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--red); }
.visit__list b { display: block; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.visit__btns .hbtn { flex: 1; height: 48px; padding: 0 18px; }
.visit__btns .hbtn .ico { width: 18px; height: 18px; }

.contact-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding: 26px 28px;
    border-radius: 12px; color: #fff; background: radial-gradient(circle at 100% 100%, rgba(214, 40, 40, .35), transparent 50%), #161e2a;
}
.contact-cta h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0; }
.contact-cta p { margin: 6px 0 0; color: #c9d0db; font-size: 14px; }

/* ---------- Корзина ---------- */
.action.is-active { color: var(--yellow); }
.action__badge.is-bump { animation: badge-bump .45s ease-out; }
@keyframes badge-bump { 30% { transform: scale(1.45); background: var(--red); color: #fff; } }
.hbtn--light { background: #fff; border-color: var(--line); color: var(--text); }
.hbtn--light:hover { border-color: var(--yellow); }

.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cart-head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.cart-head h1 span { margin-left: 6px; color: var(--muted); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.cart-head .link-btn { height: auto; padding: 0; gap: 8px; color: var(--muted); font-size: 14px; }
.cart-head .link-btn:hover { color: var(--red); }
.cart-head .link-btn .ico { width: 18px; height: 18px; }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cart-item {
    display: grid; grid-template-columns: 72px 1fr auto 130px 40px; align-items: center; gap: 20px; padding: 18px 20px;
    transition: opacity .18s, transform .18s;
}
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item.is-removing { opacity: 0; transform: translateX(24px); }
.cart-item__thumb { width: 72px; height: 72px; border-radius: 10px; background: linear-gradient(180deg, #f7f8fa, #eceff3); display: grid; place-items: center; }
.cart-item__thumb svg { width: 44px; height: 44px; fill: #1d2330; stroke: #3a4251; stroke-width: 1.2; }
.cart-item__info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cart-item__brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cart-item__brand b { padding: 2px 8px; border-radius: 4px; background: var(--yellow); font-weight: 800; }
.cart-item__brand .code { color: var(--muted); }
.cart-item__name { color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cart-item__name:hover { color: var(--blue); }
.cart-item .term { font-size: 13px; gap: 8px; white-space: normal; }
.cart-item .term::before { width: 7px; height: 7px; flex: none; }
.cart-item__price { text-align: right; }
.cart-item__price b { display: block; font-size: 19px; font-weight: 800; white-space: nowrap; }
.cart-item__price small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cart-item__remove {
    width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: #a3abb8; display: grid; place-items: center;
}
.cart-item__remove:hover { background: #fdecec; color: var(--red); }

.stepper { display: flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stepper button { width: 36px; height: 100%; border: 0; background: none; color: var(--text); display: grid; place-items: center; }
.stepper button:hover:not(:disabled) { color: var(--red); }
.stepper button:disabled { color: #c3c9d3; cursor: default; }
.stepper button .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper input {
    width: 44px; height: 100%; border: 0; background: none; text-align: center; font-weight: 700; outline: none;
    -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { border-color: var(--yellow); }

.cart-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.cart-back .ico { width: 18px; height: 18px; }
.cart-back:hover { text-decoration: underline; }

.cart-summary {
    position: sticky; top: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    border-top: 4px solid var(--red);
}
.cart-summary h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.cart-sum { margin: 0; display: grid; gap: 10px; }
.cart-sum div { display: flex; justify-content: space-between; gap: 12px; }
.cart-sum dt { color: var(--muted); }
.cart-sum dd { margin: 0; font-weight: 600; white-space: nowrap; }
.cart-sum__total { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); align-items: baseline; }
.cart-sum__total dt { color: var(--text); font-weight: 700; font-size: 17px; }
.cart-sum__total dd { font-size: 28px; font-weight: 800; }
.cart-sum__note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fdf1e1; color: #8a5300; font-size: 13px; line-height: 1.45; }

.order-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-form__delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.order-form__delivery input { position: absolute; opacity: 0; pointer-events: none; }
.order-form__delivery span {
    display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 12px; height: 100%;
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s;
}
.order-form__delivery .ico { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--muted); }
.order-form__delivery b { font-size: 14px; }
.order-form__delivery small { color: var(--muted); font-size: 12px; }
.order-form__delivery span:hover { border-color: #c8ced8; }
.order-form__delivery input:checked + span { border-color: var(--yellow); background: #fffbea; box-shadow: inset 0 0 0 1px var(--yellow); }
.order-form__delivery input:checked + span .ico { color: var(--red); }
.order-form__delivery input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.order-form__submit { width: 100%; margin-top: 4px; }
.order-form__submit:disabled { opacity: .6; cursor: progress; }

.cart-state { max-width: 560px; margin: 24px auto 32px; padding: 48px 32px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cart-state__ico { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; }
.cart-state__ico .ico { width: 40px; height: 40px; stroke-width: 1.6; }
.cart-state__ico--ok { background: var(--green-bg); color: var(--green); }
.cart-state__ico--ok .ico { stroke-width: 2.4; }
.cart-state h2 { margin: 0; font-size: 26px; font-weight: 800; }
.cart-state p { margin: 10px auto 26px; max-width: 420px; color: var(--muted); line-height: 1.55; }
.cart-state__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cart-state .hbtn { height: 48px; }

/* ---------- Модальное окно записи ---------- */
.modal {
    width: calc(100% - 32px); max-width: 480px; padding: 36px 32px 28px; border: 0; border-radius: 14px;
    color: var(--text); background: #fff; box-shadow: 0 30px 80px rgba(10, 15, 25, .35);
    border-top: 5px solid var(--red);
}
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal::backdrop { background: rgba(10, 15, 25, .55); animation: fade-in .18s; }
.modal h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.modal__close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: var(--soft); color: var(--muted); display: grid; place-items: center;
}
.modal__close:hover { color: var(--text); }
.modal__close .ico { width: 18px; height: 18px; }
.modal__lead { margin: 8px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal__field { display: block; margin-bottom: 14px; }
.modal__field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.modal__field small { color: var(--muted); font-weight: 400; }
.modal__field input, .modal__field textarea {
    display: block; width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; outline: none;
}
.modal__field input { height: 48px; }
.modal__field textarea { padding-top: 12px; padding-bottom: 12px; resize: vertical; min-height: 84px; }
.modal__field input:focus, .modal__field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(252, 196, 25, .25); }
.modal__field .is-invalid { border-color: #e03131; }
.modal__error { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: #fdecec; color: #b42318; font-size: 14px; }
.modal__submit { width: 100%; margin-top: 6px; }
.modal__submit:disabled { opacity: .6; cursor: progress; }
.modal__note { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.modal__done { text-align: center; padding: 8px 0 4px; }
.modal__done-ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.modal__done-ico .ico { width: 32px; height: 32px; stroke-width: 2.4; }
.modal__done p { margin: 10px 0 24px; color: var(--muted); line-height: 1.5; }
.modal__done .hbtn { min-width: 160px; height: 48px; }
body:has(.modal[open]) { overflow: hidden; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: #c9d0db; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.footer b { color: #fff; }
.footer p { margin: 8px 0 0; line-height: 1.6; }
.footer a { color: #c9d0db; }
.footer__logo { height: 44px; width: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .mega__panel { grid-template-columns: 300px 1fr; }
    .mega__promo { display: none; }
    .product { grid-template-columns: 340px 1fr; }
    .days { margin-left: 0; }
    .range { flex-basis: 100%; margin: 0 10px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .cats { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .step::after { display: none; }
    .reviews-row { grid-template-columns: 1fr; }
    .cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .cta h2, .cta p { flex-basis: 100%; }
    .cta .hbtn { width: auto; flex: 1; }
    .contacts { grid-template-columns: 1fr 1fr; }
    .contacts__map { grid-column: 1 / -1; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .brands-sec__inner { grid-template-columns: 1fr; gap: 28px; }
    .news-home { grid-template-columns: 1fr 1fr; }
    .news-card--wide { grid-column: 1 / -1; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .facts__inner { grid-template-columns: 1fr 1fr; }
    .fact { border-left-width: 1px; border-radius: 0 !important; }
    .fact:first-child { border-radius: 12px 0 0 0 !important; }
    .fact:nth-child(2) { border-radius: 0 12px 0 0 !important; }
    .fact:nth-child(3) { border-radius: 0 0 0 12px !important; }
    .fact:last-child { border-radius: 0 0 12px 0 !important; }
    .store { grid-template-columns: 1fr; }
    .phones { grid-template-columns: 1fr 1fr; }
    .visit { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .topbar__inner { flex-wrap: wrap; gap: 12px 16px; padding-top: 10px; padding-bottom: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
    .actions { gap: 18px; }
    .product { grid-template-columns: 1fr; }
    .gallery { max-width: 480px; }
    .c-photo, .c-term { display: none; }
    .hero__photo { width: 100%; opacity: .45; }
    .hero__photo::before { background: linear-gradient(90deg, #10151d 10%, rgba(16, 21, 29, .4)); }
    .hero__title { font-size: 40px; }
    .why__photo { position: static; width: auto; aspect-ratio: 16 / 9; }
    .why__body { width: auto; padding: 40px 0 48px; }
    .reviews { grid-template-columns: 1fr; }
    .brands { grid-template-columns: repeat(4, 1fr); }
    .phero__photo { width: 100%; opacity: .5; }
    .phero__title { font-size: 40px; }
    .partners { grid-template-columns: 1fr; }
    .partner { min-height: 160px; }
}

@media (max-width: 760px) {
    .mega__panel { grid-template-columns: 1fr; max-height: calc(100vh - 150px); overflow-y: auto; padding: 14px; gap: 16px; }
    .mega__roots, .mega__subs { overflow: visible; }
    .mega__subs { columns: 1; }
    .mega-root__desc { display: none; }
    .mega__roots .mega__col--subs { margin: 4px 0 10px 54px; }
    .mega__roots .mega__title { font-size: 11px; padding-bottom: 8px; }
    .logo img { height: 38px; }
    .catalog-btn { padding: 0 14px; }
    .topline__menu, .topline__contacts { gap: 14px; }
    .topline__contacts span { display: none; }
    .topline__contacts .ico { width: 16px; height: 16px; }
    .action span { display: none; }
    .product__top { flex-direction: column-reverse; }
    .product__top .btn { align-self: flex-start; }
    .product__title { font-size: 32px; }
    .product__subtitle { font-size: 19px; }
    .note { gap: 14px; padding: 14px 16px; }
    .filters__row > * { flex: 1 1 auto; }
    .days { flex-basis: 100%; }
    .days .chip { min-width: 0; flex: 1; }
    .chip--static { flex: 0 0 auto !important; }
    .select--native, .select--wide, .field--price { min-width: 0; }
    .filters__unit, .field--qty { flex: 0 0 auto !important; }
    .link-btn, .select--wide { flex-basis: 100% !important; }
    .field--qty { flex: 1 1 auto !important; }

    /* Таблица превращается в карточки */
    .offers thead { display: none; }
    .offers, .offers tbody, .offers tr, .offers td { display: block; }
    .offers tbody tr:not(.offers__group):not(.offers__empty) {
        display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
    }
    .offers td { border: 0 !important; padding: 0 !important; }
    .offers .c-photo, .offers .c-term { display: none; }
    .offers .c-brand { grid-column: 1; }
    .offers .c-code { grid-column: 2; text-align: right; }
    .offers .c-desc { grid-column: 1 / -1; }
    .offers .c-qty { grid-column: 1; text-align: left !important; color: var(--muted); font-size: 13px; }
    .offers .c-qty .qty::before { content: "В наличии: "; }
    .offers .c-price { grid-column: 2; grid-row: 3; }
    .offers .c-order { grid-column: 1 / -1; width: auto; margin-top: 6px; }
    .offers .order { justify-content: flex-end; }
    .offers__group td { padding: 8px 16px !important; }

    .hero__inner { padding-top: 44px; padding-bottom: 40px; }
    .hero__title { font-size: 31px; }
    .hero__title br { display: none; }
    .hero__lead { font-size: 16px; }
    .hero__btns .hbtn { flex: 1 1 100%; }
    .hero__features { margin-top: 36px; flex-direction: column; }
    .hsec { padding: 40px 0; }
    .home h2 { font-size: 24px; }
    .hsec__head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
    .services { grid-template-columns: 1fr; gap: 12px; }
    .finder { padding: 22px 18px; background: linear-gradient(90deg, #1b2230 55%, #252e3d); }
    .finder__form button { padding: 0 18px; }
    .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .steps { grid-template-columns: 1fr; }
    .cta .hbtn { flex-basis: 100%; }
    .contacts { grid-template-columns: 1fr; }
    .cart-head h1 { font-size: 26px; }
    .cart-head h1 span { display: block; margin: 2px 0 0; font-size: 15px; }
    .cart-item { grid-template-columns: 56px 1fr 36px; gap: 10px 14px; padding: 16px; }
    .cart-item__thumb { width: 56px; height: 56px; grid-row: 1 / 3; align-self: start; }
    .cart-item__thumb svg { width: 34px; height: 34px; }
    .cart-item__info { grid-column: 2; }
    .cart-item__remove { grid-column: 3; grid-row: 1; align-self: start; width: 36px; height: 36px; }
    .cart-item .stepper { grid-column: 2; grid-row: 2; justify-self: start; }
    .cart-item__price { grid-column: 2 / 4; grid-row: 2; justify-self: end; }
    .cart-summary { padding: 20px 16px; }
    .cart-state { padding: 36px 20px; }
    .cart-state .hbtn { flex: 1 1 100%; }
    .brands-sec { padding: 44px 0; }
    .brands { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .brand { padding: 10px; }
    .brand img { max-height: 40px; }
    .news-home, .news-grid { grid-template-columns: 1fr; }
    .news-card--lead { grid-column: auto; display: flex; }
    .news-card--lead .news-card__cover { aspect-ratio: 16 / 9; min-height: 0; }
    .news-card--lead .news-card__body { padding: 18px 20px 22px; }
    .news-card--wide .news-card__word, .news-card--lead .news-card__word { font-size: 30px; }
    .news-card--wide h3, .news-card--lead h3 { font-size: 18px; }
    .news-subscribe { flex-wrap: wrap; }
    .news-subscribe .hbtn { flex: 1 1 100%; }
    .page-head h1 { font-size: 28px; }
    .phero__inner { padding-top: 44px; padding-bottom: 84px; }
    .phero__title { font-size: 34px; }
    .phero__lead { font-size: 16px; }
    .fact { padding: 16px; }
    .fact b { font-size: 21px; }
    .fact span { font-size: 12.5px; }
    .svc-grid { grid-template-columns: 1fr; }
    .checks { grid-template-columns: 1fr; }
    .order-steps { padding: 22px 18px; }
    .page-cta .hbtn { flex: 1 1 100%; }
    .phones { grid-template-columns: 1fr; }
    .phone-card b { font-size: 20px; }
    .visit__map, .visit__map iframe { min-height: 300px; }
    .visit__card { padding: 22px 18px; }
    .visit__btns .hbtn { flex: 1 1 100%; }
    .contact-cta .hbtn { flex: 1 1 100%; }
    .modal { padding: 28px 18px 22px; }
    .modal h2 { font-size: 22px; padding-right: 36px; }

    .requested { flex-wrap: wrap; font-size: 15px; }
    .requested__btn { margin-left: 0; width: 100%; }
    .footer__inner { grid-template-columns: 1fr; gap: 20px; }
}
