/* ============================================================
   РусКерамика — главная
   Mobile-first vanilla CSS. Дизайн-токены вытащены из Figma
   Variables (Брендовые цвета / Тексты / Отступы и паддинги
   / Заголовки / Сетка / Roundness / Shadow).
   ============================================================ */

/* ------------- Design Tokens ------------- */
:root {
    /* Brand colours (Figma: Брендовые цвета/*) */
    --c-anthracite-dark: #11171d;
    --c-anthracite:      #383e42;
    --c-yellow:          #f8ea38;
    --c-grey-bg:         #f5f5f5;

    /* Surfaces (Figma: Фоны/*) */
    --c-bg-main:         #ffffff;
    --c-bg-second:       #f8f9fa;
    --c-bg-third:        #f7f7f9;
    --c-bg-fourth:       #f1f2f5;
    --c-bg-danger-2:     #ffefee;

    /* Strokes (Figma: Обводки/Base) */
    --c-border:          #eaecf0;

    /* Text & icon (Figma: Тексты и иконки/*) */
    --c-text-base:       #181818;
    --c-text-main:       #252525;
    --c-text-second:     #68727d;
    --c-text-third:      #979aa0;
    --c-text-disabled:   #dfe2e8;
    --c-on-color:        #ffffff;
    --c-danger:          #e33b32;

    /* Typography — families */
    --ff-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --ff-text:    'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* Typography — heading sizes.
       Mobile-first values that scale up via media queries below.
       Figma desktop reference: Display L 64, Display M 52, H1 40, H2 36,
       H3 32, H4 28, H5 22, H6 20. */
    --fs-display-l: 48px;
    --fs-display-m: 40px;
    --fs-h1:         32px;
    --fs-h2:         28px;
    --fs-h3:         22px;
    --fs-h4:         20px;
    --fs-h5:         18px;
    --fs-h6:         18px;

    /* Typography — body sizes (Figma: Тексты/*) */
    --fs-body-xl:   20px;
    --fs-body-l:    18px;
    --fs-body-m:    16px;
    --fs-body-s:    14px;
    --fs-body-xs:   13px;
    --fs-body-xxs:  12px;

    /* Mobile fallback for the largest heading on the page */
    --fs-display:   40px;

    /* Spacing scale (Figma: Отступы и паддинги/*) */
    --sp-xxs: 4px;
    --sp-xs:  8px;
    --sp-s:   12px;
    --sp-m:   16px;
    --sp-l:   24px;
    --sp-l-plus: 32px;
    --sp-xl:  40px;
    --sp-xxl: 64px;

    /* Layout */
    --container-max: 1600px;
    --container-pad: 16px;     /* mobile */
    --section-pad-y: 40px;     /* mobile */
    --grid-gap: 16px;          /* mobile */

    /* Radius (Figma: Кнопки=1) — keep 8px on .btn for nicer touch targets */
    --r-button: 8px;
    --r-field:  1px;
    --r-card:   8px;
    --r-block:  1px;
    --r-pill:   999px;
    --r-inside-m: 8px;
    --r-panel:   16px;

    /* Shadows (Figma: Shadow/*) */
    --sh-xsm: 0 1px 2px 0 rgba(16, 24, 40, .04);
    --sh-sm:  0 1px 3px 0 rgba(16, 24, 40, .1), 0 1px 2px -1px rgba(16, 24, 40, .1);
    --sh-md:  0 4px 6px -1px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .1);
    --sh-lg:  0 10px 15px -3px rgba(16, 24, 40, .1), 0 4px 6px -4px rgba(16, 24, 40, .1);
    --sh-xl:  0 20px 25px -5px rgba(16, 24, 40, .1), 0 8px 10px -6px rgba(16, 24, 40, .1);
    --sh-2xl: 0 25px 50px -12px rgba(16, 24, 40, .25);

    /* Focus rings */
    --ring-focus:  0 0 0 3px #efefef;
    --ring-danger: 0 0 0 3px #fddddc;

    /* Transitions */
    --tr-fast: 150ms ease;
    --tr:      200ms ease;
    --tr-slow: 320ms ease;
}

/* ------------- Reset ------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-text-base);
    background: var(--c-bg-main);
    -webkit-font-smoothing: antialiased;
    /* Защита от горизонтального оверфлоу (negative-margin блоки в секциях):
       без этого фикс-нижняя менюшка на Android якорится по layout-вьюпорту
       и крайние кнопки уезжают за пределы экрана. */
    overflow-x: clip;
}
html { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-anthracite); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ff-heading); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--c-anthracite-dark); }
p { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-anthracite-dark); outline-offset: 2px; }
input, textarea, select, button { font: inherit; }
.ic { width: 24px; height: 24px; flex-shrink: 0; }
.ic-chevron { width: 20px; height: 20px; flex-shrink: 0; }

/* ------------- Container ------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ------------- Buttons ------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    border: 1px solid transparent;
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr), transform var(--tr-fast);
    box-shadow: var(--sh-xsm);
}
.btn--md { padding: 12px 16px; }
.btn--lg { padding: 14px 22px; }

.btn--primary {
    background: var(--c-anthracite-dark);
    color: var(--c-bg-main);
}
.btn--primary:hover { background: #000; color: var(--c-bg-main); }
.btn--primary:active { transform: translateY(1px); }

.btn--secondary {
    background: var(--c-anthracite);
    color: var(--c-bg-main);
}
.btn--secondary:hover { background: #1f2226; color: var(--c-bg-main); }
.btn--secondary:active { transform: translateY(1px); }

.btn--ghost {
    background: var(--c-bg-main);
    color: var(--c-anthracite);
    border-color: var(--c-anthracite);
}
.btn--ghost:hover { background: var(--c-anthracite); color: var(--c-bg-main); }

.btn--soft {
    background: var(--c-grey-bg);
    color: var(--c-anthracite-dark);
    border-color: var(--c-border);
    box-shadow: none;
}
.btn--soft:hover { background: var(--c-bg-main); border-color: var(--c-anthracite); color: var(--c-anthracite-dark); }
.btn--soft:active { transform: translateY(1px); }

.btn--outline-light {
    background: transparent;
    color: var(--c-bg-main);
    border-color: var(--c-anthracite);
}
.btn--outline-light:hover { background: var(--c-anthracite); }

.btn--icon {
    width: 56px;
    height: 56px;
    padding: 0;
    flex-shrink: 0;
}

/* ------------- Tag / sale label ------------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-xs);
    background: var(--c-yellow);
    border-radius: var(--r-button);
    font-weight: 700;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
    text-transform: uppercase;
    letter-spacing: 0;
    align-self: flex-start;
}
.tag--accent { background: var(--c-bg-main); color: var(--c-anthracite-dark); }

/* ------------- Section title ------------- */
.section-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--c-anthracite-dark);
    margin: 0 0 var(--sp-l);
}
.section-title--center { text-align: center; }

/* ============================================================
   TYPOGRAPHY (Figma: Заголовки/* и Тексты/*)
   Utility classes named .t-<size>-<weight>. Sizes follow the
   responsive --fs-* tokens above; line-height/tracking match
   the Figma type scale (1.1 / -2px for displays, 1.2 / -1..-2px
   for headings, 1.5 / 0 for body, with UPPERCASE variants).
   ============================================================ */
.t-display-l,
.t-display-m,
.t-h1, .t-h1-light, .t-h1-regular, .t-h1-medium, .t-h1-semibold, .t-h1-bold,
.t-h2, .t-h2-light, .t-h2-regular, .t-h2-medium, .t-h2-semibold, .t-h2-bold,
.t-h3, .t-h3-regular, .t-h3-medium, .t-h3-semibold, .t-h3-bold,
.t-h4, .t-h4-regular, .t-h4-medium, .t-h4-semibold, .t-h4-bold,
.t-h5, .t-h5-regular, .t-h5-medium, .t-h5-semibold, .t-h5-bold,
.t-h6, .t-h6-regular, .t-h6-medium, .t-h6-semibold, .t-h6-bold {
    font-family: var(--ff-heading);
    color: var(--c-text-main);
    margin: 0;
}

/* Display L — 64 / 110% / -2px */
.t-display-l         { font-size: var(--fs-display-l); line-height: 1.1; letter-spacing: -2px; font-weight: 500; }
.t-display-l-medium  { font-weight: 500; }
.t-display-l-semibold,
.t-display-l-bold,
.t-display-l-heavy   { font-weight: 700; }

/* Display M — 52 / 110% / -2..0px */
.t-display-m         { font-size: var(--fs-display-m); line-height: 1.1; letter-spacing: -2px; font-weight: 400; }
.t-display-m-regular { font-weight: 400; }
.t-display-m-medium  { font-weight: 500; }
.t-display-m-bold    { font-weight: 700; letter-spacing: 0; }

/* H1 — 40 / 120% / -2px */
.t-h1                { font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -2px; font-weight: 500; }
.t-h1-light          { font-weight: 300; }
.t-h1-regular        { font-weight: 400; }
.t-h1-medium         { font-weight: 500; }
.t-h1-semibold       { font-weight: 600; }
.t-h1-bold           { font-weight: 700; }

/* H2 — 36 / 120% / -2px */
.t-h2                { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -2px; font-weight: 500; }
.t-h2-light          { font-weight: 300; }
.t-h2-regular        { font-weight: 400; }
.t-h2-medium         { font-weight: 500; }
.t-h2-semibold       { font-weight: 600; }
.t-h2-bold           { font-weight: 700; }

/* H3 — 32 / 120% / -2px */
.t-h3                { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -2px; font-weight: 500; }
.t-h3-regular        { font-weight: 400; }
.t-h3-medium         { font-weight: 500; }
.t-h3-semibold       { font-weight: 600; }
.t-h3-bold           { font-weight: 700; }

/* H4 — 28 / 120% / -2px */
.t-h4                { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -2px; font-weight: 500; }
.t-h4-regular        { font-weight: 400; }
.t-h4-medium         { font-weight: 500; }
.t-h4-semibold       { font-weight: 600; }
.t-h4-bold           { font-weight: 700; }

/* H5 — 22 / 120% / -1px (Bold uses 30px line-height in Figma) */
.t-h5                { font-size: var(--fs-h5); line-height: 1.2; letter-spacing: -1px; font-weight: 500; }
.t-h5-regular        { font-weight: 400; }
.t-h5-medium         { font-weight: 500; }
.t-h5-semibold       { font-weight: 600; }
.t-h5-bold           { font-weight: 700; line-height: calc(30 / 22); }

/* H6 — 20 / 120% / -1px */
.t-h6                { font-size: var(--fs-h6); line-height: 1.2; letter-spacing: -1px; font-weight: 500; }
.t-h6-regular        { font-weight: 400; }
.t-h6-medium         { font-weight: 500; }
.t-h6-semibold       { font-weight: 600; }
.t-h6-bold           { font-weight: 700; }

/* Body text — Open Sans, 150% line-height */
.t-body-xl, .t-body-xl-regular, .t-body-xl-semibold, .t-body-xl-bold,
.t-body-l,  .t-body-l-regular,  .t-body-l-semibold,  .t-body-l-bold,
.t-body-m,  .t-body-m-regular,  .t-body-m-semibold,  .t-body-m-bold,
.t-body-s,  .t-body-s-regular,  .t-body-s-semibold,  .t-body-s-bold,
.t-body-xs, .t-body-xs-regular, .t-body-xs-semibold, .t-body-xs-bold,
.t-body-xxs, .t-body-xxs-regular, .t-body-xxs-medium, .t-body-xxs-semibold, .t-body-xxs-bold,
.t-uc-l, .t-uc-m, .t-uc-s, .t-uc-xs,
.t-button-l, .t-button-m {
    font-family: var(--ff-text);
    color: var(--c-text-main);
    margin: 0;
}

.t-body-xl           { font-size: var(--fs-body-xl); line-height: 1.5; font-weight: 400; }
.t-body-xl-regular   { font-weight: 400; }
.t-body-xl-semibold  { font-weight: 600; }
.t-body-xl-bold      { font-weight: 700; }

.t-body-l            { font-size: var(--fs-body-l); line-height: 1.5; font-weight: 400; }
.t-body-l-regular    { font-weight: 400; }
.t-body-l-semibold   { font-weight: 600; }
.t-body-l-bold       { font-weight: 700; }

.t-body-m            { font-size: var(--fs-body-m); line-height: 1.5; font-weight: 400; }
.t-body-m-regular    { font-weight: 400; }
.t-body-m-semibold   { font-weight: 600; }
.t-body-m-bold       { font-weight: 700; }

.t-body-s            { font-size: var(--fs-body-s); line-height: 1.5; font-weight: 400; }
.t-body-s-regular    { font-weight: 400; }
.t-body-s-semibold   { font-weight: 600; }
.t-body-s-bold       { font-weight: 700; }

.t-body-xs           { font-size: var(--fs-body-xs); line-height: 1.5; font-weight: 400; }
.t-body-xs-regular   { font-weight: 400; }
.t-body-xs-semibold  { font-weight: 600; }
.t-body-xs-bold      { font-weight: 700; }

.t-body-xxs          { font-size: var(--fs-body-xxs); line-height: 1.5; font-weight: 400; }
.t-body-xxs-regular  { font-weight: 400; }
.t-body-xxs-medium   { font-weight: 600; }
.t-body-xxs-semibold { font-weight: 600; }
.t-body-xxs-bold     { font-weight: 700; }

/* UPPERCASE labels (Figma: UPPERCASE/*) */
.t-uc-l              { font-size: var(--fs-body-l); line-height: 1.5; font-weight: 600; text-transform: uppercase; }
.t-uc-m              { font-size: var(--fs-body-m); line-height: 1.5; font-weight: 400; text-transform: uppercase; }
.t-uc-s              { font-size: var(--fs-body-s); line-height: 1.5; font-weight: 600; text-transform: uppercase; }
.t-uc-xs             { font-size: var(--fs-body-xxs); line-height: 1.5; font-weight: 600; text-transform: uppercase; }

/* Button text presets (Figma: Кнопки/Кнопка L|M) */
.t-button-l          { font-size: var(--fs-body-m); line-height: calc(24 / 16); font-weight: 600; }
.t-button-m          { font-size: var(--fs-body-s); line-height: calc(20 / 14); font-weight: 600; }

