/* Витрина «Бензина нет».
 *
 * Слои объявлены явно: порядок каскада задаётся здесь, а не порядком правил в
 * файле и не удельным весом селекторов. Это и есть то, ради чего обычно берут
 * сборщик, — а больше от него ничего не требуется: препроцессор заменяют
 * вложенность и переменные, модулей нет, файл один.
 *
 * Значения перенесены из макета web/«Бензина нет - сайт v3.dc.html», где они
 * стояли инлайном на каждом элементе. Каждое число живёт здесь ровно один раз.
 */
@layer tokens, base, layout, components, utilities;

/* Manrope лежит рядом с кодом, а не грузится с Google Fonts.
 *
 * Витрина российская, и внешний запрос к fonts.gstatic.com работает
 * нестабильно: при отказе страница перерисовывается системным шрифтом, то
 * есть вёрстка едет ровно у тех посетителей, у кого и так плохая связь.
 * Свой файл убирает и эту зависимость, и лишнее подключение к чужому домену.
 *
 * Шрифт переменный, поэтому одного файла на подмножество хватает на все веса
 * от 400 до 800. Подмножеств три: кириллица, латиница и latin-ext — в
 * последнем живёт знак рубля U+20BD, без него цены рисовались бы запасным
 * шрифтом. Греческий и вьетнамский не нужны.
 *
 * Адреса подставляются при старте: в них хэш содержимого, и вручную такой
 * путь не напишешь.
 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/c268b459/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/a30ddcd3/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/3911b66d/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@layer tokens {
  :root {
    --bg: #F4F5F0;
    --ink: #14160D;
    --black: #0C0D0A;
    --black-hi: #1C1E15;
    --lime: #B4E600;
    --lime-hi: #CFFF2E;
    --green: #7CB800;
    --green-dk: #5A7000;
    --muted: #8A8E7C;
    --muted-dk: #6B6F5E;
    --muted-lt: #B0B4A2;
    --ink-soft: #3E4234;
    --line: #E7E9DD;
    --line-dk: #E1E3D6;
    --surface: #fff;
    --surface-dim: #EFF1E7;
    --surface-soft: #F7F8F2;

    --r-pill: 999px;
    --r-lg: 28px;
    --r-card: 24px;
    --r-md: 16px;
    --r-sm: 12px;

    --container: 1240px;
    --pad: clamp(20px, 4vw, 40px);
    --pad-hd: clamp(16px, 3.5vw, 40px);
    --sec-gap: clamp(56px, 8vw, 80px);

    --ease: cubic-bezier(.22, .61, .36, 1);
  }
}

@layer base {
  /* Полоса прокрутки резервирует место всегда. Модалка вешает на body
   * overflow: hidden, и без этого вся страница на Windows и Linux прыгала на
   * ширину полосы в момент открытия быстрого просмотра, сравнения и заявки.
   */
  html { scroll-behavior: smooth; scrollbar-gutter: stable; }

  /* Браузерное [hidden] { display: none } слабее любого класса, задающего
   * display, поэтому .btn[hidden] оставался на экране: так висела кнопка
   * «в корзину» у кончившегося исполнения и кнопка заявки после отправки.
   * Правило общее, а не ещё один точечный оверрайд: их в файле было
   * тринадцать, и четырнадцатый забыли бы ровно так же.
   */
  [hidden] { display: none !important; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
  }

  a { color: inherit; text-decoration: none; }
  a:hover { color: var(--green-dk); }

  /* Обводка фокуса одна на всё и только для клавиатуры: :focus-visible не
   * срабатывает от мыши, поэтому гасить её выборочно (outline: none у полей и
   * сортировки) больше не нужно — а у <select> сортировки своего стиля фокуса
   * не было вовсе, и идущий табом человек не видел, где находится.
   */
  :focus-visible { outline: 2px solid var(--green-dk); outline-offset: 2px; }

  img { max-width: 100%; }

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  h1, h2 { letter-spacing: -.02em; }
}

@layer layout {
  .sec {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--sec-gap) var(--pad) 0;
  }

  .sec__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
  }

  /* Отбивку до блока держит сам заголовок. Раньше её давала только голова
   * секции, поэтому «Как это работает», «С этим покупают» и «Контакты» —
   * секции без .sec__head — упирались содержимым прямо в заголовок. */
  .sec__title {
    font-weight: 800;
    font-size: clamp(27px, 4.5vw, 36px);
    margin: 0 0 clamp(26px, 2.8vw, 38px);
  }

  /* Внутри головы отбивка своя, на всей голове: заголовок и ссылка «смотреть
   * все» стоят в одну строку, и вторая отбивка развела бы их по вертикали. */
  .sec__head .sec__title { margin-bottom: 0; }

  .sec__more {
    color: var(--green-dk);
    font-weight: 700;
    font-size: 14px;
  }
  .sec__more:hover { color: var(--green); }
}

