?/* ============================================================
   MotoMotoParts — global styles (single file for WordPress)
   ============================================================ */

/* -------- FONTS (локально, fallback обязателен) -------- */
/* Положите .woff2 файлы в /assets/fonts/ — WP подключит этот же CSS */
/* Заголовки: Bebas Neue не имеет кириллицы → под тем же именем шрифта
   отдаём Oswald (condensed, OFL) с latin+cyrillic сабсетами, чтобы русские
   заголовки рендерились в стиле вёрстки. См. DEVIATIONS.md. */
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/oswald-cyrillic-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/oswald-cyrillic-500-normal.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -------- CSS VARIABLES -------- */
:root {
    /* colors */
    --color-bg: #070707;
    --color-header: #0B0B0B;
    --color-card: #1A1A1A;
    --color-card-2: #191919;
    --color-input: #2A2A2A;
    --color-white: #FFFFFF;
    --color-text: #B6B6B6;
    --color-text-2: #D4D4D4;
    --color-muted: #A4A4A4;
    --color-dim: #8C8C8C;
    --color-faint: #6F6F6F;
    --color-accent: #EB5902;
    --color-accent-hover: #ff6a1a;
    --color-accent-active: #c44a00;
    --color-border: rgba(255, 255, 255, .08);
    --color-border-soft: rgba(255, 255, 255, .05);

    /* account-only tokens (не используются другими страницами) */
    --account-card-dark: #1B1B1B;
    --account-card-light: #F3F3F3;
    --account-card-light-text: #1B1B1B;
    --account-card-light-text-muted: #555555;
    --account-divider: #2A2A2A;
    --account-btn-border: #555555;

    /* typography */
    --font-heading: "Bebas Neue", "Impact", "Oswald", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    /* layout */
    --container: 1540px;
    --container-pad: 20px;
    --header-h: 120px;
    --nav-h: 58px;

    /* radius */
    --radius-card: 16px;
    --radius-btn: 6px;
    --radius-inner: 14px;

    /* transitions */
    --t-fast: .15s ease;
    --t: .25s ease;
}

/* -------- RESET -------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, button {
    font: inherit;
    color: inherit;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
video, iframe { max-width: 100%; }

/* ============================================================
   MOBILE SAFETY — единая защита от горизонтального скролла
   и переполнений на всех страницах. Не меняет визуальный
   layout: только запрещает «вылетающим» элементам ломать
   ширину вьюпорта и flex/grid-сетки.
   ============================================================ */
html, body {
    max-width: 100%;
    /* clip не создаёт scroll-контекст → не ломает position: sticky.
       hidden — fallback для Safari <16; в этих браузерах sticky внутри body также работает при оверфлов именно на body,
       а не на html. */
    overflow-x: hidden;
    overflow-x: clip;
}
.header__inner,
.nav__inner,
.menu,
.icons,
.search {
    min-width: 0;
}
/* Длинные URL/слова не должны растягивать карточки */
.entry-content,
.article__p,
.card,
.menu .menu-item > a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* -------- CONTAINER -------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* -------- SECTION SCROLL OFFSET -------- */
section[id] {
    scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 20px);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: var(--color-bg);
}
/* алиас на случай прежней разметки — поведение идентично базовому .header */
.header--flat {
    background: var(--color-bg);
}

/* Выравнивание header/nav по той же контентной ширине, что и
   основные секции главной (hero/categories/features/viewed = 1280px).
   Без этого визуально header «уезжает влево» относительно контента,
   т.к. глобальный .container = 1540px шире контента ниже.
   На about-page правило не вмешивается: там свой .about-page .container. */
.header > .container,
.nav > .container {
    max-width: 1280px;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

/* logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--color-white);
}
.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--color-accent);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__title {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.logo__desc {
    font-size: 11px;
    color: var(--color-text);
    line-height: 1.35;
    margin-top: 2px;
}

/* search */
.header__search {
    flex: 1 1 560px;
    max-width: 600px;
}
.search {
    display: flex;
    height: 52px;
    border-radius: var(--radius-btn);
    overflow: hidden;
}
.search__input {
    flex: 1;
    background: var(--color-input);
    border: none;
    border-radius: var(--radius-btn) 0 0 var(--radius-btn);
    padding: 0 18px;
    color: var(--color-white);
    font-size: 14px;
}
.search__input::placeholder { color: var(--color-faint); }
.search__input:focus { outline: none; background: #313131; }
.search__button {
    width: 60px;
    background: var(--color-accent);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    transition: background var(--t-fast);
}
.search__button:hover { background: var(--color-accent-hover); }
.search__button:active { background: var(--color-accent-active); }

/* phone */
.phone {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    flex-shrink: 0;
}
.phone__number {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
}
.phone__hours {
    margin-top: 2px;
    font-size: 12px;
    color: var(--color-text);
}
.phone:hover .phone__number { color: var(--color-accent); }

/* icons */
.icons {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    /* правый край последней иконки выровнен с правым краем .container
       (= правый край карточки «Телефон» в секции контактов) */
}
.icons__item { display: inline-flex; }
.icons__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--color-white);
    transition: color var(--t-fast), transform var(--t-fast);
}
.icons__link:hover { color: var(--color-accent); }
.icons__link:active { transform: scale(.94); }

/* подпись под иконкой (например, "Корзина") */
.icons__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translateX(-50%);
    font-size: 11px;
    line-height: 1;
    color: var(--color-text);
    white-space: nowrap;
    pointer-events: none;
}
.icons__link { position: relative; }

/* burger */
.burger {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.burger__line {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.nav {
    background: var(--color-bg);
}
.nav__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--nav-h);
}
.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 22px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--t-fast);
    flex-shrink: 0;
}
.catalog-btn:hover { background: var(--color-accent-hover); }
.catalog-btn:active { background: var(--color-accent-active); }

.menu {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.menu .menu-item > a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    padding: 8px 0;
    position: relative;
    display: inline-block;
}
.menu .menu-item > a:hover { color: var(--color-accent); }
.menu .current-menu-item > a,
.menu .menu-item > a[aria-current="page"] {
    color: var(--color-accent);
}
.menu .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    vertical-align: middle;
}
.menu .sub-menu {
    display: none;
    position: absolute;
    background: var(--color-card);
    padding: 12px 0;
    border-radius: var(--radius-btn);
    min-width: 200px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding-block: 60px 0;
}
.breadcrumbs__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--color-muted);
}
.breadcrumbs__link {
    color: var(--color-muted);
    transition: color var(--t-fast);
}
.breadcrumbs__link:hover { color: var(--color-accent); }
.breadcrumbs__sep { color: var(--color-faint); }
.breadcrumbs__item--current { color: var(--color-white); }

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title {
    padding-block: 30px 60px;
}
.page-title__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.page-title__heading {
    font-family: var(--font-heading);
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0;
}
.page-title__desc {
    margin-top: 20px;
    max-width: 620px;
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.6;
}

/* ============================================================
   CONTACTS BLOCK
   ============================================================ */
.contacts {
    padding-block: 0 90px;
}
.contacts__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* map */
.map {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    min-height: 470px;
    background: #141414;
}
.map__image {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    aspect-ratio: 16 / 11;
    filter: grayscale(.3) brightness(.85);
}

/* contacts list (2x2) */
.contacts__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* contact card */
.contact-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform var(--t), background var(--t);
}
.contact-card:hover {
    transform: translateY(-2px);
    background: #1f1f1f;
}
.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 20px;
}
.contact-card__title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1;
}
.contact-card__text {
    font-size: 18px;
    color: var(--color-text-2);
    line-height: 1.5;
}
.contact-card__link {
    color: var(--color-text-2);
    transition: color var(--t-fast);
}
.contact-card__link:hover { color: var(--color-accent); }
.contact-card__note {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    color: var(--color-dim);
}


/* ============================================================
   CART
   ============================================================ */
.cart {
    padding-block: 0 60px;
}
.cart__inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 24px;
}
.cart__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* cart item card */
.cart-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: stretch;
    gap: 28px;
    padding: 24px 0;
    background: transparent;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__media {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-inner);
    background: transparent;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
    transition: transform var(--t);
}
.cart-item__media:hover .cart-item__image { transform: scale(1.04); }

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding-top: 4px;
}
.cart-item__title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--color-white);
    transition: color var(--t-fast);
}
.cart-item__title:hover { color: var(--color-accent); }
.cart-item__meta {
    margin: 0;
    font-size: 13px;
    color: var(--color-muted);
}
.cart-item__meta-label { color: var(--color-faint); }
.cart-item__meta-value { color: var(--color-text-2); margin-left: 4px; }

.cart-item__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: auto;
}
.cart-item__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: color var(--t-fast);
}
.cart-item__action:hover { color: var(--color-accent); }
.cart-item__action:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 2px;
}
.cart-item__action--fav { padding: 0; }

.cart-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    min-width: 160px;
    padding-top: 4px;
}
.cart-item__price {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
}

/* qty */
.qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--color-card-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    overflow: hidden;
}
.qty__btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast);
}
.qty__btn:hover { color: var(--color-white); background: rgba(255, 255, 255, .04); }
.qty__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.qty__btn:active { background: rgba(255, 255, 255, .08); }
.qty__input {
    width: 44px;
    height: 36px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    color: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty__input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* cart summary */
.cart-summary {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 20px;
}
.cart-summary__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--color-white);
}
.cart-summary__row {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--color-muted);
}
.cart-summary__value { color: var(--color-text-2); }

.cart-summary__total {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
}
.cart-summary__total-label { color: var(--color-white); }
.cart-summary__total-value { color: var(--color-white); white-space: nowrap; }

.cart-summary__button {
    margin-top: 6px;
    height: 52px;
    width: 100%;
    background: var(--color-accent);
    color: var(--color-white);
    border: 0;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background var(--t-fast);
}
.cart-summary__button:hover { background: var(--color-accent-hover); }
.cart-summary__button:active { background: var(--color-accent-active); }
.cart-summary__button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }


/* ============================================================
   ACCOUNT (Личный кабинет)
   Макет: 1920px / контент 1540px
   Сетка: 430 + 670 + 430, gap 24px, ряды по 250px
   ============================================================ */
/* левый заголовок страницы (модификатор для page-title) */
.page-title--account {
    padding-block: 40px 40px;
    text-align: left;
}
.page-title--account .container { text-align: left; }
.page-title--account .page-title__heading {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: left;
}

/* breadcrumbs для ЛК — выравниваем по левому краю */
.page-title--account ~ .account .breadcrumbs__list { justify-content: flex-start; }

/* секция и большие отступы до футера */
.account {
    padding-block: 0 140px;
    background: var(--color-bg);
}

/* сбрасываем дефолтный account__title — у нас всё рулит .page-title--account */
.account__title { display: none; }

/* GRID — три колонки 430/670/430, два ряда по 250 */
.account__grid {
    display: grid;
    grid-template-columns: 430px 670px 430px;
    grid-template-rows: 250px 250px;
    gap: 24px;
    justify-content: start;
}

/* раскладка по ячейкам */
.account__sidebar   { grid-column: 1; grid-row: 1; }
.account__profile   { grid-column: 2; grid-row: 1; }
.account__favorites { grid-column: 3; grid-row: 1; }
.account__orders    { grid-column: 1; grid-row: 2; }

/* ----- базовая карточка ЛК ----- */
.account-card {
    background: var(--account-card-dark);
    border-radius: 10px;
    padding: 24px;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: none;
    transition: background var(--t-fast), transform var(--t-fast);
}
a.account-card { cursor: pointer; }
a.account-card:hover { background: #222222; }
a.account-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.account-card__label {
    margin: 0 0 14px;
    font-size: 13px;
    color: #888888;
}

/* ----- светлая карточка меню (sidebar) ----- */
.account-card--nav {
    background: var(--account-card-light);
    color: var(--account-card-light-text);
    padding: 24px;
    justify-content: space-between;
}
.account-card--nav:hover { background: var(--account-card-light); }

.account-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.account-nav__item { margin: 0; }
.account-nav__link {
    display: block;
    color: var(--account-card-light-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    transition: color var(--t-fast);
}
.account-nav__link:hover { color: var(--color-accent); }
.account-nav__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}
.account-nav__item--active .account-nav__link,
.account-nav__link[aria-current="page"] {
    color: var(--color-accent);
    font-weight: 600;
}

.account-nav__logout {
    margin-top: auto;
    color: var(--account-card-light-text-muted);
    text-decoration: none;
    font-size: 18px;
    transition: color var(--t-fast);
    align-self: flex-start;
}
.account-nav__logout:hover { color: var(--color-accent); }
.account-nav__logout:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}
/* ----- профиль (центральная карточка 670×250) ----- */
.account-card--profile {
    justify-content: space-between;
    gap: 8px;
}
.account-profile__name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
}
.account-profile__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.account-profile__email {
    color: #8C8C8C;
    text-decoration: none;
    font-size: 14px;
    transition: color var(--t-fast);
}
.account-profile__email:hover { color: var(--color-white); }
.account-profile__email:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}
.account-profile__btn {
    appearance: none;
    background: transparent;
    border: 1px solid var(--account-btn-border);
    color: var(--color-white);
    font-family: inherit;
    font-size: 13px;
    height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.account-profile__btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}
.account-profile__btn:active { transform: scale(.98); }
.account-profile__btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ----- статистические карточки (избранное / заказы) ----- */
.account-card--stat {
    gap: 0;
    justify-content: flex-start;
}
.account-stat__icon {
    display: inline-flex;
    color: var(--color-white);
    margin-bottom: 18px;
}
.account-stat__icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}
.account-stat__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-white);
    text-transform: none;
    letter-spacing: 0;
}
.account-stat__meta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    color: #8C8C8C;
}

/* ============================================================
   ACCOUNT — RESPONSIVE
   ============================================================ */

/* ≤ 1440px — пропорциональная сетка */
@media (max-width: 1440px) {
    .account__grid {
        grid-template-columns: 1fr 1.6fr 1fr;
    }
}

/* ≤ 1280px */
@media (max-width: 1280px) {
    .page-title--account .page-title__heading { font-size: 56px; }
    .account { padding-block: 0 100px; }
}

/* ≤ 1024px — две колонки */
@media (max-width: 1024px) {
    .account__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    .account__sidebar   { grid-column: 1; grid-row: 1; min-height: 240px; }
    .account__profile   { grid-column: 2; grid-row: 1; min-height: 240px; }
    .account__favorites { grid-column: 1; grid-row: 2; min-height: 220px; }
    .account__orders    { grid-column: 2; grid-row: 2; min-height: 220px; }
    .page-title--account .page-title__heading { font-size: 48px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .page-title--account { padding-block: 24px 24px; }
    .page-title--account .page-title__heading { font-size: 38px; }
    .account { padding-block: 0 60px; }
    .account__grid { gap: 14px; }
    .account-card { padding: 20px; }
    .account-profile__name { font-size: 28px; }
    .account-stat__title { font-size: 28px; }
    .account-nav__link,
    .account-nav__logout { font-size: 16px; }
}

/* ≤ 480px — одна колонка */
@media (max-width: 480px) {
    .account__grid {
        grid-template-columns: 1fr;
    }
    .account__sidebar,
    .account__profile,
    .account__favorites,
    .account__orders {
        grid-column: 1;
        grid-row: auto;
    }
    .page-title--account .page-title__heading { font-size: 32px; }
    .account-profile__bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .account-profile__btn { width: 100%; }
}

/* ≤ 390px / 375px */
@media (max-width: 390px) {
    .page-title--account .page-title__heading { font-size: 28px; }
    .account-profile__name { font-size: 24px; }
    .account-stat__title { font-size: 24px; }
    .account-card { padding: 18px; }
}




/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-card);
    color: var(--color-text);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-block: 60px;
}

.footer__col--brand .logo { margin-bottom: 18px; }

.footer__about {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 280px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 22px;
    letter-spacing: .5px;
}

.footer__menu,
.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}
.footer__menu a,
.footer__contacts a {
    color: var(--color-text);
    transition: color var(--t-fast);
}
.footer__menu a:hover,
.footer__contacts a:hover { color: var(--color-accent); }
.footer__contacts span { color: var(--color-text); }

.footer__callback,
.callback-btn {
    margin-top: 22px;
    height: 48px;
    width: 220px;
    max-width: 100%;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background var(--t-fast);
}
.callback-btn:hover { background: var(--color-accent-hover); }
.callback-btn:active { background: var(--color-accent-active); }