/* Color modifiers */
.t-c-base            { color: var(--c-text-base); }
.t-c-main            { color: var(--c-text-main); }
.t-c-second          { color: var(--c-text-second); }
.t-c-third           { color: var(--c-text-third); }
.t-c-anthracite      { color: var(--c-anthracite-dark); }
.t-c-on-color        { color: var(--c-on-color); }
.t-c-danger          { color: var(--c-danger); }

/* ============================================================
   FORM FIELDS (Figma UI-kit: Форма ввода)
   Container .form-field wraps a label + control + optional
   message. States — default / focus / filled / error / disabled.
   ============================================================ */
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    width: 100%;
}
.form-field__label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xxs);
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    font-weight: 600;
    line-height: 1.5;
    color: var(--c-text-main);
}
.form-field__label--required::after {
    content: '*';
    color: var(--c-danger);
}

.form-control {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: var(--sp-m);
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr), background-color var(--tr);
}
.form-control::placeholder { color: var(--c-text-second); }
.form-control:hover:not(:disabled) { border-color: var(--c-text-third); }
.form-control:focus,
.form-control:focus-visible {
    border-color: var(--c-anthracite-dark);
    box-shadow: var(--ring-focus);
}
.form-control:disabled {
    color: var(--c-text-third);
    background: var(--c-bg-fourth);
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Error state */
.form-field.is-invalid .form-control,
.form-control.is-invalid,
.form-control[aria-invalid="true"] {
    border-color: var(--c-danger);
    box-shadow: var(--ring-danger);
}

.form-field__hint {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xxs);
    padding: var(--sp-xxs);
    border-radius: var(--r-field);
    font-family: var(--ff-text);
    font-size: var(--fs-body-xs);
    line-height: 1.5;
    color: var(--c-text-second);
}
.form-field__hint--error {
    background: var(--c-bg-danger-2);
    color: var(--c-danger);
}
.form-field__hint .ic { width: 16px; height: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--c-bg-main);
    border-bottom: 1px solid var(--c-border);
}
.site-header__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    padding-block: var(--sp-xs);
}

.site-header__top,
.site-header__bottom {
    display: flex;
    align-items: center;
    gap: var(--sp-m);
}
.site-header__top { justify-content: space-between; }
.site-header__bottom { position: relative; min-height: 0; }

/* Компактная шапка при скролле — скрыта по умолчанию */
.site-header__scroll {
    display: none;
    align-items: center;
    padding-block: var(--sp-xs);
    gap: var(--sp-l);
}
.site-header__scroll-left,
.site-header__scroll-right {
    display: flex;
    align-items: center;
    gap: var(--sp-m);
    flex-shrink: 0;
}
.site-header__scroll-right { margin-left: auto; }

.site-header__scroll .logo--scroll { height: 56px; }
.site-header__scroll .logo--scroll .logo__mark { height: 56px; width: auto; }

.site-header__scroll .catalog-nav__link--catalog {
    height: 56px;
    padding: 16px 24px;
}

.site-header__scroll .site-search {
    flex: 1 1 auto;
    margin: 0 var(--sp-m);
}

.site-header__scroll .phone-pill { height: 56px; }

/* На мобиле нижняя строка шапки скрыта — есть только верхняя c 3 кнопками */
.site-header__bottom .site-search,
.site-header__bottom .site-header__icons { display: none; }

.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-s);
    flex-shrink: 0;
    height: 40px;
}
.logo__mark { height: 100%; width: auto; flex-shrink: 0; }
.logo__text { display: block; height: 9px; width: auto; flex-shrink: 0; }
.logo--inverse .logo__text { filter: brightness(0) invert(1); }

/* Мобильный кластер: телефон + поиск + бургер */
.site-header__compact {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    margin-left: auto;
}
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: var(--sp-xs);
    background: var(--c-grey-bg);
    color: var(--c-anthracite-dark);
    border-radius: var(--r-button);
    cursor: pointer;
    transition: background-color var(--tr), color var(--tr);
}
.header-icon-btn:hover,
.header-icon-btn[aria-expanded="true"] { background: var(--c-bg-fourth); }
.header-icon-btn .ic { width: 24px; height: 24px; }

/* ============================================================
   MOBILE BOTTOM NAV — закреплена внизу экрана, только на мобиле
   ============================================================ */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xs);
    padding: var(--sp-xs) var(--sp-m);
    padding-bottom: calc(var(--sp-xs) + env(safe-area-inset-bottom, 0px));
    background: var(--c-bg-main);
    border-top: 1px solid var(--c-border);
}
.mobile-bottom-nav__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: var(--sp-xs);
    background: var(--c-grey-bg);
    color: var(--c-anthracite-dark);
    border-radius: var(--r-button);
    cursor: pointer;
    transition: background-color var(--tr), color var(--tr);
}
.mobile-bottom-nav__btn:hover,
.mobile-bottom-nav__btn[aria-expanded="true"] { background: var(--c-bg-fourth); }
.mobile-bottom-nav__btn .ic { width: 24px; height: 24px; }

/* Запас под фикс-нав, чтобы футер/контент не перекрывались */
body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

.utility-nav { display: none; }
.utility-nav__list { display: flex; align-items: center; }
.utility-nav__list > li { position: relative; }
.utility-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: 8px 24px;
    height: 40px;
    border-radius: var(--r-button);
    font-weight: 600;
    font-size: var(--fs-body-s);
    color: var(--c-anthracite-dark);
    transition: background-color var(--tr), color var(--tr);
}
.utility-nav__link:hover { background: var(--c-bg-second); }
.utility-nav__link.is-active,
.utility-nav__link[aria-expanded="true"] { background: var(--c-bg-second); }

.utility-dropdown {
    position: absolute;
    top: calc(100% + var(--sp-xxs));
    left: 0;
    z-index: 30;
    min-width: 220px;
    padding: var(--sp-xxs);
    background: var(--c-bg-main);
    border-radius: var(--r-button);
    box-shadow: var(--sh-lg);
}
.utility-dropdown[hidden] { display: none; }
.utility-dropdown__list { list-style: none; margin: 0; padding: 0; }
.utility-dropdown__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--sp-xs) var(--sp-m);
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite);
    border-radius: var(--r-button);
    transition: background-color var(--tr), color var(--tr);
    white-space: nowrap;
}
.utility-dropdown__link:hover { background: var(--c-bg-second); }

.site-header__actions { display: none; align-items: center; gap: var(--sp-l); }

.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
}
.phone-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    background: var(--c-yellow);
    box-shadow: var(--sh-md);
}
.phone-pill__icon svg { width: 24px; height: 24px; }
.phone-pill__text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.phone-pill__num {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-body-m);
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
}
.phone-pill__hours {
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-xxs);
    line-height: 1.5;
    color: var(--c-text-second);
}

.catalog-nav { display: none; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.catalog-nav__list { display: flex; align-items: center; gap: var(--sp-xxs); }
.catalog-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    height: 40px;
    padding: 8px 24px;
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--c-anthracite-dark);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--tr), color var(--tr);
}
.catalog-nav__list li:hover .catalog-nav__link,
.catalog-nav__link:hover,
.catalog-nav__link.is-active,
.catalog-nav__link[aria-expanded="true"] { background: var(--c-bg-second); }
.catalog-nav__link--accent { color: var(--c-danger); }
.catalog-nav__link--catalog { background: var(--c-grey-bg); }
.catalog-nav__link--catalog:hover,
.catalog-nav__link--catalog[aria-expanded="true"] { background: var(--c-bg-fourth); }
.ic-burger { width: 24px; height: 24px; flex-shrink: 0; }

/* ============================================================
   Catalog mega-dropdown (открывается из «Наш каталог»)
   ============================================================ */
.catalog-dropdown {
    position: absolute;
    top: calc(100% + var(--sp-xxs));
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    background: var(--c-bg-main);
    border-radius: var(--r-button);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
.catalog-dropdown[hidden] { display: none; }

.catalog-dropdown__cols {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, 2fr);
    align-items: stretch;
}
/* Панель категории — её 4 колонки участвуют в grid родителя */
.catalog-dropdown__panel { display: contents; }
.catalog-dropdown__panel[hidden] { display: none; }
.catalog-dropdown__col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
    padding: var(--sp-l) 0;
    min-width: 0;
}
.catalog-dropdown__block { min-width: 0; }
.catalog-dropdown__head {
    margin: 0;
    padding: var(--sp-xs) var(--sp-m);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--c-anthracite-dark);
}
.catalog-dropdown__list { list-style: none; margin: 0; padding: 0; }
.catalog-dropdown__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--sp-xs) var(--sp-m);
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite);
    border-radius: var(--r-button);
    transition: background-color var(--tr), color var(--tr);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catalog-dropdown__list li:hover .catalog-dropdown__link,
.catalog-dropdown__link:hover,
.catalog-dropdown__link.is-active {
    background: var(--c-anthracite);
    color: var(--c-grey-bg);
}
.catalog-dropdown__link.is-current {
    background: var(--c-grey-bg);
    color: var(--c-anthracite-dark);
}

/* Сайдбар категорий — левая колонка */
.catalog-dropdown__sidebar {
    display: flex;
    flex-direction: column;
    padding: var(--sp-xxs);
    background: var(--c-grey-bg);
    border-radius: 0 var(--r-inside-m) var(--r-inside-m) 0;
}
.catalog-dropdown__sidebar-head {
    margin: 0;
    padding: var(--sp-s) var(--sp-m);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--c-anthracite-dark);
}
.catalog-dropdown__sidebar-list { list-style: none; margin: 0; padding: 0; }
.catalog-dropdown__sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xs);
    padding: var(--sp-s) var(--sp-m);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite);
    transition: background-color var(--tr), color var(--tr);
}
.catalog-dropdown__sidebar-link:hover,
.catalog-dropdown__sidebar-link.is-active {
    background: var(--c-anthracite);
    color: var(--c-grey-bg);
}
.catalog-dropdown__sidebar-link.is-current {
    background: var(--c-bg-main);
    color: var(--c-anthracite-dark);
}

/* ===== Mobile-only элементы внутри catalog-dropdown ===== */
.catalog-dropdown__close,
.catalog-dropdown__m-section,
.catalog-dropdown__m-cta,
.catalog-dropdown__panel-head { display: none; }

/* Mobile-first: дропдаун — фикс-оверлей над контентом
   (шапка не sticky, поэтому absolute-привязка к шапке не подойдёт) */
.catalog-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: var(--sh-lg);
    background: var(--c-bg-main);
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: var(--sp-l-plus);
}
.catalog-dropdown[hidden] { display: none; }

.catalog-dropdown__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--sp-xs);
    right: var(--sp-xs);
    width: 24px;
    height: 24px;
    z-index: 2;
    color: var(--c-anthracite-dark);
    cursor: pointer;
}
.catalog-dropdown__close svg { width: 24px; height: 24px; }

/* На мобиле сайдбар — отдельный «экран» с заголовком "Все коллекции" */
.catalog-dropdown__cols { display: block; }
.catalog-dropdown__sidebar {
    border-radius: 0 var(--r-inside-m) var(--r-inside-m) 0;
    background: var(--c-grey-bg);
    padding: var(--sp-m) var(--sp-xxs);
    margin-bottom: var(--sp-m);
}
.catalog-dropdown__sidebar-head { padding: var(--sp-xs) var(--sp-m); }
.catalog-dropdown__sidebar-link {
    padding: var(--sp-xs) var(--sp-m);
    border-radius: var(--r-button);
}
.catalog-dropdown__sidebar-link.is-current { background: var(--c-bg-main); }
.catalog-dropdown__sidebar-link svg { color: var(--c-anthracite); }

/* Панели категорий: на мобиле выкл по умолчанию, открываются по клику на категорию */
.catalog-dropdown__panel {
    display: none;
    flex-direction: column;
    gap: var(--sp-m);
    padding: var(--sp-m);
}
.catalog-dropdown__panel[hidden] { display: none; }
.catalog-dropdown.is-panel-open .catalog-dropdown__sidebar,
.catalog-dropdown.is-panel-open .catalog-dropdown__m-section,
.catalog-dropdown.is-panel-open .catalog-dropdown__m-cta { display: none; }
.catalog-dropdown.is-panel-open .catalog-dropdown__panel.is-active { display: flex; }

.catalog-dropdown__panel-head {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-xs) 0;
}
.catalog-dropdown__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--c-anthracite-dark);
    cursor: pointer;
}
.catalog-dropdown__back svg { width: 20px; height: 20px; }
.catalog-dropdown__panel-title {
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-xs);
    text-transform: uppercase;
    color: var(--c-anthracite-dark);
    margin: 0;
}
.catalog-dropdown__col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    padding: 0;
}

/* Mobile-only секции под списком коллекций */
.catalog-dropdown__m-section {
    display: flex;
    flex-direction: column;
}
.catalog-dropdown__m-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xs);
    height: 40px;
    padding: var(--sp-xxs) var(--sp-m);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-xs);
    color: var(--c-anthracite-dark);
}
.catalog-dropdown__m-item--uc { text-transform: uppercase; }
.catalog-dropdown__m-item.is-accent { color: var(--c-danger); }
.catalog-dropdown__m-item:hover { background: var(--c-bg-second); }
.catalog-dropdown__m-section--white + .catalog-dropdown__m-section { margin-top: var(--sp-m); }
.catalog-dropdown__m-section + .catalog-dropdown__m-cta { margin-top: var(--sp-m); }

.catalog-dropdown__m-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-s) var(--sp-m) 0;
}
.catalog-dropdown__m-cta .phone-pill { display: inline-flex; flex: 0 0 auto; gap: var(--sp-xs); }
.catalog-dropdown__m-cta .phone-pill__icon { width: 36px; height: 36px; }
.catalog-dropdown__m-cta .phone-pill__icon svg { width: 20px; height: 20px; }
.catalog-dropdown__m-cta .phone-pill__num { font-size: var(--fs-body-s); }
.catalog-dropdown__m-cta .phone-pill__hours { font-size: 10px; }
.catalog-dropdown__m-cta .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px var(--sp-s);
    font-size: var(--fs-body-xs);
    gap: var(--sp-xxs);
    white-space: nowrap;
}
.catalog-dropdown__m-cta .btn .ic { width: 20px; height: 20px; }

