/* Движок витрины: раскладка и компоненты. Цвета, шрифты, радиусы и тени —
   только через переменные из /static/b/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,
.k672 {
  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,
.k672:hover {
  border-color: var(--accent);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.ka24 {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.k162 {
  background: transparent;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.k49c {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: var(--raised);
  z-index: 2;
}
.k49c:focus {
  top: 8px;
}
.kaef {
  max-width: 1400px;
  margin: auto;
  min-height: 80px;
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
}
.k6f9 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -1px;
  white-space: nowrap;
}
.k6f9 span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-size: 14px;
  font-weight: 600;
}
.k6e6 {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
/* Поиск живёт в шапке, а не только на главной: искать товар нужно с любой страницы. */
.q065-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 внутри рамки нечего. */
.q065-search:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.q065-search .qbe2-glyph {
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}
.q065-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.q065-search input:focus-visible {
  outline: none;
}
.q065-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, .ka1f, .q3cd-list, .qd0a-block) + :is(h2, h3) {
  margin-top: 36px;
}
p {
  max-width: 65ch;
  text-wrap: pretty;
}
.k0f8,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.k5b6 {
  padding: 32px 0 48px;
  max-width: 1000px;
}
.k5b6 p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
}
.k9ea {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.k0bd {
  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;
}
.k0bd strong {
  display: block;
  margin-bottom: 2px;
}
.k0bd p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.kf0c {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  align-items: end;
  flex-wrap: wrap;
}
.kf0c label {
  flex: 1;
  min-width: 200px;
}
.kf0c button {
  flex: none;
}
/* Категории переносятся, а не прокручиваются: восемь разделов должны быть видны сразу,
   иначе часть каталога прячется за горизонтальной прокруткой, которую мышью не заметить. */
.k7c6 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
}
.k7c6 button {
  font-size: 14px;
}
.k7c6 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;
}
.k986 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.k6e2 {
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.k6e2 h3 {
  margin: 0;
}
.k6e2 .ka1f {
  margin-top: auto;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.k6e2 .kc9d {
  color: var(--muted);
  font-size: 14px;
}
.k5d1 {
  padding: 54px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-panel);
  text-align: center;
}
.k5d1 p {
  margin: 12px auto 0;
  color: var(--muted);
}
.k5d1 h3 {
  font-size: 22px;
}
.kbd3 {
  margin: 36px 0;
}
.kd6a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
}
.k56b {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.k56b button {
  justify-content: start;
}
.k56b button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.kc19 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.ka42 {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.ka42 strong {
  display: block;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
}
.k0d5 {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  margin: 20px 0;
}
.kd2c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.kd2c:last-child {
  border-bottom: 0;
}
.kd2c p {
  margin: 5px 0;
}
.kd2c .k6e6 {
  flex-wrap: wrap;
}
.kd2c > div {
  min-width: 0;
}
.kd2c h3,
.kf9a {
  overflow-wrap: anywhere;
}
.k31a {
  display: grid;
  gap: 18px;
}
.q48a-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ka43 {
  color: var(--error);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.k74f {
  padding: 40px;
  background: var(--panel);
  border-radius: var(--radius-panel);
}
.k718 {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: var(--radius-control);
  white-space: nowrap;
}
.q8cd-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);
}
.qcac-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.qcac-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;
}
/* Строка подтверждения для банка: найти её должно быть легко, мешать покупателю — нет. */
.kc9e {
  flex: 0 0 100%;
  order: 9;
  font-size: 12px;
  opacity: 0.75;
}
.kc9e code {
  font-weight: 650;
  letter-spacing: 0.04em;
}
#kdca: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;
}
.q579-text { flex: 1; min-width: 0; }
#kdca .q579-action {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  background: var(--on-accent);
  color: var(--accent);
  border: 0;
  font-weight: 650;
}
#kdca .q579-close {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--on-accent) 40%, transparent);
  background: transparent;
}
#kdca .q579-close:hover { background: color-mix(in srgb, var(--on-accent) 18%, transparent); }
.k56e {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
}
.k139 {
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius-control);
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.k139 small {
  display: block;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1024px) {
  .kaef {
    gap: 20px;
    padding: 16px 24px;
    flex-wrap: wrap;
  }
  /* В одном ряду с брендом, навигацией и действиями поле сжимается до трёх пикселей. */
  .q065-search {
    order: 2;
    width: 100%;
    flex-basis: 100%;
    max-width: none;
  }
  main {
    padding: 28px 24px;
  }
  .kd6a {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }
  footer {
    margin: 32px 24px;
  }
  .kc19 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .kaef {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }
  .kaef nav {
    order: 3;
    width: 100%;
    gap: 24px;
  }
  .k6f9 {
    font-size: 22px;
  }
  .k6e6 {
    gap: 8px;
  }
  main {
    padding: 24px 16px;
  }
  .k5b6 {
    padding: 20px 0 28px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .k5b6 p {
    font-size: 16px;
  }
  .kd6a {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .k56b {
    flex-direction: row;
    overflow: auto;
  }
  .q48a-grid {
    grid-template-columns: 1fr;
  }
  .kd2c {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .kd2c .k6e6 {
    margin-left: 0;
  }
  .kc19 {
    gap: 16px;
  }
  .k0d5 {
    padding: 18px;
  }
  .qcac-head {
    gap: 10px;
  }
  dialog {
    padding: 20px;
  }
  footer {
    margin: 24px 16px;
    flex-wrap: wrap;
    gap: 14px;
  }
  footer p {
    flex-basis: 100%;
    order: 3;
  }
  .kf0c {
    gap: 10px;
  }
  .kf0c label {
    min-width: 150px;
  }
  .k986 {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s;
  }
}

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

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

.qa2f-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;
}
.qf59-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;
}
.qf59-icon {
  width: 28px;
  height: 28px;
  opacity: 0.55;
}
/* Что происходит с заказом прямо сейчас — рядом со статусом, а не в поддержке. */
.qcc7-note {
  margin: -4px 0 20px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.5;
}
/* Название вместо сообщения об ошибке: плитка без обложки читается как оформление. */
.qf59-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. */
.qf59-empty {
  background: var(--raised);
  color: var(--muted);
  border: 1px solid var(--line);
}
.qa2f-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. */
.qf59-blur {
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(22px) saturate(1.2) brightness(var(--cover-glow, 1.04));
  z-index: 1;
}
.qf59-art {
  object-fit: contain;
  padding: 2px;
  z-index: 2;
}
.qa2f-cover-detail { width: min(100%, 616px); margin: 24px 0 32px; }
.k6e2 > .k672 { margin-top: auto; }

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

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

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

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

/* Catalogue controls: region picker, page counter, chips and loading skeletons. */
.q3b2-count { color: var(--muted); font-size: 14px; align-self: center; font-variant-numeric: tabular-nums; }
.k56e { display: flex; gap: 12px; align-items: center; }
.kf1c { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kf4f { font-size: 13px; padding: 4px 12px; border-radius: 999px; min-height: 0; }

/* Фильтры каталога: цена от/до, быстрые чипы, кнопка «Фильтры» на телефоне. */
.kf0c .qbbd-price { flex: 1; min-width: 200px; display: grid; gap: 7px; }
.qbbd-legend { font-size: 14px; font-weight: 600; }
.qbbd-range { display: flex; align-items: center; gap: 8px; }
.qbbd-range span { color: var(--muted); }
.qbbd-range input { -moz-appearance: textfield; }
.qbbd-range input::-webkit-inner-spin-button,
.qbbd-range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qbbd-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.qbbd-quick .kf4f { min-height: 36px; padding-inline: 14px; }
.qbbd-quick .kf4f[aria-pressed="true"],
.kf1c .kf4f[data-clear] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#qbbd-reset { background: transparent; }
.qbbd-toggle { display: none; }
.qbbd-toggle .k127:not(:empty) { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 22px; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .qbbd-toggle { display: inline-flex; width: 100%; margin: 4px 0 12px; }
  .kf0c[data-folded] { display: none; }
  .kf0c .qbbd-price { flex: 1 0 100%; min-width: 0; }
  .qbbd-quick { margin: 0 0 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding: 2px 8px 8px 2px; }
  .qbbd-quick .kf4f { flex: none; }
}
.k333 { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.k333 a { color: var(--accent); }
.qd0a-picker { margin: 0 0 20px; flex-wrap: wrap; overflow: visible; }
.qd0a-picker button { font-size: 14px; }
.ke91 { gap: 12px; pointer-events: none; }
.ke91 .k7af { display: block; height: 14px; border-radius: 8px; background: var(--raised); animation: pulse 1.4s ease-in-out infinite; }
.ke91 .k7af.kc35 { height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
.ke91 .k7af.kf80 { height: 10px; width: 35%; }
.ke91 .k7af.k928 { width: 55%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ke91 .k7af { animation: none; } }
@media (max-width: 767px) {
  .k56e { flex-wrap: wrap; }
  .qd0a-picker { flex-wrap: wrap; }
}

/* Icons in place of words where the control is obvious, with a label kept for the rest. */
.kcac { display: none; }
.k0a5 {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button, .k672 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.qb36-button { padding-inline: 12px; }
.kaef nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.kaef nav a .k0a5 { width: 18px; height: 18px; opacity: .75; }
.kaef nav a[aria-current="page"] .k0a5 { opacity: 1; }
.kf4f .k0a5 { width: 14px; height: 14px; }
.q07c-action .k0a5 { width: 18px; height: 18px; }
.k56e button .k0a5 { width: 16px; height: 16px; }
.k6e2 .ka1f { gap: 6px 10px; }
.k6e2 .ka1f 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. */
  .kaef nav { gap: 8px; }
  .kaef nav a {
    min-height: 44px;
    padding: 0 14px;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-decoration: none;
  }
  .kaef nav a .k0a5 { width: 20px; height: 20px; }
  .kaef 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. */
.k6e2 { gap: 12px; }
.k6e2 .qb1f-kind { color: var(--muted); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.k6e2 .ka1f { margin: 4px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.6px; display: block; }
.k6e2 .ka1f .k0f8 { font-size: 17px; font-weight: 600; }
.k6e2 .q3cd-count { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.k6e2 h3 { margin: 0; font-size: 19px; }

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

/* Front page as a shop: departments (bento tiles) and curated shelves. */
.kb99 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.k72b {
  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;
}

.q821-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.q821-name { font-weight: 700; letter-spacing: -.3px; }
.q821-count { color: var(--muted); font-size: 13px; }
.q821-all { background: var(--raised); }
.q03e-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.q03e-head h2 { margin: 0; }
.q03e-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.q03e-all .k0a5 { 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. */
.q03e-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.k6e2 { transition: transform .18s var(--ease-out), border-color .18s ease-out; }
.q0a2-all { text-align: center; }
.q0a2-all .k672 { min-width: 260px; }
@media (prefers-reduced-motion: reduce) {
  .k6e2, .k72b { transition: none; }
  .k6e2:hover, .k72b:hover { transform: none; }
}
@media (max-width: 767px) {
  .kb99 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .k72b { padding: 14px; }
  .q03e-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .q0a2-all .k672 { width: 100%; min-width: 0; }
}

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

/* Account: identity block and status badges. */
.qab2-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);
}
.qab2-card small { display: block; color: var(--muted); font-size: 13px; }
.qab2-card strong { font-size: 18px; letter-spacing: -.3px; }
.k49a {
  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);
}
.q819-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.q819-warn { background: color-mix(in srgb, var(--warn) 20%, transparent); border-color: color-mix(in srgb, var(--warn) 48%, transparent); }
.q819-bad { background: color-mix(in srgb, var(--bad) 18%, transparent); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.q819-wait { background: var(--raised); }
.q780-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q780-line strong { font-size: 17px; }
code { font-family: var(--font-mono); font-size: 13px; }
.ka42 .q6dd-text { font-size: 17px; letter-spacing: -.2px; line-height: 1.35; }
.ka42 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. */
.k5b6 {
  position: relative;
  isolation: isolate;
  background: var(--hero-bg);
  box-shadow: var(--hero-shadow);
}
.k5b6::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) {
  .k6e2:hover,
  .k72b: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) {
  .q03e-row .k6e2,
  .kb99 .k72b {
    animation: rise .22s var(--ease-out) backwards;
  }
  .q03e-row .k6e2:nth-child(n + 2),
  .kb99 .k72b:nth-child(n + 2) { animation-delay: .03s; }
  .q03e-row .k6e2:nth-child(n + 4),
  .kb99 .k72b:nth-child(n + 4) { animation-delay: .06s; }
  .kb99 .k72b: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, .k672:active { transform: translateY(1px) scale(.99); }
main { min-height: 65dvh; }
.q89d-found { max-width: 640px; margin: 48px auto; text-align: center; }
.q89d-found p { margin-inline: auto; }
.q89d-found .kf0c { justify-content: center; margin-top: 28px; }
.q89d-found .kf0c .k672 { flex: 0 0 auto; }

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

/* Способы оплаты остаются видны и во время временной недоступности. */
.k03e {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.k03e legend {
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.k03e .k832 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-weight: 500;
}
.k03e .k832 input {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
}
.k03e .k832[aria-disabled="true"] { cursor: not-allowed; }
.k03e .k832 span { white-space: normal; }

.qf20-actions {
  margin: 0 0 12px;
}
.qf20-actions .k672 {
  width: 100%;
  justify-content: center;
}
.qf20-note {
  font-size: 14px;
}
.qf20-state {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* Скидка дня: объявленный процент и код, который забирают в один клик. */
.kdb5 {
  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);
}
.kdb5 h2 { margin: 4px 0 6px; font-size: 22px; }
.kdb5 p { margin: 0; }
.q192-text { flex: 1 1 320px; min-width: 0; }
.q192-action { flex: none; }
.q192-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);
}
.q192-code code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: all;
}
.q192-code button { gap: 8px; }
.q192-code .k0a5 { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .kdb5 { padding: 18px; }
  .q192-action, .kdb5 button { width: 100%; }
  .q192-code { justify-content: space-between; }
}
.kffe {
  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,
.k672,
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. */
.kaef,
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. */
#q0a2-title,
[id^="shelf-"],
#q14e-title,
#kdb5 {
  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. */
.q3cd-list .kd64 {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 116px;
}

@media (max-width: 767px) {
  .kaef,
  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 даже под мышью. */
.k333 a,
.q03e-all,
.qa9f-links a,
footer > a,
.kffe {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
#ka99 { scroll-margin-top: 24px; }

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

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

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

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

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

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

/* Финал расчёта: вместо мёртвой кнопки — то, что магазин действительно может дать. */
.kc89 {
  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));
}
.kc89 strong { display: block; margin-bottom: 4px; }
.kc89 p { margin: 0 0 14px; font-size: 14px; }
.kc89 p:last-child { margin: 12px 0 0; }
.qd29-done { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius-control); background: var(--raised); border: 1px solid var(--line); }
.qd29-done strong { display: block; margin-bottom: 4px; }
.qd29-done p { margin: 0; font-size: 14px; }

/* Новости магазина (brand.toml → [[news]]). Лента, а не витрина карточек: дата,
   заголовок, две-три строки текста; разделители вместо рамок у каждой записи. */
.kf62 { margin: 0 0 40px; }
.q517-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.q517-all { color: var(--accent); font-weight: 600; }
.q517-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.q517-item { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.q517-item time { color: var(--muted); font-size: 14px; }
.q517-item h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
.q517-item h3 a:hover { color: var(--accent); }
.q517-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 бренда. */
.qe3c-home h1 { margin: 8px 0 24px; max-width: 18ch; }
.k917 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 188px;
  grid-auto-flow: dense;
  gap: 12px;
}
.qe3c-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;
}
.qe3c-xl { grid-column: span 2; grid-row: span 2; }
.qe3c-wide { grid-column: span 2; }
.qe3c-tile.ke91 { background: var(--raised); border-color: transparent; }
.qe3c-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.qe3c-count, .qe3c-note { color: var(--muted); font-size: 14px; }
.qe3c-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: auto; }

/* Пополнение Steam: самая крупная плитка и единственное золотое действие на ней. */
.qe3c-steam { justify-content: flex-end; background: var(--hero-bg); color: var(--hero-text); border-color: transparent; }
.qe3c-steam .qe3c-name { font-size: clamp(24px, 2.4vw, 34px); }
.qe3c-steam .qe3c-note { color: inherit; opacity: .78; max-width: 34ch; font-size: 15px; }
.qe3c-mark { position: absolute; top: -56px; right: -56px; width: 260px; height: 260px; opacity: .16; pointer-events: none; }
.qe3c-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;
}
.qe3c-action .k0a5 { width: 16px; height: 16px; }

/* Первая широкая плитка — обложка во всю плитку, подпись на затемнении снизу. */
.qe3c-photo { padding: 0; justify-content: flex-end; border-color: transparent; }
.qe3c-bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qe3c-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);
}
.qe3c-photo .qe3c-count { color: inherit; opacity: .8; }

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

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