/* socials */
.socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.socials__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #262626;
    color: var(--color-text);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.socials__link:hover {
    background: var(--color-accent);
    color: var(--color-white);
}
.socials__link:active { transform: scale(.94); }

/* footer bottom */
.footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 70px;
    padding-block: 18px;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.pay {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--color-text);
}
.pay__item {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    opacity: .85;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    justify-self: center;
    flex-wrap: wrap;
}
.footer__legal a {
    color: var(--color-text);
    transition: color var(--t-fast);
}
.footer__legal a:hover { color: var(--color-accent); }

.footer__copyright {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: var(--color-faint);
    padding-bottom: 6px;
}

/* ============================================================
   WORDPRESS EDITOR CONTENT
   ============================================================ */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { margin-inline: calc(-1 * var(--container-pad)); max-width: none; }
.alignfull  { margin-inline: calc(50% - 50vw); max-width: 100vw; }

.wp-caption {
    max-width: 100%;
    background: var(--color-card);
    padding: 12px;
    border-radius: var(--radius-inner);
}
.wp-caption-text {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 8px;
    text-align: center;
}

.entry-content > * + * { margin-top: 18px; }
.entry-content h2 { font-size: 32px; margin-top: 32px; }
.entry-content h3 { font-size: 24px; margin-top: 24px; }
.entry-content p  { font-size: 16px; color: var(--color-text-2); }
.entry-content a  { color: var(--color-accent); text-decoration: underline; }
.entry-content ul,
.entry-content ol {
    padding-left: 22px;
    color: var(--color-text-2);
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 8px; }
.entry-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 12px 20px;
    background: var(--color-card);
    border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
    font-style: italic;
    color: var(--color-white);
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--color-card);
    border-radius: var(--radius-inner);
    overflow: hidden;
}
.entry-content th,
.entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.entry-content th { background: #222; color: var(--color-white); }

.wp-block-image img { border-radius: var(--radius-inner); }
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background var(--t-fast);
}
.wp-block-button__link:hover { background: var(--color-accent-hover); }


/* ============================================================
   RESPONSIVE
   Breakpoints: 1440 / 1280 / 1024 / 768 / 480 / 390 / 375
   ============================================================ */

/* -------- ≤ 1440px -------- */
@media (max-width: 1440px) {
    .header__inner { gap: 20px; }
    .header__search { flex-basis: 420px; max-width: 420px; }
}

/* -------- ≤ 1280px -------- */
@media (max-width: 1280px) {
    :root { --container-pad: 24px; }
    .header__inner { gap: 16px; }
    .header__search { flex-basis: 320px; max-width: 320px; }
    .menu { gap: 20px; }
    .menu .menu-item > a { font-size: 13px; }
    .footer__top { gap: 32px; }
}

/* -------- ≤ 1024px -------- */
@media (max-width: 1024px) {
    :root { --header-h: 84px; --nav-h: 56px; }

    .header__inner {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas:
            "logo phone icons burger"
            "search search search search";
        gap: 14px 16px;
        padding-block: 14px;
    }
    .header__logo { grid-area: logo; }
    .header__phone { grid-area: phone; justify-self: end; text-align: right; }
    .header__icons { grid-area: icons; }
    .header__burger { grid-area: burger; display: flex; }
    .header__search { grid-area: search; max-width: none; flex-basis: auto; }

    /* nav -> off-canvas */
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(360px, 86vw);
        background: var(--color-header);
        border-left: 1px solid var(--color-border);
        transform: translateX(100%);
        transition: transform var(--t);
        z-index: 90;
        overflow-y: auto;
        padding-top: 24px;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        min-height: auto;
        padding-block: 16px 32px;
    }
    .catalog-btn { width: 100%; justify-content: center; }
    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .menu .menu-item > a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--color-border-soft);
    }

    /* backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .6);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t);
        z-index: 80;
    }
    .nav-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
    body.is-nav-open { overflow: hidden; }

    /* contacts: stack */
    .contacts__inner {
        grid-template-columns: 1fr;
    }
    .map { min-height: 420px; }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    /* cart: summary под списком */
    .cart__inner {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
        top: auto;
    }
}

/* -------- ≤ 768px -------- */
@media (max-width: 768px) {
    :root { --container-pad: 16px; }

    .logo__desc { display: none; }
    .logo__title { font-size: 20px; }

    .header__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo icons burger"
            "search search search"
            "phone phone phone";
        gap: 10px 12px;
    }
    .header__phone { justify-self: start; text-align: left; }
    .phone__number { font-size: 16px; }
    .icons { gap: 14px; }
    .search { height: 44px; }
    .search__button { width: 52px; }

    .breadcrumbs { padding-block: 32px 0; }
    .page-title { padding-block: 20px 40px; }
    .page-title__heading { font-size: clamp(38px, 8vw, 54px); }
    .page-title__desc { font-size: 16px; margin-top: 16px; }

    .contacts { padding-block: 0 60px; }
    .contacts__list { grid-template-columns: 1fr 1fr; gap: 16px; }
    .contact-card { padding: 22px; min-height: 0; }
    .contact-card__title { font-size: 26px; margin-bottom: 14px; }
    .contact-card__text { font-size: 16px; }

    .map { min-height: 320px; }
    .map__image { min-height: 320px; }

    /* cart: 2 колонки (медиа + инфо), side под ними */
    .cart { padding-block: 0 40px; }
    .cart-item {
        grid-template-columns: 140px 1fr;
        gap: 18px;
        padding: 18px 0;
    }
    .cart-item__media { width: 140px; height: 140px; }
    .cart-item__title { font-size: 14px; }
    .cart-item__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding-top: 14px;
        border-top: 1px solid var(--color-border-soft);
    }
    .cart-item__price { font-size: 17px; }

    .cart-summary { padding: 22px; }
    .cart-summary__title { font-size: 22px; }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 40px;
    }
    .footer__bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
        padding-block: 22px;
    }
    .pay, .footer__legal { justify-content: center; }
}

/* -------- ≤ 480px -------- */
@media (max-width: 480px) {
    .contacts__list { grid-template-columns: 1fr; }
    .contact-card { padding: 24px; }
    .map { min-height: 260px; }
    .map__image { min-height: 260px; }

    /* cart: одна колонка */
    .cart-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 0;
    }
    .cart-item__media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 220px;
        margin: 0 auto;
    }
    .cart-item__info { padding-top: 0; }
    .cart-item__actions { gap: 14px; }
    .cart-item__action span { display: none; }
    .cart-item__side { padding-top: 12px; }
}

/* -------- ≤ 390px -------- */
@media (max-width: 390px) {
    :root { --container-pad: 14px; }
    .phone__number { font-size: 15px; }
    .phone__hours { font-size: 11px; }
    .icons { gap: 12px; }
    .page-title__heading { font-size: 40px; }
    .contact-card__title { font-size: 24px; }
}

/* -------- ≤ 375px -------- */
@media (max-width: 375px) {
    .logo__mark { width: 34px; height: 34px; }
    .logo__title { font-size: 18px; }
    .search__input { font-size: 13px; padding: 0 14px; }
    .callback-btn { width: 100%; }
    .footer__legal { gap: 14px; font-size: 12px; }
}

/* ============================================================
   PROFILE PAGE — редактирование данных пользователя
   ============================================================ */

.profile {
    /* большое пустое пространство до футера (≈110px по ТЗ) */
    padding-block: 0 110px;
}

.profile__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* ----- левая колонка (фикс 430×250, sidebar с меню) ----- */
.profile__sidebar {
    flex: 0 0 430px;
    width: 430px;
    min-height: 250px;
    /* фон/радиус/паддинги/цвет текста уже заданы в .account-card--nav */
}

/* ----- правая колонка (форма) ----- */
.profile__form {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 930px;
    display: flex;
    flex-direction: column;
}

/* reset для <fieldset> + <legend> */
.profile__group {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.profile__fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ----- поля ввода ----- */
.profile__field-wrap {
    display: block;
}

.profile__field {
    display: block;
    width: 100%;
    height: 62px;
    padding: 0 20px;
    background: #D9D9D9;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    border: 0;
    border-radius: 6px;
    outline: none;
    transition: box-shadow var(--t-fast), background var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.profile__field::placeholder {
    color: #6E6E6E;
    font-size: 16px;
    font-weight: 400;
    opacity: 1;
}

/* тонкая оранжевая рамка при фокусе — без glow и теней */
.profile__field:focus-visible {
    box-shadow: inset 0 0 0 1px var(--color-accent);
    outline: none;
    border-radius: 6px;
}

/* отключаем жёлтый автозаполнения Chrome поверх светлого фона */
.profile__field:-webkit-autofill {
    -webkit-text-fill-color: #222222;
    -webkit-box-shadow: inset 0 0 0 1000px #D9D9D9;
    box-shadow: inset 0 0 0 1000px #D9D9D9;
    transition: background-color 9999s ease-in-out 0s;
}

/* ----- секция "Изменение пароля" — большой воздух сверху ----- */
.profile__group--password {
    margin-top: 60px;
}

.profile__heading {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}

/* ----- кнопка "Сохранить" ----- */
.profile__actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}

.profile__submit {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 52px;
    padding: 0 24px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border: 0;
    border-radius: 26px;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}

.profile__submit:hover { background: var(--color-accent-hover); }
.profile__submit:active { transform: scale(.98); }
.profile__submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ============================================================
   PROFILE — RESPONSIVE
   ============================================================ */

/* ≤ 1440px: уменьшаем sidebar пропорционально контейнеру */
@media (max-width: 1440px) {
    .profile__sidebar { flex-basis: 400px; width: 400px; }
}

/* ≤ 1280px */
@media (max-width: 1280px) {
    .profile { padding-block: 0 90px; }
    .profile__inner { gap: 32px; }
    .profile__sidebar { flex-basis: 360px; width: 360px; }
}

/* ≤ 1024px: stack — sidebar над формой */
@media (max-width: 1024px) {
    .profile { padding-block: 0 72px; }
    .profile__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
    .profile__sidebar {
        flex: 0 0 auto;
        width: 100%;
        min-height: 220px;
    }
    .profile__form { max-width: 100%; }
    .profile__group--password { margin-top: 48px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .profile { padding-block: 0 56px; }
    .profile__inner { gap: 24px; }
    .profile__sidebar { min-height: 200px; }
    .profile__field { height: 56px; padding: 0 18px; font-size: 15px; }
    .profile__field::placeholder { font-size: 15px; }
    .profile__heading { font-size: 26px; margin-bottom: 16px; }
    .profile__group--password { margin-top: 40px; }
    .profile__actions { margin-top: 32px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
    .profile__submit { width: 100%; }
    .profile__actions { justify-content: stretch; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .profile__field { height: 52px; padding: 0 16px; font-size: 14px; }
    .profile__field::placeholder { font-size: 14px; }
    .profile__heading { font-size: 22px; }
}

/* ============================================================
   CHECKOUT PAGE — корзина / оформление заказа
   ============================================================ */

/* локальные токены страницы (не трогаем глобальные) */
.checkout,
.page-title--checkout,
.checkout-title {
    --checkout-bg: #070707;
    --checkout-card: #1B1B1B;
    --checkout-field: #D9D9D9;
    --checkout-field-text: #222222;
    --checkout-placeholder: #6E6E6E;
    --checkout-text: #FFFFFF;
    --checkout-text-2: #D9D9D9;
    --checkout-muted: #8A8A8A;
    --checkout-divider: #2A2A2A;
    --checkout-accent: #F36A06;
}

/* -------- Page title row: КОРЗИНА  +  3 товара -------- */
.page-title--checkout {
    padding-block: 28px 0;
}

.checkout-title {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.checkout-title__heading {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--checkout-text);
    text-transform: uppercase;
    letter-spacing: 0;
}

.checkout-title__count {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--checkout-text-2);
}

/* -------- Section wrapper -------- */
.checkout {
    padding-block: 36px 120px;
}

.checkout__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.checkout__main {
    min-width: 0;
    display: block;
}
/* ============================================================
   CART TABLE — список товаров
   ============================================================ */
.cart-table {
    display: block;
}

.cart-table__head {
    display: grid;
    grid-template-columns: 120px 1fr 140px 180px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--checkout-divider);
}

.cart-table__th {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: var(--checkout-muted);
    text-transform: none;
    letter-spacing: 0;
}
.cart-table__th--product { grid-column: 1 / span 2; }
.cart-table__th--qty     { grid-column: 3 / span 1; text-align: left; }
.cart-table__th--price   { grid-column: 4 / span 1; text-align: right; }

.cart-table__row {
    display: grid;
    grid-template-columns: 120px 1fr 140px 180px;
    align-items: center;
    min-height: 120px;
    padding-block: 18px;
    border-bottom: 1px solid var(--checkout-divider);
    column-gap: 0;
}

.cart-table__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--t-fast);
}
.cart-table__media:hover { transform: translateY(-1px); }

.cart-table__img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.cart-table__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding-right: 20px;
}

.cart-table__title {
    display: inline-block;
    color: var(--checkout-text);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    transition: color var(--t-fast);
}
.cart-table__title:hover { color: var(--checkout-accent); }

.cart-table__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-table__action {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--checkout-muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cart-table__action:hover,
.cart-table__action:focus-visible { color: var(--checkout-accent); }
.cart-table__action--fav { padding: 2px; }
.cart-table__action--fav svg { display: block; }

.cart-table__price {
    text-align: right;
    color: var(--checkout-text);
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
}

/* ============================================================
   QTY STEPPER — компактный 110×42
   ============================================================ */
.qty-stepper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    width: 110px;
    height: 42px;
    background: var(--checkout-bg);
    border: 1px solid var(--checkout-divider);
    border-radius: 6px;
    overflow: hidden;
}

.qty-stepper__btn {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--checkout-text);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.qty-stepper__btn:hover { background: rgba(255, 255, 255, .04); color: var(--checkout-accent); }
.qty-stepper__btn:active { background: rgba(255, 255, 255, .08); }

.qty-stepper__input {
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--checkout-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================================
   CHECKOUT SUMMARY — правая карточка 320px
   ============================================================ */
.checkout-summary {
    position: sticky;
    top: 24px;
    width: 320px;
    min-height: 270px;
    padding: 24px;
    background: var(--checkout-card);
    border-radius: 12px;
    color: var(--checkout-text);
    display: flex;
    flex-direction: column;
}

.checkout-summary__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.checkout-summary__head-label {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--checkout-text);
    line-height: 1;
}
.checkout-summary__head-value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--checkout-text);
    line-height: 1;
    white-space: nowrap;
}

/* «руб.» → «РУБ.» декоративно, не меняя контент */
.checkout-summary__cur {
    text-transform: uppercase;
    font-weight: inherit;
    color: inherit;
}

.checkout-summary__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}
.checkout-summary__label { color: var(--checkout-muted); }
.checkout-summary__value { color: var(--checkout-muted); font-weight: 500; }

.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--checkout-divider);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--checkout-text);
    line-height: 1;
}
.checkout-summary__total-label { color: var(--checkout-text); font-weight: 700; }
.checkout-summary__total-value { color: var(--checkout-text); font-weight: 700; white-space: nowrap; }

.checkout-summary__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 20px;
    background: var(--checkout-accent);
    color: var(--checkout-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    border: 0;
    border-radius: 26px;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}
.checkout-summary__button:hover  { background: #ff7a1c; }
.checkout-summary__button:active { transform: scale(.98); }
.checkout-summary__button:focus-visible {
    outline: 2px solid var(--checkout-accent);
    outline-offset: 3px;
}

/* ============================================================
   CHECKOUT SECTIONS — заголовки и отступы между секциями
   ============================================================ */
.checkout-section { padding: 0; }

.checkout-section--contacts { margin-top: 70px; }
.checkout-section--delivery { margin-top: 80px; }
.checkout-section--payment  { margin-top: 70px; }

.checkout-section__title {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: var(--checkout-text);
    text-transform: uppercase;
}

.checkout-section__subtitle {
    margin: 0 0 24px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--checkout-muted);
}

/* ============================================================
   CHECKOUT FORM — общие сетки и поля
   ============================================================ */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
}

.checkout-form__grid {
    display: grid;
    gap: 18px;
}
.checkout-form__grid--2       { grid-template-columns: 1fr 1fr; }
.checkout-form__grid--address { grid-template-columns: 2fr 1fr 1fr 1fr; }

