/* Движок витрины: раскладка и компоненты. Цвета, шрифты, радиусы и тени —
   только через переменные из /pack/kit/tokens.css пакета бренда; числами здесь
   записана геометрия, а не облик. Переопределения облика — в brand.css бренда. */
:root {
  font-family: var(--font-sans);
  font-synthesis: none;
  /* Prices and counts line up column to column instead of dancing. */
  font-variant-numeric: tabular-nums;
  /* Флажки и переключатели — цветом бренда, а не синим браузера. */
  accent-color: var(--accent);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.k507 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
button:hover,
.k507:hover {
  border-color: var(--accent);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.kb65 {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.k79a {
  background: transparent;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.k0a3 {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: var(--raised);
  z-index: 2;
}
.k0a3:focus {
  top: 8px;
}
.kb06 {
  max-width: 1400px;
  margin: auto;
  min-height: 80px;
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
}
.k706 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -1px;
  white-space: nowrap;
}
.k706 span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-size: 14px;
  font-weight: 600;
}
.ka2b {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
/* Поиск живёт в шапке, а не только на главной: искать товар нужно с любой страницы. */
.qa97-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 420px;
  min-width: 0;
  padding: 0 8px 0 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
/* Кольцо рисуется вокруг всего поля: подсвечивать один input внутри рамки нечего. */
.qa97-search:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.qa97-search .q2bc-glyph {
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}
.qa97-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.qa97-search input:focus-visible {
  outline: none;
}
.qa97-search button {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
}
main {
  max-width: 1400px;
  min-height: 65vh;
  margin: auto;
  padding: 40px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
/* Заголовки страниц и разделов — шрифтом бренда для крупного текста; заголовки
   карточек (h3) остаются основным шрифтом: мелкий текст должен читаться. */
h1,
h2 {
  font-family: var(--font-display);
}
h1 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.04;
  letter-spacing: -2.4px;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 750px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.9px;
  font-weight: 750;
  text-wrap: balance;
}
h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  text-wrap: balance;
}
/* Заголовок принадлежит тому, что под ним: сверху воздуха больше, чем снизу. */
main :is(p, dl, ul, ol, figure, aside, .k81b, .q831-list, .q76d-block) + :is(h2, h3) {
  margin-top: 36px;
}
p {
  max-width: 65ch;
  text-wrap: pretty;
}
.k247,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.k9cf {
  padding: 32px 0 48px;
  max-width: 1000px;
}
.k9cf p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
}
.k3d2 {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.kc62 {
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  padding: 18px 22px;
  border-radius: var(--radius-control);
  margin: 0 0 32px;
}
.kc62 strong {
  display: block;
  margin-bottom: 2px;
}
.kc62 p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.k2eb {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  align-items: end;
  flex-wrap: wrap;
}
.k2eb label {
  flex: 1;
  min-width: 200px;
}
.k2eb button {
  flex: none;
}
/* Категории переносятся, а не прокручиваются: восемь разделов должны быть видны сразу,
   иначе часть каталога прячется за горизонтальной прокруткой, которую мышью не заметить. */
.k3c7 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
}
.k3c7 button {
  font-size: 14px;
}
.k3c7 button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--text);
  padding: 12px;
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.kcf2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.kc69 {
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kc69 h3 {
  margin: 0;
}
.kc69 .k81b {
  margin-top: auto;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.kc69 .k965 {
  color: var(--muted);
  font-size: 14px;
}
.kc83 {
  padding: 54px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-panel);
  text-align: center;
}
.kc83 p {
  margin: 12px auto 0;
  color: var(--muted);
}
.kc83 h3 {
  font-size: 22px;
}
.k36d {
  margin: 36px 0;
}
.kff3 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
}
.ka36 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ka36 button {
  justify-content: start;
}
.ka36 button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.k565 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.kad3 {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.kad3 strong {
  display: block;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
}
.k919 {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  margin: 20px 0;
}
.k773 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.k773:last-child {
  border-bottom: 0;
}
.k773 p {
  margin: 5px 0;
}
.k773 .ka2b {
  flex-wrap: wrap;
}
.k773 > div {
  min-width: 0;
}
.k773 h3,
.kf01 {
  overflow-wrap: anywhere;
}
.k1fa {
  display: grid;
  gap: 18px;
}
.q050-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.k771 {
  color: var(--error);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.kc4d {
  padding: 40px;
  background: var(--panel);
  border-radius: var(--radius-panel);
}
.kf93 {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: var(--radius-control);
  white-space: nowrap;
}
.qb54-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-weight: 500;
}
dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-panel);
  padding: 28px;
  background: var(--bg);
  color: var(--text);
}
dialog::backdrop {
  background: var(--backdrop);
}
.q819-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.q819-head h2 {
  margin: 8px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius-control);
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
footer {
  max-width: 1320px;
  margin: 40px auto 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
footer p {
  margin: 0;
  flex: 1;
}
/* Строка подтверждения для банка: найти её должно быть легко, мешать покупателю — нет. */
.k570 {
  flex: 0 0 100%;
  order: 9;
  font-size: 12px;
  opacity: 0.75;
}
.k570 code {
  font-weight: 650;
  letter-spacing: 0.04em;
}
#ke6b:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92vw, 560px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 12px 10px 20px;
  border-radius: var(--radius-control);
  z-index: 3;
}
.q860-text { flex: 1; min-width: 0; }
#ke6b .q860-action {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  background: var(--on-accent);
  color: var(--accent);
  border: 0;
  font-weight: 650;
}
#ke6b .q860-close {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--on-accent) 40%, transparent);
  background: transparent;
}
#ke6b .q860-close:hover { background: color-mix(in srgb, var(--on-accent) 18%, transparent); }
.kb6b {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
}
.k084 {
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius-control);
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.k084 small {
  display: block;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1024px) {
  .kb06 {
    gap: 20px;
    padding: 16px 24px;
    flex-wrap: wrap;
  }
  /* В одном ряду с брендом, навигацией и действиями поле сжимается до трёх пикселей. */
  .qa97-search {
    order: 2;
    width: 100%;
    flex-basis: 100%;
    max-width: none;
  }
  main {
    padding: 28px 24px;
  }
  .kff3 {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }
  footer {
    margin: 32px 24px;
  }
  .k565 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .kb06 {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }
  .kb06 nav {
    order: 3;
    width: 100%;
    gap: 24px;
  }
  .k706 {
    font-size: 22px;
  }
  .ka2b {
    gap: 8px;
  }
  main {
    padding: 24px 16px;
  }
  .k9cf {
    padding: 20px 0 28px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .k9cf p {
    font-size: 16px;
  }
  .kff3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ka36 {
    flex-direction: row;
    overflow: auto;
  }
  .q050-grid {
    grid-template-columns: 1fr;
  }
  .k773 {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .k773 .ka2b {
    margin-left: 0;
  }
  .k565 {
    gap: 16px;
  }
  .k919 {
    padding: 18px;
  }
  .q819-head {
    gap: 10px;
  }
  dialog {
    padding: 20px;
  }
  footer {
    margin: 24px 16px;
    flex-wrap: wrap;
    gap: 14px;
  }
  footer p {
    flex-basis: 100%;
    order: 3;
  }
  .k2eb {
    gap: 10px;
  }
  .k2eb label {
    min-width: 150px;
  }
  .kcf2 {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s;
  }
}

.kff3 > * {
  min-width: 0;
}
.k9cf {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: none;
}
.k9cf img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-panel);
}
.k9cf h1 {
  font-size: clamp(32px, 4vw, 56px);
}
@media (max-width: 767px) {
  .kff3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .k9cf {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .k9cf img {
    max-height: 210px;
    object-fit: cover;
  }
  .k9cf h1 {
    font-size: 32px;
  }
}

footer {
  flex-wrap: wrap;
}
.qd19-links {
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 16px;
}
.k40e {
  max-width: 800px;
}
.q1be-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.k40e h1 {
  font-size: 40px;
}

.qc0d-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-cover);
  /* Many supplier logos are dark art on a transparent background: the plate only shows
     through that transparency, so it stays light in both themes. */
  background: var(--cover-plate);
  color: var(--cover-plate-text);
  isolation: isolate;
}
.qad0-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  font-size: 14px;
  text-align: center;
  z-index: 0;
}
.qad0-icon {
  width: 28px;
  height: 28px;
  opacity: 0.55;
}
/* Что происходит с заказом прямо сейчас — рядом со статусом, а не в поддержке. */
.qa1e-note {
  margin: -4px 0 20px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.5;
}
/* Название вместо сообщения об ошибке: плитка без обложки читается как оформление. */
.qad0-word {
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-wrap: balance;
  opacity: 0.75;
}
/* Without artwork the tile follows the page theme instead of the light plate. */
.qad0-empty {
  background: var(--raised);
  color: var(--muted);
  border: 1px solid var(--line);
}
.qc0d-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* A blurred copy of the same artwork fills the frame: no letterbox bars, no cropped art.
   The backdrop is dimmed on a dark page and left bright on a light one, otherwise pale
   artwork picks up a grey halo against the light plate. */
