/*
 * Страницы онлайн-магазина тенанта (ADR-0231, пп. 3.8, 3.9). Вид по макету, одобренному
 * владельцем: белый нейтральный фон, с телефона в первую очередь. Тема кабинета сюда не
 * распространяется. Внешних ресурсов нет: политика содержимого пускает стили, шрифты и
 * картинки только с хоста магазина.
 *
 * Оформление тенанта (ADR-0239, SALES-151): цвета, шрифты и размеры только переменными ниже.
 * Файл темы `/t/<ключ>/<хэш>.css` от сервера переопределяет их значениями из перечней
 * (`core/storefront/design.py`); без него страница остаётся на значениях этого файла.
 */

/* Шрифты наборов оформления: вариативные по весу, с казахскими буквами (сторож
   core/storefront/tests/test_design.py). Браузер скачивает только тот файл, которым пишет
   страница: без файла темы шрифты системные и ничего не загружается. */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("fonts/inter-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 100 900; font-display: swap; src: url("fonts/rubik-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 100 900; font-display: swap; src: url("fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 100 900; font-display: swap; src: url("fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 100 900; font-display: swap; src: url("fonts/golostext-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-weight: 100 900; font-display: swap; src: url("fonts/golostext-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 100 900; font-display: swap; src: url("fonts/golostext-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-weight: 100 900; font-display: swap; src: url("fonts/commissioner-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Commissioner"; font-weight: 100 900; font-display: swap; src: url("fonts/commissioner-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Commissioner"; font-weight: 100 900; font-display: swap; src: url("fonts/commissioner-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Атрибут hidden скрывает элемент всегда: правила классов с display его не перебивают (ревью
   frontend 29.11, класс ошибок закрыт одной точкой для всех страниц магазина). */
[hidden] {
  display: none !important;
}

:root {
  /* Значения по умолчанию: прежний вид страницы. Имена переменных это договор слоя с
     разделами (стили сертификатов читают --ink, --muted, --s1, --s2, --line). */
  --font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body);
  --w-head: 600;
  --w-body: 400;
  --fs: 15px;
  --fs-h1: 26px;
  --fs-h2: 17px;
  --fs-h3: 15px;
  --fs-small: 13px;
  --r-btn: 999px;
  --r-card: 16px;
  --r-field: 12px;
  --r-photo: 16px;
  --logo-h: 36px;
  --logo-w: 120px;
  --card-edge: transparent;
  --accent-hover: #111827;
  --accent-soft: #eef0f3;
  --btn-bg: #1f2937;
  --btn-bg-hover: #111827;
  --btn-ink: #fff;
  --bg: #fff;
  --s1: #f6f7f9;
  --s2: #eef0f3;
  --ink: #1f2937;
  --muted: #6b7280;
  /* Мелкий серый текст на белом и на --s1: контраст не ниже 4,5 (WCAG AA). */
  --soft: #5f6673;
  --line: rgba(17, 24, 39, 0.1);
  --ok: #2f6b4f;
  --ok-bg: #e3f1e8;
  --off: #4b5563;
  --accent: #1f2937;
  --danger: #b42318;
  --danger-bg: #fef3f2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: var(--fs);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
}

/* «К содержимому» для клавиатуры: виден только в фокусе. */
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-ink);
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 0 auto;
  padding: 0 20px 32px;
}

/* Шапка: логотип с названием и переключатель языка. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 10px;
  min-height: var(--bar-h, 0);
}

.brand,
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo {
  flex: none;
  width: var(--logo-h);
  height: var(--logo-h);
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid #e5e7eb;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
}

/* Текст только для экранного диктора: на экране не виден, из дерева доступности не уходит. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.logo.big {
  width: 72px;
  height: 72px;
  font-size: 24px;
  margin: 0 auto 22px;
  display: grid;
}

/* Картинка логотипа: показывается целиком, без обрезки и растяжения (UX-570). Круг только у
   букв вместо логотипа; ширина и высота из набора оформления (--logo-h, --logo-w). Подложки
   нет: прозрачный логотип лежит прямо на фоне магазина, а тёмный фон оформление не принимает
   (design.py, too_dark), так что тёмные буквы видны всегда. */
.logo-img {
  flex: none;
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: var(--logo-w);
  object-fit: contain;
}

.logo-img.big {
  height: 72px;
  max-width: 240px;
  margin: 0 auto 22px;
}

.lang {
  display: flex;
  flex: none;
  background: var(--s2);
  border-radius: var(--r-btn);
  padding: 3px;
  font-size: 12px;
}

.lang a {
  padding: 4px 9px;
  border-radius: var(--r-btn);
  color: var(--muted);
  text-decoration: none;
}

.lang a.on {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
}

/* Меню-бургер самостоятельной страницы (слово владельца 03.12): всегда справа сверху, при
   любом месте логотипа. Внутри разделы магазина, строка языка и строка темы. 44 px под палец.
   Раскрывается без скриптов (details); Esc и нажатие мимо добавляет theme.js. */
.top.has-mnu {
  position: relative;
  padding-right: 76px;
}

.mnu {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 40;
}

.mnu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--s1);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mnu-btn::-webkit-details-marker {
  display: none;
}