.form-field {
    display: block;
    position: relative;
    min-width: 0;
}
.form-field--full { grid-column: 1 / -1; }

.form-field__input,
.form-field__textarea {
    display: block;
    width: 100%;
    background: var(--checkout-field);
    color: var(--checkout-field-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    border: 1px solid transparent;
    border-radius: 6px;
    outline: none;
    transition: border-color var(--t-fast), background var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-field__input {
    height: 62px;
    padding: 0 20px;
}

.form-field__textarea {
    min-height: 140px;
    height: 140px;
    padding: 20px;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
}

.form-field__input::placeholder,
.form-field__textarea::placeholder {
    color: var(--checkout-placeholder);
    font-size: 16px;
    font-weight: 400;
    opacity: 1;
}

.form-field__input:focus-visible,
.form-field__textarea:focus-visible,
.form-field__input:focus,
.form-field__textarea:focus {
    border-color: var(--checkout-accent);
    outline: none;
    box-shadow: none;
}

.form-field__input:-webkit-autofill,
.form-field__textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--checkout-field-text);
    -webkit-box-shadow: inset 0 0 0 1000px var(--checkout-field);
    box-shadow: inset 0 0 0 1000px var(--checkout-field);
    transition: background-color 9999s ease-in-out 0s;
}


/* ============================================================
   RADIO BUTTONS — кастомные (доставка / оплата)
   ============================================================ */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

/* скрываем нативный input, но оставляем доступным */
.radio__input {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    border: 0; overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.radio__mark {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 2px solid var(--checkout-accent);
    border-radius: 50%;
    background: transparent;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.radio__mark::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--checkout-accent);
    transform: scale(0);
    transition: transform var(--t-fast);
}

.radio__input:checked + .radio__mark::after { transform: scale(1); }

.radio__input:focus-visible + .radio__mark {
    outline: 2px solid var(--checkout-accent);
    outline-offset: 3px;
}

.radio:hover .radio__mark { border-color: var(--checkout-accent); }

.radio__text {
    display: inline-block;
    color: var(--checkout-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}
.radio__title {
    color: var(--checkout-text);
    font-weight: 700;
}
.radio__desc {
    color: var(--checkout-muted);
    font-weight: 400;
}


/* ============================================================
   CHECKOUT — RESPONSIVE
   ============================================================ */

/* ≤ 1440px */
@media (max-width: 1440px) {
    .checkout-title__heading { font-size: 56px; }
    .checkout-section__title { font-size: 48px; }
}

/* ≤ 1280px */
@media (max-width: 1280px) {
    .checkout__layout { gap: 32px; grid-template-columns: 1fr 300px; }
    .checkout-summary { width: 300px; }
    .checkout-title__heading { font-size: 48px; }
    .checkout-section__title { font-size: 42px; }
}

/* ≤ 1024px: summary под списком, форма ещё в 2 колонки */
@media (max-width: 1024px) {
    .checkout { padding-block: 28px 80px; }
    .checkout__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .checkout-summary {
        position: static;
        width: 100%;
        max-width: 480px;
    }
    .cart-table__head { grid-template-columns: 96px 1fr 120px 140px; }
    .cart-table__row  { grid-template-columns: 96px 1fr 120px 140px; min-height: auto; }
    .cart-table__media { width: 72px; height: 72px; }
    .cart-table__price { font-size: 20px; }
}

/* ≤ 768px: всё в одну колонку, таблица превращается в карточки */
@media (max-width: 768px) {
    .checkout { padding-block: 20px 56px; }

    .checkout-title { flex-wrap: wrap; gap: 12px; }
    .checkout-title__heading { font-size: 36px; }
    .checkout-title__count { font-size: 16px; }

    .checkout-section--contacts { margin-top: 48px; }
    .checkout-section--delivery { margin-top: 56px; }
    .checkout-section--payment  { margin-top: 48px; }
    .checkout-section__title { font-size: 32px; }
    .checkout-section__subtitle { font-size: 16px; margin-bottom: 18px; }

    /* таблица: шапку скрываем, строка становится карточкой */
    .cart-table__head { display: none; }
    .cart-table__row {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "media info"
            "qty   price";
        column-gap: 14px;
        row-gap: 14px;
        padding-block: 16px;
    }
    .cart-table__media { grid-area: media; width: 72px; height: 72px; }
    .cart-table__info  { grid-area: info; padding-right: 0; }
    .cart-table__qty   { grid-area: qty; }
    .cart-table__price { grid-area: price; text-align: right; font-size: 18px; align-self: center; }

    .cart-table__title { font-size: 16px; }
    .cart-table__action { font-size: 14px; }

    /* формы — в одну колонку */
    .checkout-form__grid--2,
    .checkout-form__grid--address {
        grid-template-columns: 1fr;
    }

    .form-field__input { height: 56px; padding: 0 16px; font-size: 15px; }
    .form-field__textarea { padding: 16px; min-height: 120px; height: 120px; }
    .form-field__input::placeholder,
    .form-field__textarea::placeholder { font-size: 15px; }

    .checkout-summary { padding: 20px; min-height: 0; }
    .checkout-summary__head-label { font-size: 20px; }
    .checkout-summary__head-value { font-size: 16px; }
    .checkout-summary__button { height: 48px; font-size: 15px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
    .checkout-section__title { font-size: 28px; }
    .checkout-summary { max-width: 100%; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .checkout-title__heading { font-size: 30px; }
    .cart-table__media { width: 64px; height: 64px; }
    .cart-table__row { grid-template-columns: 64px 1fr; }
    .form-field__input { height: 52px; padding: 0 14px; font-size: 14px; }
}

/* ≤ 375px */
@media (max-width: 375px) {
    .qty-stepper { width: 100px; height: 38px; }
    .qty-stepper__btn { font-size: 16px; }
}


/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}



/* ============================================================
   ARTICLE PAGE — детальная страница статьи / новости
   ============================================================ */

/* локальные токены страницы (глобальные не трогаем) */
.article,
.article-decor {
    --art-bg:       #070707;
    --art-text:     #FFFFFF;
    --art-text-2:   #D5D5D5;
    --art-muted:    #8A8A8A;
    --art-faint:    #AAAAAA;
    --art-divider:  #2A2A2A;
    --art-accent:   #F36A06;
    --art-img-w:    640px;
    --art-text-w:   720px;
    --art-gap:      56px;
}

/* ------------------------------------------------------------
   Декоративный фоновый паттерн (по бокам, за контентом).
   Стартует от центрального блока «Состояние трансмиссии»
   и тянется вниз до конца статьи. Чуть выпирает по углам.
   ------------------------------------------------------------ */
.article-decor {
    position: relative;     /* контекст для абсолютных SVG */
    width: 100%;
    height: 0;              /* не занимает место в потоке */
    z-index: 0;
    pointer-events: none;
    color: rgba(255, 255, 255, .035);
}
.article-decor__shape {
    position: absolute;
    top: 0;                 /* начинается ровно от своего места в потоке */
    width: 18vw;
    max-width: 320px;
    min-width: 180px;
    aspect-ratio: 1 / 2.6;  /* вытянутая высота — тянется вниз до конца статьи */
    height: auto;
}
.article-decor__shape--left  { left: -3vw; }
.article-decor__shape--right { right: -3vw; }

/* ------------------------------------------------------------
   ARTICLE — каркас
   ------------------------------------------------------------ */
.article {
    position: relative;
    z-index: 1;
    padding-block: 0 120px; /* до футера 120px */
    overflow: hidden;       /* обрезаем «хвост» декора */
    color: var(--art-text-2);
    font-family: var(--font-body);
}
.article__container {
    /* используем общий .container, тут только локальные правки */
}

/* ------------------------------------------------------------
   Header статьи (дата, заголовок, лид)
   ------------------------------------------------------------ */
.article__header {
    margin-top: 40px;           /* breadcrumb → дата: 40px */
    text-align: center;
}

.article__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: var(--art-muted);
}
.article__date-icon {
    flex: 0 0 auto;
    color: var(--art-muted);
}

.article__title {
    margin: 24px auto 0;        /* дата → заголовок: 24px */
    max-width: 820px;
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--art-text);
}

.article__lead {
    margin: 28px auto 0;        /* заголовок → лид: 28px */
    max-width: var(--art-text-w);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: var(--art-text-2);
}

/* ------------------------------------------------------------
   Блоки статьи
   ------------------------------------------------------------ */
.article__block {
    margin-top: 90px;           /* лид → блок: 90px; между блоками: 90px */
}
.article__block + .article__block {
    margin-top: 90px;
}

/* split: текст + изображение справа */
.article__block--split {
    display: grid;
    grid-template-columns: 1fr var(--art-img-w);
    gap: var(--art-gap);
    align-items: center;        /* текст центрируется по высоте картинки */
}

/* текстовая колонка split — flex-column, центрируется вертикально */
.article__block--split .article__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

/* центрированный блок */
.article__block--center {
    max-width: var(--art-text-w);
    margin-inline: auto;
    text-align: center;
}

/* ------------------------------------------------------------
   Типографика статьи
   ------------------------------------------------------------ */
.article__text > * + *,
.article__block--center > * + * {
    margin-top: 18px;
}
.article__text .article__h2 + .article__p,
.article__block--center .article__h2 + .article__p {
    margin-top: 12px;
}
.article__text .article__p + .article__h2,
.article__block--center .article__p + .article__h2 {
    margin-top: 26px;
}

.article__h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--art-text);
    letter-spacing: 0;
}

.article__p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--art-text-2);
}

/* ------------------------------------------------------------
   Изображения статьи (крупнее — 640×460)
   ------------------------------------------------------------ */
.article__media {
    margin: 0;
    width: var(--art-img-w);
    aspect-ratio: 640 / 460;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}
.article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------
   Навигация между статьями
   ------------------------------------------------------------ */
.article__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 80px;           /* до навигации: 80px */
    padding-top: 30px;          /* отступ сверху ~30px от линии */
    border-top: 1px solid var(--art-divider);
}
.article__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--art-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: color var(--t-fast);
}
.article__nav-link:hover,
.article__nav-link:focus-visible { color: var(--art-accent); }
.article__nav-link:active        { color: var(--art-text-2); }
.article__nav-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform var(--t-fast);
}
.article__nav-link--prev:hover .article__nav-arrow { transform: translateX(-3px); }
.article__nav-link--next:hover .article__nav-arrow { transform: translateX(3px); }


/* ============================================================
   ARTICLE PAGE — RESPONSIVE
   ============================================================ */

/* 1440px и ниже — сужаем картинку, чтобы не давить на текст */
@media (max-width: 1440px) {
    .article { --art-img-w: 520px; --art-gap: 56px; }
    .article__title { font-size: 60px; }
}

/* 1280px — компактный desktop */
@media (max-width: 1280px) {
    .article { --art-img-w: 460px; --art-gap: 48px; }
    .article__title { font-size: 54px; max-width: 820px; }
    .article__lead  { font-size: 19px; line-height: 30px; }
    .article__h2    { font-size: 30px; }
}

/* 1024px — одна колонка: картинка уходит под текст */
@media (max-width: 1024px) {
    .article { padding-block: 0 90px; }
    .article__block--split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .article__media {
        width: 100%;
        max-width: var(--art-text-w);
        margin-inline: auto;
    }
    .article__title { font-size: 48px; max-width: 720px; }
    .article__h2    { font-size: 28px; }
}

/* 768px — tablet */
@media (max-width: 768px) {
    .article { padding-block: 0 72px; }
    .article__header     { margin-top: 32px; }
    .article__title      { font-size: 38px; max-width: 100%; }
    .article__lead       { margin-top: 22px; font-size: 17px; line-height: 28px; }
    .article__block      { margin-top: 64px; }
    .article__block + .article__block { margin-top: 64px; }
    .article__h2         { font-size: 24px; }
    .article__p          { font-size: 16px; line-height: 1.65; }
    .article__nav        { margin-top: 56px; padding-top: 24px; }
    .article__nav-link   { font-size: 15px; }
    .article-decor__shape { width: 60vw; opacity: .8; }
}

/* 480px — крупный мобильный */
@media (max-width: 480px) {
    .article { padding-block: 0 56px; }
    .article__header     { margin-top: 24px; }
    .article__title      { font-size: 30px; line-height: 1.15; }
    .article__lead       { margin-top: 18px; font-size: 15px; line-height: 24px; }
    .article__block      { margin-top: 48px; }
    .article__block + .article__block { margin-top: 48px; }
    .article__h2         { font-size: 22px; }
    .article__p          { font-size: 15px; }
    .article__media      { border-radius: 8px; }
    .article__nav {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 44px;
    }
    .article__nav-link--prev { justify-content: flex-start; }
    .article__nav-link--next { justify-content: flex-end; }
}

/* 390px / 375px — узкие мобильные */
@media (max-width: 390px) {
    .article__title { font-size: 26px; }
    .article__h2    { font-size: 20px; }
    .article__date  { font-size: 13px; }
    .article-decor  { display: none; } /* убираем декор на самом узком */
}


/* ============================================================
   ABOUT PAGE
   Изолированный namespace .about-page — токены и стили
   действуют только в рамках страницы «О нас».
   ============================================================ */
.about-page {
    --ap-bg:        #070707;
    --ap-card:      #1B1B1B;
    --ap-text:      #FFFFFF;
    --ap-text-2:    #BFBFBF;
    --ap-text-3:    #E3E3E3;
    --ap-muted:     #8A8A8A;
    --ap-border:    #2A2A2A;
    --ap-accent:    #F36A06;
    --ap-accent-h:  #ff7a1a;
    --ap-accent-a:  #d85b00;

    --ap-radius-card: 12px;
    --ap-radius-cta:  14px;
    --ap-radius-btn:  28px;
    --ap-radius-img:  10px;

    --ap-container: 1540px;
    --ap-container-pad: 30px;

    background: var(--ap-bg);
    color: var(--ap-text);
}

/* контейнер страницы — переопределяем только в рамках .about-page,
   чтобы соответствовать макету (1540px / 30px) */
.about-page .container {
    max-width: var(--ap-container);
    padding-inline: var(--ap-container-pad);
}

.about-page .main.about {
    position: relative;
    background: var(--ap-bg);
    overflow: hidden; /* обрезаем декоративный паттерн */
}

/* ============================================================
   ABOUT — HERO
   ============================================================ */
.about-hero {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    isolation: isolate;
}
.about-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: -1;
    pointer-events: none;
}
.about-hero__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

/* breadcrumbs внутри hero */
.about-breadcrumbs {
    margin: 0 auto;
}
.about-breadcrumbs__list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #C0C0C0;
}
.about-breadcrumbs__link {
    color: #C0C0C0;
    transition: color var(--t-fast);
}
.about-breadcrumbs__link:hover,
.about-breadcrumbs__link:focus-visible { color: var(--ap-accent); }
.about-breadcrumbs__sep { color: var(--ap-muted); }
.about-breadcrumbs__item--current { color: var(--ap-text); }

/* breadcrumb → заголовок: 60px */
.about-hero__title {
    margin: 60px 0 0;
    font-family: var(--font-heading, inherit);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--ap-text);
    letter-spacing: 0;
}

.about-hero__subtitle {
    margin: 24px 0 0;
    font-family: var(--font-heading, inherit);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ap-accent);
}

.about-hero__desc {
    margin: 28px auto 0;
    max-width: 760px;
    font-size: 22px;
    line-height: 1.55;
    color: var(--ap-text-3);
}


/* ============================================================
   ABOUT — DECOR (фирменное изображение по 4 углам страницы)
   Картинки слегка выглядывают из-за краёв, обесцвечены и
   приглушены, чтобы выделяться на чёрном фоне как тонкий
   фирменный паттерн. Расположены на уровне <main>, покрывают
   всю страницу от Hero до Footer.
   ============================================================ */
.about-page .main.about { position: relative; }

.about-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.about-decor__shape {
    position: absolute;
    width: 520px;
    height: auto;
    opacity: .14;
    filter: grayscale(1) brightness(1.4) contrast(.85);
    mix-blend-mode: screen;
    user-select: none;
}
/* верх-лево: выглядывает за левый и верхний край */
.about-decor__shape--tl {
    top: -160px;
    left: -180px;
}
/* верх-право: зеркально */
.about-decor__shape--tr {
    top: -160px;
    right: -180px;
    transform: scaleX(-1);
}
/* низ-лево */
.about-decor__shape--bl {
    bottom: -180px;
    left: -180px;
    transform: scaleY(-1);
}
/* низ-право */
.about-decor__shape--br {
    bottom: -180px;
    right: -180px;
    transform: scale(-1, -1);
}

