/* «Стиль города» — блоки главной страницы.
   Оболочка витрины (шапка, футер, кнопки, шкала побежалости) — в
   storefront.css. Здесь только доменные секции. */

/* ─────────────────────────────────────────────────────────────────────────
   Hero. Слева — заявление и шкала побежалости, справа — изделие.
   Съёмка сделана на белом, поэтому фото стоит в светлой нише: предмет
   выглядит как в мастерской при съёмке, без грязной обтравки по краю.
   ───────────────────────────────────────────────────────────────────────── */

.st-hero {
  padding: 72px 0 88px;
}

.st-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.st-hero__title {
  font-family: var(--st-display), sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}

.st-hero__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--st-temper);
}

.st-hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--st-steel);
  max-width: 46ch;
  margin: 0 0 32px;
}

.st-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.st-hero__media {
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  padding: 28px;
  position: relative;
}

.st-hero__media img { width: 100%; }

/* Подпись к изделию на фото: имя модели и её размеры. У каждой вещи здесь
   есть имя — это не безымянный «металлоизделие № 12». */
.st-hero__caption {
  position: absolute;
  left: 28px;
  bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.st-hero__caption-name {
  font-family: var(--st-display), sans-serif;
  font-size: 17px;
  letter-spacing: .04em;
}

.st-hero__caption-size {
  font-family: var(--st-mono), monospace;
  font-size: 12px;
  color: var(--st-steel);
}

/* ─────────────────────────────────────────────────────────────────────────
   Категории
   ───────────────────────────────────────────────────────────────────────── */

.st-cats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.st-cat {
  display: block;
  color: inherit;
  border: 1px solid var(--st-line);
  background: var(--st-paper);
  transition: border-color .2s ease, transform .2s ease;
}

.st-cat:hover {
  border-color: var(--st-forge);
  transform: translateY(-2px);
}

.st-cat__media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
}

.st-cat__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.st-cat__body {
  border-top: 1px solid var(--st-line);
  padding: 16px 20px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.st-cat__name {
  font-family: var(--st-display), sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .02em;
  margin: 0;
}

.st-cat__count {
  font-family: var(--st-mono), monospace;
  font-size: 12px;
  color: var(--st-steel);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────
   Коллекции. Вещи выпускаются сериями с именами — Венеция, Лилия,
   Нормандия. Это не маркетинговые ярлыки, а рисунок ковки.
   ───────────────────────────────────────────────────────────────────────── */

.st-collections {
  background: var(--st-forge);
  color: #d8d4cc;
}

.st-collections .st-section__title { color: #fff; }
.st-collections .st-section__note  { color: #8f8a81; }
.st-collections .st-eyebrow        { color: #8f8a81; }

.st-cols__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.st-col {
  display: block;
  color: inherit;
  background: #1d2023;
  border: 1px solid #262a2d;
  transition: border-color .2s ease;
}

.st-col:hover { border-color: var(--st-straw); }

.st-col__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #141618;
}

.st-col__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Съёмка на белом: на графитовом фоне гасим белизну, чтобы кадр не
     выглядел вырезанным прямоугольником. */
  mix-blend-mode: luminosity;
  opacity: .92;
}

.st-col:hover .st-col__media img { mix-blend-mode: normal; opacity: 1; }

.st-col__body { padding: 18px 20px 22px; }

.st-col__name {
  font-family: var(--st-display), sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #fff;
}

.st-col__note {
  font-size: 14px;
  color: #8f8a81;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   Как рождается вещь. Нумерация здесь несёт смысл: это реальная
   последовательность работы, шаги нельзя поменять местами.
   ───────────────────────────────────────────────────────────────────────── */

.st-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.st-step {
  padding-top: 20px;
  border-top: 2px solid var(--st-line);
  counter-increment: step;
}

.st-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--st-mono), monospace;
  font-size: 12px;
  color: var(--st-temper);
  margin-bottom: 12px;
}

.st-step__title {
  font-family: var(--st-display), sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
}

.st-step__text {
  font-size: 15px;
  color: var(--st-steel);
  margin: 0;
}

/* Температура отпуска у шага «патина» — тот самый цвет из палитры. */
.st-step__temp {
  font-family: var(--st-mono), monospace;
  font-size: 12px;
  color: var(--st-bronze);
}

/* ─────────────────────────────────────────────────────────────────────────
   Блок о мастерской
   ───────────────────────────────────────────────────────────────────────── */

.st-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.st-about__media {
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  padding: 24px;
}

.st-about__title {
  font-family: var(--st-display), sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  margin: 0 0 20px;
}

.st-about__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--st-steel);
  margin: 0 0 16px;
  max-width: 50ch;
}