.mnu-btn:hover {
  background: var(--s2);
}

.mnu-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.mnu-ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mnu-ico path {
  transform-origin: 12px 12px;
  transition:
    transform 0.2s ease,
    opacity 0.15s ease;
}

/* Открытое меню: три полоски складываются в крестик. */
.mnu[open] .mnu-l1 {
  transform: translateY(5px) rotate(45deg);
}

.mnu[open] .mnu-l2 {
  opacity: 0;
}

.mnu[open] .mnu-l3 {
  transform: translateY(-5px) rotate(-45deg);
}

.mnu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.22);
  transform-origin: top right;
}

.mnu[open] .mnu-panel {
  animation: mnu-in 0.16s ease-out;
}

@keyframes mnu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

.mnu-list {
  list-style: none;
}

.mnu-list--set {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.mnu-list--set:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mnu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-field);
  background: none;
  color: var(--ink);
  font: 500 15px/1.3 var(--font-body);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mnu-item:hover {
  background: var(--s1);
}

.mnu-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .mnu-ico path {
    transition: none;
  }

  .mnu[open] .mnu-panel {
    animation: none;
  }
}

@media print {
  .mnu {
    display: none;
  }
}

/* Тёмная тема самостоятельной страницы: выбрана кнопкой или «авто» на тёмном устройстве.
   Атрибут data-scheme ставит только theme.js (до первой отрисовки), поэтому остальные
   страницы магазина и страница без скрипта остаются светлыми. Селектор html[...] сильнее
   :root файла оформления тенанта: фон, текст и подложки берутся отсюда, а цвет кнопок и
   логотип остаются тенанта. Мелкий текст --muted на --bg и --s1 не ниже 4,5 (WCAG AA). */
/* Выбор «светлая» на тёмном устройстве: родные поля и полосы прокрутки тоже светлые. */
html[data-scheme="light"] {
  color-scheme: light;
}

html[data-scheme="dark"] {
  color-scheme: dark;
  --bg: #111317;
  --s1: #1a1d22;
  --s2: #23272e;
  --card-edge: rgba(255, 255, 255, 0.14);
  --ink: #eceef2;
  --muted: #a7aeb9;
  --soft: #b4bbc6;
  --line: rgba(255, 255, 255, 0.14);
  --ok: #7ed0a2;
  --ok-bg: #15301f;
  --off: #b4bbc6;
  --danger: #ff8f84;
  --danger-bg: #3a1613;
  /* Цвет тенанта как текст и рамка: светлее на тёмном фоне, оттенок свой. */
  --accent-on-bg: color-mix(in srgb, var(--btn-bg) 50%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 30%, #111317);
}

/* Логотип тенанта рисован под светлый фон (design.py, too_dark): на тёмной теме он лежит на
   белой подложке, иначе тёмные буквы пропадут. Круг с буквами берёт цвета темы. */
html[data-scheme="dark"] .logo-img {
  box-sizing: content-box;
  padding: 4px 8px;
  border-radius: var(--r-field, 8px);
  background: #fff;
}

html[data-scheme="dark"] .logo {
  border-color: var(--line);
  color: var(--ink);
}

/* Цвет тенанта текстом и рамкой фокуса: светлый оттенок, тёмный на тёмном фоне не виден. */
html[data-scheme="dark"] a:focus-visible,
html[data-scheme="dark"] summary:focus-visible {
  outline-color: var(--accent-on-bg);
}

html[data-scheme="dark"] .rows a,
html[data-scheme="dark"] .doc-list a {
  color: var(--accent-on-bg);
}

/* Заглушка и короткие сообщения. */
.state {
  padding: 56px 4px 64px;
  text-align: center;
}

.state h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.state p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* Главная. */
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  margin: 18px 0 8px;
}

.status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-btn);
  padding: 4px 10px;
  background: var(--s2);
  color: var(--off);
}