/* контент над декором */
.about-hero,
.about-advantages,
.about-who,
.about-cta { position: relative; z-index: 1; }

/* ============================================================
   ABOUT — ADVANTAGES
   ============================================================ */
.about-advantages {
    position: relative;
    padding-block: 50px 0; /* Hero → карточки: 50px */
    z-index: 1;
}
.about-advantages .container { position: relative; z-index: 2; }

.about-advantages__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.advantage-card {
    min-height: 170px;
    background: var(--ap-card);
    border-radius: var(--ap-radius-card);
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.advantage-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--ap-text);
}
.advantage-card__title {
    margin: 0;
    font-family: var(--font-heading, inherit);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ap-text);
}
.advantage-card__text {
    margin: -4px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ap-muted);
}

/* ============================================================
   ABOUT — BUTTONS
   ============================================================ */
.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    padding: 0 32px;
    background: var(--ap-accent);
    color: var(--ap-text);
    border-radius: var(--ap-radius-btn);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: background var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}
.about-btn:hover  { background: var(--ap-accent-h); }
.about-btn:focus-visible {
    outline: 2px solid var(--ap-text);
    outline-offset: 3px;
}
.about-btn:active { background: var(--ap-accent-a); transform: translateY(1px); }
.about-btn__arrow { flex: 0 0 auto; }

.about-who__btn { min-width: 220px; }
.about-cta__btn { min-width: 210px; }

/* ============================================================
   ABOUT — WHO WE ARE
   ============================================================ */
.about-who {
    position: relative;
    padding-block: 100px 0; /* карточки → "Кто мы": 100px */
    z-index: 1;
}
.about-who__inner {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-who__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.about-who__title {
    margin: 0;
    font-family: var(--font-heading, inherit);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--ap-text);
    letter-spacing: 0;
}
.about-who__text {
    margin-top: 32px;
}
.about-who__text > p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: var(--ap-text-2);
}
.about-who__text > p + p { margin-top: 18px; }

.about-who__btn { margin-top: 40px; }

.about-who__media {
    width: 560px;
    aspect-ratio: 560 / 420;
    border-radius: var(--ap-radius-img);
    overflow: hidden;
}
.about-who__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   ABOUT — CTA
   ============================================================ */
.about-cta {
    position: relative;
    padding-block: 120px 110px; /* "Кто мы" → CTA: 120px; CTA → footer: 110px */
    z-index: 1;
}
.about-cta__box {
    position: relative;
    width: 100%;
    min-height: 430px;
    border-radius: var(--ap-radius-cta);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}
.about-cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.about-cta__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 7, .85) 0%,
            rgba(7, 7, 7, .55) 45%,
            rgba(7, 7, 7, .15) 100%
        );
    z-index: -1;
    pointer-events: none;
}
.about-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 640px;
    padding: 60px 70px;
}
.about-cta__title {
    margin: 0;
    font-family: var(--font-heading, inherit);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--ap-text);
    letter-spacing: 0;
}
.about-cta__desc {
    margin: 28px 0 0;
    max-width: 500px;
    font-size: 26px;
    line-height: 1.45;
    color: var(--ap-text-3);
}
.about-cta__btn { margin-top: 36px; }


/* ============================================================
   ABOUT PAGE — RESPONSIVE
   Breakpoints: 1440 / 1280 / 1024 / 768 / 480 / 390 / 375
   ============================================================ */

/* ≤ 1440 */
@media (max-width: 1440px) {
    .about-page .about-hero__title    { font-size: 64px; }
    .about-page .about-hero__subtitle { font-size: 36px; }
    .about-page .about-hero__desc     { font-size: 20px; }

    .about-page .about-who__inner     { grid-template-columns: 1fr 500px; gap: 56px; }
    .about-page .about-who__media     { width: 500px; }
    .about-page .about-who__title,
    .about-page .about-cta__title     { font-size: 56px; }
    .about-page .about-cta__content   { padding: 56px 60px; }
    .about-page .about-cta__desc      { font-size: 24px; }
}

/* ≤ 1280 */
@media (max-width: 1280px) {
    .about-page { --ap-container-pad: 24px; }

    .about-hero                          { height: 560px; }
    .about-page .about-hero__title       { font-size: 56px; }
    .about-page .about-hero__subtitle    { font-size: 30px; }
    .about-page .about-hero__desc        { font-size: 18px; max-width: 680px; }

    .advantage-card                      { padding: 30px; min-height: 160px; }
    .advantage-card__title               { font-size: 26px; }

    .about-page .about-who__inner        { grid-template-columns: 1fr 440px; gap: 48px; }
    .about-page .about-who__media        { width: 440px; }
    .about-page .about-who__title,
    .about-page .about-cta__title        { font-size: 48px; }
    .about-page .about-who__text > p     { font-size: 17px; line-height: 1.7; }

    .about-cta__box                      { min-height: 380px; }
    .about-page .about-cta__content      { padding: 48px 50px; max-width: 560px; }
    .about-page .about-cta__desc         { font-size: 22px; }

    .about-decor__shape                  { width: 420px; }
    .about-decor__shape--tl,
    .about-decor__shape--tr              { top: -120px; }
    .about-decor__shape--bl,
    .about-decor__shape--br              { bottom: -140px; }
    .about-decor__shape--tl,
    .about-decor__shape--bl              { left: -140px; }
    .about-decor__shape--tr,
    .about-decor__shape--br              { right: -140px; }
}

/* ≤ 1024 */
@media (max-width: 1024px) {
    .about-hero                          { height: 480px; }
    .about-hero__inner                   { padding-top: 32px; }
    .about-page .about-hero__title       { margin-top: 44px; font-size: 48px; }
    .about-page .about-hero__subtitle    { font-size: 26px; margin-top: 18px; }
    .about-page .about-hero__desc        { font-size: 17px; margin-top: 22px; max-width: 560px; }

    .about-advantages                    { padding-block: 40px 0; }
    .about-advantages__list              { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .advantage-card                      { padding: 24px; min-height: 150px; gap: 14px; }
    .advantage-card__title               { font-size: 22px; }
    .advantage-card__text                { font-size: 15px; }

    .about-who                           { padding-block: 80px 0; }
    .about-page .about-who__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-page .about-who__media {
        width: 100%;
        max-width: 720px;
        aspect-ratio: 16 / 10;
        margin: 0 auto;
        order: -1;
    }
    .about-page .about-who__title,
    .about-page .about-cta__title        { font-size: 40px; }

    .about-cta                           { padding-block: 90px 80px; }
    .about-cta__box                      { min-height: 340px; }
    .about-page .about-cta__content      { padding: 40px 40px; max-width: 520px; }
    .about-page .about-cta__desc         { font-size: 20px; }
    .about-cta__overlay {
        background: linear-gradient(90deg, rgba(7,7,7,.85) 0%, rgba(7,7,7,.55) 60%, rgba(7,7,7,.25) 100%);
    }
}


/* ≤ 768 — tablet */
@media (max-width: 768px) {
    .about-hero                          { height: 420px; }
    .about-hero__inner                   { padding-top: 28px; }
    .about-breadcrumbs__list             { font-size: 13px; gap: 10px; }
    .about-page .about-hero__title       { margin-top: 36px; font-size: 38px; }
    .about-page .about-hero__subtitle    { font-size: 22px; margin-top: 14px; }
    .about-page .about-hero__subtitle br { display: none; }
    .about-page .about-hero__desc        { font-size: 16px; margin-top: 18px; }

    .about-advantages                    { padding-block: 36px 0; }
    .about-advantages__list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .advantage-card                      { min-height: 0; padding: 24px; gap: 12px; }
    .advantage-card__title               { font-size: 22px; }

    .about-who                           { padding-block: 64px 0; }
    .about-page .about-who__title        { font-size: 34px; }
    .about-page .about-who__text         { margin-top: 22px; }
    .about-page .about-who__text > p     { font-size: 16px; line-height: 1.7; }
    .about-page .about-who__btn          { margin-top: 28px; width: 100%; min-width: 0; }

    .about-cta                           { padding-block: 72px 64px; }
    .about-cta__box                      { min-height: 320px; }
    .about-page .about-cta__title        { font-size: 32px; }
    .about-page .about-cta__desc         { font-size: 18px; margin-top: 18px; }
    .about-page .about-cta__content      { padding: 36px 28px; }
    .about-page .about-cta__btn          { margin-top: 28px; width: 100%; min-width: 0; }

    .about-decor__shape                  { width: 320px; opacity: .1; }
    .about-decor__shape--tl,
    .about-decor__shape--tr              { top: -100px; }
    .about-decor__shape--bl,
    .about-decor__shape--br              { bottom: -100px; }
    .about-decor__shape--tl,
    .about-decor__shape--bl              { left: -120px; }
    .about-decor__shape--tr,
    .about-decor__shape--br              { right: -120px; }
}

/* ≤ 480 */
@media (max-width: 480px) {
    .about-page { --ap-container-pad: 16px; }

    .about-hero                          { height: 380px; }
    .about-page .about-hero__title       { font-size: 32px; margin-top: 28px; }
    .about-page .about-hero__subtitle    { font-size: 18px; }
    .about-page .about-hero__desc        { font-size: 15px; }

    .advantage-card                      { padding: 20px; }
    .advantage-card__title               { font-size: 20px; }
    .advantage-card__text                { font-size: 14px; }

    .about-who                           { padding-block: 48px 0; }
    .about-page .about-who__title        { font-size: 28px; }
    .about-page .about-who__text > p     { font-size: 15px; }

    .about-cta                           { padding-block: 56px 48px; }
    .about-cta__box                      { min-height: 280px; border-radius: 10px; }
    .about-page .about-cta__title        { font-size: 26px; }
    .about-page .about-cta__desc         { font-size: 16px; }
    .about-page .about-cta__content      { padding: 28px 20px; }

    .about-btn                           { height: 52px; font-size: 14px; padding: 0 24px; }
}

/* ≤ 390 */
@media (max-width: 390px) {
    .about-hero                          { height: 360px; }
    .about-page .about-hero__title       { font-size: 28px; }
    .about-page .about-hero__subtitle    { font-size: 16px; }
    .advantage-card__title               { font-size: 19px; }
    .about-page .about-who__title        { font-size: 26px; }
    .about-page .about-cta__title        { font-size: 24px; }
    .about-decor                         { display: none; }
}


/* ============================================================
   LOGIN PAGE — страница «Вход»
   ============================================================ */
.login {
    padding-block: 10px 110px;
}

.login__inner {
    /* центрируем форму по странице */
    display: flex;
    justify-content: center;
}

.login__form {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ----- поле + лейбл сверху ----- */
.login__field-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login__label {
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 400;
}

/* серое заливочное поле — единый стиль с .profile__field */
.login__field {
    display: block;
    width: 100%;
    height: 62px;
    padding: 0 20px;
    background: #D9D9D9;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    border: 0;
    border-radius: 6px;
    outline: none;
    transition: box-shadow var(--t-fast), background var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.login__field::placeholder {
    color: #6E6E6E;
    font-size: 16px;
    opacity: 1;
}

.login__field:hover {
    background: #E2E2E2;
}

.login__field:focus-visible {
    box-shadow: inset 0 0 0 1px var(--color-accent);
    outline: none;
    border-radius: 6px;
}

/* отключаем жёлтый автозаполнения Chrome поверх светлого фона */
.login__field:-webkit-autofill {
    -webkit-text-fill-color: #222222;
    -webkit-box-shadow: inset 0 0 0 1000px #D9D9D9;
    box-shadow: inset 0 0 0 1000px #D9D9D9;
    transition: background-color 9999s ease-in-out 0s;
}

/* ----- submit-кнопка ----- */
.login__submit {
    margin-top: 18px;
    align-self: center;
    min-width: 300px;
    height: 56px;
    padding: 0 36px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    letter-spacing: .01em;
    border: 0;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}


.login__submit:hover { background: var(--color-accent-hover); }
.login__submit:active { background: var(--color-accent-active); transform: scale(.98); }
.login__submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ----- ссылки под формой ----- */
.login__links {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.login__link {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
    transition: color var(--t-fast);
}

.login__link--register {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.login__link:hover { color: var(--color-accent); }
.login__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   LOGIN — RESPONSIVE
   ============================================================ */

/* ≤ 1280px */
@media (max-width: 1280px) {
    .login { padding-block: 0 90px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .login { padding-block: 0 60px; }
    .login__form { gap: 18px; }
    .login__field { height: 56px; font-size: 15px; }
    .login__submit { width: 100%; min-width: 0; height: 52px; }
    .login__links { margin-top: 10px; gap: 16px; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .login__field { height: 52px; padding: 0 16px; font-size: 14px; }
    .login__field::placeholder { font-size: 14px; }
    .login__label { font-size: 13px; }
    .login__submit { height: 48px; font-size: 14px; }
    .login__link { font-size: 13px; }
}

/* ≤ 375px */
@media (max-width: 375px) {
    .login { padding-block: 0 48px; }
    .login__form { gap: 16px; }
}

/* ============================================================
   REGISTER PAGE — страница «Регистрация»
   Переиспользует визуальные стили .login (DRY).
   ============================================================ */

/* ----- внешний контейнер секции ----- */
.register {
    padding-block: 10px 110px;
}

.register__inner {
    /* центрируем форму по странице */
    display: flex;
    justify-content: center;
}

/* ----- форма ----- */
.register__form {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ----- поле + лейбл (наследует визуал от .login) ----- */
.register__field-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register__label,
.login__label {
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 400;
}

/* серое заливочное поле — единый стиль с .login__field */
.register__field {
    display: block;
    width: 100%;
    height: 62px;
    padding: 0 20px;
    background: #D9D9D9;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    border: 0;
    border-radius: 6px;
    outline: none;
    transition: box-shadow var(--t-fast), background var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.register__field::placeholder {
    color: #6E6E6E;
    font-size: 16px;
    opacity: 1;
}

.register__field:hover {
    background: #E2E2E2;
}

.register__field:focus-visible {
    box-shadow: inset 0 0 0 1px var(--color-accent);
    outline: none;
    border-radius: 6px;
}

/* отключаем жёлтый автозаполнения Chrome поверх светлого фона */
.register__field:-webkit-autofill {
    -webkit-text-fill-color: #222222;
    -webkit-box-shadow: inset 0 0 0 1000px #D9D9D9;
    box-shadow: inset 0 0 0 1000px #D9D9D9;
    transition: background-color 9999s ease-in-out 0s;
}

/* ----- submit-кнопка ----- */
.register__submit {
    margin-top: 18px;
    align-self: center;
    min-width: 300px;
    height: 56px;
    padding: 0 36px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    letter-spacing: .01em;
    border: 0;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.register__submit:hover  { background: var(--color-accent-hover); }
.register__submit:active { background: var(--color-accent-active); transform: scale(.98); }
.register__submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ----- строка соглашения под формой ----- */
.register__agreement {
    margin-top: 14px;
    text-align: center;
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.5;
}

.register__link {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--t-fast);
}

.register__link:hover  { color: var(--color-accent); }
.register__link:active { color: var(--color-accent-active); }
.register__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   REGISTER — RESPONSIVE
   ============================================================ */

/* ≤ 1280px */
@media (max-width: 1280px) {
    .register { padding-block: 0 90px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .register { padding-block: 0 60px; }
    .register__form { gap: 18px; }
    .register__field { height: 56px; font-size: 15px; }
    .register__submit { width: 100%; min-width: 0; height: 52px; }
    .register__agreement { margin-top: 10px; font-size: 12px; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .register__field { height: 52px; padding: 0 16px; font-size: 14px; }
    .register__field::placeholder { font-size: 14px; }
    .register__label { font-size: 13px; }
    .register__submit { height: 48px; font-size: 14px; }
    .register__agreement { font-size: 12px; }
}

/* ≤ 375px */
@media (max-width: 375px) {
    .register { padding-block: 0 48px; }
    .register__form { gap: 16px; }
}




/* ============================================================
   CATALOG PAGE — каталог мотозапчастей
   namespace: .catalog-page
   ============================================================ */

.catalog-page {
    --cat-card-bg: #161616;
    --cat-card-border: #2a2a2a;
    --cat-card-radius: 14px;
    --cat-muted: #9a9a9a;
    --cat-dot-green: #2ecc71;
    --cat-badge-bg: #ffffff;
    --cat-badge-color: #111111;
}

.catalog { position: relative; padding-block: 0 100px; }

.catalog > * { position: relative; z-index: 1; }

/* --- BREADCRUMBS --- */
.catalog-breadcrumbs { padding-block: 24px 8px; }
.catalog-breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--cat-muted);
}
.catalog-breadcrumbs__item { display: inline-flex; }
.catalog-breadcrumbs__link {
    color: var(--cat-muted);
    text-decoration: none;
    transition: color var(--t-fast, .2s);
}
.catalog-breadcrumbs__link:hover,
.catalog-breadcrumbs__link:focus-visible {
    color: var(--color-white);
    outline: none;
}
.catalog-breadcrumbs__sep { color: var(--cat-muted); user-select: none; }
.catalog-breadcrumbs__item--current { color: var(--color-white); }

/* --- PAGE TITLE --- */
.catalog-title { padding-block: 8px 32px; }
.catalog-title__heading {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--font-display, "Inter", sans-serif);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: .02em;
    color: var(--color-white);
}

/* --- SUBCATEGORIES (5 вертикальных плиток: фото сверху + подпись снизу) --- */
.subcats { padding-block: 0 44px; }
.subcats__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.subcats__item { display: flex; }

.subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    min-height: 220px;
    padding: 22px 16px 20px;
    background: #000000;
    border: 1px solid #3a3a3a;
    border-radius: var(--cat-card-radius);
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    transition: border-color var(--t, .2s), background-color var(--t, .2s), transform var(--t, .2s);
}
.subcat-card:hover,
.subcat-card:focus-visible {
    border-color: #5a5a5a;
    background: #000000;
    outline: none;
}
.subcat-card:active { transform: translateY(1px); }

.subcat-card__media {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}
.subcat-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.subcat-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-white);
}


/* --- CATALOG GRID: sidebar + main --- */
.catalog-grid { padding-block: 0 60px; }
.catalog-grid__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.catalog-grid__sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}
.catalog-grid__sidebar::-webkit-scrollbar { width: 6px; }
.catalog-grid__sidebar::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }

.catalog-grid__main { min-width: 0; }

/* --- FILTER GROUPS --- */
.filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter__group {
    background: var(--cat-card-bg);
    border: 1px solid var(--cat-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color var(--t, .2s);
}
.filter__group[open] { border-color: #3a3a3a; }

.filter__head {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    color: var(--color-white);
}
.filter__head::-webkit-details-marker { display: none; }
.filter__head:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }

.filter__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-white);
}

/* Шеврон "+" / "−" */
.filter__chevron {
    position: relative;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    display: inline-block;
}
.filter__chevron::before,
.filter__chevron::after {
    content: "";
    position: absolute;
    background: var(--color-white);
    border-radius: 1px;
}
.filter__chevron::before {
    left: 0; right: 0; top: 50%;
    height: 2px;
    transform: translateY(-50%);
}
.filter__chevron::after {
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    transform: translateX(-50%);
    transition: transform var(--t, .2s), opacity var(--t, .2s);
}
.filter__group[open] .filter__chevron::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}

.filter__body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--cat-card-border);
}

.filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ссылки в группе "Категория" */
.filter__link {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color var(--t-fast, .15s);
    display: inline-block;
}
.filter__link:hover,
.filter__link:focus-visible {
    color: var(--color-white);
    outline: none;
}
.filter__link--active {
    color: var(--color-accent);
    font-weight: 600;
}

/* Чекбоксы фильтра */
.filter__check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.3;
    transition: color var(--t-fast, .15s);
}
.filter__check:hover { color: var(--color-white); }
.filter__check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #555;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color var(--t-fast, .15s), background var(--t-fast, .15s);
}
.filter__check input[type="checkbox"]:hover { border-color: var(--color-white); }
.filter__check input[type="checkbox"]:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.filter__check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filter__check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Цена — два инпута в ряд */
.filter__price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.filter__price-field { display: block; }
.filter__price-field input {
    width: 100%;
    background: #0e0e0e;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--color-white);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--t, .2s);
    -moz-appearance: textfield;
}
.filter__price-field input::-webkit-outer-spin-button,
.filter__price-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.filter__price-field input::placeholder { color: #6a6a6a; }
.filter__price-field input:focus-visible {
    outline: none;
    border-color: var(--color-accent);
}


/* --- PRODUCTS GRID (3 в ряд × 4 ряда) --- */
.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.products__item { display: flex; }

/* --- PRODUCT CARD --- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: var(--cat-card-radius);
    padding: 16px;
    gap: 12px;
    transition: border-color var(--t, .2s), transform var(--t, .2s), box-shadow var(--t, .2s);
}
.product-card:hover {
    border-color: #d4d4d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* Оранжевый бейдж "В наличии" сверху слева */
.product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #ffffff;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: .01em;
}

/* Медиа-блок (картинка по центру) */
.product-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
}
.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform var(--t, .3s);
}
.product-card:hover .product-card__image { transform: scale(1.03); }

/* Цена крупно */
.product-card__price {
    margin: 0;
    font-family: var(--font-display, var(--font-body));
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    color: #000000;
}

/* Описание (3 строки, обрезка многоточием) */
.product-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    color: #000000;
    min-height: calc(1.35em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast, .15s);
}
.product-card__title a:hover,
.product-card__title a:focus-visible {
    color: var(--color-accent);
    outline: none;
}

/* Оранжевый кружок + "В наличии" */
.product-card__stock {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1;
    color: var(--color-accent);
}
.product-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex: 0 0 8px;
    display: inline-block;
}

/* Оранжевая кнопка "В корзину" во всю ширину */
.product-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: var(--color-accent);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background var(--t-fast, .15s), transform var(--t-fast, .15s);
    -webkit-appearance: none;
    appearance: none;
}
.product-card__btn:hover { background: var(--color-accent-hover, #ff7a1a); }
.product-card__btn:active { transform: translateY(1px); }
.product-card__btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* --- LOAD MORE --- */
.catalog-grid__loadmore {
    margin-top: 40px;
    display: block;
    width: 100%;
}
.loadmore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 36px;
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background var(--t-fast, .15s), color var(--t-fast, .15s), border-color var(--t-fast, .15s), transform var(--t-fast, .15s);
    -webkit-appearance: none;
    appearance: none;
}
.loadmore-btn:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}
.loadmore-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}
.loadmore-btn:active { transform: translateY(1px); }

/* ============================================================
   CATALOG — TOOLBAR (сортировка)
   ============================================================ */
.catalog-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cat-card-border, #1f1f1f);
}
.catalog-toolbar__label {
    font-family: var(--font-body);
    font-size: 14px;
    color: #9a9a9a;
}
.catalog-sort {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.catalog-sort__link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.2;
    color: #cfcfcf;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px dashed transparent;
    transition: color var(--t-fast, .15s), border-color var(--t-fast, .15s);
}
.catalog-sort__link:hover {
    color: var(--color-white);
    border-bottom-color: #3a3a3a;
}
.catalog-sort__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}
.catalog-sort__link--active,
.catalog-sort__link[aria-current="true"] {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ============================================================
   CATALOG — FILTER LINKS (категории-ссылки)
   ============================================================ */
.filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter__link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.3;
    color: #cfcfcf;
    text-decoration: none;
    transition: color var(--t-fast, .15s);
}
.filter__link:hover { color: var(--color-white); }
.filter__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.filter__link--active { color: var(--color-accent); }


/* ============================================================
   CATALOG — DOUBLE RANGE (price)
   ============================================================ */
.filter__range {
    position: relative;
    height: 28px;
    margin-top: 14px;
    --range-from: 0%;
    --range-to: 100%;
}
.filter__range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
}
.filter__range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--range-from);
    right: calc(100% - var(--range-to));
    background: var(--color-accent);
    border-radius: 2px;
}
/* Два range наложены поверх трека */
.filter__range-input {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.filter__range-input::-webkit-slider-runnable-track {
    background: transparent;
    height: 28px;
    border: 0;
}
.filter__range-input::-moz-range-track {
    background: transparent;
    height: 28px;
    border: 0;
}
.filter__range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    box-shadow: 0 2px 6px rgba(0,0,0,.45);
    cursor: pointer;
    margin-top: 0;
    transition: transform var(--t-fast, .15s), border-color var(--t-fast, .15s);
}
.filter__range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    box-shadow: 0 2px 6px rgba(0,0,0,.45);
    cursor: pointer;
}
.filter__range-input::-webkit-slider-thumb:hover { transform: scale(1.08); }
.filter__range-input::-moz-range-thumb:hover     { transform: scale(1.08); }
.filter__range-input:focus-visible::-webkit-slider-thumb {
    border-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255,107,0,.35);
}
.filter__range-input:focus-visible::-moz-range-thumb {
    border-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255,107,0,.35);
}

/* ============================================================
   CATALOG — MOBILE FILTERS TOGGLE + OFF-CANVAS HEAD/OVERLAY
   ============================================================ */
.catalog-grid__filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 18px;
    background: var(--cat-card-bg, #141414);
    color: var(--color-white);
    border: 1px solid var(--cat-card-border, #1f1f1f);
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--t-fast, .15s), background var(--t-fast, .15s);
}
.catalog-grid__filters-toggle:hover { border-color: var(--color-accent); }
.catalog-grid__filters-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.catalog-grid__sidebar-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cat-card-border, #1f1f1f);
}
.catalog-grid__sidebar-title {
    font-family: var(--font-display, var(--font-body));
    font-weight: 800;
    font-size: 20px;
    color: var(--color-white);
}
.catalog-grid__sidebar-close {
    background: transparent;
    border: 0;
    padding: 6px;
    color: var(--color-white);
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--t-fast, .15s);
}
.catalog-grid__sidebar-close:hover { background: #1c1c1c; }
.catalog-grid__sidebar-close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.catalog-grid__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--t, .25s);
}
.catalog-grid__overlay.is-visible {
    display: block;
    opacity: 1;
}


/* ============================================================
   CATALOG — RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
    .catalog-grid__inner {
        grid-template-columns: 240px 1fr;
        gap: 22px;
    }
    .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* Off-canvas сайдбар */
    .catalog-grid__filters-toggle { display: inline-flex; }

    .catalog-grid__inner {
        display: block;
    }

    .catalog-grid__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 90vw);
        max-height: none;
        height: 100%;
        background: #0e0e0e;
        z-index: 100;
        padding: 20px 18px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform var(--t, .3s);
        box-shadow: 8px 0 32px rgba(0,0,0,.5);
    }
    .catalog-grid__sidebar.is-open { transform: translateX(0); }

    .catalog-grid__sidebar-head { display: flex; }

    .catalog-grid__main { margin-top: 4px; }

    body.is-filters-open { overflow: hidden; }
}

@media (max-width: 768px) {
    .catalog-toolbar {
        gap: 8px 14px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }
    .catalog-toolbar__label { font-size: 13px; }
    .catalog-sort__link { font-size: 13px; }
}

@media (max-width: 560px) {
    .products {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .catalog-grid__loadmore { margin-top: 28px; }
    .loadmore-btn { min-width: 100%; width: 100%; }
}

@media (max-width: 390px) {
    .catalog-grid__filters-toggle {
        width: 100%;
        justify-content: center;
    }
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* --- SUBCATEGORIES: адаптив сетки 5 → 3 → 2 --- */
@media (max-width: 1024px) {
    .subcats__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .subcats__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .subcat-card { min-height: 200px; padding: 18px 12px 16px; }
    .subcat-card__media { width: 90px; height: 90px; }
    .subcat-card__title { font-size: 13px; }
}
@media (max-width: 390px) {
    .subcats__list { gap: 10px; }
    .subcat-card { min-height: 180px; }
    .subcat-card__media { width: 80px; height: 80px; }
}

/* --- LOAD MORE: всегда растягиваем овал на всю ширину сетки товаров --- */
@media (max-width: 560px) {
    .loadmore-btn { width: 100%; min-width: 0; }
}




/* ============================================================
   PARTNERS PAGE — страница «Партнёрам»
   Темный фон, белая типографика, оранжевые акценты
   Все стили scoped под .partners-page, БЭМ
   ============================================================ */

.partners-page {
    /* локальные токены под темный фон ТЗ (#090909) и оранжевый акцент */
    --partners-bg: #090909;
    --partners-card: #1A1A1A;
    --partners-text: #FFFFFF;
    --partners-text-muted: #A0A0A0;
    --partners-accent: var(--color-accent);
    --partners-accent-hover: var(--color-accent-hover);
    background: var(--partners-bg);
}

.partners-page .main { display: block; }

.partners-hero,
.partners-who,
.partners-terms,
.partners-steps,
.partners-cta {
    padding-block: 80px;
}

/* первый блок — поджимаем сверху, чтобы крошки не «уплывали» */
.partners-page .catalog-breadcrumbs + .partners-hero {
    padding-top: 32px;
}

/* единый заголовок секции */
.partners-section__title {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1.05;
    color: var(--partners-text);
    text-align: center;
    margin: 0 0 48px;
    text-transform: uppercase;
    letter-spacing: .01em;
}

/* -------- универсальная оранжевая кнопка-CTA со стрелкой -------- */
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: background var(--t-fast), transform var(--t-fast);
    border: 0;
    cursor: pointer;
}
.btn-accent:hover     { background: var(--color-accent-hover); color: #fff; }
.btn-accent:active    { transform: scale(.98); }
.btn-accent:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}
.btn-accent__arrow { flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.partners-hero__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding-block: 20px;
}
.partners-hero__title {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1;
    color: var(--partners-text);
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.partners-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.15;
    color: var(--partners-accent);
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.partners-hero__desc {
    max-width: 650px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--partners-text);
}
.partners-hero__btn {
    min-width: 200px;
}

/* ============================================================
   С КЕМ МЫ РАБОТАЕМ
   ============================================================ */
.partners-who__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.partners-who__item { display: block; }
.partners-who__card {
    background: var(--partners-card);
    border-radius: 12px;
    padding: 28px 28px 32px;
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--t-fast), background var(--t-fast);
}
.partners-who__card:hover {
    transform: translateY(-3px);
    background: #1f1f1f;
}
.partners-who__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(235, 89, 2, .12);
    color: var(--partners-accent);
    flex-shrink: 0;
}
.partners-who__title {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.1;
    color: var(--partners-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.partners-who__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--partners-text-muted);
    margin: 0;
}

/* ============================================================
   УСЛОВИЯ СОТРУДНИЧЕСТВА
   ============================================================ */
.partners-terms__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.partners-terms__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: var(--partners-text);
    font-size: 16px;
    line-height: 1.4;
}
.partners-terms__check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--partners-accent);
    color: #fff;
}
.partners-terms__text { flex: 1; }

/* ============================================================
   КАК НАЧАТЬ СОТРУДНИЧЕСТВО
   ============================================================ */
.partners-steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.partners-steps__item { display: block; }
.partners-steps__card {
    background: var(--partners-card);
    border-radius: 10px;
    padding: 24px 24px 26px;
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--t-fast), background var(--t-fast);
}
.partners-steps__card:hover {
    transform: translateY(-3px);
    background: #1f1f1f;
}
.partners-steps__num {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1;
    color: var(--partners-accent);
    letter-spacing: .02em;
}
.partners-steps__title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.1;
    color: var(--partners-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.partners-steps__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--partners-text-muted);
    margin-top: auto;
}

/* ============================================================
   CTA-БАННЕР
   ============================================================ */
.partners-cta__banner {
    position: relative;
    width: 100%;
    max-width: 1438px;
    height: 510px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}
.partners-cta__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
/* затемняющий градиент слева направо — псевдоэлемент только для декора,
   нужен чтобы текст оставался читаемым поверх светлых зон картинки */
.partners-cta__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9,9,9,.92) 0%, rgba(9,9,9,.65) 45%, rgba(9,9,9,.1) 100%);
    z-index: 1;
    pointer-events: none;
}
.partners-cta__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px;
    max-width: 640px;
    color: var(--partners-text);
}
.partners-cta__title {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.05;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--partners-text);
}
.partners-cta__desc {
    font-size: 16px;
    line-height: 1.55;
    color: var(--partners-text);
    margin: 0 0 28px;
    max-width: 480px;
}
.partners-cta__btn {
    min-width: 220px;
}