.st-facts {
  display: flex;
  gap: 40px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.st-fact__value {
  font-family: var(--st-display), sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  color: var(--st-forge);
}

.st-fact__label {
  font-size: 13px;
  color: var(--st-steel);
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Адаптив
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .st-cats__grid,
  .st-cols__grid { grid-template-columns: repeat(2, 1fr); }
  .st-steps__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
  .st-hero { padding: 44px 0 56px; }
  .st-hero__grid,
  .st-about__grid { grid-template-columns: 1fr; gap: 32px; }
  .st-hero__media { padding: 18px; }
  .st-hero__caption { left: 18px; bottom: 14px; }
  .st-cats__grid,
  .st-cols__grid { grid-template-columns: 1fr; }
  .st-steps__grid { grid-template-columns: 1fr; }
  .st-facts { gap: 28px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Хлебные крошки
   ───────────────────────────────────────────────────────────────────────── */

.st-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--st-steel);
  margin-bottom: 28px;
}

.st-crumbs a { color: var(--st-steel); }
.st-crumbs a:hover { color: var(--st-forge); }
.st-crumbs__sep { color: var(--st-line); }

/* Слайдшоу на плитке раздела: кадры лежат стопкой, JS переключает is-active. */
.st-cat__media { position: relative; }

.st-cat__frame {
  position: absolute;
  inset: 22px;
  margin: auto;
  max-height: calc(100% - 44px);
  width: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease;
}

.st-cat__frame.is-active { opacity: 1; }

.st-cat__empty,
.st-card__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--st-steel);
  font-size: 13px;
  letter-spacing: .04em;
}

/* ─────────────────────────────────────────────────────────────────────────
   Сетка изделий
   ───────────────────────────────────────────────────────────────────────── */

.st-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.st-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  transition: border-color .2s ease, transform .2s ease;
}

.st-card:hover {
  border-color: var(--st-forge);
  transform: translateY(-2px);
}

.st-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.st-card__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Бейджи. Цвет текста берётся парой к заливке: по соломенному пишем
   графитом, по бронзе — белым. Иначе «скидка» и «новинка» не читаются
   (проверено Дедалом по WCAG). */
.st-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-family: var(--st-display), sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--st-radius);
}

.st-badge--new {
  background: var(--st-straw);
  color: var(--st-on-straw);
}

.st-badge--hit {
  background: var(--st-bronze);
  color: var(--st-on-bronze);
  left: auto;
  right: 12px;
}

.st-card__body {
  border-top: 1px solid var(--st-line);
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.st-card__type {
  font-size: 12px;
  color: var(--st-steel);
  margin: 0;
  line-height: 1.3;
}

.st-card__name {
  font-family: var(--st-display), sans-serif;
  font-size: 19px;
  font-weight: 400;
  margin: 0;
}

.st-card__collection {
  font-size: 12px;
  color: var(--st-temper);
  margin: 0;
}

.st-card__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.st-card__price {
  font-family: var(--st-display), sans-serif;
  font-size: 18px;
  white-space: nowrap;
}

.st-card__from,
.st-card__variants {
  font-family: var(--st-text), sans-serif;
  font-size: 12px;
  color: var(--st-steel);
}

.st-card__price--ask {
  font-size: 14px;
  color: var(--st-steel);
}

/* ─────────────────────────────────────────────────────────────────────────
   Страница изделия
   ───────────────────────────────────────────────────────────────────────── */

.st-product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

.st-product__frame {
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  padding: 32px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.st-product__frame img { max-width: 100%; height: auto; }

.st-product__frame--empty {
  flex-direction: column;
  gap: 10px;
  text-align: center;
  color: var(--st-steel);
}

.st-product__frame--empty span {
  font-family: var(--st-display), sans-serif;
  font-size: 18px;
}

.st-product__frame--empty p {
  margin: 0;
  font-size: 14px;
  max-width: 34ch;
}

.st-product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.st-thumb {
  width: 68px;
  height: 68px;
  padding: 6px;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-thumb.is-active { border-color: var(--st-forge); }
.st-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.st-product__name {
  font-family: var(--st-display), sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  margin: 0 0 10px;
}

.st-product__collection {
  font-size: 15px;
  color: var(--st-steel);
  margin: 0 0 18px;
}

.st-product__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--st-steel);
  margin: 0 0 24px;
  max-width: 46ch;
}

.st-variants { margin-bottom: 24px; }

.st-variants__title {
  font-family: var(--st-display), sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--st-steel);
  margin: 0 0 10px;
}