.site-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    height: 56px;
}
.site-search__close { display: none; }
.site-search__row {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    height: 100%;
}
.site-search__input {
    width: 100%;
    height: 100%;
    padding: 0 56px 0 16px;
    border: 0;
    background: transparent;
    font-size: var(--fs-body-m);
    color: var(--c-text-base);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.site-search__input::-webkit-search-decoration,
.site-search__input::-webkit-search-cancel-button,
.site-search__input::-webkit-search-results-button,
.site-search__input::-webkit-search-results-decoration { display: none; }
.site-search__input::placeholder { color: var(--c-text-second); font-style: italic; }
.site-header__scroll .site-search__input::placeholder { font-style: normal; }

.site-search__photo {
    display: none;
    align-items: center;
    gap: var(--sp-xs);
    position: absolute;
    top: 50%;
    right: 63px;
    transform: translateY(-50%);
    padding: var(--sp-s) var(--sp-m);
    background: var(--c-bg-fourth);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite);
    font-style: italic;
    white-space: nowrap;
    transition: background-color var(--tr), border-color var(--tr);
}
.site-search__photo:hover { background: var(--c-bg-second); border-color: var(--c-anthracite); }

.site-search__submit {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    height: calc(100% - 8px);
    padding: 0 14px;
    background: var(--c-yellow);
    border-radius: var(--r-button);
    transition: background-color var(--tr);
}
.site-search__submit:hover { background: #ffe900; }

/* ---------- Search results dropdown ---------- */
.title-search-result {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    box-shadow: var(--sh-lg);
    max-height: 70vh;
    overflow-y: auto;
}
.title-search-result.is-open { display: block; }

.title-search-result__item {
    display: flex;
    align-items: center;
    gap: var(--sp-s);
    padding: var(--sp-s) var(--sp-m);
    border-bottom: 1px solid var(--c-border);
    text-decoration: none;
    color: var(--c-text-base);
    transition: background-color var(--tr);
}
.title-search-result__item:last-child { border-bottom: none; }
.title-search-result__item:hover { background: var(--c-bg-second); }

.title-search-result__img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    background: #fff;
}

.title-search-result__info { min-width: 0; }
.title-search-result__name {
    font-size: var(--fs-body-s);
    font-weight: 600;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.title-search-result__name mark {
    background: transparent;
    color: var(--c-danger);
    font-weight: 700;
}
.title-search-result__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    margin-top: 2px;
    font-size: var(--fs-body-xs);
    color: var(--c-text-second);
}
.title-search-result__brand {
    color: var(--c-text-third);
    font-weight: 500;
}
.title-search-result__price {
    color: var(--c-text-second);
}
.title-search-result__brand + .title-search-result__price::before {
    content: "•";
    margin-right: var(--sp-xs);
    color: var(--c-text-disabled);
}

.title-search-result__all {
    display: block;
    padding: var(--sp-s) var(--sp-m);
    text-align: center;
    font-size: var(--fs-body-s);
    font-weight: 600;
    color: var(--c-anthracite);
    text-decoration: none;
    border-top: 1px solid var(--c-border);
}
.title-search-result__all:hover { color: var(--c-anthracite-dark); }

.title-search-result__empty {
    padding: var(--sp-m);
    text-align: center;
    font-size: var(--fs-body-s);
    color: var(--c-text-second);
}

/* Mobile search overlay */
@media screen and (max-width: 767.98px) {
    .site-search.is-mobile-open .site-search__row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--sp-s);
        width: 100%;
        flex: 0 0 auto;
        height: auto;
    }
    .site-search.is-mobile-open .site-search__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        background: transparent;
        border: none;
        padding: 0;
    }
    .site-search.is-mobile-open .site-search__close .ic { width: 24px; height: 24px; }

    .site-search.is-mobile-open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        height: auto;
        border-radius: 0;
        border: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--c-bg-main);
        padding: var(--sp-m);
        gap: var(--sp-m);
    }
    .site-search.is-mobile-open .site-search__input {
        height: 56px;
        border: 1px solid var(--c-border);
        border-radius: var(--r-button);
        padding: 0 var(--sp-m);
    }
    .site-search.is-mobile-open .site-search__submit {
        position: static;
        transform: none;
        height: 48px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--sp-xs);
        font-weight: 600;
    }
    .site-search.is-mobile-open .site-search__submit::after {
        content: 'Найти';
    }
    .site-search.is-mobile-open .site-search__photo {
        position: static;
        transform: none;
        display: inline-flex;
        justify-content: center;
        height: 48px;
    }
    .site-search.is-mobile-open .title-search-result {
        position: static;
        max-height: none;
        flex: 1 1 auto;
        overflow-y: auto;
        box-shadow: none;
        border: 1px solid var(--c-border);
    }
}

.site-header__icons { display: flex; align-items: center; gap: var(--sp-m); }

/* Cart button + badge */
.cart-btn {
    position: relative;
    width: auto;
    padding: 16px 24px;
}
.cart-btn__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    border-radius: var(--r-pill);
    background: var(--c-yellow);
    color: var(--c-anthracite);
    font-weight: 600;
    font-size: var(--fs-body-xxs);
    line-height: 20px;
    text-align: center;
    box-shadow: var(--sh-md);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--c-grey-bg);
}
.hero__container { padding-block: var(--sp-m); }
.hero__grid {
    position: relative;
}
.hero__slide {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
    min-height: 600px;
    padding-block: var(--sp-m);
}
.hero__slide[hidden] { display: none; }
.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-l);
    z-index: 2;
    padding-top: var(--sp-m);
}
.hero__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-display);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
    margin: 0;
    max-width: 716px;
}
.hero__mark {
    background: var(--c-yellow);
    color: var(--c-anthracite-dark);
    padding: 0 6px;
    border-radius: var(--r-button);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero__lead {
    font-size: var(--fs-body-l);
    color: var(--c-text-main);
    font-weight: 600;
    max-width: 540px;
}
.hero__media {
    position: relative;
    border-radius: var(--r-button);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__nav {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    gap: var(--sp-xs);
}
.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: var(--r-button);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--tr), transform var(--tr-fast);
}
.slider-arrow:hover { transform: translateY(-2px); }
.slider-arrow svg { width: 32px; height: 32px; }
.slider-arrow--dark { background: var(--c-anthracite); }
.slider-arrow--dark:hover { background: var(--c-anthracite-dark); }
.slider-arrow--light { background: var(--c-bg-main); }
.slider-arrow--light:hover { background: var(--c-bg-second); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding-block: var(--section-pad-y); }
.features__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
}
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-l);
    padding: var(--sp-l) var(--sp-m);
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    transition: box-shadow var(--tr), transform var(--tr-fast);
}
.feature-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.feature-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--c-yellow);
    border-radius: var(--r-pill);
}
.feature-card__icon svg { width: 32px; height: 32px; }
.feature-card__body { display: flex; flex-direction: column; gap: var(--sp-xxs); }
.feature-card__title {
    font-size: var(--fs-h6);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
    font-weight: 600;
}
.feature-card__text {
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { padding-block: var(--section-pad-y); }
.categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xs);
}
.category-card {
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow var(--tr), transform var(--tr-fast);
}
.category-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.category-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.category-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-bg-second);
    padding: var(--sp-xs);
}
.category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-slow);
}
.category-card:hover .category-card__media img { transform: scale(1.04); }
.category-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xxs);
    padding: var(--sp-xs) var(--sp-m) var(--sp-m);
}
.category-card__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-l);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
}
.category-card__count {
    font-size: var(--fs-body-s);
    color: var(--c-anthracite);
    line-height: 1.2;
    letter-spacing: -.01em;
}

/* ============================================================
   BESTSELLERS
   ============================================================ */
.bestsellers { padding-block: var(--section-pad-y); }
.bestsellers__head {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    margin-bottom: var(--sp-l);
}
.bestsellers__head .section-title { margin: 0; }

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xxs);
}
.tabs__btn {
    flex: 1 1 auto;
    padding: var(--sp-s) var(--sp-xl);
    border: 1px solid #979aa0;
    border-radius: var(--r-button);
    background: transparent;
    color: #979aa0;
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, .04);
    transition: background-color var(--tr), color var(--tr), border-color var(--tr);
}
.tabs__btn:hover { color: var(--c-anthracite-dark); border-color: var(--c-anthracite-dark); }
.tabs__btn.is-active {
    background: var(--c-anthracite-dark);
    color: var(--c-bg-main);
    border-color: var(--c-anthracite-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
}

/* ------------- Product card ------------- */
.product-card {
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    overflow: hidden;
    transition: box-shadow var(--tr), transform var(--tr-fast), border-color var(--tr);
}
.product-card:hover { box-shadow: var(--sh-md); border-color: var(--c-anthracite); }
.product-card > article {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: var(--sp-xs);
    background: var(--c-bg-main);
}
.product-card__badge {
    position: absolute;
    top: var(--sp-m);
    left: var(--sp-m);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--c-yellow);
    color: var(--c-anthracite);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h6);
    line-height: 1.2;
    letter-spacing: -.01em;
    border-radius: var(--r-button);
}
.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tr-slow);
}
.product-card__media--contain img { object-fit: contain; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-s);
    padding: var(--sp-xs) var(--sp-m) var(--sp-m);
    flex-grow: 1;
}
.product-card__brand {
    font-size: var(--fs-body-xs);
    color: var(--c-anthracite);
}
.product-card__brand a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.product-card__brand a:hover { text-decoration-thickness: 2px; }

.product-card__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-m);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--c-anthracite); }

.product-card__meta {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-m);
    font-size: var(--fs-body-xs);
    color: var(--c-anthracite);
}
.product-card__meta dt { display: inline; font-weight: 600; }
.product-card__meta dd { display: inline; margin-left: 4px; }

.product-card__price {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--sp-m);
    font-family: var(--ff-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite);
}
.product-card__price-now { font-size: 24px; }
.product-card__price-now span { font-size: 18px; font-weight: 600; }
.product-card__price-old {
    font-weight: 400;
    font-size: var(--fs-body-l);
    color: var(--c-text-second);
    letter-spacing: -.01em;
    text-decoration: line-through;
}

.product-card__actions {
    display: flex;
    gap: var(--sp-xs);
    margin-top: auto;
}
.product-card__primary { flex: 1 1 auto; }

/* ============================================================
   BANNERS
   ============================================================ */
.banners { padding-block: var(--section-pad-y); }
.banners__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
}
.banner-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-button);
    background: var(--c-grey-bg);
    min-height: 320px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
}
.banner-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .19;
    pointer-events: none;
    z-index: 0;
}
.banner-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--sp-l);
    padding: var(--sp-l);
}
.banner-card__title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--c-text-main);
    font-weight: 600;
}
.banner-card__lead {
    font-size: var(--fs-body-m);
    color: var(--c-text-base);
}
.banner-card__media {
    position: relative;
    z-index: 1;
    grid-row: 1;
    overflow: hidden;
    align-self: stretch;
    min-height: 180px;
}
.banner-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(15deg) scale(1.4);
    transform-origin: center;
}
.banner-card--alt {
    background: linear-gradient(135deg, #e9e3d3 0%, #d8cdb6 100%);
}

/* ============================================================
   BRANDS
   ============================================================ */
.brands {
    padding-block: var(--section-pad-y);
    background: var(--c-grey-bg);
}
.brands__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-m);
    margin-bottom: var(--sp-l);
}
.brands__head .section-title { margin: 0; }

.brands__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xs);
}
.brand-card {
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    overflow: hidden;
    padding: var(--sp-xs) var(--sp-l-plus);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xs);
    transition: box-shadow var(--tr), border-color var(--tr);
}
.brand-card:hover { box-shadow: var(--sh-md); border-color: var(--c-anthracite); }
.brand-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-card__name {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-s);
    color: var(--c-anthracite-dark);
    letter-spacing: -.01em;
}
.brand-card__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-border);
    overflow: hidden;
    font-size: 10px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: var(--section-pad-y); }
.faq__lead {
    text-align: center;
    color: var(--c-text-second);
    margin: 0 auto var(--sp-l);
    max-width: 740px;
}
.accordion {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin-inline: auto;
    border-top: 1px solid var(--c-border);
}
.accordion__item { border-bottom: 1px solid var(--c-border); }
.accordion__details { width: 100%; }
.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-m);
    padding: var(--sp-l) 0;
    cursor: pointer;
    list-style: none;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__title {
    flex: 1 1 auto;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h5);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-text-main);
}
.accordion__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    position: relative;
    transition: transform var(--tr);
}
.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    background: var(--c-anthracite-dark);
    border-radius: 1px;
}
.accordion__icon::before {
    inset: calc(50% - 1px) 4px;
    height: 2px;
}
.accordion__icon::after {
    inset: 4px calc(50% - 1px);
    width: 2px;
    transition: transform var(--tr);
}
.accordion__details[open] .accordion__icon::after { transform: scaleY(0); }

.accordion__content {
    padding: 0 0 var(--sp-l);
    color: var(--c-text-second);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    max-width: 1100px;
}
.accordion__content p + p { margin-top: var(--sp-m); }

.faq__cta { display: flex; justify-content: center; margin-top: var(--sp-l); }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
    background: var(--c-bg-second);
    padding-block: var(--section-pad-y);
}
.reviews .section-title { margin-bottom: var(--sp-xl); }

.reviews__slider {
    position: relative;
    margin-bottom: var(--sp-xl);
}
.reviews__track {
    display: flex;
    gap: var(--grid-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--container-pad));
    padding: var(--sp-xxs) var(--container-pad) var(--sp-m);
}
.reviews__track::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 calc(100% - var(--sp-l));
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    padding: var(--sp-m) var(--sp-m) var(--sp-l);
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
}
.review-card__rating {
    display: flex;
    gap: 1px;
    color: var(--c-danger);
}
.review-card__star { width: 14px; height: 14px; }
.review-card__body { display: flex; flex-direction: column; flex: 1; }
.review-card__date {
    padding-block: var(--sp-xs);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.review-card__author {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h5);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
    margin-bottom: var(--sp-xxs);
}
.review-card__text {
    font-style: italic;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
    margin-bottom: var(--sp-m);
}
.review-card__link {
    align-self: flex-start;
    margin-top: auto;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: #657d67;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.review-card__link-mark { color: var(--c-danger); }
.review-card__link:hover { color: var(--c-anthracite-dark); }
.review-card__link:hover .review-card__link-mark { color: var(--c-danger); }

.reviews__nav {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-main);
    border: 1px solid var(--c-anthracite);
    border-radius: var(--r-button);
    color: var(--c-anthracite);
    box-shadow: var(--sh-xsm);
    transform: translateY(-50%);
    transition: background var(--tr), color var(--tr);
}
.reviews__nav svg { width: 24px; height: 24px; }
.reviews__nav:hover { background: var(--c-anthracite-dark); color: var(--c-on-color); }
.reviews__nav:disabled { opacity: .35; cursor: not-allowed; }
.reviews__nav--prev { left: 0; }
.reviews__nav--next { right: 0; }