/* ============================================================
   PARTNERS — ADAPTIVE (1440 / 1280 / 1024 / 768 / 480 / 390 / 375)
   mobile-first приоритеты учтены в базовой раскладке выше;
   ниже — корректировки под более узкие вьюпорты
   ============================================================ */

/* Laptop ≤1280px — слегка ужимаем секции и hero */
@media (max-width: 1280px) {
    .partners-hero,
    .partners-who,
    .partners-terms,
    .partners-steps,
    .partners-cta {
        padding-block: 64px;
    }
    .partners-hero__title    { font-size: 44px; }
    .partners-hero__subtitle { font-size: 22px; }
    .partners-section__title { font-size: 36px; margin-bottom: 40px; }
    .partners-cta__title     { font-size: 34px; }
    .partners-cta__content   { padding: 48px 48px; }
    .partners-steps__list    { gap: 20px; }
    .partners-who__list      { gap: 20px; }
}

/* Tablet 768–1199px */
@media (max-width: 1199px) {
    /* «С кем мы работаем» — 2 в ряд (третья переносится) */
    .partners-who__list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* «Условия» — по 2 в строке */
    .partners-terms__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 32px;
        max-width: 720px;
    }
    /* «Этапы» — по 2 в ряд */
    .partners-steps__list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* CTA — при сжатии сохраняем пропорции 1438 / 510 */
    .partners-cta__banner   { height: auto; aspect-ratio: 1438 / 510; }
    .partners-cta__content  { padding: 40px 40px; max-width: 520px; }
    .partners-cta__title    { font-size: 30px; }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
    .partners-hero,
    .partners-who,
    .partners-terms,
    .partners-steps,
    .partners-cta {
        padding-block: 48px;
    }
    .partners-page .catalog-breadcrumbs + .partners-hero {
        padding-top: 24px;
    }

    /* Hero — масштабируем типографику */
    .partners-hero__inner    { padding-block: 8px; }
    .partners-hero__title    { font-size: 36px; margin-bottom: 14px; }
    .partners-hero__subtitle { font-size: 18px; margin-bottom: 18px; }
    .partners-hero__desc     { font-size: 15px; margin-bottom: 24px; }
    .partners-hero__btn      { min-width: 0; width: 100%; max-width: 320px; }

    .partners-section__title { font-size: 28px; margin-bottom: 28px; }

    /* Все карточки — в одну колонку */
    .partners-who__list,
    .partners-steps__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .partners-who__card  { min-height: 0; padding: 24px; }
    .partners-steps__card { min-height: 0; padding: 22px; }

    /* Преимущества — вертикальным списком */
    .partners-terms__list {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 520px;
    }
    .partners-terms__item { font-size: 15px; padding: 6px 0; }

    /* CTA — на мобайле картинка остаётся целиком сверху,
       текст и кнопка переезжают под неё (а не поверх).
       Снимаем фиксированную высоту и aspect-ratio. */
    .partners-cta__banner {
        display: flex;
        flex-direction: column;
        height: auto;
        aspect-ratio: auto;
        max-width: 100%;
    }
    .partners-cta__image {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        object-fit: contain;
        z-index: 0;
    }
    /* убираем затемняющий градиент — контент больше не лежит поверх */
    .partners-cta__banner::after {
        display: none;
    }
    .partners-cta__content {
        position: static;
        inset: auto;
        padding: 28px 24px 32px;
        max-width: 100%;
        text-align: left;
        background: var(--partners-card);
    }
    .partners-cta__title { font-size: 26px; margin-bottom: 12px; }
    .partners-cta__desc  { font-size: 15px; margin-bottom: 20px; }
    .partners-cta__btn   { min-width: 0; width: 100%; max-width: 320px; }
}

/* Small mobile ≤480px */
@media (max-width: 480px) {
    .partners-hero,
    .partners-who,
    .partners-terms,
    .partners-steps,
    .partners-cta {
        padding-block: 40px;
    }
    .partners-hero__title    { font-size: 32px; }
    .partners-hero__subtitle { font-size: 16px; letter-spacing: .03em; }
    .partners-section__title { font-size: 24px; margin-bottom: 24px; }
    .partners-cta__title     { font-size: 22px; }
}

/* Very small ≤390px */
@media (max-width: 390px) {
    .partners-hero__title    { font-size: 28px; }
    .partners-hero__subtitle { font-size: 15px; }
    .partners-hero__desc     { font-size: 14px; }
    .partners-section__title { font-size: 22px; }
    .partners-who__title,
    .partners-steps__title   { font-size: 18px; }
    .partners-steps__num     { font-size: 34px; }
    .partners-cta__title     { font-size: 20px; }
    .partners-cta__content   { padding: 24px 20px 28px; }
}

/* Ultra-small ≤375px */
@media (max-width: 375px) {
    .partners-hero__title    { font-size: 26px; }
    .partners-section__title { font-size: 20px; }
    .partners-terms__item    { font-size: 14px; }
    .partners-who__text      { font-size: 14px; }
}

/* ============================================================
   NEWS PAGE — страница «Новости и полезные статьи»
   Темный фон, белая типографика, оранжевые акценты.
   Все стили scoped под .news-page, БЭМ.
   ============================================================ */

.news-page {
    /* локальные токены под темный фон ТЗ (#090909) и оранжевый акцент */
    --news-bg: #090909;
    --news-card: #1A1A1A;
    --news-card-hover: #202020;
    --news-text: #FFFFFF;
    --news-text-muted: #A0A0A0;
    --news-date: #8A8A8A;
    --news-accent: var(--color-accent);
    --news-accent-hover: var(--color-accent-hover);
    background: var(--news-bg);
}

.news-page .main { display: block; position: relative; }

/* единые вертикальные отступы между секциями */
.news-hero,
.news-filter,
.news-grid {
    padding-block: 80px;
    position: relative;
    z-index: 1;
}

/* поджимаем hero под хлебные крошки */
.news-page .catalog-breadcrumbs + .news-hero {
    padding-top: 32px;
}
.news-filter { padding-block: 0 32px; }
.news-grid   { padding-top: 24px; padding-bottom: 100px; }


/* ============================================================
   HERO
   ============================================================ */
.news-hero__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding-block: 20px;
}
.news-hero__title {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--news-text);
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.news-hero__desc {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--news-text);
}


/* ============================================================
   ФИЛЬТР КАТЕГОРИЙ
   ============================================================ */
.news-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.news-filter__item { display: block; }
.news-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    background: #1A1A1A;
    color: var(--news-text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.news-filter__btn:hover { background: #242424; }
.news-filter__btn:active { transform: scale(.98); }
.news-filter__btn:focus-visible {
    outline: 2px solid var(--news-accent);
    outline-offset: 3px;
}
.news-filter__btn--active,
.news-filter__btn[aria-pressed="true"] {
    background: var(--news-accent);
    color: #fff;
}
.news-filter__btn--active:hover,
.news-filter__btn[aria-pressed="true"]:hover {
    background: var(--news-accent-hover);
}



/* ============================================================
   СЕТКА СТАТЕЙ
   ============================================================ */
.news-grid__list {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.news-grid__item { display: block; }


/* ============================================================
   КАРТОЧКА СТАТЬИ — overlay layout (плашка поверх изображения)
   ============================================================ */
.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    background: var(--news-card);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
}

.news-card__link {
    display: block;
    position: relative;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.news-card__link:focus-visible {
    outline: 2px solid var(--news-accent);
    outline-offset: 3px;
    border-radius: 12px;
}

.news-card__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0e0e0e;
}
.news-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t, .3s) ease;
}
.news-card:hover .news-card__img { transform: scale(1.04); }

.news-card__body {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
    background: rgba(20, 20, 20, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    transition: background var(--t-fast);
}
.news-card:hover .news-card__body {
    background: rgba(20, 20, 20, .88);
}

.news-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--news-text);
    transition: color var(--t-fast);
}
.news-card:hover .news-card__title { color: var(--news-accent); }

.news-card__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--news-text-muted);
}
.news-card__date {
    margin: 4px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1;
    color: var(--news-date);
}
.news-card__date-icon { flex-shrink: 0; color: var(--news-accent); }


/* ============================================================
   КНОПКА «Загрузить ещё»
   Используем уже существующий .loadmore-btn,
   только центрируем его и задаём ширину для страницы новостей
   ============================================================ */
.news-grid__more {
    margin: 0 auto;
    min-width: 240px;
}



/* ============================================================
   NEWS PAGE — АДАПТИВ
   ============================================================ */

/* -------- ≤ 1280px -------- */
@media (max-width: 1280px) {
    .news-hero,
    .news-filter,
    .news-grid {
        padding-block: 64px;
    }
    .news-page .catalog-breadcrumbs + .news-hero { padding-top: 28px; }
    .news-filter { padding-block: 0 28px; }
    .news-grid   { padding-top: 20px; padding-bottom: 80px; }

    .news-grid__list { gap: 20px; }
    .news-card { min-height: 300px; }
    .news-card__body { padding: 16px 18px 18px; }
    .news-card__title { font-size: 17px; }
}

/* -------- ≤ 1199px (Tablet wide) -------- */
@media (max-width: 1199px) {
    .news-hero__title { font-size: 44px; }

    /* 2 колонки на планшете */
    .news-grid__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* -------- ≤ 768px (Tablet → Mobile) -------- */
@media (max-width: 768px) {
    .news-hero,
    .news-filter,
    .news-grid {
        padding-block: 48px;
    }
    .news-page .catalog-breadcrumbs + .news-hero { padding-top: 20px; }
    .news-filter { padding-block: 0 24px; }
    .news-grid   { padding-top: 16px; padding-bottom: 64px; }

    .news-hero__title  { font-size: 34px; }
    .news-hero__desc   { font-size: 15px; }
    .news-hero__desc br { display: none; }

    /* Фильтр — горизонтальная прокрутка, чтобы не «складывался» в столбик */
    .news-filter__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .news-filter__list::-webkit-scrollbar { display: none; }
    .news-filter__btn {
        flex-shrink: 0;
        height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }

    /* 1 колонка на мобильном */
    .news-grid__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }

    .news-card__body  { padding: 16px 16px 18px; gap: 8px; }
    .news-card__title { font-size: 17px; }
    .news-card__text  { font-size: 13px; }

    .news-grid__more { width: 100%; min-width: 0; }
}

/* -------- ≤ 480px -------- */
@media (max-width: 480px) {
    .news-hero__title { font-size: 28px; }
    .news-card { min-height: 280px; }
}

/* -------- ≤ 390px -------- */
@media (max-width: 390px) {
    .news-hero,
    .news-filter,
    .news-grid {
        padding-block: 40px;
    }
    .news-grid { padding-bottom: 56px; }

    .news-hero__title { font-size: 26px; }
    .news-hero__desc  { font-size: 14px; }

    .news-card__body  { padding: 16px 16px 18px; }
    .news-card__title { font-size: 17px; }
}

/* -------- ≤ 375px -------- */
@media (max-width: 375px) {
    .news-hero__title { font-size: 24px; }
    .news-filter__btn { height: 34px; padding: 0 14px; font-size: 12px; }
    .news-card__body  { padding: 14px 14px 16px; }
}


/* ============================================================
   BRANDS PAGE  ( brands.html )
   ============================================================ */

/* page-level token overrides (только для .brands-page) */
.brands-page {
    --brands-bg: #080808;
    --brands-card-bg: #FFFFFF;
    --brands-card-red: #F33A32;
    --brands-card-text: #111111;
    --brands-card-yellow: #FFD200;
    --brands-desc: #C6C6C6;
    --brands-crumb: #9F9F9F;
    --brands-gap: 16px;
    --brands-card-h: 110px;
    --brands-card-pad: 18px;   /* единый padding со всех сторон карточки */
    --brands-radius: 10px;
}

.brands-page { background: var(--brands-bg); }

/* ---------- BREADCRUMBS (override базовых под центрирование) ---------- */
.brands-breadcrumbs { padding-block: 28px 0; }
.brands-breadcrumbs__list {
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--brands-crumb);
}
.brands-breadcrumbs__list .breadcrumbs__link { color: var(--brands-crumb); }
.brands-breadcrumbs__list .breadcrumbs__link:hover,
.brands-breadcrumbs__list .breadcrumbs__link:focus-visible { color: var(--color-white); }
.brands-breadcrumbs__list .breadcrumbs__sep { color: var(--brands-crumb); }
.brands-breadcrumbs__list .breadcrumbs__item--current { color: var(--color-white); }

/* ---------- INTRO (заголовок + описание) ---------- */
.brands-intro {
    padding-block: 60px 50px;
    text-align: center;
}
.brands-intro__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 30px;
}
.brands-intro__desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.55;
    color: var(--brands-desc);
}

/* ---------- BRANDS GRID ---------- */
.brands-list {
    padding-block: 10px 100px;
}
.brands-list__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--brands-gap);
}
.brands-list__item { display: block; }

/* ---------- BRAND CARD ----------
   Карточка — flex-контейнер с одинаковым padding со всех сторон.
   Изображение центрируется по двум осям и заполняет «безопасную зону»
   с равными отступами сверху/снизу/слева/справа за счёт object-fit: contain.
------------------------------------ */
.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--brands-card-h);
    padding: var(--brands-card-pad);
    background: var(--brands-card-bg);
    color: var(--brands-card-text);
    border-radius: var(--brands-radius);
    text-decoration: none;
    overflow: hidden;
    transition:
        transform var(--t),
        box-shadow var(--t),
        background-color var(--t);
    will-change: transform;
}
.brand-card:hover,
.brand-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}
.brand-card:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}

/* модификатор — красная карточка */
.brand-card--red {
    background: var(--brands-card-red);
    color: var(--color-white);
}
.brand-card--red:hover,
.brand-card--red:focus-visible {
    background: #ff4a42;
}

/* логотип — <img>, строго по центру с равными отступами */
.brand-card__logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    object-position: center center;
}

/* fallback: текстовый плейсхолдер (если где-то ещё остался <span>) */


/* ============================================================
   PRODUCT PAGE (product.html)
   ============================================================ */

.product-page {
    --pp-card: #FFFFFF;
    --pp-card-2: #F4F4F4;
    --pp-text: #FFFFFF;
    --pp-muted: #B6B6B6;
    --pp-line: rgba(255, 255, 255, .08);
    --pp-radius: 16px;
    --pp-radius-sm: 10px;
}

/* --- MAIN wrapper (decorative shapes removed) --- */
.product-main {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.product-main > .container,
.product-main > section { position: relative; z-index: 1; }

/* --- BREADCRUMBS override --- */
.product-breadcrumbs { padding-block: 24px 8px; }
.product-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--pp-muted);
}
.product-breadcrumbs__list .breadcrumbs__link { color: var(--pp-muted); }
.product-breadcrumbs__list .breadcrumbs__link:hover,
.product-breadcrumbs__list .breadcrumbs__link:focus-visible { color: var(--color-white); outline: none; }
.product-breadcrumbs__list .breadcrumbs__sep { color: var(--pp-muted); user-select: none; }
.product-breadcrumbs__list .breadcrumbs__item--current { color: var(--color-white); }

/* ============================================================
   PRODUCT — main grid
   ============================================================ */

.product { padding-block: 24px 56px; }

.product__inner {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(380px, 460px);
    gap: 20px;
    align-items: start;
}

/* --- LEFT: vertical thumbnails --- */
.product__gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 88px;
}
.product__gallery-nav {
    width: 88px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-muted);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color var(--t-fast);
}
.product__gallery-nav:hover,
.product__gallery-nav:focus-visible {
    color: var(--color-accent);
    outline: none;
}
.product__gallery-nav:active { color: var(--color-accent-active); }

.product__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.product__thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--pp-radius-sm);
    overflow: hidden;
    background: var(--pp-card);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
}
.product__thumb:hover { border-color: rgba(235, 89, 2, .4); }
.product__thumb--active { border-color: var(--color-accent); }

/* --- CENTER: main image --- */
.product__main {
    background: var(--pp-card);
    border-radius: var(--pp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.product__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- RIGHT: info column --- */
.product__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--color-white);
}

.product__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.product__title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-white);
    flex: 1 1 auto;
}
.product__head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.product__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.product__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex: 0 0 6px;
}