.status.is-open {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Сегодняшний день в графике: к нему относится «Сейчас закрыто». Полоска фирменного цвета
   у левого края плашки: строка выходит в её поле, текст остаётся на своём месте (UX-598). */
.rows li.is-today {
  font-weight: 600;
  margin-left: -16px;
  padding-left: 16px;
  box-shadow: inset 3px 0 0 var(--accent);
}

.rows li.is-today > span:first-child {
  color: var(--ink);
}

.today-mark {
  font-size: 12px;
  font-weight: 500;
}

/* Селектор со строкой дня: иначе цвет перебивает правило первой колонки (.rows li span). */
.rows li.is-today .today-mark {
  color: var(--accent-hover);
}

.state .state-back {
  margin-top: 18px;
}

.state-back a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Страница ошибки видимого магазина: кнопка на главную заливкой кнопок магазина (цвет из
   файла темы, без него значения этого файла). Селектор с .state: иначе правило .state p
   (отступ 10px) перебивает отступ над кнопкой; так же у .state-back выше. */
.state .state-action {
  margin-top: 24px;
}

.state .state-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: var(--fs);
  font-weight: 600;
  text-decoration: none;
}

.state .state-button:focus-visible {
  outline-offset: 3px;
}

.state .state-button:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}

/* Страница «Такого магазина нет» на ссылке shop.<корень> (SALES-NEW-SHOP-UNKNOWN-OLIN-PAGE):
   в оформлении платформы, файла темы тенанта у неё нет. Цвет знака и кнопки как на сайте
   платформы (apps/landing tokens.css, --accent-ink; меняется там, меняется здесь): белая
   надпись на нём 4.86, текст на белом 4.64 (WCAG AA). Тёмная тема есть только у
   самостоятельных страниц с кнопкой темы (data-scheme), эта страница всегда светлая. */
.top,
.state-platform {
  --platform-accent: #c04d21;
  --platform-accent-hover: #a3401b;
}

.platform-mark {
  color: var(--platform-accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.platform-mark:hover {
  color: var(--platform-accent-hover);
}

.state-platform {
  --btn-bg: var(--platform-accent);
  --btn-bg-hover: var(--platform-accent-hover);
  --btn-ink: #fff;
}

.block {
  margin-top: 28px;
}

.block h2 {
  font-size: var(--fs-h2);
  font-weight: var(--w-head);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.block h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 16px 0 8px;
}

/* «Где нас найти» (UX-569): у каждого подразделения название, отметка «открыто», строки. */
.place + .place {
  margin-top: 20px;
}

.place .status {
  margin-bottom: 8px;
}

.block h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 6px;
}

.cards {
  list-style: none;
  display: grid;
  gap: 12px;
}

.card {
  display: block;
  position: relative;
  background: var(--s1);
  border-radius: var(--r-card);
  border: 1px solid var(--card-edge);
  padding: 18px 44px 18px 16px;
  font-weight: 600;
  text-decoration: none;
}

/* Стрелка раздела фирменным цветом, заголовок остаётся цветом текста (UX-598, п. 6). Вторая
   запись content с пустой заменой: экранный диктор стрелку не читает. */
.card::after {
  content: "→";
  content: "→" / "";
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--accent);
}

.rows {
  list-style: none;
  background: var(--s1);
  border-radius: var(--r-card);
  border: 1px solid var(--card-edge);
  padding: 4px 16px;
  /* Полоска «сегодня» у крайней строки не выходит за скруглённый угол плашки. */
  overflow: hidden;
}

.rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.rows li:last-child {
  border-bottom: 0;
}

.rows li span:first-child {
  color: var(--muted);
}

.rows li > :last-child {
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Телефон и почта на плашке фирменным цветом: пара «акцент на --s1» проверена при выборе
   цвета (design.accent_problems, link_on_surface). */
.rows a {
  color: var(--accent);
}

.rows a:hover {
  color: var(--accent-hover);
}

.doc-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.doc-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-list a:hover {
  color: var(--accent-hover);
}

/* Документ продавца. */
.back {
  display: inline-block;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.doc h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}

.doc h3,
.doc h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.doc p,
.doc li {
  font-size: 14.5px;
  color: #374151;
  overflow-wrap: anywhere;
}

.doc p + p {
  margin-top: 10px;
}

.doc ul {
  margin: 8px 0 8px 18px;
  display: grid;
  gap: 6px;
}

/* Подвал со сведениями о продавце: плашка как у разделов, углы из набора «Углы» (слово
   владельца 30.11). Поля по краям те же, что у содержимого: скругление видно и на телефоне. */
.foot {
  margin: 0 20px;
  background: var(--s1);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-card);
  padding: 20px 20px 26px;
  font-size: 13px;
  color: var(--soft);
}