.reviews__summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-l);
    padding: var(--sp-l);
    background: var(--c-bg-main);
    border: 2px solid #d1d5dc;
    border-radius: 16px;
    max-width: 520px;
    margin-inline: auto;
}
.reviews__summary-rating {
    display: flex;
    gap: 1px;
    color: var(--c-danger);
}
.reviews__summary-star { width: 24px; height: 24px; }
.reviews__summary-text {
    font-size: var(--fs-body-l);
    line-height: 1.5;
    color: var(--c-anthracite);
    text-align: center;
}
.reviews__platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-l) var(--sp-xl);
}
.reviews__platforms img {
    height: 28px;
    width: auto;
}

/* ============================================================
   INFO + showroom hero
   ============================================================ */
.info { padding-block: var(--section-pad-y); }
.info__hero {
    margin: 0 calc(-1 * var(--container-pad)) var(--sp-l);
    overflow: hidden;
}
.info__hero img { width: 100%; height: auto; display: block; }

.info__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
    margin-top: var(--sp-l);
}
.info-card {
    padding: var(--sp-l);
    background: var(--c-bg-main);
    border-radius: var(--r-inside-m);
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    text-align: center;
}
.info-card__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h4);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
}
.info-card p {
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts {
    padding-block: var(--section-pad-y);
    background: var(--c-bg-second);
}
.contacts__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-m);
    margin-bottom: var(--sp-xl);
}
.contacts__header .section-title { margin: 0; }
.contacts__subtitle {
    margin: 0;
    font-size: var(--fs-body-xl);
    line-height: 1.5;
    color: var(--c-text-base);
    text-align: center;
}

.contacts__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
    align-items: stretch;
    margin-bottom: var(--sp-l);
}
.contacts__photo {
    border-radius: var(--r-inside-m);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.contacts__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
    align-content: start;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-m);
    padding: var(--sp-m) var(--sp-l);
    border-radius: var(--r-inside-m);
}
.contact-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--c-grey-bg);
    border-radius: var(--r-pill);
    color: var(--c-anthracite-dark);
}
.contact-item__icon svg { width: 24px; height: 24px; display: block; }
.contact-item__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xxs);
    min-width: 0;
}
.contact-item__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-m);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
}
.contact-item__text {
    margin: 0;
    font-size: var(--fs-body-l);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
}
.contact-item__text a {
    color: inherit;
    text-decoration: none;
}
.contact-item__text a:hover { color: var(--c-anthracite); }
.contact-item__link {
    margin-top: var(--sp-xxs);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-text-main);
    text-decoration: none;
    align-self: flex-start;
}
.contact-item__link-y { color: var(--c-danger); }
.contact-item__link:hover { color: var(--c-anthracite-dark); }

.contacts__map {
    width: 100%;
    border-radius: var(--r-inside-m);
    overflow: hidden;
    border: 1px solid var(--c-border);
    aspect-ratio: 16 / 9;
    background: var(--c-bg-third);
}
.contacts__map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ============================================================
   CONTACTS PAGE  (отдельная страница /contacts)
   ============================================================ */
.contacts-page { padding-block: 0 var(--section-pad-y); }
.contacts-page__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
.contacts-page__head { padding-block: var(--sp-xs) 0; }
.contacts-page__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h1);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
}

.contacts-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
    align-items: start;
}

/* ----- Sidebar ----- */
.contacts-side {
    background: var(--c-bg-second);
    border-radius: var(--r-block);
    padding: 0 0 var(--sp-xl);
    display: flex;
    flex-direction: column;
}
.contacts-side__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--r-block);
    background: var(--c-bg-third);
}
.contacts-side__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contacts-side__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.contacts-side__list .contact-item {
    padding: var(--sp-m) var(--sp-l);
}
.contacts-side__action {
    padding: var(--sp-m) var(--sp-l);
}
.contacts-side__cta {
    width: 100%;
    justify-content: center;
    padding-block: var(--sp-s);
}
.contacts-side__socials {
    padding: var(--sp-m) var(--sp-l);
}
.contacts-side__socials .socials__link {
    background: transparent;
    box-shadow: none;
    width: 40px;
    height: 40px;
}
.contacts-side__socials .socials__link:hover { background: transparent; transform: none; }
.contacts-side__requisites {
    padding: var(--sp-m) var(--sp-l) 0;
}

/* requisites table */
.requisites {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
}
.requisites__row { display: block; }
.requisites__row dt {
    display: inline;
    font-weight: 600;
    margin-right: var(--sp-xxs);
}
.requisites__row dd {
    display: inline;
    margin: 0;
    font-weight: 400;
}
.contact-item__link--copy {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    margin-top: var(--sp-xs);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: var(--c-text-main);
    font: inherit;
    font-size: var(--fs-body-s);
    cursor: pointer;
}
.contact-item__link--copy:hover { color: var(--c-anthracite-dark); }

/* ----- Main column ----- */
.contacts-main {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
    min-width: 0;
}
.contacts-main__map {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--c-border);
    border-radius: var(--r-block);
    overflow: hidden;
    background: var(--c-bg-third);
}
.contacts-main__map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.contacts-main__route {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    padding-inline: var(--sp-l);
    color: var(--c-anthracite);
}
.contacts-main__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h3);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
}
.route-block {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}
.route-block__head {
    margin: 0;
    font-family: var(--ff-text);
    font-weight: 700;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.route-block__list {
    list-style: disc;
    margin: 0;
    padding-left: 1.4em;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xxs);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.route-block__list li { padding-left: 4px; }

@media (min-width: 768px) {
    .contacts-page { padding-block: var(--sp-s) var(--section-pad-y); }
    .contacts-page__title { font-size: var(--fs-h2); }
    .contacts-side__photo { aspect-ratio: 16 / 9; }
    .contacts-main__map { aspect-ratio: 16 / 9; }
}

@media (min-width: 1280px) {
    .contacts-page { padding-block: var(--sp-l) var(--sp-xxl); }
    .contacts-page__title { font-size: var(--fs-h1); }
    .contacts-page__grid {
        grid-template-columns: 496px minmax(0, 1fr);
        gap: 0;
    }
    .contacts-side__photo { aspect-ratio: auto; height: 300px; }
    .contacts-main { padding-top: 0; }
    .contacts-main__map { aspect-ratio: auto; height: 440px; }
    .contacts-main__route { max-width: 800px; padding-block: var(--sp-l); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--c-anthracite-dark);
    color: var(--c-grey-bg);
    padding-block: var(--sp-xl) var(--sp-m);
}
.site-footer__container { display: flex; flex-direction: column; gap: var(--sp-xl); }
.site-footer__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-l);
    padding-bottom: var(--sp-xl);
    border-bottom: 1px solid var(--c-anthracite);
}
.site-footer__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-l);
}

.socials { display: flex; align-items: center; gap: var(--sp-xs); }
.socials__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--c-anthracite);
    color: var(--c-bg-main);
    border-radius: var(--r-pill);
    box-shadow: var(--sh-md);
    transition: background-color var(--tr), transform var(--tr-fast);
}
.socials__link:hover { background: var(--c-yellow); color: var(--c-anthracite-dark); transform: translateY(-2px); }
.socials__link svg { width: 22px; height: 22px; }

.site-footer__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
}
.footer-col__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-m);
    text-transform: uppercase;
    color: var(--c-grey-bg);
    margin: 0 0 var(--sp-xs);
    letter-spacing: 0;
}
.footer-col__list { display: flex; flex-direction: column; }
.footer-col__list a {
    display: inline-block;
    padding: 8px 0;
    font-size: var(--fs-body-m);
    color: var(--c-grey-bg);
    transition: color var(--tr);
}
.footer-col__list a:hover { color: var(--c-yellow); }

.footer-contacts { display: flex; flex-direction: column; gap: var(--sp-l); }
.footer-contacts li {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}
.footer-contacts a, .footer-contacts address {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-body-m);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-grey-bg);
    transition: color var(--tr);
}
.footer-contacts a:hover { color: var(--c-yellow); }
.footer-contacts__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    background: var(--c-yellow);
    box-shadow: var(--sh-md);
}
.footer-contacts__icon svg { width: 24px; height: 24px; }

.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-s);
    padding-top: var(--sp-m);
    border-top: 1px solid var(--c-anthracite);
    font-size: var(--fs-body-xs);
    color: var(--c-bg-main);
    line-height: 1.5;
}
.site-footer__bottom a { color: inherit; }
.site-footer__bottom a:hover { color: var(--c-yellow); }
.site-footer__disclaimer { color: rgba(255, 255, 255, .8); }

/* ============================================================
   TABLET ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
    :root {
        --container-pad: 24px;
        --section-pad-y: 64px;
        --grid-gap: 24px;
        --fs-display: 56px;
        --fs-display-l: 56px;
        --fs-display-m: 46px;
        --fs-h1:  36px;
        --fs-h2:  32px;
        --fs-h3:  28px;
        --fs-h4:  24px;
        --fs-h5:  20px;
        --fs-h6:  18px;
    }

    .logo { height: 56px; }
    .logo__text { height: 12px; }

    /* Sticky шапка — только на планшете и выше; на мобиле зафиксирована нижняя менюшка */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .site-header__container { padding-block: var(--sp-s); gap: var(--sp-xs); }
    .site-header__top { gap: var(--sp-l); }
    .site-header__actions { display: flex; }
    .phone-pill { display: inline-flex; }

    /* На планшете и выше — прячем мобильный кластер 3 кнопок, нижнюю менюшку и моб-секции дропдауна */
    .site-header__compact { display: none; }
    .mobile-bottom-nav { display: none; }
    body { padding-bottom: 0; }
    .site-header__bottom .site-search { display: flex; }
    .site-header__bottom .site-header__icons { display: flex; }

    /* Компактная шапка при скролле */
    .site-header--scrolled .site-header__top { display: none; }
    .site-header--scrolled .site-header__scroll { display: flex; }

    .site-header--scrolled .site-header__container { position: relative; }
    .site-header--scrolled .site-header__bottom {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 0;
        overflow: visible;
    }
    .site-header--scrolled .site-header__bottom .site-search,
    .site-header--scrolled .site-header__bottom .site-header__icons,
    .site-header--scrolled .site-header__bottom .catalog-nav {
        display: none;
    }

    .catalog-dropdown__close,
    .catalog-dropdown__m-section,
    .catalog-dropdown__m-cta,
    .catalog-dropdown__panel-head { display: none !important; }

    /* Восстанавливаем десктопный вид мегаменю */
    .catalog-dropdown {
        position: absolute;
        top: calc(100% + var(--sp-xxs));
        left: 0;
        right: 0;
        bottom: auto;
        max-height: none;
        overflow: hidden;
        padding-bottom: 0;
    }
    .catalog-dropdown__cols {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) repeat(4, 2fr);
    }
    .catalog-dropdown__sidebar {
        padding: var(--sp-xxs);
        margin-bottom: 0;
    }
    .catalog-dropdown__sidebar-link { padding: var(--sp-s) var(--sp-m); }
    .catalog-dropdown__panel { display: contents; padding: 0; }
    .catalog-dropdown__panel[hidden] { display: none; }
    .catalog-dropdown__col {
        gap: var(--sp-xl);
        padding: var(--sp-l) 0;
    }

    .site-search__photo { display: inline-flex; }
    .site-search__input { padding-right: 220px; }

    .hero__slide {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-l);
        padding-block: var(--sp-l);
    }
    .hero__copy { padding-top: 0; justify-content: center; }
    .hero__media { aspect-ratio: 1 / 1; }
    .hero__nav { left: auto; right: 50%; transform: translateX(50%); bottom: var(--sp-l); }

    .features__list { grid-template-columns: repeat(2, 1fr); }

    .categories__grid { grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }

    .bestsellers__head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--sp-l);
    }
    .tabs { flex: 0 0 auto; flex-wrap: nowrap; }
    .tabs__btn { flex: 0 0 auto; width: 200px; padding: var(--sp-s) var(--sp-xl); }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }

    .banners__grid { grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
    .banner-card {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: 400px;
    }
    .banner-card__media { grid-row: 1; grid-column: 2; min-height: auto; }
    .banner-card__title { font-size: 32px; }

    .brands__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .brands__grid { grid-template-columns: repeat(5, 1fr); gap: var(--grid-gap); }

    .info__grid { grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
    .info__hero { margin-inline: 0; border-radius: var(--r-block); }

    .contacts__row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        gap: var(--sp-l);
        margin-bottom: var(--sp-l);
    }
    .contacts__photo { aspect-ratio: auto; height: 100%; min-height: 300px; }
    .contacts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .review-card { flex-basis: calc((100% - var(--grid-gap)) / 2); }

    .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
    .site-footer__cta { margin-left: auto; }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
    .site-footer__bottom {
        grid-template-columns: auto auto auto 1fr;
        align-items: start;
        gap: var(--sp-l);
    }

    /* Планшет: компактная шапка — уменьшаем отступы, скрываем текст телефона */
    .site-header__scroll { gap: var(--sp-s); }
    .site-header__scroll .site-search { margin: 0 var(--sp-s); }
    .site-header__scroll .phone-pill__text { display: none; }
}

/* ============================================================
   DESKTOP ≥ 1280px
   ============================================================ */