@layer components {
  /* --- иконки ------------------------------------------------------------- */

  /* Сердечко избранного. Не глиф ♥: форма приходит из шрифта вместе с заливкой,
   * и добавить ей объём нечем — блик пришлось бы рисовать поверх, вслепую к
   * очертаниям буквы. Здесь форму задаёт mask, а заливка своя: currentColor
   * снизу, блик и затенение градиентами поверх. Поэтому :hover и
   * [aria-pressed] по-прежнему меняют один только color, а объём достаётся им
   * даром.
   *
   * Само сердце круглее глифа: лобы в маске — дуги радиусом 4.9 в поле 24.
   * Размер в em, поэтому кнопки задают его своим font-size, как задавали
   * глифу, и ни одну из них править не пришлось.
   */
  .ico-heart {
    --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.4C8.9 16.2 3 12.2 3 7.9A4.9 4.9 0 0 1 12 6A4.9 4.9 0 0 1 21 7.9C21 12.2 15.1 16.2 12 20.4Z'/%3E%3C/svg%3E");
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -.22em;
    /* Блик уведён от края силуэта: у самой кромки он размывал очертания
     * сердца на белой кнопке поверх снимка на белом фоне. */
    background:
      radial-gradient(34% 27% at 34% 28%, rgba(255, 255, 255, .82), rgba(255, 255, 255, 0)),
      radial-gradient(74% 54% at 50% 100%, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0)),
      linear-gradient(148deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .12) 60%, rgba(0, 0, 0, .32)),
      currentColor;
    -webkit-mask: var(--mask) center / contain no-repeat;
    mask: var(--mask) center / contain no-repeat;
  }

  /* --- шапка ------------------------------------------------------------- */

  .hd {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(244, 245, 240, .78);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(20, 22, 13, .06);
  }

  .hd__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-hd);
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 26px);
  }

  /* flex: none — чтобы логотип не сжимался уже собственного текста: при
   * нехватке места надпись вылезала из своей ячейки и наезжала на «Каталог».
   */
  .hd__logo { display: flex; align-items: center; gap: 10px; flex: none; }
  .hd__logo:hover { color: inherit; }
  .hd__logo-img { height: 36px; width: 36px; border-radius: 9px; }
  .hd__logo-text { font-weight: 800; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
  .hd__logo-accent { color: var(--green); }

  .hd__nav {
    display: flex;
    gap: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-left: 8px;
  }
  .hd__nav a:hover { color: var(--green-dk); }

  .hd__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hd__phone { font-weight: 800; font-size: 13.5px; margin-right: 6px; }

  .hd__icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--muted-dk);
    user-select: none;
  }
  .hd__icon:hover { border-color: var(--lime); color: var(--ink); }

  .hd__count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--lime);
    color: var(--black);
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  .hd__cart {
    background: var(--black);
    color: #fff;
    font-weight: 800;
    font-size: 12.5px;
    padding: 11px 18px;
    border-radius: var(--r-pill);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hd__cart:hover { background: var(--black-hi); color: #fff; }

  .hd__cart-count {
    background: var(--lime);
    color: var(--black);
    font-size: 10.5px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: bn-badge .35s cubic-bezier(.34, 1.56, .64, 1);
  }

  /* --- кнопки ------------------------------------------------------------ */

  .btn {
    display: inline-block;
    font-weight: 800;
    font-size: 14.5px;
    padding: 16px 32px;
    border-radius: var(--r-pill);
    transition: transform .15s, background .2s;
  }
  .btn:active { transform: scale(.96); }

  .btn--lime { background: var(--lime); color: var(--black); }
  .btn--lime:hover { background: var(--lime-hi); color: var(--black); }

  /* --- первый экран ------------------------------------------------------ */

  .hero {
    background: var(--black);
    color: #fff;
    padding: clamp(56px, 9vw, 96px) var(--pad) clamp(48px, 7vw, 80px);
    text-align: center;
    overflow: hidden;
  }

  .hero__inner { max-width: 900px; margin: 0 auto; }

  .hero__kicker {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 24px;
    animation: bn-rise .7s var(--ease) both;
  }

  .hero__title {
    font-weight: 800;
    font-size: clamp(34px, 6.5vw, 64px);
    line-height: 1.06;
    letter-spacing: -.03em;
    margin: 0 0 22px;
    text-wrap: balance;
    animation: bn-rise .7s var(--ease) .1s both;
  }

  .hero__accent { color: var(--lime); }

  .hero__lead {
    font-size: clamp(15px, 2.4vw, 18px);
    line-height: 1.6;
    color: #A9AD9E;
    max-width: 560px;
    margin: 0 auto 32px;
    animation: bn-rise .7s var(--ease) .2s both;
  }

  .hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: bn-rise .7s var(--ease) .3s both;
  }

  .hero__link { color: var(--lime); font-weight: 700; font-size: 14.5px; padding: 16px 10px; }
  .hero__link:hover { color: var(--lime-hi); }

  .hero__facts {
    display: flex;
    gap: clamp(16px, 4vw, 36px);
    flex-wrap: wrap;
    justify-content: center;
    margin: 36px 0 0;
    font-size: 13px;
    color: #7C8070;
    animation: bn-rise .7s var(--ease) .4s both;
  }
  .hero__facts b { color: #fff; font-size: 15px; }

  /* Карусель первого экрана. Слайды лежат друг на друге и меняются
   * прозрачностью — страница при переключении не дёргается. Без скрипта видны
   * первый слайд и его подпись, а вкладки остаются обычными ссылками на товары:
   * экран без JS не пустой и не сломанный, просто неподвижный. */
  .hero__car {
    max-width: 1040px;
    margin: 48px auto 0;
    animation: bn-rise .9s var(--ease) .45s both;
  }

  .hero__tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    margin-bottom: 22px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
  }
  .hero__tabs::-webkit-scrollbar { display: none; }

  .hero__tab {
    font-weight: 700;
    font-size: 12.5px;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    color: #B9BDAE;
    white-space: nowrap;
    transition: background .25s, color .25s;
  }
  .hero__tab:hover { color: #fff; }
  .hero__tab--on,
  .hero__tab--on:hover { background: #fff; color: var(--black); }

  /* Рамка слайда красится в фон снимка, как и все остальные, — но умолчание у
   * неё тёмное, а не нейтрально-серое: секция вокруг чёрная, и без скрипта
   * рамка сливается с ней, а не висит светлым прямоугольником. */
  .hero__stage {
    position: relative;
    height: clamp(230px, 42vw, 440px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg);
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero__slide {
    position: absolute;
    inset: 0;
    background: var(--frame, var(--black-hi));
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(.45, 0, .2, 1);
  }
  .hero__slide--on { opacity: 1; }

  /* Отступы заданы в процентах от рамки по каждой оси отдельно: padding в
   * процентах считается от ширины по обеим осям, и сверху с боков получались
   * одинаковые сорок пикселей — снимок сидел в рамке заметно ниже, чем нужно. */
  .hero__photo {
    position: absolute;
    top: 3%;
    left: 4%;
    width: 92%;
    height: 94%;
    object-fit: contain;
  }

  /* Подписи тоже лежат друг на друге: сетка в одну ячейку держит высоту по
   * самой длинной, поэтому смена слайда не двигает блок ниже. */
  .hero__caps { display: grid; margin-top: 24px; }

  .hero__cap {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
  }
  .hero__cap--on {
    opacity: 1;
    pointer-events: auto;
    transition-delay: .15s;
  }

  .hero__cap-name {
    font-weight: 800;
    font-size: clamp(20px, 2.6vw, 26px);
    letter-spacing: -.02em;
  }

  .hero__cap-stat {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lime);
    margin-top: 5px;
  }

  .hero__cap-btn {
    background: #fff;
    color: var(--black);
    font-weight: 800;
    font-size: 13.5px;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    transition: background .2s, transform .15s;
  }
  .hero__cap-btn:hover { background: var(--lime); color: var(--black); }
  .hero__cap-btn:active { transform: scale(.96); }

  /* --- плитки категорий -------------------------------------------------- */

  /* minmax(0, 1fr), а не 1fr: у элемента сетки минимум auto, то есть ширина
   * самого длинного слова. «Электроинструмент» — 168 px, и на телефоне две
   * колонки складывались в 437 px внутри контейнера в 350, отчего вся главная
   * ехала вбок. Название переносится по той же причине.
   */
  .bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 14px;
  }

  .bento__cell {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s, box-shadow .2s;
  }
  .bento__cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(12, 13, 10, .08);
    color: inherit;
  }

  .bento__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  /* Названия разделов — одно длинное слово каждое, и в две колонки на телефоне
   * «Электроинструмент» в строку не помещается никак. Перенос по слогам
   * (html lang="ru") читается как в книге, а anywhere остаётся страховкой на
   * случай, когда словарь переносов недоступен. */
  .bento__name {
    font-weight: 800;
    font-size: 16.5px;
    letter-spacing: -.01em;
    min-width: 0;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .bento__arrow { color: var(--green); font-size: 16px; }
  .bento__count { font-size: 12.5px; color: var(--muted); }

  .bento__cell--all {
    grid-column: 1 / -1;
    background: var(--lime);
    color: var(--black);
  }
  .bento__cell--all:hover { box-shadow: none; }
  .bento__cell--all .bento__name { font-size: 18px; }
  .bento__cell--all .bento__arrow { color: inherit; font-size: 18px; }
  .bento__cell--all .bento__count { font-weight: 700; font-size: 13px; color: inherit; opacity: .7; }

  /* --- каталог ----------------------------------------------------------- */

  .cat {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--pad) clamp(64px, 9vw, 96px);
    min-height: 70vh;
  }

  .crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
  }
  .crumbs a { font-weight: 600; }
  .crumbs b { color: var(--ink); }

  .cat__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
  }

  .cat__title { font-weight: 800; font-size: clamp(30px, 5.5vw, 44px); margin: 0; }
  .cat__found { font-size: 13px; color: var(--muted); white-space: nowrap; }

  .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

  .chip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
  }
  .chip:hover { border-color: var(--lime); color: inherit; }
  .chip--on { background: var(--black); border-color: var(--black); color: #fff; }
  .chip--on:hover { color: #fff; }

  .cat__tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .cat__search {
    flex: 1;
    min-width: min(240px, 100%);
    max-width: 420px;
    box-sizing: border-box;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 13px 20px;
    font-size: 14px;
    font-family: inherit;
  }
  .cat__search:focus { border-color: var(--lime); }

  .cat__sort {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
  }
  .cat__sort:focus { border-color: var(--lime); }

  .cat__apply { padding: 13px 24px; font-size: 13.5px; }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 14px;
  }

  .empty {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 56px;
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
  }
  .empty a { color: var(--green-dk); font-weight: 700; }

  .pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    font-size: 13.5px;
  }

  .pager__link {
    background: var(--surface);
    border-radius: var(--r-pill);
    padding: 12px 22px;
    font-weight: 700;
  }
  .pager__link:hover { box-shadow: 0 8px 20px rgba(12, 13, 10, .12); }
  .pager__pos { color: var(--muted); }

  /* --- карточка товара --------------------------------------------------- */

  .card {
    background: var(--surface);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
  }
  .card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12, 13, 10, .08); }

  .card--rail {
    flex: none;
    width: min(320px, 80vw);
    scroll-snap-align: start;
  }

  /* Фон рамки — фон самого снимка, его подставляет `--frame` (paintPhotoFrame
   * в app.js). Значение в скобках — умолчание: без скрипта и у снимка без
   * однотонного фона рамка остаётся нейтральной, как была. */
  .card__media {
    position: relative;
    height: 180px;
    background: var(--frame, var(--surface-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font: 11px ui-monospace, monospace;
  }
  .card--rail .card__media { height: 210px; }

  /* Ссылка занимает всю рамку — кликается по-прежнему весь снимок, хотя ♥ и
   * ярлыки лежат уже снаружи неё. */
  .card__shot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* contain, а не cover: снимки приходят вырезками на белом фоне, и обрезка
   * по краям срезала бы товару колесо, а не пустое место вокруг него. Отступ
   * держит его в рамке — на это и жаловались. */
  .card__photo { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }

  .card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }

  .badge {
    background: var(--lime);
    color: var(--black);
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: var(--r-pill);
    animation: bn-badge .35s cubic-bezier(.34, 1.56, .64, 1);
  }
  .badge--new { background: var(--black); color: #fff; }
  .badge--sale { background: #E2543E; color: #fff; }

  .card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .9);
    /* Тень, а не рамка: на снимке с белым фоном рамка карточки теперь тоже
     * белая, и без неё кнопка переставала читаться кнопкой. На тёмной рамке
     * тень не видна — там кнопку и так видно. */
    box-shadow: 0 2px 6px rgba(12, 13, 10, .10);
    color: var(--muted-dk);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
  .card__fav:hover, .card__fav[aria-pressed="true"] { color: #C43D2B; }

  .card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
  }

  .card__cat { font-size: 11.5px; color: var(--green-dk); font-weight: 700; }
  .card__name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
  .card__name:hover { color: var(--green-dk); }
  .card--rail .card__name { font-size: 16px; }
  .card__specs { font-size: 12.5px; color: var(--muted); }

  .card__prices { margin-top: auto; }
  .card__price-row { display: flex; align-items: baseline; gap: 8px; }
  .card__price { font-weight: 800; font-size: 17px; }
  .card__old { font-size: 12px; color: var(--muted-lt); }
  .card__monthly { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

  .card__actions { display: flex; gap: 8px; }
  .card__buy { flex: 1; text-align: center; font-size: 13px; padding: 11px; }

  .card__out {
    flex: 1;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    padding: 11px;
  }

  .card__cmp {
    width: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--muted-dk);
    font-size: 14px;
  }
  .card__cmp:hover, .card__cmp[aria-pressed="true"] { border-color: var(--lime); color: var(--ink); }

  .btn--dark { background: var(--black); color: #fff; font-weight: 800; }
  .btn--dark:hover { background: var(--black-hi); color: #fff; }

  /* --- главная: подборки и блоки ----------------------------------------- */

  /* В макете плитка была тёмной с белым текстом: там на ней стояла живая
   * фотография с тёмным фоном. В каталоге снимки разные — и на белом, и на
   * чёрном, — поэтому плитка красится в фон своего снимка, а текст на ней
   * переворачивается вместе с ним (`frame--dark`): иначе тёмная плитка на
   * половине товаров превращалась в светлый прямоугольник, на котором белый
   * текст пропадал. */
  .bento__hero {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    background: var(--frame, var(--surface-dim));
    color: var(--ink);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .2s;
  }
  .bento__hero:hover { transform: scale(1.01); color: var(--ink); }
  .bento__hero.frame--dark,
  .bento__hero.frame--dark:hover { color: #fff; }
  .bento__hero.frame--dark .bento__hero-note { color: rgba(255, 255, 255, .66); }

  .bento__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    padding: 14px 14px 76px;
    box-sizing: border-box;
  }

  /* Подпись лежит поверх снимка, поэтому под ней подложка: без неё деталь
   * товара съедала бы буквы. Цвет подложки — цвет плитки, иначе на покрашенной
   * плитке она была бы видна прямоугольником. */
  .bento__hero-text {
    position: relative;
    padding: 24px;
    background: linear-gradient(transparent, var(--frame, var(--surface-dim)) 42%);
    pointer-events: none;
  }
  .bento__hero-name { font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
  .bento__hero-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

  .sec--rail { max-width: none; padding-left: 0; padding-right: 0; }
  .sec--rail .sec__head { max-width: var(--container); margin: 0 auto 26px; padding: 0 var(--pad); }

  /* Шире контейнера ровно на боковые отступы. Свой padding у рельсы тот же
   * var(--pad), но считается он внутрь ширины (box-sizing: border-box), тогда
   * как у .sec__head — наружу, поэтому при max-width: var(--container) первая
   * карточка вставала на отступ правее заголовка «Хиты продаж». Надбавка
   * уравнивает не боксы, а их содержимое — заголовок и карточки в один столбец.
   */
  .rail {
    width: 100%;
    max-width: calc(var(--container) + var(--pad) * 2);
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    padding: 4px var(--pad) 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }

  .rail__end {
    flex: none;
    width: 200px;
    scroll-snap-align: start;
    border-radius: var(--r-card);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dk);
    font-weight: 800;
    font-size: 14px;
    transition: transform .2s, box-shadow .2s;
  }
  .rail__end:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12, 13, 10, .08); }

  .promo {
    background: var(--lime);
    color: var(--black);
    border-radius: var(--r-lg);
    padding: clamp(30px, 5vw, 52px) clamp(24px, 4.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .promo__kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; opacity: .6; margin-bottom: 12px; }
  .promo__title { font-weight: 800; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em; line-height: 1.1; }
  .promo__note { font-weight: 600; font-size: 14.5px; margin-top: 12px; opacity: .7; }
  .promo__btn { font-size: 14px; padding: 16px 30px; white-space: nowrap; }

  .perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
  }
  .perk__dot { display: block; width: 10px; height: 10px; background: var(--lime); border-radius: 3px; margin-bottom: 16px; }
  .perk__title { font-weight: 800; font-size: 16px; letter-spacing: -.01em; margin-bottom: 7px; }
  .perk__text { font-size: 13.5px; line-height: 1.6; color: var(--muted-dk); }

  .about {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(64px, 9vw, 100px) var(--pad) 0;
    text-align: center;
  }
  .about__lead {
    font-weight: 800;
    font-size: clamp(23px, 3.8vw, 32px);
    line-height: 1.35;
    letter-spacing: -.02em;
    margin: 0;
    text-wrap: balance;
  }
  .about__accent { color: var(--green); }

  .stats {
    display: flex;
    gap: clamp(24px, 5vw, 56px);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 44px;
  }
  .stat__value { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
  .stat__label { font-size: 13px; color: var(--muted); margin-top: 4px; }

  .b2b {
    background: var(--black);
    color: #fff;
    border-radius: var(--r-lg);
    padding: clamp(28px, 4.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .b2b__title { font-weight: 800; font-size: clamp(23px, 3.5vw, 28px); letter-spacing: -.02em; }
  .b2b__text { font-size: 14px; color: #A9AD9E; margin-top: 10px; max-width: 560px; line-height: 1.6; }

  .b2b__btn {
    border: 1px solid #3A3E2C;
    color: var(--lime);
    font-weight: 800;
    font-size: 14px;
    padding: 15px 28px;
    border-radius: var(--r-pill);
    white-space: nowrap;
  }
  .b2b__btn:hover { border-color: var(--lime); color: var(--lime-hi); }

  /* Шаги заказа — на месте бывших отзывов. Нумерованный список, а не набор
   * карточек: порядок здесь смысловой, и читалке экрана его тоже стоит знать. */
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
  }

  .step {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 26px;
  }

  .step__no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-pill);
    background: var(--lime);
    color: var(--black);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 16px;
  }

  .step__title { display: block; font-size: 16px; letter-spacing: -.01em; }
  .step__text { font-size: 13.5px; line-height: 1.6; color: var(--muted-dk); margin: 7px 0 0; }

  .contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(24px, 4vw, 48px);
  }
  .contacts__list { display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; }
  .contacts__key { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; margin-bottom: 3px; }

  .contacts__map {
    background: var(--surface-dim);
    border-radius: var(--r-card);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    box-sizing: border-box;
    text-align: center;
  }
  .contacts__map:hover { color: inherit; background: var(--surface-soft); }
  .contacts__map-pin { font-size: 26px; color: var(--green); line-height: 1; }
  .contacts__map b { font-size: 15px; }
  .contacts__map-more { font-size: 13px; font-weight: 700; color: var(--green-dk); }

  /* --- карточка товара --------------------------------------------------- */

  .prod__bar {
    position: sticky;
    top: 60px;
    z-index: 30;
    background: rgba(244, 245, 240, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(20, 22, 13, .06);
  }

  .prod__bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 6px var(--pad-hd);
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .prod__bar-name { font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; }
  .prod__bar-price { margin-left: auto; font-weight: 800; font-size: 14px; }
  .prod__bar-buy { font-size: 12.5px; padding: 9px 20px; }

  .prod__head {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 72px) var(--pad) 0;
    text-align: center;
  }

  .prod__cat {
    display: inline-block;
    color: var(--green-dk);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 20px;
  }
  .prod__cat:hover { color: var(--green); }

  .prod__title {
    font-weight: 800;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 18px;
    text-wrap: balance;
  }

  .prod__lead {
    font-size: 18px;
    line-height: 1.6;
    color: #5B5F4E;
    max-width: 560px;
    margin: 0 auto 22px;
  }

  .prod__prices { display: flex; gap: 10px; justify-content: center; align-items: baseline; flex-wrap: wrap; }
  .prod__price { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
  .prod__old { font-size: 14px; color: var(--muted-lt); }
  .prod__monthly { font-size: 13px; color: var(--muted); }

  .prod__cta { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }

  .prod__fav {
    width: 52px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--muted-dk);
    font-size: 16px;
  }
  .prod__fav:hover, .prod__fav[aria-pressed="true"] { color: #C43D2B; border-color: var(--lime); }

  .prod__out {
    font-weight: 800;
    font-size: 14.5px;
    color: var(--muted);
    padding: 16px 34px;
  }

  .colors {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
  }
  .colors__label { font-size: 13px; color: var(--muted); }
  .colors__label b { color: var(--ink); }
  .colors__list { display: flex; gap: 12px; }

  .color {
    width: 34px;
    height: 34px;
    border-radius: var(--r-pill);
    background: var(--color, var(--surface-dim));
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--line) inset;
  }
  .color--on { border-color: var(--lime); }

  .gallery {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 52px) var(--pad) 0;
  }

  .gallery__main {
    height: clamp(250px, 52vw, 480px);
    background: var(--frame, var(--surface-dim));
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(12px, 3vw, 28px);
    box-sizing: border-box;
    display: block;
  }

  .gallery__thumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

  .thumb {
    width: 72px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--frame, var(--surface-dim));
    border: 2px solid transparent;
  }
  .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; display: block; }
  .thumb--on { border-color: var(--lime); }

  .hl {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 64px) var(--pad) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }

  .hl__cell { background: var(--surface); border-radius: var(--r-card); padding: 30px; text-align: center; }
  .hl__value { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
  .hl__label { font-size: 13px; color: var(--muted); margin-top: 8px; }

  .prod__desc {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 88px) var(--pad) 0;
    text-align: center;
  }
  .prod__desc p {
    font-weight: 800;
    font-size: clamp(21px, 3.4vw, 27px);
    line-height: 1.45;
    letter-spacing: -.02em;
    margin: 0;
    text-wrap: balance;
    white-space: pre-line;
  }

  .specs { max-width: 720px; margin: 0 auto; padding: clamp(52px, 7vw, 80px) var(--pad) 0; }
  .specs__title { font-weight: 800; font-size: 28px; margin: 0 0 10px; }

  .specs__row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  .specs__row span { font-size: 13.5px; color: var(--muted); }
  .specs__row b { font-size: 14px; text-align: right; }

  .faq { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) var(--pad) 0; }

  .faq__item { border-bottom: 1px solid var(--line); }
  .faq__item summary {
    padding: 19px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -.01em;
    list-style: none;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary::after { content: "+"; float: right; color: var(--muted); }
  .faq__item[open] summary::after { content: "−"; }
  .faq__item p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: #5B5F4E;
    max-width: 600px;
  }

  .related { padding-top: clamp(56px, 8vw, 96px); }

  /* --- оверлеи: шторка, модалка, тост ------------------------------------ */

  .drawer, .modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(12, 13, 10, .38);
    display: flex;
    animation: bn-fade .2s ease both;
  }

  .drawer { justify-content: flex-end; }

  .drawer__panel {
    width: min(420px, 100%);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    animation: bn-slide .28s var(--ease) both;
  }

  .drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .drawer__close, .modal__close {
    width: 34px;
    height: 34px;
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--muted-dk);
    font-size: 20px;
    line-height: 1;
  }
  .drawer__close:hover, .modal__close:hover { color: var(--ink); }

  .drawer__body { flex: 1; overflow: auto; padding: 16px 24px; }

  .drawer__foot {
    border-top: 1px solid var(--line);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .modal { align-items: center; justify-content: center; padding: var(--pad); }

  .modal__panel {
    position: relative;
    background: var(--bg);
    border-radius: var(--r-lg);
    width: min(760px, 100%);
    max-height: 86vh;
    overflow: auto;
    animation: bn-pop .24s var(--ease) both;
  }
  .modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; }

  .modal__panel--wide { width: min(920px, 100%); }

  /* --- сравнение --------------------------------------------------------- */

  .cmpbar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 22px;
    background: rgba(12, 13, 10, .9);
    color: #fff;
    border-radius: var(--r-pill);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
    white-space: nowrap;
    animation: bn-toast .3s var(--ease) both;
  }

  .cmpbar__count { font-size: 13px; font-weight: 700; }
  .cmpbar__go { padding: 11px 22px; font-size: 12.5px; }
  .cmpbar__clear { font-size: 12.5px; color: #7C8070; padding-right: 8px; }
  .cmpbar__clear:hover { color: #fff; }

  /* Тост появляется там же, внизу по центру, и накрыл бы панель. Поднимаем
   * панель на время показа: в разметке тост стоит после неё, поэтому соседним
   * селектором его не достать. */
  body:has(.toast:not([hidden])) .cmpbar { bottom: 84px; }

  .cmp__title { font-weight: 800; font-size: 22px; margin: 0; padding: 26px 30px 16px; }

  /* Таблица шире экрана — обычное дело на телефоне: прокручивается она, а не
   * страница. */
  .cmp { overflow-x: auto; padding: 0 30px 30px; }

  .cmp__table { border-collapse: collapse; width: 100%; }

  .cmp__col {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    min-width: 150px;
  }

  /* Название и так было ссылкой, но выглядело обычным заголовком — в таблице
   * из четырёх столбцов никто не догадается на него нажать. */
  .cmp__name { display: block; font-weight: 800; font-size: 14px; line-height: 1.3; }
  .cmp__name:hover { color: var(--green-dk); text-decoration: underline; }
  .cmp__drop { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
  .cmp__drop:hover { color: #C43D2B; }

  .cmp__label {
    text-align: left;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    padding: 12px;
    border-top: 1px solid #EDEFE4;
    white-space: nowrap;
  }

  .cmp__val {
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px;
    border-top: 1px solid #EDEFE4;
  }

  .cmp__empty { padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }

  .toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 70;
    background: var(--black);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 13px 22px;
    border-radius: var(--r-pill);
    animation: bn-toast .3s var(--ease) both;
  }

  /* --- корзина ----------------------------------------------------------- */

  .cart__row {
    display: flex;
    gap: 12px;
    background: var(--surface-soft);
    border-radius: var(--r-md);
    padding: 12px;
    margin-bottom: 12px;
  }
  .cart__info { flex: 1; min-width: 0; }
  .cart__name { font-weight: 800; font-size: 13.5px; line-height: 1.3; }
  .cart__sum { font-weight: 800; font-size: 14px; margin-top: 4px; }

  .cart__controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

  .cart__qty-btn {
    width: 26px;
    height: 26px;
    background: var(--surface);
    border-radius: var(--r-pill);
    font-size: 14px;
    line-height: 1;
  }
  .cart__qty { font-size: 13.5px; }

  .cart__drop { margin-left: auto; font-size: 12px; color: var(--muted); }
  .cart__drop:hover { color: #C43D2B; }

  .cart__totals { display: flex; justify-content: space-between; align-items: baseline; }
  .cart__totals span { font-size: 13.5px; color: var(--muted); }
  .cart__totals b { font-weight: 800; font-size: 24px; }
  .cart__totals b[aria-busy="true"] { opacity: .4; }

  .cart__monthly { font-size: 12px; color: var(--muted); }
  .cart__checkout { text-align: center; margin-top: 4px; }
  .cart__checkout[aria-disabled="true"] { opacity: .45; pointer-events: none; }

  .cart__empty {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }
  .cart__empty p { margin: 14px 0; }
  .cart__empty a { color: var(--green-dk); font-weight: 700; }
  .cart__empty-bolt { fill: var(--line-dk); }

  .cart__problem {
    background: #FBEDEA;
    color: #A33325;
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin: 0 24px 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .cart__fix {
    margin-top: 8px;
    font-weight: 800;
    font-size: 12.5px;
    color: #A33325;
    text-decoration: underline;
  }

  .cartpage {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--pad) clamp(64px, 9vw, 96px);
    min-height: 60vh;
  }
  .cartpage__title { font-weight: 800; font-size: clamp(30px, 5.5vw, 44px); margin: 0 0 24px; }
  .cartpage__foot {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .cartpage .cart__problem { margin-inline: 0; }

  /* Строки от прошлого удачного расчёта, когда сервер не ответил: цена и
   * количество в них уже могли устареть. */
  .cart__body--stale { opacity: .45; }

  /* --- быстрый просмотр -------------------------------------------------- */

  .quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .quick__photo { background: var(--frame, var(--surface-dim)); min-height: 260px; }
  .quick__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
    display: block;
  }
  .quick__body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
  .quick__cat { font-size: 11.5px; color: var(--green-dk); font-weight: 700; }
  .quick__name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
  .quick__specs { font-size: 13px; color: var(--muted); }
  .quick__prices { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
  .quick__price { font-weight: 800; font-size: 20px; }
  .quick__old { font-size: 13px; color: var(--muted-lt); }
  .quick__monthly { font-size: 12px; color: var(--muted); }

  .quick__rows { margin: 10px 0; }
  .quick__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .quick__row span { color: var(--muted); }

  .quick__cta { display: flex; align-items: center; gap: 12px; margin-top: auto; }

  .quick__fav {
    width: 46px;
    height: 46px;
    border-radius: var(--r-pill);
    background: var(--surface-soft);
    color: var(--muted-lt);
    font-size: 17px;
    flex: none;
  }
  .quick__fav:hover,
  .quick__fav[aria-pressed="true"] { color: #C43D2B; }

  .quick__more { color: var(--green-dk); font-weight: 700; font-size: 13.5px; }
  .quick__out { font-weight: 700; font-size: 13.5px; color: var(--muted); }
  .quick__wait { padding: 48px; text-align: center; color: var(--muted); font-size: 14px; }

  .sec__tools { display: flex; align-items: center; gap: 16px; }
  .rail__nav { display: flex; gap: 8px; }

  .rail__btn {
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 16px;
    transition: transform .15s, box-shadow .2s;
  }
  .rail__btn:hover { box-shadow: 0 8px 20px rgba(12, 13, 10, .12); }
  .rail__btn:active { transform: scale(.92); }

  /* --- формы и оформление ------------------------------------------------ */

  .checkout, .order {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--pad) clamp(64px, 9vw, 96px);
    min-height: 60vh;
  }

  .checkout__title, .order__title { font-weight: 800; font-size: clamp(28px, 5vw, 40px); margin: 0 0 24px; }

  .form { display: flex; flex-direction: column; gap: 18px; }
  .form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  .form__group { border: 0; padding: 0; margin: 0; }

  .field { display: flex; flex-direction: column; gap: 6px; }
  .field--wide { grid-column: 1 / -1; }
  .field__label { font-size: 12.5px; color: var(--muted); }
  .field__label b { color: #C43D2B; }

  .field__input {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 13px 16px;
    font-size: 14.5px;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
    resize: vertical;
  }
  .field__input:focus { border-color: var(--lime); }

  .field__err { font-size: 12px; color: #C43D2B; }
  .field__err:empty { display: none; }

  .field__note { font-size: 11.5px; color: var(--muted-lt); }

  /* --- вход и регистрация ------------------------------------------------ */

  .authpage {
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--pad) clamp(64px, 9vw, 96px);
    min-height: 70vh;
  }

  .authpage__box {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 26px;
  }

  /* В модалке та же форма без второй коробки: её роль играет сама панель. */
  [data-auth-body] .auth { padding: 26px 26px 24px; }

  .auth__title { font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
  .auth__sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

  .auth__err {
    background: #FBEDEA;
    color: #A33325;
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .auth__hint { margin-top: 14px; font-size: 12.5px; color: var(--muted-dk); }
  .auth__hint summary { color: var(--green-dk); font-weight: 700; cursor: pointer; }
  .auth__hint p {
    background: var(--surface-soft);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin: 10px 0 0;
    line-height: 1.55;
    text-align: center;
  }

  .auth__legal {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--muted-lt);
    line-height: 1.55;
    text-align: center;
  }

  /* Переключатель половин. Ссылки, а не кнопки: без скрипта они перезагружают
   * экран с другой формой — и это единственный способ переключиться. */
  .seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F1F2EA;
    border-radius: var(--r-pill);
    padding: 4px;
    margin: 20px 0 16px;
  }

  .seg__opt {
    text-align: center;
    padding: 10px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-dk);
    transition: background .2s, color .2s;
  }
  .seg__opt:hover { color: var(--ink); }
  .seg__opt--on,
  .seg__opt--on:hover { background: var(--surface); color: var(--ink); }

  .strength { display: flex; align-items: center; gap: 10px; }
  .strength__bars { flex: 1; display: flex; gap: 5px; }

  .strength__bars i {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
  }
  .strength__bars i.is-on { background: #E8A33D; }
  .strength__bars i.strength--3 { background: var(--green); }
  .strength__bars i.strength--4 { background: var(--green-dk); }

  .strength__label { font-size: 11.5px; font-weight: 700; color: var(--muted); }

  .captcha { min-height: 100px; }

  /* --- личный кабинет ---------------------------------------------------- */

  .acc {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--pad) clamp(64px, 9vw, 96px);
    min-height: 70vh;
  }

  .acc__head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 22px 0 30px;
  }

  .acc__avatar {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: var(--r-pill);
    background: var(--lime);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .03em;
  }

  .acc__who { flex: 1; min-width: 200px; }
  .acc__greeting { font-weight: 800; font-size: clamp(26px, 4.5vw, 36px); margin: 0; }
  .acc__email { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

  .acc__logout {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted-dk);
    font-weight: 700;
    font-size: 13px;
    padding: 11px 20px;
    border-radius: var(--r-pill);
    transition: color .2s, border-color .2s;
  }
  .acc__logout:hover { color: #C43D2B; border-color: #EBC5BE; }

  /* Карточек ровно четыре, поэтому сетка задана явно, а не auto-fit: тот при
   * ширине кабинета в 1040 px раскладывал их на три колонки, и «Быстрые
   * ссылки» оставались одни во втором ряду с дырой в две колонки справа.
   */
  .acc__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  @media (max-width: 620px) {
    .acc__cards { grid-template-columns: minmax(0, 1fr); }
  }

  .acc__card,
  .acc__orders {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 26px;
  }
  .acc__orders { margin-top: 14px; }

  .acc__card-head { font-size: 16px; letter-spacing: -.01em; margin-bottom: 14px; }
  .acc__note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
  .acc__static { font-size: 14.5px; font-weight: 700; padding: 2px 0; }

  .acc__ok {
    background: #EAF3C8;
    color: #3E4E00;
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .acc__err {
    background: #FBEDEA;
    color: #A33325;
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  /* Карточка баллов — тёмная, как в макете: единственный блок кабинета, где
   * показывают не факт, а выгоду. */
  .acc__card--dark { background: var(--black); color: #fff; }
  .acc__card--dark .acc__card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

  .acc__badge { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--lime); }
  .acc__balance { font-weight: 800; font-size: 32px; letter-spacing: -.02em; color: var(--lime); }
  .acc__balance-note { font-size: 12.5px; color: #A9AD9E; margin-top: 6px; line-height: 1.5; }

  .acc__spend {
    display: block;
    margin-top: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-pill);
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
  }
  .acc__spend:hover { background: rgba(255, 255, 255, .18); color: #fff; }

  .cart__bonus {
    display: block;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--green-dk);
  }
  .cart__bonus:hover { color: var(--green); }

  .acc__links { display: flex; flex-direction: column; gap: 10px; }

  .acc__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-soft);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    font-weight: 700;
    font-size: 13.5px;
  }
  .acc__link:hover { color: var(--green-dk); }
  .acc__link-more { color: var(--muted); }

  .acc__list { list-style: none; margin: 0; padding: 0; }

  .acc__order {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #EDEFE4;
    flex-wrap: wrap;
  }
  .acc__order:last-child { border-bottom: 0; }

  .acc__order-no {
    width: 74px;
    flex: none;
    border-radius: var(--r-sm);
    background: #F1F2EA;
    text-align: center;
    padding: 12px 6px;
    font-weight: 800;
    font-size: 11.5px;
  }

  .acc__order-main { flex: 1; min-width: 140px; }
  .acc__order-items { font-size: 13.5px; font-weight: 700; }
  .acc__order-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .acc__order-total { font-size: 14px; }

  .acc__status {
    background: #EAF3C8;
    color: #3E4E00;
    font-weight: 800;
    font-size: 11.5px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
  }

  .acc__empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 26px 0 12px; line-height: 1.6; }
  .acc__empty a { color: var(--green-dk); font-weight: 700; }

  .hd__acc { font-size: 11.5px; font-weight: 800; letter-spacing: .03em; }

  .radios { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

  .radio {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
  }
  .radio:has(input:checked) { border-color: var(--lime); }

  .checkout__summary {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form__err {
    background: #FBEDEA;
    color: #A33325;
    border-radius: var(--r-md);
    padding: 13px 16px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .form__submit { text-align: center; }
  .form__submit:disabled { opacity: .5; }
  .form__note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }

  /* --- страница заказа --------------------------------------------------- */

  .order__done {
    background: #EAF3C8;
    color: #3E4E00;
    border-radius: var(--r-card);
    padding: 22px;
    margin-bottom: 24px;
  }
  .order__done-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
  .order__done-text { font-size: 13.5px; line-height: 1.55; }

  .order__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .order__head .order__title { margin-bottom: 0; }

  .order__status {
    background: var(--lime);
    color: var(--black);
    font-weight: 800;
    font-size: 12.5px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
  }
  .order__date { font-size: 13px; color: var(--muted); margin: 8px 0 24px; }

  .order__block { background: var(--surface); border-radius: var(--r-card); padding: 22px; margin-bottom: 14px; }
  .order__sub { font-weight: 800; font-size: 16px; margin: 0 0 14px; }

  .order__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
  }
  .order__name { font-weight: 700; }
  .order__qty { color: var(--muted); white-space: nowrap; }
  .order__sum { font-weight: 800; white-space: nowrap; }

  .order__line {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--muted);
    padding-top: 10px;
  }

  .order__done-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--green-dk); }

  .order__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
  .order__total b { font-weight: 800; font-size: 20px; }
  .order__note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

  .order__pair { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 13.5px; }
  .order__pair span { color: var(--muted); }
  .order__pair b { text-align: right; }

  .order__token { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .order__token code {
    font-family: ui-monospace, monospace;
    font-size: 14px;
    background: var(--surface-soft);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    display: inline-block;
  }
  .order__copy {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--green-dk);
    padding: 8px 12px;
    border-radius: var(--r-sm);
  }
  .order__copy:hover { background: var(--surface-soft); }
  .order__back { display: inline-block; margin-top: 10px; }

  /* --- заявка ------------------------------------------------------------ */

  .modal__panel--narrow { width: min(460px, 100%); }
  .lead { padding: 28px; }
  .lead__title { font-weight: 800; font-size: 22px; margin: 0; }
  .lead__text { font-size: 13.5px; line-height: 1.5; color: var(--muted-dk); margin: -8px 0 4px; }

  .lead__done {
    background: #EAF3C8;
    color: #3E4E00;
    border-radius: var(--r-md);
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .contacts__call { display: inline-block; margin-top: 24px; text-align: center; }

  .socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

  .social {
    background: var(--surface);
    border-radius: var(--r-pill);
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 700;
  }
  .social:hover { color: var(--green-dk); }

  /* --- страница ошибки --------------------------------------------------- */

  .err {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(64px, 12vw, 140px) var(--pad);
    text-align: center;
  }

  .err__code {
    font-weight: 800;
    font-size: clamp(64px, 14vw, 120px);
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--lime);
  }

  .err__title { font-weight: 800; font-size: clamp(24px, 4.5vw, 34px); margin: 16px 0 12px; }
  .err__text { font-size: 15px; line-height: 1.6; color: var(--muted-dk); margin: 0 0 28px; }
  .err__cta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
  .err__link { color: var(--green-dk); font-weight: 700; font-size: 14.5px; padding: 16px 10px; }

  .err__req { margin-top: 28px; font-size: 12.5px; color: var(--muted); }
  .err__req code { font-family: ui-monospace, monospace; color: var(--ink-soft); }

  /* --- подвал ------------------------------------------------------------ */

  .ft {
    border-top: 1px solid var(--line-dk);
    padding: 36px var(--pad);
    color: var(--muted);
    margin-top: clamp(64px, 9vw, 96px);
  }

  .ft__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12.5px;
  }

  .ft__brand { display: flex; align-items: center; gap: 10px; }
  .ft__logo { height: 30px; width: 30px; border-radius: 7px; }
  .ft__nav { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; }
  .ft__nav--brands { width: 100%; border-top: 1px solid var(--line); padding-top: 14px; }
  .ft__key { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

  /* Страницы с текстом: доставка, оплата, гарантия. Ширина ограничена не
   * контейнером, а длиной строки — читать сплошной текст на всю ширину экрана
   * тяжело.
   */
  /* Контейнер текстовых страниц. Раньше <main class="wrap"> не находил в файле
   * ни одного правила: на десктопе крошки прилипали к краю окна, а на телефоне
   * весь текст «Доставки», «Оплаты» и «Гарантии» шёл вплотную к обоим краям.
   * Отступы те же, что у .cat и .cartpage, — страница не должна отличаться от
   * соседних тем, что её контейнер забыли описать.
   */
  .wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--pad) clamp(64px, 9vw, 96px);
    min-height: 60vh;
  }

  .text { max-width: 68ch; margin: 0 auto 72px; }
  .text__title { font-weight: 800; font-size: clamp(30px, 5.5vw, 44px); margin: 0 0 16px; }
  .text__lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 28px; }
  .text__block { margin-bottom: 28px; }
  .text__heading { font-weight: 700; font-size: 19px; margin: 0 0 10px; }
  .text__block p { margin: 0 0 12px; line-height: 1.65; }
  .text__cta {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 20px 22px;
  }
  .text__cta p { margin: 0; }
}