.product__fav {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-muted);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: color var(--t-fast), transform var(--t-fast);
}
.product__fav:hover,
.product__fav:focus-visible {
    color: var(--color-accent);
    outline: none;
}
.product__fav[aria-pressed="true"] {
    color: var(--color-accent);
}
.product__fav:active { transform: scale(.94); }

.product__sku {
    margin: 0;
    font-size: 13px;
    color: var(--pp-muted);
}
.product__sku span { color: var(--color-white); }

/* --- SPECS --- */
.product__specs {
    border-top: 1px solid var(--pp-line);
    border-bottom: 1px solid var(--pp-line);
    padding-block: 18px;
}
.product__specs-title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--color-white);
}
.product__specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product__specs-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.45;
}
.product__specs-name { color: var(--pp-muted); }
.product__specs-value { color: var(--color-white); }

/* --- SHORT DESC --- */
.product__desc-short-title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.product__desc-short-text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
}
.product__desc-short-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
}
.product__desc-short-link {
    display: inline-block;
    font-size: 13px;
    color: var(--color-accent);
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
    transition: color var(--t-fast);
}
.product__desc-short-link:hover,
.product__desc-short-link:focus-visible {
    color: var(--color-accent-hover);
    outline: none;
}

/* --- PRICE --- */
.product__price {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    color: var(--color-white);
}

/* --- ACTIONS --- */
.product__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product__btn {
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.product__btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.product__btn--primary:hover,
.product__btn--primary:focus-visible {
    background: var(--color-accent-hover);
    outline: none;
}
.product__btn--primary:active { background: var(--color-accent-active); transform: translateY(1px); }

.product__btn--outline {
    background: transparent;
    color: #fff;
    border-color: var(--color-accent);
}
.product__btn--outline:hover,
.product__btn--outline:focus-visible {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    outline: none;
}
.product__btn--outline:active {
    background: var(--color-accent-active);
    border-color: var(--color-accent-active);
    color: #fff;
    transform: translateY(1px);
}

/* ============================================================
   PRODUCT — TABS
   ============================================================ */

.product-tabs {
    padding-block: 20px 0;
}
.product-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-tabs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: #3A3A3A;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.product-tabs__btn:hover,
.product-tabs__btn:focus-visible {
    color: #fff;
    background: #3A3A3A;
    outline: none;
}
.product-tabs__btn--active {
    color: var(--color-accent);
    background: #fff;
    border-color: #fff;
}
.product-tabs__btn--active:hover,
.product-tabs__btn--active:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--color-accent-hover);
}

/* ============================================================
   PRODUCT — FULL DESCRIPTION
   ============================================================ */

.product-desc { padding-block: 32px 56px; }
.product-desc__text {
    max-width: 1100px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
}
.product-desc__text p {
    margin: 0 0 14px;
}
.product-desc__text p:last-child { margin-bottom: 0; }

/* ============================================================
   VIEWED — статичная секция «Вы смотрели» (БЕЗ АДАПТИВА, БЕЗ JS)
   Фиксированные 4 карточки в ряд. Размеры не меняются ни на одном экране.
   ============================================================ */

.viewed {
    padding-block: 40px 80px;
    background: transparent;
}

/* Собственный фиксированный контейнер (НЕ резиновый .container) */
.viewed__inner {
    width: 1280px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.viewed__title {
    margin: 0 0 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--color-white);
    text-align: left;
}

/* Ряд: стрелка | сетка | стрелка — все фиксировано */
.viewed__row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Сетка из 4 одинаковых карточек, фикс ширина */
.viewed__grid {
    display: grid;
    grid-template-columns: repeat(4, 282px);
    gap: 16px;
    flex: 0 0 auto;
    margin: 0 auto;
}

/* --- Декоративные стрелки навигации (без функционала) --- */
.viewed__nav {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   VIEWED CARD — статичная карточка (фиксированные размеры)
   ============================================================ */

.viewed-card {
    width: 282px;
    height: 430px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.viewed-card__art {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    color: #9A9A9A;
}

.viewed-card__media {
    width: 100%;
    height: 180px;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}
.viewed-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.viewed-card__price {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    color: #000;
}

.viewed-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.35;
    color: #2B2B2B;
    height: calc(1.35em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.viewed-card__stock {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #000;
}
.viewed-card__dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3.5 7.3l2.4 2.4 4.6-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px 10px no-repeat,
        #1FAE53;
}

.viewed-card__btn {
    margin-top: auto;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast);
}
.viewed-card__btn:hover { background: var(--color-accent-hover); }
.viewed-card__btn:active { background: var(--color-accent-active); }

/* ============================================================
   PRODUCT PAGE — RESPONSIVE
   ============================================================ */

/* ≤ 1440px */
@media (max-width: 1440px) {
    .product__inner {
        grid-template-columns: 88px minmax(0, 1fr) minmax(380px, 460px);
        gap: 20px;
    }
}

/* ≤ 1280px */
@media (max-width: 1280px) {
    .product__inner {
        grid-template-columns: 84px minmax(0, 1fr) minmax(360px, 420px);
        gap: 16px;
    }
    .product__gallery { width: 84px; }
    .product__thumb,
    .product__gallery-nav { width: 84px; }
    .product__thumb { height: 84px; }
    .product__main { padding: 24px; }
}

/* ≤ 1024px (планшет) */
@media (max-width: 1024px) {
    .product__inner {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "gallery main"
            "info    info";
        gap: 16px;
    }
    .product__gallery { grid-area: gallery; width: 72px; }
    .product__main    { grid-area: main; aspect-ratio: 5 / 4; padding: 20px; }
    .product__info    { grid-area: info; }

    .product__thumb,
    .product__gallery-nav { width: 72px; }
    .product__thumb { height: 72px; }

    .product__title { font-size: 17px; }

    .product__actions { grid-template-columns: 1fr 1fr; max-width: 560px; }
}

/* ≤ 768px (большие телефоны / маленькие планшеты) */
@media (max-width: 768px) {
    .product { padding-block: 16px 40px; }

    .product__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "gallery"
            "info";
        gap: 16px;
    }

    /* Главное фото — на всю ширину */
    .product__main {
        aspect-ratio: 4 / 3;
        padding: 16px;
        border-radius: 12px;
    }

    /* Миниатюры — горизонтальная лента */
    .product__gallery {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .product__gallery { width: auto; }
    .product__gallery::-webkit-scrollbar { display: none; }

    .product__thumbs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: auto;
    }
    .product__thumb,
    .product__gallery-nav {
        width: 72px;
        height: 72px;
        flex: 0 0 auto;
    }
    .product__gallery-nav {
        height: 72px;
        border-radius: 10px;
    }

    .product__head { flex-wrap: wrap; }
    .product__title { font-size: 18px; }
    .product__price { font-size: 28px; }

    .product__specs-name { font-size: 13px; }

    .product__actions {
        grid-template-columns: 1fr;
        max-width: none;
    }
    .product__btn { height: 52px; font-size: 14px; }

    /* Tabs — горизонтальный скролл, если не помещаются */
    .product-tabs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .product-tabs__list::-webkit-scrollbar { display: none; }
    .product-tabs__btn {
        flex: 0 0 auto;
        height: 48px;
        padding: 0 20px;
        font-size: 14px;
    }

    .product-desc { padding-block: 24px 40px; }
    .product-desc__text { font-size: 14px; line-height: 1.65; }
    .product-desc__text p { margin-bottom: 12px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
    .product__main { padding: 12px; aspect-ratio: 1 / 1; }
    .product__title { font-size: 17px; }
    .product__price { font-size: 26px; }

    .product__specs { padding-block: 14px; }
    .product__specs-title,
    .product__desc-short-title { font-size: 16px; }
    .product__btn { height: 48px; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .product__title { font-size: 16px; }
    .product__price { font-size: 24px; }
    .product__thumb,
    .product__gallery-nav { width: 64px; height: 64px; }
}

/* ≤ 375px */
@media (max-width: 375px) {
    .product__main { padding: 10px; }
    .product-tabs__btn { padding: 0 14px; font-size: 12px; }
}

span.brand-card__logo,
.brand-card__logo--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: .04em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    object-fit: initial;
}
.brand-card__logo--white  { color: var(--color-white); }
.brand-card__logo--yellow { color: var(--brands-card-yellow); }


/* ============================================================
   BRANDS PAGE — RESPONSIVE
   ============================================================ */

/* ≤ 1440px */
@media (max-width: 1440px) {
    .brands-intro__title    { font-size: 64px; }
    .brand-card__logo--text { font-size: 24px; }
}

/* ≤ 1280px — 5 колонок */
@media (max-width: 1280px) {
    .brands-list__grid   { grid-template-columns: repeat(5, 1fr); }
    .brands-intro        { padding-block: 50px 40px; }
    .brands-intro__title { font-size: 56px; margin-bottom: 24px; }
    .brands-intro__desc  { font-size: 17px; }
    .brands-list         { padding-block: 8px 80px; }
}

/* ≤ 1024px — 4 колонки (планшет ландшафт) */
@media (max-width: 1024px) {
    .brands-list__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ≤ 768px — 3 колонки (планшет портрет) */
@media (max-width: 768px) {
    .brands-page { --brands-card-h: 96px; --brands-gap: 12px; --brands-card-pad: 14px; }

    .brands-list__grid { grid-template-columns: repeat(3, 1fr); }

    .brands-breadcrumbs       { padding-block: 20px 0; }
    .brands-breadcrumbs__list { font-size: 12px; }

    .brands-intro        { padding-block: 36px 32px; }
    .brands-intro__title { font-size: 44px; margin-bottom: 18px; }
    .brands-intro__desc  { font-size: 16px; }

    .brands-list            { padding-block: 4px 64px; }
    .brand-card__logo--text { font-size: 20px; }
}

/* ≤ 480px — 2 колонки */
@media (max-width: 480px) {
    .brands-page { --brands-card-h: 88px; --brands-gap: 10px; --brands-card-pad: 12px; }

    .brands-list__grid { grid-template-columns: repeat(2, 1fr); }

    .brands-intro        { padding-block: 28px 24px; }
    .brands-intro__title { font-size: 36px; margin-bottom: 14px; }
    .brands-intro__desc  { font-size: 15px; line-height: 1.5; }

    .brands-list            { padding-block: 0 48px; }
    .brand-card             { border-radius: 8px; }
    .brand-card__logo--text { font-size: 18px; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .brands-page            { --brands-card-h: 80px; --brands-gap: 8px; --brands-card-pad: 10px; }
    .brands-intro__title    { font-size: 32px; }
    .brand-card__logo--text { font-size: 16px; letter-spacing: .03em; }
}

/* ≤ 375px */
@media (max-width: 375px) {
    .brands-page            { --brands-card-h: 76px; --brands-card-pad: 9px; }
    .brands-intro__title    { font-size: 28px; }
    .brand-card__logo--text { font-size: 15px; }
}


/* ============================================================
   MODAL: CALLBACK ("Связаться с нами")
   Переиспользуемое модальное окно. Триггер: [data-modal-open="callback"].
   Закрытие: × / клик по backdrop / Esc. JS: assets/js/main.js → initModals()
   ============================================================ */

.modal {
    /* tokens */
    --modal-bg: #FFFFFF;
    --modal-radius: 14px;
    --modal-pad-x: 40px;
    --modal-pad-y: 36px;
    --modal-max-w: 460px;
    --modal-backdrop: rgba(0, 0, 0, .72);

    --modal-field-bg: #F2F2F2;
    --modal-field-color: #1a1a1a;
    --modal-field-placeholder: #8a8a8a;
    --modal-field-h: 52px;
    --modal-field-radius: 8px;
    --modal-field-pad-x: 22px;
    --modal-field-gap: 14px;

    --modal-head-bg: var(--color-accent);
    --modal-head-color: var(--color-white);
    --modal-head-radius: 6px;
    --modal-head-pad-x: 38px;
    --modal-head-pad-y: 26px;

    --modal-foot-color: #9a9a9a;
    --modal-foot-link: #6f6f6f;

    /* layout */
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--modal-backdrop);
    overflow-y: auto;
    opacity: 0;
    transition: opacity var(--t-fast, .2s) ease;
}
.modal.is-open {
    display: flex;
    opacity: 1;
}

/* prevent page scroll while modal is open */
body.is-modal-open {
    overflow: hidden;
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: var(--modal-max-w);
    margin: auto;
    /* top padding = 0, шапка прижата к верху; контент получает свой отступ ниже */
    padding: 0 var(--modal-pad-x) var(--modal-pad-y);
    background: var(--modal-bg);
    border-radius: var(--modal-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    overflow: hidden; /* чтобы скругление обрезало оранжевую шапку */
    transform: translateY(8px) scale(.98);
    transition: transform var(--t-fast, .2s) ease;
}
.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}

/* close button (×) — поверх оранжевой шапки */
.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    z-index: 2;
    transition: background var(--t-fast, .2s) ease, color var(--t-fast, .2s) ease, transform var(--t-fast, .2s) ease;
}
.modal__close:hover { background: rgba(255, 255, 255, .18); color: var(--color-white); }
.modal__close:active { transform: scale(.94); }
.modal__close:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}
.modal__close svg { width: 18px; height: 18px; display: block; }

/* header — полностью оранжевая полоса на всю ширину окна */
.modal__head-wrap {
    /* «вырываемся» из горизонтальных паддингов диалога */
    margin: 0 calc(var(--modal-pad-x) * -1) var(--modal-pad-y);
    background: var(--modal-head-bg);
    color: var(--modal-head-color);
    /* скругление только сверху — повторяет радиус диалога */
    border-top-left-radius: var(--modal-radius);
    border-top-right-radius: var(--modal-radius);
}
.modal__head {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--modal-head-pad-y) var(--modal-head-pad-x);
    background: transparent;
    color: inherit;
    border-radius: 0;
}
.modal__title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: inherit;
    text-align: center;
}



/* form */
.modal__form {
    display: flex;
    flex-direction: column;
    gap: var(--modal-field-gap);
}

.modal__field {
    display: block;
    width: 100%;
    height: var(--modal-field-h);
    padding: 0 var(--modal-field-pad-x);
    background: var(--modal-field-bg);
    color: var(--modal-field-color);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--modal-field-radius);
    transition: border-color var(--t-fast, .2s) ease, background var(--t-fast, .2s) ease;
    -webkit-appearance: none;
    appearance: none;
}
.modal__field::placeholder {
    color: var(--modal-field-placeholder);
    opacity: 1;
}
.modal__field:hover { background: #ececec; }
.modal__field:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}
.modal__field:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.modal__submit {
    margin-top: 4px;
    width: 100%;
    height: var(--modal-field-h);
    padding: 0 22px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-transform: none;
    border: 0;
    border-radius: var(--modal-field-radius);
    cursor: pointer;
    transition: background var(--t-fast, .2s) ease, transform var(--t-fast, .2s) ease;
}
.modal__submit:hover { background: var(--color-accent-hover); }
.modal__submit:active { background: var(--color-accent-active); transform: scale(.99); }
.modal__submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.modal__footnote {
    margin: 18px 0 0;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.5;
    color: var(--modal-foot-color);
    text-align: center;
}
.modal__footnote a {
    color: var(--modal-foot-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--t-fast, .2s) ease;
}
.modal__footnote a:hover { color: var(--color-accent); }
.modal__footnote a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}


/* ============================================================
   BEST OFFERS (index.html) — «Лучшие предложения»
   Использует существующую разметку .products / .product-card.
   На десктопе — 4 карточки в ряд (как на дизайне screenshot_8),
   на адаптиве — 3 / 2 / 1.
   ============================================================ */
.best-offers {
    padding-block: 60px 40px;
    background: var(--color-bg);
}
.best-offers__title {
    margin-bottom: 36px;
}