@media (min-width: 1280px) {
    :root {
        --container-pad: 32px;
        --section-pad-y: 96px;
        --fs-display: 64px;
        --fs-display-l: 64px;
        --fs-display-m: 52px;
        --fs-h1: 40px;
        --fs-h2: 36px;
        --fs-h3: 32px;
        --fs-h4: 28px;
        --fs-h5: 22px;
        --fs-h6: 20px;
    }

    /* Header — tighter top bar with utility nav visible */
    .utility-nav { display: block; }
    .site-header__container { padding-block: var(--sp-xs) var(--sp-m); gap: var(--sp-xxs); }
    .site-header__top { padding-block: 0; }
    .site-header__bottom { gap: var(--sp-xxl); }
    .catalog-nav { display: block; }
    .site-header__icons { gap: var(--sp-m); }
    .logo { height: 70px; gap: var(--sp-m); }
    .logo__text { height: 15px; }
    .catalog-dropdown { display: flex; }
    .catalog-dropdown[hidden] { display: none; }
    .site-header__scroll .phone-pill__text { display: inline-flex; }

    .hero__container { padding-block: var(--sp-m); }
    .hero__slide {
        gap: 0;
        min-height: 600px;
        padding-block: var(--sp-m);
    }
    .hero__copy { padding-right: var(--sp-xxl); }
    .hero__title { max-width: 716px; }
    .hero__media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 600px;
        margin-right: calc(-1 * var(--container-pad));
    }
    .hero__media img {
        transform: scale(1.1);
        transform-origin: left center;
    }
    .hero__nav { left: 50%; right: auto; transform: translateX(-50%); bottom: 0; }

    .features__list { grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }

    .product-grid { grid-template-columns: repeat(4, 1fr); }

    .info__grid { gap: var(--grid-gap); }

    .contacts__row { gap: var(--sp-l); }
    .contacts__map { aspect-ratio: 21 / 9; }

    .accordion { max-width: 1200px; }

    .reviews__slider { margin-inline: 56px; margin-bottom: var(--sp-xxl); }
    .reviews__track { padding-block: var(--sp-xs); }
    .review-card { flex-basis: calc((100% - 2 * var(--grid-gap)) / 3); }
    .review-card__date { font-size: var(--fs-body-l); }
    .reviews__nav { display: inline-flex; }
    .reviews__nav--prev { left: -64px; }
    .reviews__nav--next { right: -56px; }

    .site-footer__cols { grid-template-columns: 366px 1fr 1fr 1fr; gap: var(--grid-gap); }
}

/* ============================================================
   LARGE DESKTOP ≥ 1600px (Figma reference)
   ============================================================ */
@media (min-width: 1600px) {
    :root {
        --container-pad: 32px;
    }
    /* Sections breathe with the 160px page gutter from Figma */
    .container { padding-inline: 32px; }
    .site-header,
    .hero,
    .features,
    .categories,
    .bestsellers,
    .banners,
    .brands,
    .faq,
    .reviews,
    .info,
    .site-footer {
        padding-inline: clamp(0px, calc((100vw - 1600px) / 2), 160px);
    }
    .site-header { padding-inline: 0; }
}

/* ============================================================
   MODAL (Figma: «Модалка записи на визуализацию»)
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-m);
}
.modal[hidden] { display: none; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 23, 29, .55);
}
.modal__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2 * var(--sp-m));
    overflow: auto;
    padding: var(--sp-xl) var(--sp-l) var(--sp-l);
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: var(--sh-xl);
}
.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--r-button);
    color: var(--c-anthracite-dark);
    cursor: pointer;
    transition: background-color var(--tr);
}
.modal__close:hover { background: var(--c-bg-fourth); }
.modal__close svg { width: 24px; height: 24px; display: block; }

.modal__title {
    margin: 0 0 var(--sp-l);
    color: var(--c-text-main);
    font-size: var(--fs-h3);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
.modal__field { gap: var(--sp-xs); }
.modal__field .form-control {
    background: var(--c-bg-main);
    border-radius: 8px;
}

.modal__consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: var(--sp-xs);
    align-items: center;
    cursor: pointer;
}
.modal__consent-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}
.modal__consent-box {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-main);
    border: 1px solid var(--c-anthracite);
    border-radius: 1px;
    color: transparent;
    transition: background-color var(--tr), color var(--tr), border-color var(--tr);
}
.modal__consent-box svg { width: 14px; height: 14px; display: block; }
.modal__consent-input:checked + .modal__consent-box {
    background: var(--c-anthracite);
    border-color: var(--c-anthracite);
    color: var(--c-on-color);
}
.modal__consent-input:focus-visible + .modal__consent-box {
    box-shadow: var(--ring-focus);
}
.modal__consent-text {
    font-family: var(--ff-text);
    font-size: var(--fs-body-xs);
    line-height: 1.5;
    color: var(--c-text-main);
}
.modal__consent-text a { text-decoration: underline; color: inherit; }
.modal__consent-text a:hover { color: var(--c-anthracite); }

.modal__submit {
    align-self: stretch;
    justify-content: center;
    text-transform: uppercase;
    color: var(--c-grey-bg);
    font-weight: 600;
}
.modal__submit:hover { color: var(--c-grey-bg); }
.modal__submit .ic { width: 24px; height: 24px; }

/* Wide variant + 2-column grid (Figma: «Запись на 3d визуализацию») */
.modal__panel--wide { max-width: 800px; }
.modal__consents {
    display: flex;
    flex-direction: column;
    gap: var(--sp-s);
}

@media (min-width: 768px) {
    .modal__form--grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: var(--sp-l-plus);
        row-gap: var(--sp-l);
    }
    .modal__form--grid .modal__consents,
    .modal__form--grid .modal__submit {
        grid-column: 1 / -1;
    }
    .modal__form--grid .modal__submit { align-self: flex-start; }
}

/* Photo-search modal: drop zone + "or" caption + light file button */
.modal__or {
    margin: 0;
    text-align: center;
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    font-weight: 600;
    color: var(--c-anthracite);
}
.modal__dropzone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-l-plus);
    padding: var(--sp-xl) var(--sp-l);
    background: var(--c-bg-main);
    border: 1px dashed var(--c-border);
    border-radius: 24px;
    cursor: pointer;
    transition: border-color var(--tr), background-color var(--tr);
}
.modal__dropzone.is-dragover {
    border-color: var(--c-anthracite);
    background: var(--c-bg-second);
}
.modal__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}
.modal__file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    padding: 14px 22px;
    background: var(--c-text-disabled);
    color: var(--c-anthracite-dark);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    text-transform: uppercase;
    box-shadow: var(--sh-xsm);
    transition: background-color var(--tr);
}
.modal__file-input:focus-visible + .modal__file-btn {
    box-shadow: var(--ring-focus);
}
.modal__dropzone:hover .modal__file-btn { background: #cdd1d8; }
.modal__file-btn .ic { width: 24px; height: 24px; }
.modal__dropzone-hint {
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-m);
    color: var(--c-anthracite);
}

body.modal-open { overflow: hidden; }

/* ============================================================
   CATALOG PAGE
   ============================================================ */

/* ----- Breadcrumbs ----- */
.breadcrumbs {
    background: var(--c-bg-main);
}
.breadcrumbs__container { padding-block: var(--sp-xs); }
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-xxs);
    font-family: var(--ff-text);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-text-second);
}
.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xxs);
}
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    color: var(--c-text-second);
    transition: color var(--tr);
}
.breadcrumbs__link:hover { color: var(--c-anthracite-dark); }
.breadcrumbs__icon { width: 16px; height: 16px; flex-shrink: 0; }
.breadcrumbs__sep { width: 16px; height: 16px; flex-shrink: 0; color: var(--c-text-third); }
.breadcrumbs__current {
    color: var(--c-anthracite-dark);
    font-weight: 400;
}

/* ----- Catalog layout ----- */
.catalog-page { padding-block: var(--sp-l) 0; }
.catalog-page__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}

.catalog-page__filter-toggle {
    align-self: flex-start;
    gap: var(--sp-xs);
}

/* ----- Sidebar (mobile drawer / desktop column) ----- */
.catalog-sidebar {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    background: var(--c-bg-main);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.catalog-sidebar.is-open { display: flex; }

.catalog-sidebar__topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-m);
    background: var(--c-bg-main);
    border-bottom: 1px solid var(--c-border);
}
.catalog-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--c-anthracite-dark);
    border-radius: var(--r-button);
    background: var(--c-grey-bg);
    transition: background-color var(--tr);
}
.catalog-sidebar__close:hover { background: var(--c-bg-fourth); }
.catalog-sidebar__close svg { width: 22px; height: 22px; }

.catalog-sidebar__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-s);
    padding: var(--sp-m);
    margin-top: auto;
    background: var(--c-bg-main);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 12px -8px rgba(16, 24, 40, .12);
}
.catalog-sidebar__footer .btn { flex: 1 1 auto; justify-content: center; }
.catalog-sidebar__footer .filter-link-btn { flex: 0 0 auto; }

/* ----- Filter block (accordion) ----- */
.filter-block {
    background: var(--c-bg-main);
    border-bottom: 1px solid var(--c-border);
}
.filter-block:last-of-type { border-bottom: none; }
.filter-block__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-xs);
    width: 100%;
    padding: var(--sp-m);
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--c-anthracite-dark);
}
.filter-block__head:hover { background: var(--c-bg-second); }
.filter-block__title-wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.filter-block__title {
    flex: 1 1 auto;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-body-l);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
}
.filter-block__subtitle {
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-xxs);
    line-height: 1.5;
    color: var(--c-text-second);
}
.filter-block__toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 2px;
    color: var(--c-anthracite-dark);
    transition: transform var(--tr);
}
/* Vertical bar shows ONLY when collapsed → makes the `+` */
.filter-block.is-open .filter-block__toggle-icon-vert { opacity: 0; }
.filter-block:not(.is-open) .filter-block__toggle-icon-vert { opacity: 1; }
.filter-block__toggle-icon-vert { transition: opacity var(--tr); }

.filter-block__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
    padding: 0 var(--sp-m) var(--sp-m);
}
.filter-block__body[hidden] { display: none; }

.filter-block__quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-l);
}
.filter-block__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-m);
    flex-wrap: wrap;
}

/* Filter chips (selected/removable + soft selectable) */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xxs);
    padding: 2px var(--sp-xs);
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-xs);
    line-height: 1.5;
    color: var(--c-anthracite);
    cursor: pointer;
    transition: background-color var(--tr), color var(--tr), border-color var(--tr);
}
.filter-chip:hover { border-color: var(--c-anthracite); color: var(--c-anthracite-dark); }
.filter-chip__count { color: var(--c-text-second); }
.filter-chip__remove {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--c-grey-bg);
}
.filter-chip__remove svg,
.filter-chip__remove path { vector-effect: non-scaling-stroke; }
.filter-chip--removable,
.filter-chip--active {
    background: var(--c-anthracite-dark);
    border-color: var(--c-anthracite-dark);
    color: var(--c-grey-bg);
}
.filter-chip--removable:hover,
.filter-chip--active:hover {
    background: #000;
    color: var(--c-bg-main);
    border-color: #000;
}

/* Link-style button (text + leading icon) inside filter block */
.filter-link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: 6px 0;
    background: transparent;
    border: 0;
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    line-height: calc(20 / 14);
    color: var(--c-anthracite);
    cursor: pointer;
    transition: color var(--tr);
}
.filter-link-btn svg { width: 16px; height: 16px; }
.filter-link-btn:hover { color: var(--c-anthracite-dark); }
.filter-link-btn--danger svg { color: var(--c-danger); }
.filter-link-btn--success svg { color: #1aa260; }

/* Filter search field */
.filter-search {
    position: relative;
    display: flex;
    align-items: center;
}
.filter-search__icon {
    position: absolute;
    left: var(--sp-m);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--c-text-second);
    pointer-events: none;
}
.filter-search__input {
    width: 100%;
    min-height: 56px;
    padding: var(--sp-m) var(--sp-m) var(--sp-m) 48px;
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr);
}
.filter-search__input::placeholder { color: var(--c-text-second); }
.filter-search__input:focus { border-color: var(--c-anthracite-dark); box-shadow: var(--ring-focus); }

/* Filter options (checkbox list) */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
}
.filter-option {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: start;
    column-gap: var(--sp-s);
    cursor: pointer;
}
.filter-option__input {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.filter-option__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-field);
    color: transparent;
    transition: background-color var(--tr), border-color var(--tr), color var(--tr);
    margin-top: 2px;
}
.filter-option__box svg { width: 12px; height: 12px; display: block; }
.filter-option__input:checked + .filter-option__box {
    background: var(--c-anthracite-dark);
    border-color: var(--c-anthracite-dark);
    color: var(--c-on-color);
}
.filter-option__input:focus-visible + .filter-option__box { box-shadow: var(--ring-focus); }
.filter-option__label {
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.filter-option__count {
    font-family: var(--ff-text);
    font-size: var(--fs-body-s);
    color: var(--c-text-second);
    line-height: calc(24 / 14);
}
.filter-option__flag {
    display: inline-block;
    width: 18px;
    height: auto;
    margin-right: var(--sp-xxs);
    vertical-align: middle;
    border-radius: 2px;
}
.filter-option--disabled,
.filter-option:has(input:disabled) {
    cursor: not-allowed;
}
.filter-option--disabled .filter-option__label,
.filter-option:has(input:disabled) .filter-option__label {
    color: var(--c-text-third);
}

/* "+ еще N" link button */
.filter-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px var(--sp-xs);
    background: var(--c-bg-second);
    border: 0;
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    line-height: calc(20 / 14);
    color: var(--c-anthracite-dark);
    cursor: pointer;
    transition: background-color var(--tr);
}
.filter-more:hover { background: var(--c-bg-fourth); }

/* Range slider (dual thumb) */
.range-slider {
    --thumb-size: 20px;
    --track-h: 8px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    padding-top: var(--sp-l);
}
.range-slider__bubbles {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-s);
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    color: var(--c-anthracite);
}
.range-slider__bubble {
    display: inline-block;
    padding: 6px var(--sp-m);
    background: var(--c-bg-main);
    box-shadow: 0 2px 8px 0 rgba(19, 56, 77, .1), 0 0 1px 0 #a7a8ab;
    border-radius: 2px;
    line-height: 1.5;
}
.range-slider__track {
    position: relative;
    height: var(--thumb-size);
}
.range-slider__track::before {
    content: "";
    position: absolute;
    inset: calc((var(--thumb-size) - var(--track-h)) / 2) 0;
    background: var(--c-bg-third);
    border-radius: 1000px;
}
.range-slider__progress {
    position: absolute;
    top: calc((var(--thumb-size) - var(--track-h)) / 2);
    bottom: calc((var(--thumb-size) - var(--track-h)) / 2);
    background: var(--c-yellow);
    border-radius: 1000px;
    pointer-events: none;
}
.range-slider__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: var(--thumb-size);
    margin: 0;
    padding: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}