@layer utilities {
  /* Анимации перенесены из макета как есть: это рабочий код, переписывать его
   * нечем. Появление по мере прокрутки сделано на animation-timeline: view(),
   * а не на IntersectionObserver — без скрипта и без дёрганья главного потока.
   */
  @keyframes bn-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes bn-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes bn-fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes bn-badge { from { transform: scale(.5); } to { transform: scale(1); } }
  @keyframes bn-slide { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: translateX(0); } }
  /* В макете модалка центрировалась трансформом, поэтому её появление несло
   * ещё и translate(-50%,-50%). Здесь центрирует flex, и в анимации остался
   * только масштаб — иначе она уезжала бы из центра. */
  @keyframes bn-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
  @keyframes bn-toast { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
  @keyframes bn-hero-out { to { opacity: .15; transform: translateY(-28px); } }

  /* Текст первого экрана тает, когда уезжает вверх, — как в макете. Правило
   * стоит здесь, а не рядом с остальным первым экраном: это анимация по
   * таймлайну прокрутки, и фолбэк для неё общий с блоками ниже. */
  .hero__inner {
    animation: bn-hero-out linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 80%;
  }

  [data-stagger] > * {
    animation: bn-fadein .9s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
  [data-stagger] > *:nth-child(2) { animation-range: entry 4% entry 34%; }
  [data-stagger] > *:nth-child(3) { animation-range: entry 8% entry 38%; }
  [data-stagger] > *:nth-child(4) { animation-range: entry 12% entry 42%; }
  [data-stagger] > *:nth-child(5) { animation-range: entry 16% entry 46%; }
  [data-stagger] > *:nth-child(6) { animation-range: entry 20% entry 50%; }
  [data-stagger] > *:nth-child(7) { animation-range: entry 24% entry 54%; }
  [data-stagger] > *:nth-child(8) { animation-range: entry 28% entry 58%; }
  [data-stagger] > *:nth-child(n+9) { animation-range: entry 32% entry 62%; }

  /* Без поддержки таймлайна прокрутки анимация с both осталась бы на первом
   * кадре, то есть элементы навсегда исчезли бы. В макете этот фолбэк стоял
   * только на первом экране — здесь он нужен всем появляющимся блокам.
   */
  @supports not (animation-timeline: view()) {
    [data-stagger] > * { animation: none; }
    .hero__inner { animation: none; }
  }

  [data-stagger-t] > * { animation: bn-fadein .55s var(--ease) backwards; }
  [data-stagger-t] > *:nth-child(2) { animation-delay: .05s; }
  [data-stagger-t] > *:nth-child(3) { animation-delay: .1s; }
  [data-stagger-t] > *:nth-child(4) { animation-delay: .15s; }
  [data-stagger-t] > *:nth-child(5) { animation-delay: .2s; }
  [data-stagger-t] > *:nth-child(6) { animation-delay: .25s; }
  [data-stagger-t] > *:nth-child(7) { animation-delay: .3s; }
  [data-stagger-t] > *:nth-child(8) { animation-delay: .35s; }
  [data-stagger-t] > *:nth-child(n+9) { animation-delay: .4s; }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; }
  }

  @media (max-width: 820px) {
    [data-bento] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 132px; }
  }

  /* Ниже 540 px плитка становится одноколоночной.
   *
   * Названия разделов — по одному длинному слову: «Электроинструмент» требует
   * 168 px, и в двух столбцах на телефоне слово рвалось посреди корня
   * («Электроинс|трумент»). Словарь переносов есть не в каждом браузере, а
   * шрифт под такую строку пришлось бы уменьшать до нечитаемого. Один столбец
   * длиннее, но читается как задумано.
   */
  @media (max-width: 540px) {
    [data-bento] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 108px; }
    .bento__hero { grid-column: span 1; }
  }

  /* Шапка разбирается в два приёма, а не в один на 760 px. Логотип, пять
   * пунктов меню, телефон, три кнопки и корзина не помещались в строку уже на
   * 999 px: телефон и «Юр. лицам» переносились на вторую строку, а логотип
   * наезжал на «Каталог». Первым уходит телефон — он продублирован в подвале и
   * на странице контактов, меню полезнее.
   */
  @media (max-width: 1000px) {
    .hd__phone { display: none; }
  }

  @media (max-width: 860px) {
    .hd__nav { display: none; }
  }

  @media (max-width: 470px) {
    .hd__icon--cmp { display: none; }
  }

  /* На узком экране название магазина остаётся только на самом знаке: он же
   * его и содержит, а второй раз строка не помещается рядом с корзиной.
   */
  @media (max-width: 430px) {
    .hd__logo-text { display: none; }
  }
}