/* 4 в ряд на десктопе (переопределяем дефолтный 3-в-ряд .products) */
.best-offers__grid.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.best-offers__action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* ---------- АДАПТИВ: best-offers ---------- */
@media (max-width: 1280px) {
    .best-offers { padding-block: 48px 32px; }
    .best-offers__grid.products { gap: 18px; }
}
@media (max-width: 1024px) {
    .best-offers__grid.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .best-offers { padding-block: 40px 24px; }
    .best-offers__title { margin-bottom: 24px; }
    .best-offers__grid.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .best-offers__action { margin-top: 28px; }
}
@media (max-width: 480px) {
    .best-offers__grid.products {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
@media (max-width: 390px) {
    .best-offers { padding-block: 32px 20px; }
    .best-offers__grid.products { gap: 12px; }
}


/* ============================================================
   POPULAR BRANDS (index.html) — «Популярные бренды»
   Использует существующие .brand-card / .brand-card__logo.
   Поскольку --brands-* токены объявлены только в скоупе .brands-page,
   дублируем их в скоупе .brands-popular (правило «один CSS-файл»
   соблюдено, новые файлы не создаются).
   ============================================================ */
.brands-popular {
    --brands-card-bg: #FFFFFF;
    --brands-card-red: #FF1F22;
    --brands-card-text: #1A1A1A;
    --brands-card-h: 110px;
    --brands-card-pad: 18px;
    --brands-radius: 10px;
    --brands-gap: 16px;

    padding-block: 40px 60px;
    background: var(--color-bg);
}
.brands-popular__title {
    margin-bottom: 36px;
}

/* loop: brands — 6 в ряд на десктопе */
.brands-popular__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--brands-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.brands-popular__item { display: block; }

/* ---------- НАВИГАЦИЯ (стрелки под брендами) ---------- */
.brands-popular__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}
.brands-popular__arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--t-fast, .15s), color var(--t-fast, .15s), transform var(--t-fast, .15s);
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
}
.brands-popular__arrow .icon { color: currentColor; display: block; }
.brands-popular__arrow:hover {
    background: var(--color-accent);
    color: #fff;
}
.brands-popular__arrow:active { transform: translateY(1px); }
.brands-popular__arrow:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ---------- АДАПТИВ: brands-popular ---------- */
@media (max-width: 1280px) {
    .brands-popular { padding-block: 32px 48px; }
    .brands-popular__grid { gap: 14px; }
}
@media (max-width: 1024px) {
    .brands-popular {
        --brands-card-h: 100px;
        --brands-card-pad: 16px;
    }
    .brands-popular__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .brands-popular {
        --brands-card-h: 96px;
        --brands-card-pad: 14px;
    }
    .brands-popular__title { margin-bottom: 24px; }
    .brands-popular__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .brands-popular__nav { margin-top: 22px; }
}
@media (max-width: 480px) {
    .brands-popular {
        --brands-card-h: 88px;
        --brands-card-pad: 12px;
    }
    .brands-popular__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 390px) {
    .brands-popular {
        --brands-card-h: 80px;
        --brands-card-pad: 10px;
        padding-block: 24px 40px;
    }
    .brands-popular__grid { gap: 8px; }
}
@media (max-width: 375px) {
    .brands-popular {
        --brands-card-h: 76px;
        --brands-card-pad: 9px;
    }
}


/* ≤ 768px */
@media (max-width: 768px) {
    .modal {
        --modal-pad-x: 24px;
        --modal-pad-y: 26px;
        --modal-max-w: 420px;
        padding: 16px;
    }
    .modal__head {
        --modal-head-pad-x: 28px;
        --modal-head-pad-y: 22px;
    }
    .modal__title { font-size: 26px; }
    .modal__field, .modal__submit {
        --modal-field-h: 48px;
        font-size: 14px;
    }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .modal {
        --modal-pad-x: 18px;
        --modal-pad-y: 22px;
        padding: 12px;
    }
    .modal__head {
        --modal-head-pad-x: 22px;
        --modal-head-pad-y: 18px;
    }
    .modal__title { font-size: 22px; }
    .modal__close { top: 8px; right: 8px; width: 32px; height: 32px; }
    .modal__footnote { font-size: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal__dialog,
    .modal__field,
    .modal__submit,
    .modal__close {
        transition: none;
    }
    .modal__dialog { transform: none; }
}


/* ============================================================
   MODAL: ASK ABOUT PART ("Задать вопрос по запчасти")
   Модификатор основного .modal. Серый фон тела + кастомный select.
   Триггер: [data-modal-open="ask-part"]
   ============================================================ */

.modal--ask-part {
    --modal-bg: #EAEAEA;          /* серый фон тела модалки */
    --modal-max-w: 500px;
    --modal-pad-x: 28px;
    --modal-pad-y: 28px;
}

/* инфо о товаре над селектом */
.ask-part__info {
    margin: 0 0 18px;
    text-align: center;
    font-family: var(--font-body);
    color: #1a1a1a;
}
.ask-part__info p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}
.ask-part__info b,
.ask-part__info strong { font-weight: 600; }

/* ============================================================
   COMPONENT: CUSTOM SELECT  (data-select)
   ============================================================ */

.custom-select {
    --cs-bg: #FFFFFF;
    --cs-border: #E2E2E2;
    --cs-radius: 8px;
    --cs-h: 52px;
    --cs-pad-x: 18px;
    --cs-color: #1a1a1a;
    --cs-placeholder: #8a8a8a;
    --cs-hover-bg: #F5F5F5;
    --cs-divider: #ECECEC;

    position: relative;
    width: 100%;
    font-family: var(--font-body);
    color: var(--cs-color);
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: var(--cs-h);
    padding: 0 var(--cs-pad-x);
    background: var(--cs-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    color: var(--cs-placeholder);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--t-fast, .2s) ease, box-shadow var(--t-fast, .2s) ease;
    -webkit-appearance: none;
    appearance: none;
}
.custom-select__trigger:hover { border-color: #c9c9c9; }
.custom-select__trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.custom-select.is-filled .custom-select__trigger { color: var(--cs-color); }

.custom-select__caret {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #6b6b6b;
    transition: transform var(--t-fast, .2s) ease;
}
.custom-select.is-open .custom-select__caret { transform: rotate(180deg); }

/* dropdown attached under the trigger inside the same container */
.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    padding: 6px 0;
    background: var(--cs-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.custom-select.is-open .custom-select__dropdown { display: block; }

.custom-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--cs-pad-x);
    font-size: 15px;
    line-height: 1.2;
    color: var(--cs-color);
    cursor: pointer;
    transition: background var(--t-fast, .2s) ease;
}
.custom-select__option + .custom-select__option {
    border-top: 1px solid var(--cs-divider);
}
.custom-select__option:hover,
.custom-select__option.is-active,
.custom-select__option[aria-selected="true"] { background: var(--cs-hover-bg); }
.custom-select__option:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.custom-select__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
}
.custom-select__icon svg { display: block; height: 22px; width: auto; }

/* ≤ 768px */
@media (max-width: 768px) {
    .modal--ask-part { --modal-max-w: 440px; --modal-pad-x: 22px; }
    .ask-part__info p { font-size: 14px; }
    .custom-select { --cs-h: 48px; }
    .custom-select__option { padding: 11px 16px; font-size: 14px; }
}

/* ≤ 390px */
@media (max-width: 390px) {
    .modal--ask-part { --modal-pad-x: 16px; }
    .ask-part__info { margin-bottom: 14px; }
    .custom-select { --cs-h: 46px; --cs-pad-x: 14px; }
    .custom-select__option { padding: 10px 14px; font-size: 13px; }
    .custom-select__icon, .custom-select__icon svg { height: 20px; }
}

/* ============================================================
   HERO (index.html) — статичная вёрстка под 1280px, без адаптива
   Фоновое изображение мотоцикла.
   ВНИМАНИЕ для WP-натяжки: при подключении ACF использовать
   --bg на section: <section class="hero" style="--bg:url(<?= $img ?>)">
   и заменить background-image на var(--bg).
   ============================================================ */
.hero {
    position: relative;
    background-color: var(--color-bg);
    background-image: url("../img/hero-bike.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 0 0 80px;
    min-height: 720px;
    overflow: hidden;
}
/* плавное затемнение нижнего края — скрывает границу изображения */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0) 0%, var(--color-bg) 100%);
    pointer-events: none;
    z-index: 0;
}
/* плавное затемнение верхнего края — сливается с header */
.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 220px;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(7, 7, 7, 0) 100%);
    pointer-events: none;
    z-index: 0;
}
.hero .container {
    width: 1280px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 0 0;
    position: relative;
    z-index: 1;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: start;
    column-gap: 40px;
    min-height: 600px;
}

/* левая колонка */
.hero__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: .95;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0;
}
.hero__subtitle {
    margin: 28px 0 0;
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
}
.hero__btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 52px;
    padding: 0 28px;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    transition: background var(--t-fast), color var(--t-fast);
}
.hero__btn:hover,
.hero__btn:focus-visible {
    background: var(--color-accent);
    color: var(--color-white);
    outline: none;
}
.hero__btn:active { background: var(--color-accent-active); }
.hero__btn .icon { color: currentColor; }

/* правая колонка — преимущества (зигзаг, по центру по высоте) */
.hero__benefits {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.benefits__item {
    display: flex;
    align-items: center;
    gap: 18px;
}
/* зигзаг: 1-й и 3-й на одной линии, 2-й сдвинут правее */
.benefits__item:nth-child(1) { transform: translateX(0); }
.benefits__item:nth-child(2) { transform: translateX(60px); }
.benefits__item:nth-child(3) { transform: translateX(0); }
.benefits__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    border-radius: 8px;
    color: var(--color-accent);
}
.benefits__icon .icon {
    color: currentColor;
    width: 32px;
    height: 32px;
}
.benefits__text {
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
}

/* ============================================================
   SECTION TITLE (общий заголовок для секций index.html)
   ============================================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-white);
    letter-spacing: .02em;
    margin: 0;
}

/* ============================================================
   BUTTON (общая pill-кнопка) — используется в "В каталог"
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-accent-hover);
    color: var(--color-white);
    outline: none;
}
.btn--primary:active {
    background: var(--color-accent-active);
    transform: translateY(1px);
}
.btn .icon { color: currentColor; }

/* ============================================================
   CATEGORIES (index.html) — карточки-изображения в сером квадрате
   ============================================================ */
.categories {
    padding: 60px 0 40px;
    background: var(--color-bg);
}
.categories .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
.categories__title {
    margin-bottom: 36px;
}
/* loop: categories */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* карточка категории — просто изображение в сером закруглённом квадрате */
.cat-card {
    position: relative;
    list-style: none;
}
.cat-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 18px;
    background: transparent;
    /* слегка серая обводка квадрата */
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color var(--t), transform var(--t), background var(--t);
}
.cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--t);
}
.cat-card__link:hover {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .03);
}
.cat-card__link:hover .cat-card__img {
    transform: scale(1.04);
}
.cat-card__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.categories__action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* адаптив секции категорий */
@media (max-width: 1280px) {
    .categories { padding: 48px 0 32px; }
    .categories__grid { gap: 20px; }
    .cat-card__link { padding: 16px; border-radius: 14px; }
}
@media (max-width: 768px) {
    .categories { padding: 40px 0 24px; }
    .categories__title { margin-bottom: 24px; }
    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .cat-card__link { padding: 14px; border-radius: 12px; }
    .categories__action { margin-top: 28px; }
}
@media (max-width: 390px) {
    .categories__grid { gap: 12px; }
    .cat-card__link { padding: 12px; border-radius: 10px; }
}
@media (max-width: 375px) {
    .categories__grid { gap: 10px; }
    .cat-card__link { padding: 10px; border-radius: 10px; }
}

/* ============================================================
   FEATURES (плашка под категориями — 4 преимущества в ряд)
   ============================================================ */
.features {
    padding: 24px 0 40px;
    background: var(--color-bg);
}
.features .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
.features__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 28px 32px;
    list-style: none;
    background: var(--color-card);
    border-radius: var(--radius-card);
}
.features__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    position: relative;
}
.features__item + .features__item::before {
    /* вертикальный разделитель между пунктами */
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--color-border);
}
.features__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-white);
}
.features__icon .icon {
    width: 32px;
    height: 32px;
    color: currentColor;
}
.features__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.features__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: .02em;
}
.features__desc {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-dim);
}

/* ---------- АДАПТИВ: features ---------- */
@media (max-width: 1280px) {
    .features { padding: 20px 0 36px; }
    .features__list { padding: 24px 20px; }
    .features__item { padding: 0 18px; gap: 14px; }
    .features__title { font-size: 15px; }
}
@media (max-width: 1024px) {
    .features__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
        padding: 24px 20px;
    }
    /* убираем вертикальные разделители на 2-колоночной сетке */
    .features__item + .features__item::before { display: none; }
    .features__item { padding: 0 16px; }
}
@media (max-width: 768px) {
    .features { padding: 16px 0 32px; }
    .features__list {
        gap: 18px 0;
        padding: 20px 16px;
        border-radius: 12px;
    }
    .features__item { gap: 12px; padding: 0 8px; }
    .features__icon { width: 40px; height: 40px; }
    .features__icon .icon { width: 28px; height: 28px; }
    .features__title { font-size: 14px; }
    .features__desc { font-size: 12px; }
}
@media (max-width: 480px) {
    .features__list {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 14px;
    }
    .features__item { padding: 0; }
}
@media (max-width: 390px) {
    .features { padding: 12px 0 28px; }
    .features__list { padding: 16px 12px; gap: 14px; }
    .features__title { font-size: 13px; }
}
@media (max-width: 375px) {
    .features__icon { width: 36px; height: 36px; }
    .features__icon .icon { width: 24px; height: 24px; }
}


/* ============================================================
   NEWS BLOCK — секция «Новости» на index.html
   Карточка: фоновое изображение через CSS-переменную --bg,
   поверх — заголовок, описание и тег.
   БЭМ, scoped под .news-block.
   ============================================================ */
.news-block {
    padding-block: 40px 80px;
    background: var(--color-bg);
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.news-block__title {
    margin-bottom: 32px;
}

.news-block__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-block__item {
    display: block;
    min-width: 0;
}

/* карточка с фоном */
.news-block__card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-card);
    overflow: hidden;
    background-color: var(--color-card);
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    transition: transform var(--t), box-shadow var(--t);
}
/* затемняющий градиент поверх изображения для читаемости текста */
.news-block__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .35) 45%,
        rgba(0, 0, 0, .75) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.news-block__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ссылка-обёртка раскрывает всю карточку */
.news-block__link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 24px 22px;
    color: var(--color-white);
    text-decoration: none;
}
.news-block__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -4px;
    border-radius: var(--radius-card);
}

/* контент поверх изображения */
.news-block__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}
.news-block__heading {
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: .01em;
    margin: 0;
}
.news-block__text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    color: var(--color-text-2);
    margin: 0;
    max-width: 90%;
}

/* тег-плашка в правом верхнем углу */
.news-block__tag {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    z-index: 3;
}

/* стрелки слайдера */
.news-block__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.news-block__arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
    padding: 0;
}
.news-block__arrow .icon { color: currentColor; display: block; }
.news-block__arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.news-block__arrow:active { transform: translateY(1px); }
.news-block__arrow:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ---------- АДАПТИВ: news-block ---------- */
@media (max-width: 1440px) {
    .news-block__heading { font-size: 24px; }
}
@media (max-width: 1280px) {
    .news-block { padding-block: 32px 64px; }
    .news-block__list { gap: 16px; }
    .news-block__link { padding: 22px 20px 20px; }
    .news-block__heading { font-size: 22px; }
    .news-block__text { font-size: 13px; }
}
@media (max-width: 1024px) {
    .news-block__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-block { padding-block: 24px 48px; }
    .news-block__title { margin-bottom: 24px; }
    .news-block__list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news-block__card { aspect-ratio: 16 / 10; }
    .news-block__link { padding: 20px 18px 18px; }
    .news-block__heading { font-size: 20px; }
    .news-block__text { max-width: 100%; }
    .news-block__tag { top: 14px; right: 14px; height: 26px; padding: 0 10px; font-size: 11px; }
    .news-block__nav { margin-top: 20px; }
}
@media (max-width: 480px) {
    .news-block__card { aspect-ratio: 4 / 3; }
}
@media (max-width: 390px) {
    .news-block { padding-block: 20px 40px; }
    .news-block__link { padding: 18px 16px 16px; }
    .news-block__heading { font-size: 18px; }
    .news-block__text { font-size: 12px; line-height: 1.4; }
    .news-block__tag { height: 24px; padding: 0 10px; font-size: 11px; }
    .news-block__arrow { width: 34px; height: 34px; }
}
@media (max-width: 375px) {
    .news-block__heading { font-size: 17px; }
    .news-block__link { padding: 16px 14px 14px; }
}