.range-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    border: none;
    border-radius: 50%;
    background: var(--c-anthracite-dark);
    box-shadow: 0 2px 8px 0 rgba(19, 56, 77, .25);
    cursor: pointer;
    pointer-events: auto;
}
.range-slider__input::-moz-range-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    border: none;
    border-radius: 50%;
    background: var(--c-anthracite-dark);
    box-shadow: 0 2px 8px 0 rgba(19, 56, 77, .25);
    cursor: pointer;
    pointer-events: auto;
}
.range-slider__limits {
    display: flex;
    justify-content: space-between;
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-s);
    color: var(--c-anthracite);
}

/* ----- Catalog main column ----- */
.catalog-main {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
    min-width: 0;
}
.catalog-main__head {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
.catalog-main__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-h1);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--c-anthracite-dark);
}

.subcategory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}
/* Subcategory chips use the default filter-chip palette (bg-second + base border) */
.subcategory-chips .filter-chip:hover {
    background: var(--c-bg-main);
    border-color: var(--c-anthracite);
}

/* Toolbar (tabs + sort) */
.catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
}
.catalog-tabs.tabs { flex-wrap: wrap; }
.catalog-tabs .tabs__btn {
    flex: 1 1 auto;
    text-transform: uppercase;
    font-weight: 600;
    padding: var(--sp-s) var(--sp-l);
}

.catalog-sort { display: flex; }
.catalog-sort__field {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    transition: border-color var(--tr), box-shadow var(--tr);
}
.catalog-sort__field:focus-within { border-color: var(--c-anthracite-dark); box-shadow: var(--ring-focus); }
.catalog-sort__icon {
    width: 24px;
    height: 24px;
    margin-left: var(--sp-m);
    color: var(--c-anthracite);
    pointer-events: none;
}
.catalog-sort__chev {
    width: 20px;
    height: 20px;
    margin-right: var(--sp-m);
    color: var(--c-anthracite);
    pointer-events: none;
}
.catalog-sort__select {
    flex: 1 1 auto;
    min-height: 48px;
    padding: var(--sp-s) var(--sp-xs);
    background: transparent;
    border: 0;
    font-family: var(--ff-text);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ----- Catalog grid: keep 1 col on mobile, 2 on tablet, 3 on desktop ----- */
.product-grid.catalog-grid { grid-template-columns: 1fr; }

/* ----- Pagination ----- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    margin-top: var(--sp-m);
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    box-shadow: 0 1px 1px 0 rgba(16, 24, 40, .04);
    font-family: var(--ff-text);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-text-second);
    cursor: pointer;
    transition: background-color var(--tr), color var(--tr), border-color var(--tr);
}
.pagination__btn:hover { background: var(--c-bg-main); color: var(--c-anthracite-dark); border-color: var(--c-anthracite); }
.pagination__btn--active,
.pagination__btn[aria-current="page"] {
    background: var(--c-anthracite);
    border-color: var(--c-anthracite);
    color: var(--c-yellow);
}
.pagination__btn--active:hover { background: var(--c-anthracite-dark); color: var(--c-yellow); }
.pagination__btn--arrow svg { width: 16px; height: 16px; }
.pagination__btn--gap { background: transparent; border-color: transparent; box-shadow: none; cursor: default; }
.pagination__btn--gap:hover { background: transparent; color: var(--c-text-second); border-color: transparent; }

/* ----- SEO block ----- */
.seo-block {
    margin-top: var(--sp-xl);
    padding-block: var(--sp-xl);
    background: var(--c-bg-second);
    border-top: 1px solid var(--c-border);
}
.seo-block__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
.seo-block__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-h3);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--c-anthracite-dark);
    text-align: center;
}
.seo-block__text {
    margin: 0;
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: 1.7;
    color: var(--c-anthracite);
}
.seo-block__text p {
    margin: 0 0 var(--sp-m) 0;
}
.seo-block__text p:last-child {
    margin-bottom: 0;
}
.seo-block__text h2,
.seo-block__text h3,
.seo-block__text h4 {
    font-family: var(--ff-heading);
    font-weight: 700;
    color: var(--c-anthracite-dark);
    margin: var(--sp-l) 0 var(--sp-s) 0;
    line-height: 1.3;
}
.seo-block__text h2 { font-size: var(--fs-h3); }
.seo-block__text h3 { font-size: var(--fs-h4); }
.seo-block__text h4 { font-size: var(--fs-body-l); }
.seo-block__text ul {
    list-style: disc;
    padding-left: var(--sp-l);
    margin: 0 0 var(--sp-m) 0;
}
.seo-block__text ol {
    list-style: decimal;
    padding-left: var(--sp-l);
    margin: 0 0 var(--sp-m) 0;
}
.seo-block__text li {
    margin-bottom: var(--sp-xs);
}
.seo-block__text strong,
.seo-block__text b {
    font-weight: 600;
    color: var(--c-anthracite-dark);
}
.seo-block__text a {
    color: var(--c-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.seo-block__text a:hover {
    text-decoration: none;
}

/* Helper: visually-hidden */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Lock body when filter drawer is open on mobile */
body.filters-open { overflow: hidden; }

@media (min-width: 768px) {
    .breadcrumbs__container { padding-block: var(--sp-s); }
    .catalog-page { padding-block: var(--sp-l-plus) 0; }

    .catalog-main__title { font-size: var(--fs-h2); }
    .catalog-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .catalog-tabs.tabs { flex-wrap: nowrap; }
    .catalog-tabs .tabs__btn { flex: 0 0 auto; padding: var(--sp-s) var(--sp-xl); width: auto; }
    .catalog-sort { width: 300px; flex: 0 0 auto; }

    .product-grid.catalog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }

    .seo-block { padding-block: var(--sp-xxl); margin-top: var(--sp-xxl); }
    .seo-block__container { padding-inline: var(--sp-l); }
}

@media (min-width: 1280px) {
    /* Sidebar inline at desktop sizes */
    .catalog-page { padding-block: var(--sp-xl) 0; }
    .catalog-page__container {
        display: grid;
        grid-template-columns: 366px minmax(0, 1fr);
        gap: var(--sp-l);
        align-items: start;
    }
    .catalog-page__filter-toggle { display: none; }

    .catalog-sidebar {
        position: static;
        display: flex;
        inset: auto;
        overflow: visible;
        background: var(--c-bg-main);
        border: 1px solid var(--c-border);
        border-radius: var(--r-card);
        max-height: none;
    }
    .catalog-sidebar.is-open { display: flex; }
    .catalog-sidebar__topbar,
    .catalog-sidebar__footer { display: none; }

    .product-grid.catalog-grid { grid-template-columns: repeat(3, 1fr); }

    .catalog-main__title { font-size: 40px; }
}

@media (min-width: 1600px) {
    .seo-block { padding-inline: clamp(0px, calc((100vw - 1600px) / 2), 160px); }
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-wrapper .catalog-main { width: 100%; }
.search-page-wrapper .catalog-page__container { display: block; }

.search-form-box {
    margin-bottom: var(--sp-m);
}
.search-form {
    display: flex;
    gap: var(--sp-s);
    flex-wrap: wrap;
}
.search-form__input {
    flex: 1 1 auto;
    min-width: 240px;
    padding: var(--sp-s) var(--sp-m);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
    background: var(--c-bg-main);
    outline: none;
    transition: border-color var(--tr);
}
.search-form__input:focus { border-color: var(--c-anthracite); }
.search-form__btn {
    padding: var(--sp-s) var(--sp-xl);
    background: var(--c-anthracite-dark);
    color: var(--c-bg-main);
    border: 1px solid var(--c-anthracite-dark);
    border-radius: var(--r-button);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    cursor: pointer;
    transition: background-color var(--tr), border-color var(--tr);
}
.search-form__btn:hover {
    background: var(--c-anthracite);
    border-color: var(--c-anthracite);
}

.search-toolbar { justify-content: flex-end; }

/* Search grid: 2 cols mobile, 4 cols tablet+, no sidebar */
.product-grid.search-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
    .product-grid.search-grid { grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
}

/* ============================================================
   Product page
   ============================================================ */
.product-page { padding-block: 0 var(--section-pad-y); }
.product-page__head { padding-block: var(--sp-s) var(--sp-l); }
.product-page__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h1);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--c-anthracite-dark);
}

/* ---- Hero (gallery + info panel) ---- */
.product-hero { padding-block: 0 var(--sp-l); }
.product-hero__container { padding-inline: var(--container-pad); }
.product-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
}
.product-gallery__stage {
    position: relative;
    background: transparent;
    border-radius: var(--r-inside-m);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-gallery__badge {
    position: absolute;
    top: var(--sp-m);
    left: var(--sp-m);
    background: var(--c-bg-fourth);
    color: var(--c-anthracite-dark);
    padding: var(--sp-xs) var(--sp-m);
    border-radius: var(--r-inside-m);
    font-size: var(--fs-body-s);
    font-weight: 600;
    line-height: 1.5;
}
.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-xs);
}
.product-gallery__thumb {
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--c-bg-main);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--tr), box-shadow var(--tr);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb:hover { border-color: var(--c-anthracite); }
.product-gallery__thumb.is-active {
    border-color: var(--c-anthracite-dark);
    box-shadow: 0 0 0 1px var(--c-anthracite-dark);
}

/* Info panel — light-grey rounded card */
.product-info {
    background: var(--c-bg-second);
    border-radius: var(--r-inside-m);
    padding: var(--sp-l);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}
.product-info__head { display: flex; flex-direction: column; gap: var(--sp-xs); }
.product-info__labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-s);
    flex-wrap: wrap;
}
.product-info__brand {
    font-size: var(--fs-body-m);
    color: var(--c-anthracite);
}
.product-info__brand a {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-info__brand a:hover { color: var(--c-anthracite-dark); }

.info-label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xxs);
    padding: var(--sp-xs) var(--sp-m);
    border-radius: var(--r-inside-m);
    font-size: var(--fs-body-s);
    font-weight: 600;
    line-height: 1.5;
}
.info-label--dark { background: var(--c-anthracite-dark); color: var(--c-on-color); }
.info-label--success { background: #e9f8f1; color: #27b973; }
.info-label--copy {
    cursor: pointer;
    user-select: none;
    transition: opacity .2s ease;
}
.info-label--copy:hover { opacity: .85; }
.info-label--copy.is-copied {
    background: #27b973;
    color: #fff;
}

/* Price + units */
.product-info__price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-m);
    flex-wrap: wrap;
}
.product-price { display: flex; flex-direction: column; gap: var(--sp-xxs); }
.product-price__old {
    color: var(--c-text-second);
    font-family: var(--ff-heading);
    font-weight: 300;
    font-size: var(--fs-body-l);
    text-decoration: line-through;
}
.product-price__current {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-h2);
    color: var(--c-anthracite-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.product-price__current span {
    font-size: var(--fs-body-l);
    font-weight: 700;
}

.product-units { display: inline-flex; gap: var(--sp-xs); }
.product-units__btn {
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    padding: var(--sp-xs) var(--sp-m);
    font-size: var(--fs-body-s);
    color: var(--c-text-main);
    line-height: 1.5;
    cursor: pointer;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.product-units__btn:hover { border-color: var(--c-anthracite); }
.product-units__btn.is-active {
    background: var(--c-anthracite-dark);
    color: var(--c-on-color);
    border-color: var(--c-anthracite-dark);
}
.product-units__btn sup { font-size: 0.65em; vertical-align: super; }

/* Buy: row 1 = qty + cart (same height); row 2 = reserves under both */
.product-info__buy {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
}
.product-buy__row {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    flex-wrap: wrap;
}

.qty {
    display: inline-flex;
    gap: var(--sp-xs);
    align-items: center;
}
.qty__btn {
    width: 56px;
    height: 56px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    background: var(--c-bg-main);
    color: var(--c-anthracite-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.qty__btn svg { width: 16px; height: 16px; }
.qty__btn:hover { border-color: var(--c-anthracite); }
.qty__btn--plus { background: var(--c-anthracite-dark); color: var(--c-on-color); border-color: var(--c-anthracite-dark); box-shadow: var(--sh-sm); }
.qty__btn--plus:hover { background: #000; border-color: #000; }
.qty__input {
    width: 72px;
    height: 56px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    text-align: center;
    font-size: var(--fs-body-l);
    font-weight: 600;
    color: var(--c-text-second);
    background: var(--c-bg-main);
    -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.reserve {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-m);
}
.reserve__opt {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    cursor: pointer;
    user-select: none;
}
.reserve__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.reserve__box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--c-anthracite-dark);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: background var(--tr), color var(--tr);
}
.reserve__box svg { width: 10px; height: 10px; }
.reserve__input:checked + .reserve__box {
    background: var(--c-anthracite-dark);
    color: var(--c-on-color);
}
.reserve__input:focus-visible + .reserve__box { box-shadow: var(--ring-focus); }
.reserve__label {
    font-size: var(--fs-body-m);
    color: var(--c-text-main);
}

.product-info__cart {
    flex: 1 1 auto;
    height: 56px;
    min-width: 200px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-inline: var(--sp-xl);
    background: var(--c-anthracite-dark);
}

/* Spec list (quick characteristics under buy block) */
.spec-list { display: flex; flex-direction: column; }
.spec-list__row {
    display: flex;
    gap: var(--sp-l);
    align-items: flex-start;
    padding: var(--sp-s) 0;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--fs-body-s);
    line-height: 1.5;
}
.spec-list__key {
    font-weight: 600;
    color: var(--c-text-main);
    flex: 0 0 auto;
    min-width: 110px;
}
.spec-list__val {
    flex: 1;
    color: var(--c-anthracite);
    text-align: right;
}
.spec-list__val a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.spec-list__val a:hover { color: var(--c-anthracite-dark); }
.spec-list__more { padding: var(--sp-xs) 0; }
.spec-list__more-link {
    font-size: var(--fs-body-s);
    color: var(--c-anthracite);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.spec-list__more-link:hover { color: var(--c-anthracite-dark); }

/* Marketing cards inside info panel */
.marketing-cards {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
}
.marketing-card {
    background: var(--c-bg-main);
    border-radius: var(--r-inside-m);
    box-shadow: var(--sh-md);
    padding: var(--sp-m) var(--sp-l);
    display: flex;
    gap: var(--sp-m);
    align-items: flex-start;
}
.marketing-card__icon {
    background: var(--c-grey-bg);
    width: 48px; height: 48px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-anthracite-dark);
}
.marketing-card__icon svg { width: 32px; height: 32px; }
.marketing-card__body { display: flex; flex-direction: column; gap: var(--sp-xxs); }
.marketing-card__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-l);
    line-height: 1.2;
    color: var(--c-anthracite-dark);
    letter-spacing: -0.01em;
}
.marketing-card__lead {
    font-size: var(--fs-body-s);
    color: var(--c-anthracite-dark);
    line-height: 1.5;
}
.marketing-card__link {
    margin-top: var(--sp-xxs);
    font-size: var(--fs-body-s);
    color: var(--c-anthracite);
    text-decoration: underline;
    text-underline-offset: 2px;
    align-self: flex-start;
}
.marketing-card__link:hover { color: var(--c-anthracite-dark); }