/* Рейка (brand.toml → [layout] chrome = "rail"): те же кнопки шапки, но не над
   страницей, а столбиком слева; на телефоне навигация уходит доком вниз, под большой
   палец. Разметка шапки не меняется — раскладку задаёт класс на <body>, поэтому
   вариант достаётся любому бренду. Ширина колонки — --rail-width пакета бренда. */
.qc55-rail .kaef { background: var(--panel); }
@media (min-width: 1025px) {
  .qc55-rail .kaef {
    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;
  }
  .qc55-rail .kaef nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .qc55-rail .kaef nav a {
    display: flex;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-control);
    font-size: 15px;
    text-decoration: none;
  }
  .qc55-rail .kaef nav a:hover { background: var(--raised); }
  .qc55-rail .kaef nav a[aria-current="page"] { background: var(--raised); text-decoration: none; }
  /* Действия — у нижнего края: тема и вход не соседи каталога и не мешают ему. */
  .qc55-rail .k6e6 { margin: auto 0 0; }
  .qc55-rail .k6e6 #q067-button { flex: 1; }
  /* Поиск уходит полосой над страницей: в колонке рейки полю негде жить. Полоса
     отступает от краёв на 8px — ровно столько нужно кольцу фокуса движка
     (3px с отступом 4px), чтобы его не срезал край окна. */
  .qc55-rail .q065-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);
  }
  .qc55-rail main {
    max-width: 1560px;
    margin-left: var(--rail-width);
    padding: 92px 40px 48px;
  }
  .qc55-rail footer { max-width: none; margin: 40px 40px 0 calc(var(--rail-width) + 40px); }
  .qc55-rail .k49c { left: calc(var(--rail-width) + 16px); }
}
@media (max-width: 1024px) {
  .qc55-rail .kaef { position: sticky; top: 0; z-index: 3; }
  /* До кнопки внизу экрана рука дотягивается, до верхней — нет: навигация живёт доком. */
  .qc55-rail .kaef 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);
  }
  .qc55-rail .kaef 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;
  }
  .qc55-rail .kaef nav a .k0a5 { width: 22px; height: 22px; }
  .qc55-rail .kaef nav a[aria-current="page"] {
    background: var(--raised);
    color: var(--accent);
    border: 0;
    text-decoration: none;
  }
  .qc55-rail main { padding-bottom: 104px; }
  .qc55-rail footer { margin-bottom: 104px; }
  /* Тост не встаёт под док: сообщение и кнопка в нём должны быть видны целиком. */
  .qc55-rail #kdca:not(:empty) { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

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