.st-variant {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--st-line);
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--st-paper);
  transition: border-color .18s ease;
}

.st-variant:has(input:checked) { border-color: var(--st-forge); }
.st-variant input { accent-color: var(--st-temper); }

.st-variant__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.st-variant__size {
  font-family: var(--st-mono), monospace;
  font-size: 13px;
}

.st-variant__price {
  font-family: var(--st-display), sans-serif;
  font-size: 17px;
  white-space: nowrap;
}

.st-variant__stock {
  font-size: 12px;
  color: var(--st-steel);
  white-space: nowrap;
}

.st-finishes, .st-upholstery { margin-bottom: 24px; }

.st-finishes__row { display: flex; gap: 8px; flex-wrap: wrap; }

.st-finish {
  padding: 6px 12px;
  border: 1px solid var(--st-line);
  font-size: 13px;
  background: var(--st-paper);
}

.st-upholstery__note {
  font-size: 14px;
  color: var(--st-steel);
  margin: 0;
  max-width: 44ch;
}

.st-product__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}

.st-product__article { color: var(--st-steel); margin: 0; }

.st-section__more { margin-top: 32px; }

/* Проза из WYSIWYG — описания разделов, коллекций и товаров. */
.st-prose { max-width: 68ch; font-size: 16px; line-height: 1.75; }
.st-prose h2, .st-prose h3 { font-family: var(--st-display), sans-serif; font-weight: 400; }
.st-prose img { margin: 20px 0; }

@media (max-width: 1100px) {
  .st-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .st-grid { grid-template-columns: repeat(2, 1fr); }
  .st-product { grid-template-columns: 1fr; gap: 28px; }
  .st-product__frame { min-height: 300px; padding: 20px; }
}

@media (max-width: 520px) {
  .st-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Админка: таблица исполнений в карточке изделия
   ───────────────────────────────────────────────────────────────────────── */

.prv-block { margin: 28px 0; }

.prv-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.prv-block__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.prv-table input[type="number"],
.prv-table select { width: 100%; min-width: 82px; }

/* Подтверждение сохранения строки: короткая подсветка вместо тоста на
   каждое поле — иначе при правке трёх размеров экран завалит плашками. */
.prv-table tr.is-saved { background: color-mix(in srgb, var(--st-straw) 18%, transparent); }
.prv-table tr { transition: background-color .4s ease; }

/* ─────────────────────────────────────────────────────────────────────────
   Корзина
   ───────────────────────────────────────────────────────────────────────── */

.st-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 0;
  color: var(--st-steel);
}

/* Предупреждение о снятых позициях: соломенная заливка, текст графитом —
   пара --st-straw / --st-on-straw. Белым по соломенному нельзя, 3.04:1. */
.st-cart__warning {
  background: color-mix(in srgb, var(--st-straw) 22%, transparent);
  border-left: 3px solid var(--st-straw);
  color: var(--st-on-straw);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 15px;
  max-width: 70ch;
}

.st-cart { border-top: 1px solid var(--st-line); }

.st-cart__line {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--st-line);
}

.st-cart__line.is-unavailable { opacity: .55; }

.st-cart__media {
  width: 96px;
  height: 96px;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.st-cart__media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.st-cart__name {
  font-family: var(--st-display), sans-serif;
  font-size: 21px;
  font-weight: 400;
  margin: 0 0 6px;
}

.st-cart__name a { color: var(--st-forge); }
.st-cart__name a:hover { color: var(--st-temper); }

.st-cart__meta { font-size: 13px; color: var(--st-steel); margin: 0; }
.st-cart__stock { font-size: 13px; color: var(--st-steel); margin: 6px 0 0; }

.st-cart__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--st-line);
}

.st-qty__btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--st-forge);
}

.st-qty__btn:hover { background: var(--st-paper); }

.st-qty__value {
  min-width: 34px;
  text-align: center;
  font-family: var(--st-mono), monospace;
  font-size: 14px;
}