/* ---- Feature tiles row (categories) ---- */
.product-features { padding-block: var(--sp-l); }
.product-features__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
}
.feature-tile {
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    padding: var(--sp-l);
    display: flex;
    gap: var(--sp-m);
    align-items: center;
}
.feature-tile__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--c-yellow);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature-tile__icon svg { width: 28px; height: 28px; }
.feature-tile__body { display: flex; flex-direction: column; gap: var(--sp-xxs); }
.feature-tile__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-l);
    color: var(--c-anthracite-dark);
    line-height: 1.2;
}
.feature-tile__text {
    font-size: var(--fs-body-s);
    color: var(--c-anthracite);
    line-height: 1.5;
}

/* ---- Tab block (Описание / Характеристики / ...) ---- */
.product-tabs { padding-block: var(--sp-l) var(--section-pad-y); }
.product-tabs__nav {
    flex-wrap: wrap;
    margin-bottom: var(--sp-xl);
}
.product-tabs__nav .tabs__btn {
    text-transform: uppercase;
    padding: var(--sp-s) var(--sp-l);
    font-size: var(--fs-body-s);
}
.product-tabs__panel { padding: 0 var(--sp-l); }
.product-tabs__panel[hidden] { display: none; }

.product-description {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
    max-width: 952px;
}

/* Long characteristics list with dotted leaders */
.char-list { display: flex; flex-direction: column; max-width: 952px; }
.char-list__row {
    display: flex;
    align-items: baseline;
    gap: var(--sp-s);
    padding: var(--sp-s) 0;
    font-size: var(--fs-body-m);
    line-height: 1.5;
}
.char-list__key {
    font-weight: 600;
    color: var(--c-text-main);
    flex: 0 0 auto;
}
.char-list__dots {
    flex: 1 1 auto;
    height: 1px;
    border-bottom: 1px dotted var(--c-text-third);
    transform: translateY(-4px);
    min-width: 24px;
}
.char-list__val {
    color: var(--c-anthracite);
    text-align: right;
    flex: 0 1 auto;
    max-width: 60%;
}

/* Certificates */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-s);
    max-width: 952px;
}
.certs-grid__item {
    border-radius: var(--r-inside-m);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--c-bg-second);
}
.certs-grid__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--tr);
}
.certs-grid__item:hover img { transform: scale(1.03); }

/* Product-page FAQ — reuse .accordion but tighten max-width */
.product-faq { max-width: 952px; }

/* ---- Bestsellers tweaks for product page ---- */
.bestsellers__head { flex-wrap: wrap; gap: var(--sp-m); }
.bestsellers__head .tabs { flex-wrap: wrap; }
.bestsellers__more {
    display: flex;
    justify-content: center;
    margin-top: var(--sp-l);
}

/* Recent-viewed horizontal slider */
.recent-slider { position: relative; }
.recent-slider__track {
    display: grid;
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--grid-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: var(--sp-s);
}
.recent-slider__track::-webkit-scrollbar { display: none; }
.recent-slider__track > .product-card { scroll-snap-align: start; }
.recent-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    color: var(--c-anthracite-dark);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--sh-sm);
    z-index: 2;
    transition: background var(--tr), color var(--tr);
}
.recent-slider__arrow:hover { background: var(--c-anthracite-dark); color: var(--c-yellow); }
.recent-slider__arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.recent-slider__arrow svg { width: 24px; height: 24px; }
.recent-slider__arrow--prev { left: calc(-1 * (var(--sp-xl) + 16px)); }
.recent-slider__arrow--next { right: calc(-1 * (var(--sp-xl) + 16px)); }

@media (min-width: 768px) {
    .product-page__head { padding-block: var(--sp-m) var(--sp-l); }
    .product-page__title { font-size: var(--fs-h2); }
    .product-hero__grid { gap: var(--sp-l); }
    .product-gallery__thumbs { grid-template-columns: repeat(5, 1fr); }
    .product-features__list { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-m); }
    .recent-slider__track { grid-auto-columns: calc((100% - var(--grid-gap)) / 2); }
}

@media (min-width: 1280px) {
    .product-page__head { padding-block: var(--sp-m) var(--sp-l-plus); }
    .product-page__title { font-size: var(--fs-h1); }
    .product-hero__grid {
        grid-template-columns: minmax(0, 1fr) 496px;
        gap: var(--sp-l);
    }
    .product-gallery__stage { aspect-ratio: 4 / 3; }
    .product-features__list { grid-template-columns: repeat(4, 1fr); }
    .product-tabs__nav { flex-wrap: nowrap; }
    .recent-slider__track { grid-auto-columns: calc((100% - 3 * var(--grid-gap)) / 4); }
    .recent-slider__arrow { display: inline-flex; }
    .certs-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   Brand page
   ============================================================ */
.brand-page { padding-block: 0 var(--section-pad-y); }

/* Hero: logo card + description + PDF */
.brand-hero { padding-block: var(--sp-l) var(--sp-l); }
.brand-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
    align-items: start;
}
.brand-hero__card {
    width: 100%;
    max-width: 288px;
    padding: var(--sp-l) var(--sp-l-plus, 28px);
}
.brand-hero__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
.brand-hero__text { max-width: none; }

/* Brand catalog wrapper — reuses .catalog-page__container layout */
.brand-catalog { padding-block: var(--sp-l) var(--sp-l); }
.brand-catalog__main { gap: var(--sp-l); }
.brand-catalog__toolbar { gap: var(--sp-m); }
.brand-catalog__search { width: 100%; }
.brand-catalog__search .filter-search { width: 100%; }

/* Brands section variants */
.brands--similar { background: var(--c-bg-main); }
.brands__head--row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* SEO block on brand page — slightly narrower */
.brand-seo .seo-block__text { max-width: 1280px; margin: 0 auto; }

@media (min-width: 768px) {
    .brand-hero__grid {
        grid-template-columns: 288px minmax(0, 1fr);
        gap: var(--sp-l);
    }
    .brand-catalog__toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .brand-catalog__search { width: 300px; flex: 0 0 auto; }
    .brands__head--row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1280px) {
    .brand-hero { padding-block: var(--sp-l-plus, 32px) var(--sp-l-plus, 32px); }
    .brand-hero__grid { gap: var(--sp-xl); }
}

/* ----- Collection card (brand page grid) ----- */
.collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}
.collection-card {
    display: flex;
    flex-direction: column;
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    overflow: hidden;
    padding-bottom: var(--sp-m);
    transition: box-shadow var(--tr), border-color var(--tr);
}
.collection-card:hover {
    border-color: var(--c-anthracite);
    box-shadow: var(--sh-md);
}
.collection-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: var(--sp-xs);
}
.collection-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--r-card);
    transition: transform var(--tr);
}
.collection-card:hover .collection-card__media img { transform: scale(1.03); }

.collection-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-s);
    padding: var(--sp-xs) var(--sp-m);
}
.collection-card__brand {
    font-size: var(--fs-body-xs, 13px);
    color: var(--c-anthracite);
}
.collection-card__brand a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.collection-card__brand a:hover { color: var(--c-anthracite-dark); }
.collection-card__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-l);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.collection-card__title a { color: inherit; text-decoration: none; }
.collection-card__title a:hover { color: var(--c-anthracite); }

.collection-card__group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    padding: var(--sp-xs) var(--sp-m);
}
.collection-card__group-label {
    font-size: var(--fs-body-xs, 13px);
    color: var(--c-text-main);
    line-height: 1.5;
}
.collection-card__tags,
.collection-card__colors {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xxs);
    align-items: center;
}

.size-chip {
    display: inline-flex;
    align-items: center;
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    padding: 2px var(--sp-xs);
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-anthracite);
}
.size-chip--more { background: var(--c-bg-second); }

.color-chip {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: var(--r-button);
    background: var(--c-bg-second);
    border: 1px solid rgba(17, 23, 29, 0.06);
    flex-shrink: 0;
}

.collection-card__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-xs) var(--sp-m) 0;
    margin-top: auto;
}
.collection-card__primary {
    flex: 1 1 auto;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .collection-grid { grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
}
@media (min-width: 1280px) {
    .collection-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Collection page — info section (2-col description + chars)
   ============================================================ */
.collection-info { padding-block: var(--sp-l) var(--sp-l); }
.collection-info__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
}
.collection-info__col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
.collection-info__chars { max-width: none; }

/* PDF / file download card */
.doc-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-m);
    padding: var(--sp-m);
    border: 1px solid var(--c-border);
    border-radius: var(--r-inside-m);
    background: var(--c-bg-main);
    color: var(--c-anthracite-dark);
    text-decoration: none;
    transition: border-color var(--tr), box-shadow var(--tr);
    max-width: 380px;
}
.doc-card:hover {
    border-color: var(--c-anthracite-dark);
    box-shadow: var(--sh-sm);
}
.doc-card__icon {
    flex-shrink: 0;
    width: 72px; height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doc-card__icon svg { width: 72px; height: 72px; }
.doc-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xxs);
    min-width: 0;
}
.doc-card__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-l);
    line-height: 1.2;
    color: var(--c-anthracite-dark);
    letter-spacing: -0.01em;
}
.doc-card__meta {
    font-size: var(--fs-body-s);
    color: var(--c-text-second);
    line-height: 1.5;
}
.doc-card__download {
    flex-shrink: 0;
    width: 24px; height: 24px;
    color: var(--c-anthracite-dark);
    align-self: flex-start;
}

@media (min-width: 768px) {
    .collection-info__grid { gap: var(--sp-xl); }
}
@media (min-width: 1280px) {
    .collection-info__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--sp-xxl, 64px);
    }
}

/* ============================================================
   CART PAGE — Корзина (Figma node 24248:10092)
   Layout: stacked panels, mobile-first.
   On ≥1280px секция «Товары» делится на 2 колонки (список + итог).
   ============================================================ */
.cart-page { padding-block: var(--sp-l) var(--sp-xl); }
.cart-page__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
}
.cart-page__title {
    margin: 0 0 var(--sp-xs);
    text-transform: none;
    letter-spacing: -.02em;
}

/* Форма-обёртка, охватывающая и список товаров, и блок итогов */
.cart-form-root { display: block; margin: 0; }

/* ----- Panel (общая «карточка»-секция) ----- */
.cart-panel {
    background: var(--c-bg-second);
    border-radius: var(--r-panel);
}

.cart-panel__noback {
    border-radius: var(--r-inside-m);
}
.cart-panel__inner {
    padding: var(--sp-l) var(--sp-m);
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
}
/* В секции товаров (без фоновой панели) карточки занимают всю ширину
   контейнера: убираем горизонтальный padding inner-обёртки, чтобы внешний
   край карточек/строки-шапки совпадал с контентом каталога и других страниц. */
.cart-panel__noback > .cart-panel__inner {
    padding-inline: 0;
}
.cart-panel__head { display: flex; flex-direction: column; gap: var(--sp-xs); }
.cart-panel__title {
    margin: 0;
    text-transform: none;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
    font-weight: 600;
}
.cart-panel__lead {
    margin: 0;
    color: var(--c-text-base);
}

/* ----- Группа товаров (шапка + карточки на всю ширину) ----- */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

/* ----- Layout оформления: форма слева + sticky-итог справа -----
   Товары идут отдельной секцией на всю ширину сверху, ниже —
   2-колоночный блок: формы (левая) + блок итогов (правая, sticky). */
.cart-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
}
.cart-checkout-layout__forms {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
    min-width: 0;
}

/* ----- Шапка списка: «Выделить все» / действия ----- */
.cart-items__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-m);
    padding: var(--sp-xs);
    margin-bottom: var(--sp-xxs);
}
.cart-items__head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-l);
}
.cart-items__action {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-text-main);
    transition: color var(--tr);
}
.cart-items__action:hover { color: var(--c-anthracite-dark); }
.cart-items__action .ic { width: 24px; height: 24px; color: var(--c-anthracite-dark); }

/* ----- Cart card (товар в корзине) ----- */
.cart-card {
    display: grid;
    grid-template-columns: auto 88px 1fr;
    grid-template-areas:
        "select media info"
        "select media price"
        "qty    qty   actions";
    column-gap: var(--sp-m);
    row-gap: var(--sp-m);
    padding: var(--sp-xs);
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
}
.cart-card__select { grid-area: select; align-self: start; padding-top: 6px; }
.cart-card__media {
    grid-area: media;
    display: block;
    width: 88px;
    aspect-ratio: 1 / 1;
    background: var(--c-bg-main);
    overflow: hidden;
    border-radius: var(--r-card);
}
.cart-card__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-card__info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    min-width: 0;
}
.cart-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-xs) var(--sp-l);
    font-size: var(--fs-body-xs);
    color: var(--c-anthracite);
}
.cart-card__meta a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cart-card__meta a:hover { color: var(--c-anthracite-dark); }
.cart-card__meta-sep { display: none; }

.cart-card__title {
    display: block;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-l);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite);
}
.cart-card__title:hover { color: var(--c-anthracite-dark); }
.cart-card__sku {
    font-size: var(--fs-body-xs);
    color: var(--c-anthracite);
}
.cart-card__sku span { font-weight: 600; }