.foot .who {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.foot .facts {
  list-style: none;
  margin-top: 6px;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
}

.foot .links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* «Пожаловаться на магазин» отдельной строкой: страница без подвала (заглушка). С подвалом
   кнопка стоит в строке защиты прав потребителей, в обёртке .complain-in вместе с разделителем.
   Сама кнопка (.complain-open), её область нажатия и обёртка описаны в complaint.css; здесь
   только место строки и цвет кнопки в подвале. Отступы строки меньше на поля кнопки (8px). */
.complain-line {
  padding: 2px 20px 10px;
  font-size: 12px;
  color: var(--soft);
}

.foot .consumer {
  margin-top: 12px;
  font-size: 12.5px;
}

.foot .consumer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot .consumer .sep {
  margin: 0 2px 0 6px;
  color: var(--soft);
}

/* В подвале кнопка читается как соседняя ссылка на уполномоченный орган: цветом текста. */
.foot .consumer .complain-open {
  color: var(--ink);
}

.foot .powered {
  margin-top: 16px;
  font-size: 12px;
  color: var(--soft);
}

.foot .powered a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nw {
  white-space: nowrap;
}

/* Цифры-обманки внутри телефона продавца (SEC-149, core/storefront/contact_guard.py): человеку
   не видны, в выделение и к экранному диктору не попадают. У элемента стоит и атрибут hidden:
   номер остаётся верным, даже если этот файл не загрузился. */
.nw-x {
  display: none !important;
}

/* ── Главная страница (ADR-0239): меню, обложка, «О компании», соцсети ─────────────────── */

.top {
  flex-wrap: wrap;
}

/* Место логотипа: слева (как прежде), по центру или справа; язык и меню на своих местах. */
.top.place-center .brand {
  order: 0;
  flex: 1 0 100%;
  justify-content: center;
}

.top.place-center .lang {
  margin: 0 auto;
}

/* Бургер справа занимает 76 px: по центру отступ симметричный, иначе логотип уезжает влево. */
.top.has-mnu.place-center {
  padding-left: 76px;
}

.top.place-right .brand {
  order: 2;
  /* Ряда языков в шапке больше нет (он в меню): логотип сам прижимается вправо, к бургеру. */
  margin-left: auto;
}

.top.place-right .lang {
  order: 1;
}

/* Место «Справа»: логотип у самого правого края, название перед ним (UX-601, как в
   предпросмотре кабинета). Порядок меняется только на экране: в разметке и для экранного
   диктора остаётся «логотип, название», ссылка на главную одна. Таблица мест и порядка:
   core/storefront/design.py, LOGO_PLACE_ORDER. */
.top.place-right .brand,
.top.place-right .brand-link {
  flex-direction: row-reverse;
}

/* Меню-якоря к разделам: строкой, на телефоне прокручивается вбок, а не переносится. */
.menu {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.menu a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-btn);
  background: var(--s2);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}

.menu a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Главный пункт меню («Купить») с заливкой кнопок магазина: одна заливка на полосу меню
   (UX-598, п. 1). Класс ставит pages._home_nav. */
.menu a.is-main {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.menu a.is-main:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}

.hero .lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: calc(var(--fs) + 1px);
  overflow-wrap: anywhere;
}

/* Фото обложки под текстом, не поверх: контраст текста не зависит от снимка. */
.cover-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 18px;
  border-radius: var(--r-photo);
  background: var(--s2);
}

.about p {
  overflow-wrap: anywhere;
}

.about p + p {
  margin-top: 10px;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: var(--r-photo);
  background: var(--s2);
}

.card:hover {
  color: var(--accent-hover);
}

/* Соцсети одним цветом текста; при наведении цвет акцента (designer 29.11, п. 9). */
.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-btn);
  background: var(--s1);
  border: 1px solid var(--card-edge);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}

.social:hover {
  color: var(--accent);
}

.icons-only .social {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.ico {
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .menu a.is-main:active {
    transform: translateY(1px);
  }
}

@media (min-width: 720px) {
  .main {
    padding: 0 24px 48px;
  }

  .foot {
    margin: 0 24px;
  }

  .hero h1 {
    font-size: calc(var(--fs-h1) + 4px);
  }
}