.qad0-blur {
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(22px) saturate(1.2) brightness(var(--cover-glow, 1.04));
  z-index: 1;
}
.qad0-art {
  object-fit: contain;
  padding: 2px;
  z-index: 2;
}
.qc0d-cover-detail { width: min(100%, 616px); margin: 24px 0 32px; }
.kc69 > .k507 { margin-top: auto; }

/* Shared component system */
.k706 { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -1.2px; }
.k706 img { display: block; flex: 0 0 36px; border-radius: 10px; }
.kb06 { min-height: 88px; }
button, .k507, input, textarea, select { border-radius: var(--radius-control); }
.kc69 { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 24px; gap: 16px; }
.kc69 h3 { letter-spacing: -.4px; line-height: 1.3; }
.kc69 .k507 { background: transparent; }
.kc69 .k507:hover { background: var(--accent); color: var(--on-accent); }
.k9cf { background: var(--hero-bg); color: var(--hero-text); border-radius: var(--radius-hero); padding: 48px; margin-bottom: 28px; overflow: hidden; }
.k9cf p { color: var(--hero-text); }
.k9cf h1 { font-size: clamp(38px, 4.5vw, 66px); letter-spacing: -2.5px; max-width: 720px; }
.q367-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.k9cf .q367-action { gap: 8px; background: var(--hero-action-bg); color: var(--hero-action-text); border: 0; }
/* Второе действие — приглушённее первого, но на синем поле держит тот же контраст. */
.k9cf .q367-second { gap: 8px; background: transparent; color: var(--hero-text); border: 1px solid var(--hero-text); }
.k9cf .q367-second:hover { background: var(--hero-action-bg); color: var(--hero-action-text); }
.k9cf .q367-second .k587 { width: 18px; height: 18px; }
.q367-emblem { display: grid; place-items: center; min-height: 280px; border-left: 1px solid var(--hero-divider); position: relative; }
.q367-emblem img { width: 240px; height: 240px; aspect-ratio: 1; border-radius: 0; object-fit: contain; }
.q367-emblem small { color: var(--hero-text); letter-spacing: .05em; font-size: 12px; }
.k3c7 { gap: 8px; }
.k3c7 button { border-radius: 999px; }
.k2eb { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.kc62 { border-radius: 12px; }
@media (max-width: 767px) {
  .kb06 { gap: 14px; }
  .k9cf { padding: 28px 24px; grid-template-columns: 1fr; }
  .k9cf h1 { font-size: 38px; letter-spacing: -1.5px; }
  .q367-emblem { display: none; }
  .k706 { font-size: 24px; }
  .k2eb { padding: 14px; }
  /* Two half-width fields on a phone leave neither of them readable. */
  .k2eb label { flex: 1 0 100%; min-width: 0; }
  .k2eb .k08c { flex: 1 0 100%; }
  .k2eb button[type="submit"] { width: 100%; }
}

/* Forward applied to account, administration, documents and dialogs. */
.k919, .kc83, dialog { background: var(--panel); }
.kad3 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 20px; }
.kad3 strong { letter-spacing: -1.2px; }
.ka36 button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.kb06 nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.qd19-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.kf93 { background: var(--raised); border-radius: 999px; }
.qb54-wrap { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--panel); }
th { background: var(--raised); font-weight: 600; }
.k40e { max-width: 880px; margin: 0 auto; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.k40e h1 { font-size: clamp(30px, 4vw, 48px); }
.q1be-body { line-height: 1.75; }
.q1be-body a, .k40e a { color: var(--accent); text-decoration: underline; }
.k084 {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  max-width: 46ch;
}
.k084 small { display: block; color: var(--muted); margin-bottom: 4px; }
.k084 + .k084 { margin-top: 10px; }
dialog { box-shadow: var(--shadow-dialog); }
.q819-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
button:disabled { transform: none; }
@media (max-width: 767px) {
  .k40e { padding: 22px 18px; }
  .kad3 { padding: 16px; }
  .kad3 strong { font-size: 30px; }
}

/* Identical SVG wordmark on the storefront and reference page. */
.k706 img { width: 135px; height: 36px; flex: 0 0 135px; border-radius: 0; }
.k706 .q8fe-dark { display: none; }
:root[data-theme="dark"] .k706 .q8fe-light { display: none; }
:root[data-theme="dark"] .k706 .q8fe-dark { display: block; }
@media(max-width:767px) { .k706 img { width: 120px; height: 32px; flex-basis: 120px; } }

/* Storefront: price labels, category counts and the offer list on a product page. */
.kc69 .k81b { font-size: 20px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.kc69 .k81b small, .kc69 .k81b .k247 { font-size: 14px; font-weight: 500; }
.kc69 .k81b strong { font-size: 24px; letter-spacing: -.6px; }
.k81b.k5d2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -1px; margin: 0 0 8px; }
.k3c7 button { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.k3c7 .k50a { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.k3c7 button[aria-pressed="true"] .k50a { color: inherit; opacity: .75; }
.k2eb .k08c { flex: none; display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 46px; }
.k2eb .k08c input { width: 20px; min-width: 20px; min-height: 20px; }
.q831-list { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--panel); padding: 0 24px; }
.k3c5 .q831-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.k3c5 .k81b { margin: 0; font-size: 18px; text-align: right; }
.k3c5 .k81b strong { font-size: 22px; letter-spacing: -.5px; }
.k1fa .k08c { display: flex; flex-direction: row; align-items: center; gap: 12px; font-weight: 500; }
.k1fa .k08c input { width: 20px; min-width: 20px; min-height: 20px; }
@media (max-width: 767px) {
  .q831-list { padding: 0 16px; }
  .k3c5 { flex-direction: column; align-items: stretch; }
  .k3c5 .q831-action { align-items: stretch; }
  .k3c5 .k81b { text-align: left; }
  .k2eb .k08c { width: 100%; }
}

/* Catalogue controls: region picker, page counter, chips and loading skeletons. */
.qf55-count { color: var(--muted); font-size: 14px; align-self: center; font-variant-numeric: tabular-nums; }
.kb6b { display: flex; gap: 12px; align-items: center; }
.k727 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.k0b9 { font-size: 13px; padding: 4px 12px; border-radius: 999px; min-height: 0; }
.kf39 { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.kf39 a { color: var(--accent); }
.q76d-picker { margin: 0 0 20px; flex-wrap: wrap; overflow: visible; }
.q76d-picker button { font-size: 14px; }
.k2da { gap: 12px; pointer-events: none; }
.k2da .k47e { display: block; height: 14px; border-radius: 8px; background: var(--raised); animation: pulse 1.4s ease-in-out infinite; }
.k2da .k47e.kcfc { height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
.k2da .k47e.k19a { height: 10px; width: 35%; }
.k2da .k47e.k6ac { width: 55%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .k2da .k47e { animation: none; } }
@media (max-width: 767px) {
  .kb6b { flex-wrap: wrap; }
  .q76d-picker { flex-wrap: wrap; }
}

/* Icons in place of words where the control is obvious, with a label kept for the rest. */
.k584 { display: none; }
.k587 {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button, .k507 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.q441-button { padding-inline: 12px; }
.kb06 nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.kb06 nav a .k587 { width: 18px; height: 18px; opacity: .75; }
.kb06 nav a[aria-current="page"] .k587 { opacity: 1; }
.k0b9 .k587 { width: 14px; height: 14px; }
.q367-action .k587 { width: 18px; height: 18px; }
.kb6b button .k587 { width: 16px; height: 16px; }
.kc69 .k81b { gap: 6px 10px; }
.kc69 .k81b small { white-space: nowrap; }
@media (max-width: 620px) {
  /* The nav drops to its own row on a phone, so the labels fit: two named pills
     read faster than two bare glyphs, and each keeps a full 44px touch target. */
  .kb06 nav { gap: 8px; }
  .kb06 nav a {
    min-height: 44px;
    padding: 0 14px;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-decoration: none;
  }
  .kb06 nav a .k587 { width: 20px; height: 20px; }
  .kb06 nav a[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
  }
}

/* Product card: a fixed rhythm of category, name, price and offer count. */
.kc69 { gap: 12px; }
.kc69 .qead-kind { color: var(--muted); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.kc69 .k81b { margin: 4px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.6px; display: block; }
.kc69 .k81b .k247 { font-size: 17px; font-weight: 600; }
.kc69 .q831-count { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.kc69 h3 { margin: 0; font-size: 19px; }

/* Offer summary inside the quote dialog. */
.q831-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 14px; }
.q831-summary dt { color: var(--muted); font-size: 14px; }
.q831-summary dd { margin: 0; font-weight: 600; }

/* Front page as a shop: departments (bento tiles) and curated shelves. */
.kd30 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.k8ee {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease-out), border-color .18s ease-out;
}

.q73a-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.q73a-name { font-weight: 700; letter-spacing: -.3px; }
.q73a-count { color: var(--muted); font-size: 13px; }
.q73a-all { background: var(--raised); }
.q64a-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.q64a-head h2 { margin: 0; }
.q64a-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.q64a-all .k587 { width: 15px; height: 15px; }
/* A shelf is a full row, not a scroller: nothing hides past the edge and a mouse needs
   no horizontal scrolling. The row header carries "Смотреть все" for the rest. */
.q64a-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.kc69 { transition: transform .18s var(--ease-out), border-color .18s ease-out; }
.q9d8-all { text-align: center; }
.q9d8-all .k507 { min-width: 260px; }
@media (prefers-reduced-motion: reduce) {
  .kc69, .k8ee { transition: none; }
  .kc69:hover, .k8ee:hover { transform: none; }
}
@media (max-width: 767px) {
  .kd30 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .k8ee { padding: 14px; }
  .q64a-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .q9d8-all .k507 { width: 100%; min-width: 0; }
}

/* Two lines for every product name keeps prices and buttons on one baseline across a row. */
.kc69 h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
}
.kc69 .k81b { min-height: 30px; }

/* Account: identity block and status badges. */
.q08c-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin: 16px 0 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.q08c-card small { display: block; color: var(--muted); font-size: 13px; }
.q08c-card strong { font-size: 18px; letter-spacing: -.3px; }
.k89b {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
}
.qba2-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.qba2-warn { background: color-mix(in srgb, var(--warn) 20%, transparent); border-color: color-mix(in srgb, var(--warn) 48%, transparent); }
.qba2-bad { background: color-mix(in srgb, var(--bad) 18%, transparent); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.qba2-wait { background: var(--raised); }
.q239-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q239-line strong { font-size: 17px; }
code { font-family: var(--font-mono); font-size: 13px; }
.kad3 .q69a-text { font-size: 17px; letter-spacing: -.2px; line-height: 1.35; }
.kad3 small + small { color: var(--muted); font-size: 12px; }

/* Surfaces: the hero is lit from one corner and carries grain, so it reads as a
   printed panel instead of a flat colour block. The noise is an inline SVG, no request. */
.k9cf {
  position: relative;
  isolation: isolate;
  background: var(--hero-bg);
  box-shadow: var(--hero-shadow);
}
.k9cf::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: var(--hero-grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* A lift on hover belongs to a real pointer: on a touch screen it sticks after the tap. */
@media (hover: hover) and (pointer: fine) {
  .kc69:hover,
  .k8ee:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
  }
}

/* Anchors glide instead of jumping; motion stays optional. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The front page arrives in a short cascade. The search grid does not: it re-renders on
   every keystroke, sort and page, and re-animating it there reads as lag, not life. */
@media (prefers-reduced-motion: no-preference) {
  .q64a-row .kc69,
  .kd30 .k8ee {
    animation: rise .22s var(--ease-out) backwards;
  }
  .q64a-row .kc69:nth-child(n + 2),
  .kd30 .k8ee:nth-child(n + 2) { animation-delay: .03s; }
  .q64a-row .kc69:nth-child(n + 4),
  .kd30 .k8ee:nth-child(n + 4) { animation-delay: .06s; }
  .kd30 .k8ee:nth-child(n + 7) { animation-delay: .09s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* A pressed control gives way under the finger. */
button:active, .k507:active { transform: translateY(1px) scale(.99); }
main { min-height: 65dvh; }
.q688-found { max-width: 640px; margin: 48px auto; text-align: center; }
.q688-found p { margin-inline: auto; }
.q688-found .k2eb { justify-content: center; margin-top: 28px; }
.q688-found .k2eb .k507 { flex: 0 0 auto; }

/* Legal pages are long-form reading: a comfortable measure beats a full-width slab. */
.k40e { max-width: 820px; }
.q1be-body { max-width: 68ch; font-size: 16px; line-height: 1.8; }
.k40e h1 { letter-spacing: -1.6px; }

/* Выбор способа оплаты. Появляется, только когда касс правда несколько. */
.k77d {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.k77d legend {
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.k77d .k08c {
  min-height: 40px;
}

/* Оплата: QR и кнопка в банк. Картинку рисует сервер, поэтому размер известен. */
.q77b-qr {
  display: grid;
  place-items: center;
  margin: 18px 0 14px;
}
.q77b-qr img {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-cover);
  background: var(--qr-plate);
  padding: 10px;
  border: 1px solid var(--line);
}
.q77b-actions {
  margin: 0 0 12px;
}
.q77b-actions .k507 {
  width: 100%;
  justify-content: center;
}
.q77b-note {
  font-size: 14px;
}
.q77b-state {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* Скидка дня: объявленный процент и код, который забирают в один клик. */
.k8ab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
}
.k8ab h2 { margin: 4px 0 6px; font-size: 22px; }
.k8ab p { margin: 0; }
.q380-text { flex: 1 1 320px; min-width: 0; }
.q380-action { flex: none; }
.q380-code {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 16px;
  border-radius: var(--radius-control);
  border: 1px dashed var(--accent);
  background: var(--raised);
}
.q380-code code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: all;
}
.q380-code button { gap: 8px; }
.q380-code .k587 { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .k8ab { padding: 18px; }
  .q380-action, .k8ab button { width: 100%; }
  .q380-code { justify-content: space-between; }
}
.k316 {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Web Interface Guidelines pass. */

/* No 300 ms wait after a tap, and a tap highlight we chose rather than inherited. */
button,
.k507,
a,
label,
select,
summary,
input[type="checkbox"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* A scroll inside the dialog stays inside the dialog. */
dialog {
  overscroll-behavior: contain;
}

/* Notched phones: the header and the page keep clear of the cutouts, the footer of the bar.
   The footer keeps its own centred width, so only its bottom padding changes. */
.kb06,
main {
  padding-left: max(40px, env(safe-area-inset-left));
  padding-right: max(40px, env(safe-area-inset-right));
}
footer {
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}

/* "Выбрать товар" jumps to the catalogue: leave room under the sticky-free header. */
#q9d8-title,
[id^="shelf-"],
#q3f0-title,
#k8ab {
  scroll-margin-top: 24px;
}

/* A long offer list renders only what is on screen. Only the block axis gets a placeholder:
   a width placeholder would force grid cards wider than their column and overflow the page. */
.q831-list .k3c5 {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 116px;
}

@media (max-width: 767px) {
  .kb06,
  main {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

/* Ссылка ростом в 21 px не проходит минимум 24×24 WCAG 2.5.8 даже под мышью. */
.kf39 a,
.q64a-all,
.qd19-links a,
footer > a,
.k316 {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
#k068 { scroll-margin-top: 24px; }

/* Телефон: касания, плотность и то, что резалось краем экрана. */
@media (max-width: 767px) {
  /* Ссылка ростом в 20 px — это промах пальцем. Увеличиваем область, не двигая вёрстку. */
  .kf39 a,
  .q64a-all,
  .qd19-links a,
  footer > a,
  .k316 {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .kf39 { gap: 4px 10px; }
  .qd19-links { gap: 4px 18px; }
  .k706 { padding-block: 6px; }

  /* Восемь категорий по одной в строке — это экран прокрутки до поиска. */
  .k3c7 button {
    font-size: 13px;
    padding: 8px 12px;
    min-height: 40px;
  }
  .k3c7 { gap: 6px; }
  .k3c7 .k50a { font-size: 12px; }

  /* Разделы админки переносятся, а не уезжают за край. */
  .kff3 { grid-template-columns: minmax(0, 1fr); }
  .ka36 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }
  .ka36 button {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 12px;
    min-height: 40px;
  }

  /* Плитки показателей на 375 px читаются в одну колонку. */
  .k565 { grid-template-columns: minmax(0, 1fr); }

  /* В узкой карточке цена целиком помещается в строку, а не ломается после «от». */
  .kc69 .k81b strong { font-size: 20px; letter-spacing: -.4px; }
  .kc69 .k81b { font-size: 18px; }
}

/* Выбор региона: рекомендация отдельно, остальные под раскрытием. */
.q76d-block { margin: 0 0 22px; }
.q76d-hint { font-size: 14px; max-width: 62ch; margin: 0 0 14px; }
.q76d-title { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.q76d-picker { margin-bottom: 6px; }
.q76d-rest #q0b5-regions { font-size: 14px; }

/* Финал расчёта: вместо мёртвой кнопки — то, что магазин действительно может дать. */
.k7a6 {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}
.k7a6 strong { display: block; margin-bottom: 4px; }
.k7a6 p { margin: 0 0 14px; font-size: 14px; }
.k7a6 p:last-child { margin: 12px 0 0; }
.q428-done { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-control); background: var(--raised); border: 1px solid var(--line); }
.q428-done strong { display: block; margin-bottom: 4px; }
.q428-done p { margin: 0; font-size: 14px; }

/* Новости магазина (brand.toml → [[news]]). Лента, а не витрина карточек: дата,
   заголовок, две-три строки текста; разделители вместо рамок у каждой записи. */
.keda { margin: 0 0 40px; }
.q7ae-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.q7ae-all { color: var(--accent); font-weight: 600; }
.q7ae-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.q7ae-item { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.q7ae-item time { color: var(--muted); font-size: 14px; }
.q7ae-item h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
.q7ae-item h3 a:hover { color: var(--accent); }
.q7ae-item p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Главная-бенто (brand.toml → [layout] home = "bento"): заголовок и плитки разделов
   разного веса вместо первого экрана и ровных карточек. Сетка — 4 колонки; app.js
   всегда закрывает её полными рядами. Облик плиток — токены и brand.css бренда. */
.q7b3-home h1 { margin: 8px 0 24px; max-width: 18ch; }
.k19e {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 188px;
  grid-auto-flow: dense;
  gap: 12px;
}
.q7b3-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-hero);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform .18s var(--ease-out), border-color .18s ease-out, box-shadow .18s ease-out;
}
.q7b3-xl { grid-column: span 2; grid-row: span 2; }
.q7b3-wide { grid-column: span 2; }
.q7b3-tile.k2da { background: var(--raised); border-color: transparent; }
.q7b3-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.q7b3-count, .q7b3-note { color: var(--muted); font-size: 14px; }
.q7b3-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: auto; }

/* Пополнение Steam: самая крупная плитка и единственное золотое действие на ней. */
.q7b3-steam { justify-content: flex-end; background: var(--hero-bg); color: var(--hero-text); border-color: transparent; }
.q7b3-steam .q7b3-name { font-size: clamp(24px, 2.4vw, 34px); }
.q7b3-steam .q7b3-note { color: inherit; opacity: .78; max-width: 34ch; font-size: 15px; }
.q7b3-mark { position: absolute; top: -56px; right: -56px; width: 260px; height: 260px; opacity: .16; pointer-events: none; }
.q7b3-action {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  background: var(--hero-action-bg);
  color: var(--hero-action-text);
  font-weight: 700;
}
.q7b3-action .k587 { width: 16px; height: 16px; }

/* Первая широкая плитка — обложка во всю плитку, подпись на затемнении снизу. */
.q7b3-photo { padding: 0; justify-content: flex-end; border-color: transparent; }
.q7b3-bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q7b3-caption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 40px 22px 18px;
  background: linear-gradient(transparent, var(--backdrop) 55%);
  color: var(--hero-text);
}
.q7b3-photo .q7b3-count { color: inherit; opacity: .8; }

/* Вторая широкая — название слева, три обложки справа. */
.q7b3-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-rows: auto 1fr; column-gap: 18px; }
.q7b3-strip .q7b3-covers { grid-column: 2; grid-row: 1 / span 2; }
.q7b3-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.q7b3-covers img, .q7b3-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-cover); background: var(--raised); }
.q7b3-thumbs { display: flex; gap: 6px; height: 52px; margin-bottom: auto; }
.q7b3-thumbs img { width: 52px; flex: none; }
.q7b3-wide.q7b3-kind .q7b3-thumbs { height: 64px; }
.q7b3-wide.q7b3-kind .q7b3-thumbs img { width: 112px; }

@media (hover: hover) and (pointer: fine) {
  .q7b3-tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
}
.q7b3-tile:active { transform: scale(.99); }
@media (prefers-reduced-motion: no-preference) {
  .k19e .q7b3-tile:not(.k2da) { animation: rise .24s var(--ease-out) backwards; }
  .k19e .q7b3-tile:nth-child(n + 2) { animation-delay: .04s; }
  .k19e .q7b3-tile:nth-child(n + 4) { animation-delay: .08s; }
  .k19e .q7b3-tile:nth-child(n + 6) { animation-delay: .12s; }
}
@media (prefers-reduced-motion: reduce) {
  .q7b3-tile { transition: none; }
  .q7b3-tile:hover, .q7b3-tile:active { transform: none; }
}
/* Уже 1024px четыре колонки дают малой плитке меньше 200px, и «Подарочные карты»
   не помещаются: дальше сетка в две колонки, крупная и широкие — во всю ширину. */
@media (max-width: 1023px) {
  .k19e { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 164px; }
}
@media (max-width: 767px) {
  .k19e { grid-auto-rows: 150px; gap: 10px; }
  /* На телефоне название и обложки идут друг под другом: плитке нужно два ряда. */
  .q7b3-strip { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .q7b3-strip .q7b3-covers { grid-column: 1; grid-row: 3; margin-top: 8px; }
  .q7b3-tile { padding: 16px; }
  .q7b3-xl { grid-row: span 2; }
  .q7b3-name { font-size: 15px; }
  .q7b3-wide .q7b3-name { font-size: 18px; }
  .q7b3-mark { width: 200px; height: 200px; }
  .q7b3-thumbs { height: 40px; }
  .q7b3-thumbs img { width: 40px; }
}

/* Рейка (brand.toml → [layout] chrome = "rail"): те же кнопки шапки, но не над
   страницей, а столбиком слева; на телефоне навигация уходит доком вниз, под большой
   палец. Разметка шапки не меняется — раскладку задаёт класс на <body>, поэтому
   вариант достаётся любому бренду. Ширина колонки — --rail-width пакета бренда. */
.q2a0-rail .kb06 { background: var(--panel); }
@media (min-width: 1025px) {
  .q2a0-rail .kb06 {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 3;
    width: var(--rail-width);
    max-width: none;
    min-height: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 26px 16px calc(20px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .q2a0-rail .kb06 nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .q2a0-rail .kb06 nav a {
    display: flex;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-control);
    font-size: 15px;
    text-decoration: none;
  }
  .q2a0-rail .kb06 nav a:hover { background: var(--raised); }
  .q2a0-rail .kb06 nav a[aria-current="page"] { background: var(--raised); text-decoration: none; }
  /* Действия — у нижнего края: тема и вход не соседи каталога и не мешают ему. */
  .q2a0-rail .ka2b { margin: auto 0 0; }
  .q2a0-rail .ka2b #q0ab-button { flex: 1; }
  /* Поиск уходит полосой над страницей: в колонке рейки полю негде жить. Полоса
     отступает от краёв на 8px — ровно столько нужно кольцу фокуса движка
     (3px с отступом 4px), чтобы его не срезал край окна. */
  .q2a0-rail .qa97-search {
    position: fixed;
    top: 8px;
    left: calc(var(--rail-width) + 8px);
    right: 8px;
    z-index: 2;
    height: 60px;
    max-width: none;
    padding: 0 10px 0 20px;
    background: var(--panel);
  }
  .q2a0-rail main {
    max-width: 1560px;
    margin-left: var(--rail-width);
    padding: 92px 40px 48px;
  }
  .q2a0-rail footer { max-width: none; margin: 40px 40px 0 calc(var(--rail-width) + 40px); }
  .q2a0-rail .k0a3 { left: calc(var(--rail-width) + 16px); }
}
@media (max-width: 1024px) {
  .q2a0-rail .kb06 { position: sticky; top: 0; z-index: 3; }
  /* До кнопки внизу экрана рука дотягивается, до верхней — нет: навигация живёт доком. */
  .q2a0-rail .kb06 nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 3;
    order: 0;
    width: auto;
    gap: 0;
    justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--panel);
  }
  .q2a0-rail .kb06 nav a {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 64px;
    min-height: 48px;
    padding: 4px 10px;
    border: 0;
    border-radius: var(--radius-control);
    font-size: 11px;
    text-decoration: none;
  }
  .q2a0-rail .kb06 nav a .k587 { width: 22px; height: 22px; }
  .q2a0-rail .kb06 nav a[aria-current="page"] {
    background: var(--raised);
    color: var(--accent);
    border: 0;
    text-decoration: none;
  }
  .q2a0-rail main { padding-bottom: 104px; }
  .q2a0-rail footer { margin-bottom: 104px; }
  /* Тост не встаёт под док: сообщение и кнопка в нём должны быть видны целиком. */
  .q2a0-rail #ke6b:not(:empty) { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Главная-чарт (brand.toml → [layout] home = "chart"): один товар крупно в
   спотлайте, разделы одной полосой и полки нумерованными списками вместо сетки
   карточек. Список плотнее сетки: полка целиком видна без прокрутки. Номер — место
   в полке, порядок задаёт её сортировка. */
.q454-home { margin-bottom: 40px; }
.q454-home h1 { margin-bottom: 12px; }
.q454-lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin-bottom: 24px; }
.k7b2 {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-hero);
  background: var(--panel);
}
.k7b2.k2da { background: var(--raised); border-color: transparent; animation: pulse 1.4s ease-in-out infinite; }
.qc2e-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Текст лежит на своей подложке, а не на обложке: контраст не зависит от картинки. */
.qc2e-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 52ch;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
}
.qc2e-kind { text-transform: uppercase; letter-spacing: 0.8px; font-weight: 650; }
.qc2e-name { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -1px; margin: 0; }
.qc2e-price { font-size: 26px; font-weight: 750; letter-spacing: -0.6px; margin: 2px 0 4px; }
.qc2e-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qc2e-actions .k587 { width: 18px; height: 18px; }
.k475 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 14px; }
.kf27 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
}
.kf27:hover { border-color: var(--accent); }
.qa30-icon { width: 20px; height: 20px; color: var(--accent); }
.qa30-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.qa30-count { color: var(--muted); font-size: 13px; }
.q454-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.q454-row { min-width: 0; border-bottom: 1px solid var(--line); }
.q454-row > a {
  display: grid;
  grid-template-columns: 30px 92px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 8px;
}
.q454-row > a:hover { background: var(--raised); }
.q454-row > a:hover .q454-name { color: var(--accent); }
.q454-place { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--muted); }
.q454-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-cover);
  background: var(--raised);
}
.q454-cover img { width: 100%; height: 100%; object-fit: cover; }
.q454-word { padding: 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); text-align: center; }
.q454-title { display: flex; flex-direction: column; min-width: 0; }
.q454-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q454-kind { font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.q454-price { font-weight: 700; white-space: nowrap; }
.q454-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 650; white-space: nowrap; }
.q454-go .k587 { width: 14px; height: 14px; }
@media (max-width: 767px) {
  .k7b2 { min-height: 280px; padding: 14px; }
  .qc2e-text { padding: 18px; }
  .q454-list { grid-template-columns: minmax(0, 1fr); }
  /* Строка целиком — ссылка, и на телефоне подпись действия ей не нужна. */
  .q454-go { display: none; }
  /* На узком экране название переносится, а не обрезается: «The Witcher 3: Wild
     Hunt» в одной строке на 390 пикселях превращается в «The Witc…». Раздел под
     названием уступает ему место: полку и так называет её заголовок. */
  .q454-kind { display: none; }
  .q454-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .q454-row > a { grid-template-columns: 24px 72px minmax(0, 1fr) auto; gap: 10px; padding: 8px 2px; }
  .k475 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