.st-cart__sum { text-align: right; min-width: 130px; }

.st-cart__price {
  display: block;
  font-family: var(--st-display), sans-serif;
  font-size: 19px;
  white-space: nowrap;
}

.st-cart__remove {
  border: 0;
  background: transparent;
  color: var(--st-steel);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
}

.st-cart__remove:hover { color: var(--st-forge); }

.st-cart__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
}

.st-cart__total { display: flex; align-items: baseline; gap: 14px; }

.st-cart__total-label {
  font-family: var(--st-display), sans-serif;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-steel);
}

.st-cart__total-value {
  font-family: var(--st-display), sans-serif;
  font-size: 32px;
  font-weight: 400;
}

.st-cart__note { font-size: 14px; color: var(--st-steel); max-width: 60ch; margin: 0; }

@media (max-width: 720px) {
  .st-cart__line { grid-template-columns: 72px 1fr; gap: 16px; }
  .st-cart__qty, .st-cart__sum { grid-column: 2; justify-self: start; text-align: left; }
}

/* ═════════════════════════════════════════════════════════════════════════
   Оформление заказа и принятый заказ
   ═════════════════════════════════════════════════════════════════════════ */

.st-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  padding-top: 8px;
}

/* ── Поля ──────────────────────────────────────────────────────────────────
   Свои, а не `.ds-field`: ядерное поле сделано под админку — плотное, с
   uppercase-подписью. На чекауте, где человек вводит адрес доставки один раз
   в жизни, нужен воздух и обычная подпись. */

.st-field-group {
  border: 0;
  border-top: 1px solid var(--st-line);
  margin: 0 0 36px;
  padding: 28px 0 0;
}

.st-field-group__title {
  font-family: var(--st-display), sans-serif;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--st-steel);
  padding: 0;
  margin-bottom: 22px;
}

.st-field { display: block; margin-bottom: 22px; }

.st-field__label {
  display: block;
  font-size: 14px;
  color: var(--st-steel);
  margin-bottom: 7px;
}

.st-field__hint {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--st-steel);
  margin-top: 7px;
  max-width: 52ch;
}

.st-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-paper);
  color: var(--st-forge);
  font-family: var(--st-text), sans-serif;
  font-size: 16px; /* 16px — иначе Safari на iOS зумит страницу при фокусе */
  line-height: 1.4;
  transition: border-color .18s ease;
}

.st-input:focus {
  outline: none;
  border-color: var(--st-temper);
}

.st-input--area { resize: vertical; min-height: 84px; }

/* ── Выбор способа получения ─────────────────────────────────────────────── */

.st-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.st-choice__option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-paper);
  cursor: pointer;
  transition: border-color .18s ease;
}

.st-choice__option:has(input:checked) { border-color: var(--st-temper); }
.st-choice__option input { margin-top: 3px; accent-color: var(--st-temper); }
.st-choice__body { display: flex; flex-direction: column; gap: 3px; }
.st-choice__name { font-size: 15px; }
.st-choice__note { font-size: 13px; color: var(--st-steel); }

.st-checkout__submit { width: 100%; justify-content: center; margin-top: 4px; }

/* ── Сводка заказа ───────────────────────────────────────────────────────── */

.st-checkout__summary {
  position: sticky;
  top: 92px;
  padding: 26px 26px 30px;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
}

.st-checkout__summary-title {
  font-family: var(--st-display), sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--st-steel);
  margin: 0 0 18px;
}

.st-checkout__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 13px; }

.st-checkout__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.st-checkout__line-sum { white-space: nowrap; color: var(--st-steel); }

.st-checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--st-line);
  padding-top: 18px;
}

.st-checkout__total-value {
  font-family: var(--st-display), sans-serif;
  font-size: 26px;
}

.st-checkout__note { font-size: 13px; color: var(--st-steel); margin: 10px 0 0; }

/* ═════ Принятый заказ ═══════════════════════════════════════════════════ */

.st-order__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.st-order__date { color: var(--st-steel); margin: 6px 0 0; }

.st-order__status-note { color: var(--st-steel); margin: 0 0 6px; }

.st-order__lead {
  max-width: 62ch;
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.65;
}

/* Метка состояния. Цвет приходит из справочника — имя из палитры побежалости,
   поэтому список классов повторяет шкалу, а не выдумывает свою. */
.st-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 100px;
  font-family: var(--st-display), sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-status--steel  { background: var(--st-line);   color: var(--st-forge); }