/* Administrative records inherit the current brand's colors and controls. */
.qb24-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  color: var(--text);
  font-size: .75rem;
  font-weight: 650;
}
.q701-record-filters, .q701-record-actions, .q701-record-heading {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 1rem;
}
.q701-record-filters label { flex: 1 1 12rem; }
.q701-record-filters .k832 { flex: 0 0 auto; align-self: center; }
.q701-record-filters input:not([type="checkbox"]), .q701-record-filters select { width: 100%; }
.q701-form-grid, .q701-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.q701-form-grid[hidden] { display: none; }
.q701-record-data {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 25rem;
  overflow: auto;
  font-size: .8rem;
}
.q701-timeline { padding-inline-start: 1.5rem; }
.q701-timeline li { padding: .6rem 0 .85rem .4rem; border-bottom: 1px solid var(--line); }
.q701-timeline small, .q701-timeline strong { display: block; margin-block: .25rem; }
.q701-change-history {
  color: var(--muted);
  font-size: .75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}
.q701-change-history details { margin-block: .5rem; }
@media (max-width: 600px) {
  .q701-record-actions > * { flex: 1 1 45%; text-align: center; }
  .q701-record-filters > button { width: 100%; }
}

/* Keep the order list identical to the storefront order component. */
.q701-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .8rem;
}
.q701-order-meta .kffe {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  white-space: normal;
  text-align: start;
}
.q701-order-meta .kffe:hover { text-decoration: underline; }
.q701-order-id { font-size: .8rem; }
.q701-filter-panel { margin: 1rem 0 1.5rem; }
.q701-filter-panel > summary { color: var(--muted); font-size: .875rem; cursor: pointer; }
.q701-order-filter-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1.5fr) minmax(10rem, 1fr) auto auto;
  align-items: end;
  gap: 1rem;
}
.q701-order-filter-form > label { min-width: 0; }
.q701-record-filters input:not([type="checkbox"]), .q701-record-filters select { width: 100%; }
.q701-record-filters .q701-archive-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  justify-content: start;
  gap: .5rem;
  margin: 1.6rem 0 0;
  white-space: nowrap;
}
.q701-record-filters .q701-archive-toggle input[type="checkbox"] {
  appearance: auto;
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 1.1rem;
}
.q701-record-modal { width: min(880px, calc(100vw - 32px)); max-width: 880px; }
.q701-record-modal .k31a { gap: 1.25rem; }
.q701-record-modal .q701-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q701-record-modal label { min-width: 0; }
.q701-record-modal input, .q701-record-modal select, .q701-record-modal textarea { width: 100%; min-width: 0; }
.q701-form-section { min-width: 0; padding: 1.25rem 0; margin: 0; border: 0; border-top: 1px solid var(--line); }
.q701-form-section legend { font-size: 1rem; font-weight: 700; padding: 0 .6rem 0 0; }
.q701-form-actions, .q701-client-lookup { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.q701-form-actions { padding-top: .75rem; }
.q701-client-lookup > label { flex: 1 1 14rem; }
.q701-record-modal [hidden] { display: none; }
.q701-order-summary dd { white-space: pre-wrap; }
@media (max-width: 900px) {
  .q701-order-filter-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .q701-record-filters .q701-archive-toggle { margin-top: 0; }
}
@media (max-width: 600px) {
  .q701-record-modal { padding: 20px; }
  .q701-record-modal .q701-form-grid, .q701-order-filter-form { grid-template-columns: minmax(0,1fr); }
  .q701-form-actions > * { flex: 1 1 100%; }
  .q701-record-modal .q3cd-summary { grid-template-columns: minmax(0,1fr); gap: .25rem; }
  .q701-record-modal .q3cd-summary dd { margin: 0 0 .7rem; }
  .q701-order-meta { font-size: .75rem; }
}
@media (max-width: 600px) {
  /* An administrator has a third navigation link; it must wrap on phones. */
  .kaef nav { flex-wrap: wrap; }
}
.q701-operation-panel { margin-block: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.q701-operation-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.q701-operation-heading h4 { margin: 0; font-size: 1rem; }
.q701-operation-values { display: grid; grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.4fr); gap: .8rem 1.25rem; }
.q701-operation-values dt { color: var(--muted); font-size: .85rem; }
.q701-operation-values dd { min-width: 0; margin: 0; font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.q701-protected-result { display: flex; flex-wrap: wrap; gap: .75rem; }
.q701-protected-result > p, .q701-protected-result > pre { flex-basis: 100%; }
.q701-operation-wide { grid-column: 1 / -1; }
.q701-json-editor { font-family: var(--font-mono); font-size: .8rem; white-space: pre; overflow: auto; }
@media (max-width:600px) {
  .q701-operation-values { grid-template-columns: minmax(0,1fr); gap: .25rem; }
  .q701-operation-values dd { margin-bottom: .85rem; }
  .q701-operation-heading button { width: 100%; }
}