/* Цена */
.cart-card__price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    align-items: flex-start;
}
.cart-card__price-row {
    display: flex;
    align-items: baseline;
    gap: var(--sp-xs);
    flex-wrap: wrap;
}
.cart-card__price-old {
    font-family: var(--ff-heading);
    font-size: var(--fs-body-s);
    color: var(--c-text-second);
    text-decoration: line-through;
}
.cart-card__price-now {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h4);
    line-height: 1.2;
    color: var(--c-anthracite);
    letter-spacing: -.02em;
}
.cart-card__price-unit {
    font-family: var(--ff-heading);
    font-size: var(--fs-body-s);
    color: var(--c-text-second);
}
.cart-card__units {
    display: inline-flex;
    gap: var(--sp-xs);
    flex-wrap: wrap;
}
.cart-card__unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: var(--sp-xs) var(--sp-m);
    background: var(--c-bg-second);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    font-family: var(--ff-text);
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-anthracite);
    cursor: pointer;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.cart-card__unit:hover { border-color: var(--c-anthracite); }
.cart-card__unit.is-active {
    background: var(--c-anthracite);
    border-color: var(--c-anthracite);
    color: var(--c-on-color);
}
.cart-card__unit sup { font-size: 0.65em; vertical-align: super; line-height: 1; }

/* Кол-во */
.cart-card__qty { grid-area: qty; justify-self: start; }
.cart-card__qty .qty__input { width: 64px; }

/* Действия (избранное / удалить) */
.cart-card__actions {
    grid-area: actions;
    display: flex;
    gap: var(--sp-xxs);
    justify-content: flex-end;
    align-items: center;
}
.cart-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--c-grey-bg);
    color: var(--c-anthracite-dark);
    border-radius: var(--r-button);
    transition: background var(--tr), color var(--tr);
}
.cart-card__action:hover { background: var(--c-bg-fourth); }
.cart-card__action .ic { width: 24px; height: 24px; }

/* ----- Summary ----- */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
    padding: var(--sp-m) var(--sp-xs);
}
.cart-summary__list { display: flex; flex-direction: column; gap: var(--sp-m); }
.cart-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-m);
    padding-bottom: var(--sp-m);
    border-bottom: 1px solid var(--c-border);
    font-family: var(--ff-heading);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.cart-summary__row dt { color: var(--c-anthracite); font-weight: 400; }
.cart-summary__row dd { margin: 0; font-weight: 600; color: var(--c-anthracite-dark); }
.cart-summary__row--total dt,
.cart-summary__row--total dd {
    font-weight: 600;
    font-size: var(--fs-body-l);
    color: var(--c-anthracite-dark);
}

.cart-summary__promo { display: flex; flex-direction: column; gap: var(--sp-xs); }
.cart-summary__promo-label {
    font-family: var(--ff-heading);
    font-size: var(--fs-body-m);
    color: var(--c-anthracite);
    margin: 0;
}
.cart-promo {
    display: flex;
    align-items: stretch;
    gap: var(--sp-xs);
}
.cart-promo__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    background: var(--c-bg-main);
    border-radius: var(--r-button);
}
.cart-promo__btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding-inline: var(--sp-l);
    text-transform: uppercase;
}

.cart-summary__cta {
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
}

/* ----- Forms inside panels ----- */
.cart-form { display: flex; flex-direction: column; gap: var(--sp-m); }
.cart-form__row { display: flex; flex-direction: column; gap: var(--sp-m); }
.cart-form__row--2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-m);
}
.cart-form .form-control { background: var(--c-bg-main); }
.cart-form__consents {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    margin-top: var(--sp-xs);
}

/* ----- Tabs внутри секции доставки ----- */
.cart-delivery__tabs .tabs__btn { text-transform: uppercase; }
.cart-delivery__tabs .tabs__btn.is-active {
    background: var(--c-anthracite);
    color: var(--c-grey-bg);
    border-color: var(--c-anthracite);
}

/* ----- Checkbox (BEM-обёртка над нативным input) ----- */
.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--sp-xs);
    cursor: pointer;
    user-select: none;
}
.checkbox__input {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.checkbox__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--c-bg-main);
    border: 2px solid var(--c-anthracite);
    border-radius: 2px;
    color: transparent;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
    margin-top: 2px;
}
.checkbox__box svg { width: 12px; height: 12px; }
.checkbox__input:checked + .checkbox__box {
    /* background: var(--c-anthracite-dark); */
    border-color: var(--c-anthracite-dark);
    color: var(--c-text-base);
}
.checkbox__input:focus-visible + .checkbox__box { box-shadow: var(--ring-focus); }
.checkbox__label {
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.checkbox__label a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ----- Toggle ----- */
.toggle-list { display: flex; flex-direction: column; gap: var(--sp-m); }
.toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-s);
    align-items: start;
    cursor: pointer;
    user-select: none;
}
.toggle__input {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
.toggle__track {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    background: var(--c-text-disabled);
    border-radius: var(--r-pill);
    transition: background var(--tr);
    flex-shrink: 0;
}
.toggle__thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: var(--c-on-color);
    border-radius: 50%;
    box-shadow: var(--sh-xsm);
    transition: transform var(--tr);
}
.toggle__input:checked + .toggle__track { background: var(--c-anthracite-dark); }
.toggle__input:checked + .toggle__track .toggle__thumb { transform: translateX(18px); }
.toggle__input:focus-visible + .toggle__track { box-shadow: var(--ring-focus); }
.toggle.is-disabled,
.toggle__input:disabled ~ .toggle__body { color: var(--c-text-third); cursor: not-allowed; }
.toggle.is-disabled .toggle__track { background: var(--c-text-disabled); }
.toggle.is-disabled .toggle__title { color: var(--c-text-third); }

.toggle__body { display: flex; flex-direction: column; gap: var(--sp-xxs); min-width: 0; }
.toggle__title {
    font-family: var(--ff-text);
    font-weight: 600;
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
}
.toggle__desc {
    font-size: var(--fs-body-s);
    line-height: 1.5;
    color: var(--c-text-second);
}

/* ----- Order form: статус и результат ----- */
.order-form-status {
    margin: 0;
    padding: var(--sp-xs) var(--sp-s);
    border-radius: var(--r-button);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    background: var(--c-bg-main);
    color: var(--c-anthracite-dark);
    border: 1px solid var(--c-border);
}
.order-form-status[data-state="error"] {
    color: var(--c-danger);
    border-color: var(--c-danger);
}
.order-form-status[data-state="loading"] {
    color: var(--c-anthracite);
}
.order-result__text {
    margin: 0 0 var(--sp-l);
    color: var(--c-text-main);
    font-size: var(--fs-body-m);
    line-height: 1.5;
}

/* ============================================================
   Адаптив: 768 / 1280 / 1600
   ============================================================ */
@media (min-width: 768px) {
    .cart-page { padding-block: var(--sp-xl) var(--sp-xxl); }
    .cart-page__container { gap: var(--sp-l); }
    .cart-panel__inner { padding: var(--sp-l); gap: var(--sp-l); }

    /* Карточка товара — горизонтальный 5-колонник */
    .cart-card {
        grid-template-columns: auto 120px minmax(0, 1fr) auto auto auto;
        grid-template-areas: "select media info price qty actions";
        column-gap: var(--sp-m);
        align-items: center;
        padding: var(--sp-xs) var(--sp-m);
    }
    .cart-card__media { width: 120px; }
    .cart-card__price { align-items: flex-start; }
    .cart-card__qty { justify-self: center; }
    .cart-card__actions { flex-direction: column; gap: var(--sp-xxs); }

    .cart-form__row--2col { grid-template-columns: 1fr 1fr; gap: var(--sp-m) var(--sp-l-plus); }
    .cart-form__row--2col .form-field { max-width: 434px; }
    .cart-form .form-field { max-width: 900px; }

    .cart-delivery__tabs .tabs__btn { flex: 0 0 auto; width: auto; }
}

@media (min-width: 1280px) {
    .cart-panel__inner { padding: var(--sp-l) var(--sp-l-plus); }

    /* 2-колоночная сетка ТОЛЬКО для блока оформления: форма слева, sticky-итог справа */
    .cart-checkout-layout {
        grid-template-columns: minmax(0, 1fr) 366px;
        gap: var(--sp-l-plus);
        align-items: start;
    }

    /* Форма начинается с отступом сверху — чтобы итог появлялся первым в правой
       колонке (как на макете: cart-summary справа, левая часть пустая под карточками). */
    .cart-checkout-layout__forms {
        padding-top: 360px;
    }

    /* Итог справа — sticky, чтобы оставаться в видимой области при скролле через секции формы */
    .cart-summary {
        position: sticky;
        top: calc(var(--sp-l) + 96px); /* отступ под sticky шапкой сайта */
        align-self: start;
        width: 100%;
        max-width: 366px;
        padding: 0;
    }

    /* qty не «рыхлит» строку — компактный по центру */
    .cart-card { column-gap: var(--sp-m); }
}


/* ============================================================
   Brands list page (alphabetical)
   ============================================================ */
.brands-page {
    padding-block: var(--sp-l) var(--section-pad-y);
}

.brands-page__head {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    margin-bottom: var(--sp-l);
}
.brands-page__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-h1);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
}
.brands-page__search { width: 100%; }
.brands-page__search .filter-search { width: 100%; }

/* Alphabet jump links */
.brands-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-l);
}
.brands-alpha__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--sp-xs);
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: var(--r-button);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body-m);
    color: var(--c-anthracite-dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.brands-alpha__link:hover,
.brands-alpha__link:focus-visible {
    background: var(--c-anthracite-dark);
    border-color: var(--c-anthracite-dark);
    color: var(--c-bg-main);
    outline: none;
}

/* Letter sections */
.brands-sections {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}
.brands-letter {
    display: flex;
    flex-direction: column;
    gap: var(--sp-m);
    scroll-margin-top: var(--sp-xl);
}
.brands-letter__char {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-h2);
    line-height: 1;
    color: var(--c-anthracite-dark);
    text-transform: uppercase;
    padding-bottom: var(--sp-xs);
    border-bottom: 1px solid var(--c-border);
}

/* Empty-state по поиску */
.brands-page__empty {
    margin: var(--sp-l) 0 0;
    padding: var(--sp-l);
    text-align: center;
    color: var(--c-text-second);
    font-size: var(--fs-body-m);
    background: var(--c-grey-bg);
    border-radius: var(--r-card);
}

@media (min-width: 768px) {
    .brands-page__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-l);
    }
    .brands-page__search { width: 360px; flex: 0 0 auto; }
    .brands-alpha__link { min-width: 44px; height: 44px; }
}

@media (min-width: 1280px) {
    .brands-page__title { font-size: 40px; }
    .brands-letter__char { font-size: var(--fs-h2); }
}

/* ============================================================
   CONTENT PAGE (delivery, returns, etc.)
   ============================================================ */
.content-page { padding-block: 0 var(--section-pad-y); }
.content-page__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}
.content-page__head { padding-block: var(--sp-xs) 0; }
.content-page__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h1);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
}

.content-page__section-title {
    margin: 0 0 var(--sp-l);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-anthracite-dark);
}
.content-page__section-title--center { text-align: center; }

.content-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
    align-items: start;
}

/* ----- Main column ----- */
.content-main {
    display: flex;
    flex-direction: column;
    gap: var(--sp-l);
    min-width: 0;
}
.content-main__lead {
    font-size: var(--fs-body-l);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
    margin: 0;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: var(--sp-s);
}
.content-block__title {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h5);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-anthracite-dark);
}
.content-block__title--big {
    font-size: var(--fs-h4);
    letter-spacing: -.02em;
}
.content-block__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-s);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.content-block__body p { margin: 0; }
.content-block__body ul {
    list-style: disc;
    padding-left: 1.4em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xxs);
}
.content-block__body li { padding-left: 4px; }
.content-block__body strong,
.content-block__body b {
    font-weight: 600;
    color: var(--c-anthracite-dark);
}

.content-block__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-l);
    margin-top: var(--sp-s);
}
.content-block__col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite);
}
.content-block__col p { margin: 0; }
.content-block__col strong,
.content-block__col b {
    font-weight: 600;
    color: var(--c-anthracite-dark);
}

/* ----- Sidebar ----- */
.content-side {
    min-width: 0;
}
.content-side__box {
    padding: var(--sp-l);
    background: var(--c-bg-second);
    border-radius: var(--r-block);
    font-size: var(--fs-body-m);
    line-height: 1.5;
    color: var(--c-anthracite-dark);
}
.content-side__box p { margin: 0; }
.content-side__box p + p { margin-top: var(--sp-s); }
.content-side__box a {
    color: var(--c-anthracite);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.content-side__box a:hover { color: var(--c-anthracite-dark); }

.content-side__box--italic {
    font-style: italic;
    color: var(--c-text-second);
}
.content-side__box--italic p {
    color: var(--c-text-second);
}

@media (min-width: 768px) {
    .content-page { padding-block: var(--sp-s) var(--section-pad-y); }
    .content-page__title { font-size: var(--fs-h2); }
    .content-page__section-title { font-size: var(--fs-h2); }
    .content-block__cols { grid-template-columns: 1fr 1fr; gap: var(--sp-l); }
}

@media (min-width: 1280px) {
    .content-page { padding-block: var(--sp-l) var(--sp-xxl); }
    .content-page__title { font-size: var(--fs-h1); }
    .content-page__section-title { font-size: var(--fs-h1); }
    .content-page__grid {
        grid-template-columns: minmax(0, 1fr) 366px;
        gap: var(--sp-xl);
    }
    .content-main { padding-top: 0; }
}

/* ============================================================
   ERROR PAGE (404)
   ============================================================ */
.error-page { padding-block: var(--sp-l) var(--sp-xxl); }
.error-page__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xl);
    padding-block: var(--sp-l) var(--sp-xxl);
}

.error-page__hero {
    width: 100%;
    max-width: 918px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.error-page__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.error-page__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-m);
    max-width: 800px;
    text-align: center;
}
.error-page__title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--c-anthracite-dark);
    margin: 0;
}
.error-page__subtitle {
    font-family: var(--ff-text);
    font-weight: 400;
    font-size: var(--fs-body-xl);
    line-height: 1.5;
    color: var(--c-text-base);
    margin: 0;
}

@media (min-width: 1280px) {
    .error-page__title { font-size: 36px; }
}

/* ============================================================
   Print & reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
    }
}