.st-status--straw  { background: var(--st-straw);  color: var(--st-on-straw); }
.st-status--bronze { background: var(--st-bronze); color: var(--st-on-bronze); }
.st-status--temper { background: var(--st-temper); color: var(--st-on-temper); }
.st-status--quench { background: var(--st-quench); color: var(--st-on-quench); }
.st-status--forge  { background: var(--st-forge);  color: var(--st-lime); }

.st-order__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

.st-order__item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--st-line);
}

.st-order__item-media {
  aspect-ratio: 1;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  overflow: hidden;
}

.st-order__item-media img { width: 100%; height: 100%; object-fit: cover; }

.st-order__item-name {
  font-family: var(--st-display), sans-serif;
  font-size: 19px;
  font-weight: 400;
  margin: 0 0 7px;
}

.st-order__item-name a { color: var(--st-forge); }
.st-order__item-name a:hover { color: var(--st-temper); }

.st-order__item-meta { font-size: 14px; color: var(--st-steel); margin: 0 0 3px; }

.st-order__item-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
  color: var(--st-steel);
  font-size: 13px;
  white-space: nowrap;
}

.st-order__item-total {
  font-family: var(--st-display), sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--st-forge);
}

.st-order__totals { padding-top: 22px; display: grid; gap: 11px; }

.st-order__total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--st-steel);
}

.st-order__total-row--final {
  border-top: 1px solid var(--st-line);
  padding-top: 15px;
  color: var(--st-forge);
  font-family: var(--st-display), sans-serif;
  font-size: 22px;
}

.st-order__note { font-size: 13px; color: var(--st-steel); margin: 6px 0 0; max-width: 48ch; }

.st-order__side { display: grid; gap: 26px; }

.st-order__block {
  padding: 22px 24px;
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
}

.st-order__block-title {
  font-family: var(--st-display), sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--st-steel);
  margin: 0 0 13px;
}

.st-order__block p { margin: 0 0 5px; font-size: 15px; line-height: 1.5; }
.st-order__comment { color: var(--st-steel); font-size: 14px; }

/* ── Путь заказа ────────────────────────────────────────────────────────── */

.st-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.st-path__step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 13px;
  padding-bottom: 18px;
  position: relative;
}

/* Линия между точками — путь, а не набор событий. У последнего шага её нет:
   заказ ещё идёт, и обрывать его чертой было бы неправдой. */
.st-path__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  bottom: 2px;
  width: 1px;
  background: var(--st-line);
}

.st-path__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--st-line);
  position: relative;
  z-index: 1;
}

.st-path__dot--straw  { background: var(--st-straw); }
.st-path__dot--bronze { background: var(--st-bronze); }
.st-path__dot--temper { background: var(--st-temper); }
.st-path__dot--quench { background: var(--st-quench); }
.st-path__dot--forge  { background: var(--st-forge); }

.st-path__body { display: flex; flex-direction: column; gap: 2px; }
.st-path__name { font-size: 15px; }
.st-path__date { font-size: 12px; color: var(--st-steel); }
.st-path__comment { font-size: 13px; color: var(--st-steel); }

@media (max-width: 1100px) {
  .st-checkout, .st-order__grid { grid-template-columns: 1fr; gap: 40px; }
  .st-checkout__summary { position: static; }
}

@media (max-width: 720px) {
  .st-choice { grid-template-columns: 1fr; }
  .st-order__item { grid-template-columns: 72px 1fr; }
  .st-order__item-sum { grid-column: 2; align-items: flex-start; text-align: left; }
}

/* ── Кабинет: список заказов ──────────────────────────────────────────────── */

.st-orders { display: grid; gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); }

.st-orders__row {
  display: grid;
  grid-template-columns: 130px 110px 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  background: var(--st-paper);
  color: var(--st-forge);
  transition: background-color .18s ease;
}

.st-orders__row:hover { background: var(--st-lime); color: var(--st-forge); }

.st-orders__number {
  font-family: var(--st-display), sans-serif;
  font-size: 17px;
}

.st-orders__date, .st-orders__items { color: var(--st-steel); font-size: 14px; }

.st-orders__sum {
  font-family: var(--st-display), sans-serif;
  font-size: 18px;
  text-align: right;
}

@media (max-width: 720px) {
  .st-orders__row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .st-orders__sum { text-align: left; }
}
