/*
Theme Name: WOT-TANKS
Description: Тема магазина аккаунтов Мир Танков. Свёрстана по макету Figma «Tanks».
Version: 0.1.0
Requires PHP: 8.0
Text Domain: wot-tanks
*/

/* ═══════════════════════════════════════════════════════════════════
   Токены. Значения сняты напрямую с макета, не подобраны на глаз.
   Переменных в Figma не было, поэтому система собрана здесь.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Поверхности. Все три «чёрных» тёплые, с уходом в коричневый —
     это заметно рядом с чистым #000 и держит характер макета. */
  --wt-bg:            #100f0d;
  --wt-surface:       #0d0c0a;
  --wt-field:         #1c1a15;

  /* Акцент задан радиальным градиентом, а не плоским цветом.
     --wt-accent — плоский эквивалент для контуров и текста. */
  --wt-accent:        #ee7135;
  --wt-accent-grad:   radial-gradient(circle at 50% 0%, #fe9156 0%, #f1763a 50%, #e35a1e 100%);
  --wt-neutral-grad:  radial-gradient(circle at 50% 0%, #292726 0%, #202020 100%);

  /* Текст. Прозрачности, а не отдельные серые: так текст остаётся
     согласованным на любой из трёх поверхностей. */
  --wt-text:          #ffffff;
  --wt-text-64:       rgba(255, 255, 255, 0.64);
  --wt-text-60:       rgba(255, 255, 255, 0.6);
  --wt-text-32:       rgba(255, 255, 255, 0.32);

  --wt-line-10:       rgba(255, 255, 255, 0.1);
  --wt-line-04:       rgba(255, 255, 255, 0.04);

  /* Шрифт макета — Suisse Intl, коммерческий. Здесь подменён на Inter:
     та же грото-гуманистическая основа и близкие метрики, поэтому
     трекинги из макета переносятся без пересчёта. Купите лицензию —
     достаточно поменять эту одну строку. */
  --wt-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wt-w-book:        400;
  --wt-w-regular:     400;
  --wt-w-medium:      500;

  /* Сетка: полотно 1440, поля 52, контент 1336. */
  --wt-page:          1440px;
  --wt-gutter:        52px;
  --wt-content:       1336px;
  --wt-section-gap:   120px;

  --wt-r-card:        40px;
  --wt-r-panel:       36px;
  --wt-r-media:       32px;
  --wt-r-field:       20px;
  --wt-r-chip:        16px;
  --wt-r-pill:        9999px;
}

/* ═══════════════════════════════════════════════════════════════════
   База
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--wt-bg);
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-weight: var(--wt-w-regular);
  font-size: 20px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Свой display перебивает display:none из UA-стилей для [hidden].
   Из-за этого скрытые панели уровней и лишние карточки танков
   оставались на экране: у них .wt-tank { display:flex }. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

/* Фокус виден всегда — в тёмной теме это тем важнее, что штатный
   контур браузера на почти чёрном фоне почти не читается. */
:focus-visible {
  outline: 2px solid var(--wt-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.wt-container {
  width: min(var(--wt-content), calc(100% - var(--wt-gutter) * 2));
  margin-inline: auto;
}

.wt-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   Типографика. Трекинги отрицательные на крупном и положительные
   на среднем — это осознанно так в макете, не ошибка снятия.
   ═══════════════════════════════════════════════════════════════════ */
.wt-h1 { font-size: 56px; font-weight: var(--wt-w-medium); letter-spacing: -1.12px; margin: 0; }
.wt-h2 { font-size: 36px; font-weight: var(--wt-w-medium); letter-spacing: -1.44px; margin: 0; }
.wt-h3 { font-size: 28px; font-weight: var(--wt-w-medium); letter-spacing:  0.56px; margin: 0; }
.wt-panel-title { font-size: 28px; font-weight: var(--wt-w-medium); letter-spacing: -1.12px; margin: 0; }
.wt-lead  { font-size: 20px; letter-spacing: -0.4px; color: var(--wt-text-60); margin: 0; }
.wt-label { font-size: 20px; letter-spacing: -0.4px; color: var(--wt-text-60); }
.wt-meta  { font-size: 20px; font-weight: var(--wt-w-book); letter-spacing: 0.4px; color: var(--wt-text-60); }
.wt-price { font-size: 32px; font-weight: var(--wt-w-medium); letter-spacing: 0.64px; margin: 0; }
/* У товаров со скидкой WooCommerce печатает <del>старая</del><ins>новая</ins>.
   Браузер подчёркивает <ins> — на витрине это читается как ошибка вёрстки. */
.wt-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wt-price del { font-size: 20px; letter-spacing: 0.4px; color: var(--wt-text-32); text-decoration-thickness: 1px; }
.wt-price ins { text-decoration: none; background: none; color: inherit; }

/* Вторая строка заголовка залита градиентом через фон текста.
   @supports нужен: без него в браузерах без background-clip:text
   строка осталась бы прозрачной, то есть невидимой. */
.wt-gradient-text { color: var(--wt-accent); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wt-gradient-text {
    background: var(--wt-accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Кнопки
   ═══════════════════════════════════════════════════════════════════ */
.wt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 10px 24px;
  border-radius: var(--wt-r-pill);
  font-size: 16px; font-weight: var(--wt-w-book); letter-spacing: -0.32px;
  color: var(--wt-text); cursor: pointer;
  border: 1px solid var(--wt-line-04);
  background: var(--wt-neutral-grad);
  transition: filter 0.18s ease;
}
.wt-btn:hover { filter: brightness(1.14); }

.wt-btn--accent { border-color: var(--wt-line-10); background: var(--wt-accent-grad); }
.wt-btn--sm     { height: 43px; padding: 11px 20px; }

/* ═══════════════════════════════════════════════════════════════════
   Шапка
   ═══════════════════════════════════════════════════════════════════ */
.wt-header {
  height: 89px;
  display: flex; align-items: center;
  position: relative;
}
/* Ширину задаёт .wt-container — своя width здесь перебивала бы её
   (тот же вес селектора, но правило ниже по файлу), и шапка растягивалась
   на всё окно вместо полотна 1336. */
.wt-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.wt-header__logo { width: 155px; flex: none; }
.wt-nav {
  display: flex; gap: 24px; align-items: center;
  font-size: 20px; font-weight: var(--wt-w-medium);
  color: var(--wt-text-64);
}
.wt-nav a { transition: color 0.18s ease; }
.wt-nav a:hover { color: var(--wt-text); }

/* ═══════════════════════════════════════════════════════════════════
   Герой
   ═══════════════════════════════════════════════════════════════════ */
.wt-main { padding-top: 24px; }
.wt-sections { display: flex; flex-direction: column; gap: var(--wt-section-gap); }
/* Герой и блок подбора в макете сгруппированы: между ними 65px,
   а --wt-section-gap разделяет уже сами группы. */
.wt-group { display: flex; flex-direction: column; gap: 65px; }

.wt-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.wt-hero__text { display: flex; flex-direction: column; gap: 32px; }
.wt-hero__copy { display: flex; flex-direction: column; gap: 24px; }
.wt-hero__title { display: flex; flex-direction: column; }
/* В макете обе строки заголовка — по одной строке каждая. Ширина 477px
   оттуда не переносится: Inter шире Suisse Intl и в неё не укладывается,
   поэтому фиксируем сам перенос, а не ширину. */
.wt-hero__title > span { white-space: nowrap; }
.wt-hero__actions { display: flex; gap: 12px; align-items: center; }

/* Танк намеренно вылезает за пределы оранжевой плашки вверх и влево —
   в макете он обрезан контейнером-обёрткой, а не самой плашкой. */
.wt-hero__media { width: 667px; height: 384px; flex: none; position: relative; overflow: hidden; border-radius: var(--wt-r-panel); }
/* Плашка и танк заданы процентами от родителя, а не пикселями из макета.
   Пиксели работали только на одной ширине: как только .wt-hero__media
   становится резиновым (ниже 1100px), плашка в 608px перестаёт совпадать
   с контейнером. Проценты — те же числа макета, поделённые на размер
   контейнера, поэтому композиция одна на всех ширинах и мобильных
   переопределений больше не требует.
   59/667, 156/384, 608/667, 228/384. */
.wt-hero__plate {
  position: absolute; left: 8.846%; top: 40.625%;
  width: 91.154%; height: 59.375%;
  border-radius: var(--wt-r-panel);
  border: 1px solid var(--wt-line-10);
  background: var(--wt-accent-grad);
}
/* max-width: none — обязательно, иначе танка не будет видно целиком.
   Тег <img> лежит внутри плашки, а в сбросе выше стоит img { max-width:
   100% }. Сто процентов здесь — это ширина плашки за вычетом рамки, то
   есть 606px, и танк шириной 773 ужимался до 606. Сам он при этом не
   уменьшался, а обрезался: object-fit: cover срезал бока, и с картинки
   пропадали корма и часть гусениц. */
/* Проценты здесь от ПЛАШКИ, а не от контейнера: она и есть родитель
   этого <img>. Прежние мобильные проценты были посчитаны от контейнера
   и потому не совпадали с десктопом — танк выходил мельче макетного.

   Знаменатель — 606×226, а не 608×228: у абсолютно позиционированного
   элемента проценты считаются от внутренней коробки родителя, а у
   плашки рамка в 1px с каждой стороны. На 608 промах был 0.3% — мелочь,
   но она бы копилась при каждой следующей правке.
   -83/606, -149/226, 773/606, 494/226. */
.wt-hero__tank {
  position: absolute;
  left: -13.6964%; top: -65.9292%;
  width: 127.5578%; height: 218.5841%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   Подбор
   ═══════════════════════════════════════════════════════════════════ */
.wt-search {
  background: var(--wt-surface);
  border-radius: var(--wt-r-panel);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.wt-search__fields { display: flex; flex-direction: column; gap: 20px; }
.wt-search__row { display: flex; gap: 17px; align-items: flex-end; }
.wt-field { display: flex; flex-direction: column; gap: 8px; }
.wt-field--tank   { width: 420px; flex: none; }
.wt-field--budget { flex: 1 1 0; min-width: 0; }

.wt-input {
  height: 63px;
  padding: 0 15px;
  width: 100%;
  background: var(--wt-field);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-field);
  font-size: 20px; letter-spacing: -0.4px;
  color: var(--wt-text);
}
.wt-input::placeholder { color: var(--wt-text-32); }

.wt-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.wt-chip {
  padding: 12px 16px;
  background: var(--wt-field);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-field);
  font-size: 20px; letter-spacing: -0.4px;
  color: var(--wt-text-32);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.wt-chip:hover { color: var(--wt-text-60); }
.wt-chip[aria-pressed='true'] {
  border-radius: var(--wt-r-chip);
  border-color: var(--wt-accent);
  color: var(--wt-accent);
  box-shadow: inset 0 0 11.1px rgba(238, 113, 53, 0.33);
}

/* ═══════════════════════════════════════════════════════════════════
   Карточки аккаунтов
   ═══════════════════════════════════════════════════════════════════ */
.wt-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }

.wt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.wt-card {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 8px;
  display: flex; flex-direction: column; gap: 25px;
}
.wt-card__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--wt-r-media); overflow: hidden; }
.wt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.wt-card__body { padding: 12px; display: flex; flex-direction: column; gap: 25px; flex: 1; }
.wt-card__info { display: flex; flex-direction: column; gap: 24px; }
.wt-card__main { display: flex; flex-direction: column; gap: 12px; }
/* padding-top равен gap: вместе они дают в макете 25 до линии и 25 после. */
.wt-card__foot { border-top: 1px solid var(--wt-line-04); padding-top: 25px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Проданный аккаунт: 107 товаров из 373 — состояние обычное, а не
   исключительное, поэтому оно видно прямо в выдаче. */
.wt-card.is-sold .wt-card__media img { filter: grayscale(0.75) brightness(0.65); }
.wt-card.is-sold .wt-price { color: var(--wt-text-32); text-decoration: line-through; }
.wt-card__badge {
  position: absolute; left: 16px; top: 16px;
  padding: 7px 14px;
  border-radius: var(--wt-r-pill);
  border: 1px solid var(--wt-line-10);
  background: rgba(13, 12, 10, 0.82);
  backdrop-filter: blur(6px);
  font-size: 16px; letter-spacing: -0.32px; color: var(--wt-text);
}

/* Разделитель между значениями — точка, набранная как элемент списка.
   Делаю псевдоэлементом: так она не попадёт в скринридер и в поиск. */
.wt-dot { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.wt-dot > * + *::before { content: '•'; margin-right: 12px; color: currentColor; }

/* ═══════════════════════════════════════════════════════════════════
   Шаги
   ═══════════════════════════════════════════════════════════════════ */
.wt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; }
.wt-step {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 20px;
  display: flex; gap: 20px; align-items: flex-start;
}
.wt-step__num {
  width: 64px; height: 64px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--wt-r-pill);
  border: 1px solid var(--wt-line-10);
  background: var(--wt-accent-grad);
  font-size: 32px; font-weight: 700; font-style: italic;
  letter-spacing: -1.28px;
}
.wt-step__text { display: flex; flex-direction: column; gap: 8px; }

/* Карточка шага с рендером. Раскладка меняется на вертикальную:
   картинка размером с половину карточки рядом с текстом сплющила бы
   и то и другое. Номер переезжает на картинку меткой — он всё ещё
   нужен, потому что это последовательность, но больше не главный. */
.wt-step--art { flex-direction: column; gap: 16px; align-items: stretch; }
.wt-step__art { position: relative; border-radius: var(--wt-r-field, 16px); overflow: hidden; background: var(--wt-field); }
.wt-step__art img { width: 100%; height: 180px; object-fit: contain; display: block; }
.wt-step__badge {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px;
  border-radius: var(--wt-r-pill);
  background: var(--wt-accent-grad);
  font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: -0.5px;
}

/* Полоса помощи под шагами: последний шанс увести сомневающегося
   в диалог, а не из магазина. */
.wt-helpbar {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--wt-r-card);
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.wt-helpbar__text { display: flex; flex-direction: column; gap: 6px; }

/* Плавающая кнопка связи. Держится в углу поверх содержимого; на
   мобильном подпись прячется, чтобы кнопка не перекрывала половину
   экрана. Отступ снизу учитывает безопасную зону iOS. */
.wt-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: var(--wt-r-pill);
  background: var(--wt-accent-grad);
  color: var(--wt-text);
  font-size: 16px; font-weight: var(--wt-w-medium);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.wt-float:hover { filter: brightness(1.06); }
.wt-float__icon { flex: none; }

/* Юридический низ подвала. Отделён линией, набран мелко и приглушённо:
   его читают, когда специально ищут, и он не должен спорить с меню. */
.wt-footer__legal {
  position: relative; z-index: 1;
  margin-top: 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--wt-line-04);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--wt-text-60);
}
.wt-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.wt-footer__docs a { color: var(--wt-text-64); text-decoration: underline; text-underline-offset: 3px; }
.wt-footer__docs a:hover { color: var(--wt-text); }
.wt-footer__copy { margin: 0; color: var(--wt-text-64); }
.wt-footer__entity { margin: 0; color: var(--wt-text-32); line-height: 1.45; }

/* ═══════════════════════════════════════════════════════════════════
   Подвал
   ═══════════════════════════════════════════════════════════════════ */
.wt-footer {
  background: var(--wt-surface);
  margin-top: var(--wt-section-gap);
  padding-top: 52px;
  position: relative;
  overflow: hidden;
}
.wt-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.wt-footer__brand { display: flex; flex-direction: column; gap: 14px; width: 155px; }
.wt-footer__links { display: flex; flex-direction: column; gap: 20px; text-align: right; font-size: 20px; letter-spacing: -0.4px; color: var(--wt-text-60); }
.wt-footer__links a:first-child { color: var(--wt-text); }
.wt-footer__wordmark { margin-top: 40px; width: 100%; position: relative; z-index: 1; }
/* Полоса свечения под вордмарком. Чисто декоративная: за пределы
   подвала не выходит благодаря overflow:hidden у .wt-footer.
   Ширина намеренно больше экрана, а центрируется полоса отрицательным
   отступом в половину этой ширины. Поэтому max-width: none обязателен:
   сброс img { max-width: 100% } ужимал полосу до ширины подвала, отступ
   при этом оставался прежним — и свечение уезжало влево на 400 с
   лишним пикселей, переставая быть симметричным. */
.wt-footer__glow {
  position: absolute; left: 50%; bottom: -72px;
  width: 2257px; height: 144px; margin-left: -1128px;
  max-width: none;
  pointer-events: none; z-index: 0;
}
.wt-footer__wordmark img { width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════════════
   Внутренние страницы: шапка страницы
   ═══════════════════════════════════════════════════════════════════ */
.wt-page { padding-top: 52px; }
.wt-page__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.wt-page__title { font-size: 44px; font-weight: var(--wt-w-medium); letter-spacing: -0.88px; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   Каталог: сетка «сайдбар + выдача»
   Полотно 1336 = 330 сайдбар + 36 зазор + 970 выдача.
   ═══════════════════════════════════════════════════════════════════ */
.wt-catalog { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; }
.wt-catalog__results { display: flex; flex-direction: column; gap: 52px; }

/* Строка над выдачей: слева счётчик и чипы, справа сортировка.
   align-items:start — сортировка ровняется по верху счётчика, а не
   по центру блока, который выше на строку чипов. */
.wt-results__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wt-results__head { display: flex; flex-direction: column; gap: 16px; }

/* Кнопка «Фильтры» нужна только на узком экране. */
.wt-filters-toggle { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   Сайдбар фильтров
   ═══════════════════════════════════════════════════════════════════ */
.wt-filters {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 20px;
  display: flex; flex-direction: column; gap: 24px;
}
.wt-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wt-filters__title { font-size: 24px; font-weight: var(--wt-w-medium); margin: 0; }
.wt-filters__reset { font-size: 16px; color: var(--wt-accent); }
.wt-filters__reset:hover { text-decoration: underline; }

/* fieldset/legend нужны для смысла, но приносят свои отступы и рамку. */
.wt-filters__group { display: flex; flex-direction: column; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.wt-filters__group--tight { gap: 12px; }

/* <legend> рисуется вне потока родителя, поэтому flex-gap до него не
   доходит: заголовок группы прилипал к первому чекбоксу. Строки лежат
   в своей обёртке, а отступ до заголовка задаём ей. */
.wt-filters__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.wt-filters__rows { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.wt-filters__legend { font-size: 24px; font-weight: var(--wt-w-medium); padding: 0; }
.wt-filters__legend--sm { font-size: 16px; font-weight: var(--wt-w-medium); }
.wt-filters__label { font-size: 20px; color: var(--wt-text-64); }

/* У поля поиска зазор до подписи 8, а не 16 как в остальных группах. */
.wt-filters__group:has(> .wt-filters__label) { gap: 8px; }
.wt-filters__budget { display: flex; gap: 10px; }
.wt-filters__budget .wt-input { min-width: 0; flex: 1 1 0; }

.wt-input--sm { height: 52px; padding: 0 14px; }
/* У type=search свой крестик и внутренние отступы Safari. */
.wt-input[type='search'] { -webkit-appearance: none; appearance: none; }
.wt-input[type='number'] { -moz-appearance: textfield; }
.wt-input[type='number']::-webkit-outer-spin-button,
.wt-input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wt-divider { border: 0; border-top: 1px solid var(--wt-line-10); margin: 0; height: 0; }

/* ── Чекбоксы ─────────────────────────────────────────────────────
   Настоящий input оставлен на месте и лишь обесцвечен: так работают
   клавиатура, скринридер и автозаполнение формы. Видимый квадрат —
   соседний span. */
.wt-check { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.wt-check input {
  position: absolute; width: 24px; height: 24px; margin: 0;
  opacity: 0; cursor: pointer;
}
.wt-check__box {
  width: 24px; height: 24px; flex: none;
  border-radius: 8px;
  background: var(--wt-field);
  border: 1px solid var(--wt-line-10);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wt-check__text { font-size: 20px; color: var(--wt-text-64); transition: color 0.15s ease; }
.wt-check:hover .wt-check__text { color: var(--wt-text); }

.wt-check input:checked + .wt-check__box {
  border-color: transparent;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12' fill='none'><path d='M12 3L5.125 9L2 6.27273' stroke='white' stroke-width='2' stroke-linecap='round'/></svg>") center / 14px 12px no-repeat,
    var(--wt-accent-grad);
}
.wt-check input:checked ~ .wt-check__text { color: var(--wt-text); }
.wt-check input:focus-visible + .wt-check__box { outline: 2px solid var(--wt-accent); outline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════════════
   Сортировка
   ═══════════════════════════════════════════════════════════════════ */
.wt-sort { position: relative; flex: none; }
.wt-sort__select {
  appearance: none; -webkit-appearance: none;
  height: 52px; padding: 0 59px 0 24px;
  border-radius: var(--wt-r-pill);
  border: 1px solid var(--wt-line-04);
  background: var(--wt-neutral-grad);
  color: var(--wt-text);
  font-size: 16px; letter-spacing: -0.32px;
  cursor: pointer;
}
/* Список раскрывается системным виджетом — он рисуется вне страницы
   и наши тёмные токены к нему не применяются. Задаём явно, иначе в
   части браузеров получим белый текст на белом. */
.wt-sort__select option { background: var(--wt-field); color: var(--wt-text); }
.wt-sort__chevron {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 25px; height: 20px; pointer-events: none; color: var(--wt-text);
}
.wt-sort__go { margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   Чипы активных фильтров
   ═══════════════════════════════════════════════════════════════════ */
.wt-chips--active { list-style: none; margin: 0; padding: 0; }
.wt-chip--active {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--wt-r-chip);
  border-color: var(--wt-accent);
  color: var(--wt-accent);
  box-shadow: inset 0 0 11.1px rgba(238, 113, 53, 0.33);
}
.wt-chip--active:hover { color: var(--wt-accent); filter: brightness(1.15); }
.wt-chip__x { font-size: 16px; line-height: 1; }

/* ═══════════════════════════════════════════════════════════════════
   Выдача
   ═══════════════════════════════════════════════════════════════════ */
.wt-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wt-loadmore { display: flex; justify-content: center; margin-top: -8px; }
.wt-btn--block { width: 100%; }
.wt-btn--wide { min-width: 224px; }

/* ═══════════════════════════════════════════════════════════════════
   Панель состояния (пусто / оплата / успех / отказ)
   ═══════════════════════════════════════════════════════════════════ */
.wt-state {
  background: var(--wt-surface);
  border-radius: var(--wt-r-card);
  padding: 80px 112px;
  display: flex; flex-direction: column; align-items: center; gap: 52px;
  text-align: center;
  overflow: hidden;
}
/* Глиф выходит за верх подушки и подрезается этим контейнером —
   в макете именно так, обрезка не случайная. */
.wt-state__icon { position: relative; width: 166px; height: 128px; border-radius: 38px; overflow: hidden; flex: none; }
.wt-state__pill {
  position: absolute; left: 0; top: 48px;
  width: 166px; height: 80px;
  border-radius: var(--wt-r-pill);
  border: 1px solid var(--wt-line-10);
  background: var(--wt-accent-grad);
  box-shadow: inset 0 -4px 10.9px #9c431b;
}
.wt-state__glyph {
  position: absolute; left: -10px; top: -11px;
  width: 183.712px; height: 183.712px;
  display: flex; align-items: center; justify-content: center;
}
.wt-state__glyph img { width: 150px; height: 150px; transform: rotate(-15deg); }

.wt-state__text { display: flex; flex-direction: column; gap: 6px; max-width: 437px; }
.wt-state__title { font-size: 32px; font-weight: var(--wt-w-book); letter-spacing: -0.64px; margin: 0; }
.wt-state__sub { font-size: 20px; letter-spacing: -0.4px; color: var(--wt-text-60); margin: 0; }
.wt-state__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════
   Страница аккаунта
   Полотно 1336 = 775 галерея + 36 зазор + 525 панель покупки.
   ═══════════════════════════════════════════════════════════════════ */
.wt-product { padding-top: 52px; display: flex; flex-direction: column; gap: 52px; }
.wt-product__top { display: grid; grid-template-columns: minmax(0, 775fr) 525px; gap: 36px; align-items: start; }
.wt-product__block { display: flex; flex-direction: column; gap: 24px; margin-top: 68px; }

.wt-crumbs { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--wt-text-32); margin-bottom: -28px; }
.wt-crumbs a { color: var(--wt-text-64); }
.wt-crumbs a:hover { color: var(--wt-text); }
.wt-crumbs__here { color: var(--wt-text); }

/* ── Галерея ──────────────────────────────────────────────────────
   Пропорция рамки из макета, но картинка вписывается: у товаров это
   скриншоты ангара 1024×538, и обрезка под 775×562 съела бы четверть
   по высоте — ровно то, ради чего кадр и смотрят. */
.wt-gallery { display: flex; flex-direction: column; gap: 20px; }
.wt-gallery__main {
  margin: 0;
  aspect-ratio: 775 / 562;
  border-radius: var(--wt-r-media);
  overflow: hidden;
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
}
.wt-gallery__main img { width: 100%; height: 100%; object-fit: contain; }

.wt-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.wt-thumb {
  display: block; width: 100%; padding: 0;
  aspect-ratio: 179 / 141;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--wt-line-04);
  background: var(--wt-surface);
  cursor: pointer;
  transition: border-color 0.18s ease, opacity 0.18s ease;
  opacity: 0.72;
}
.wt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wt-thumb:hover { opacity: 1; }
.wt-thumb.is-active { border-color: var(--wt-accent); opacity: 1; }

/* ── Панель покупки ───────────────────────────────────────────────*/
.wt-buy {
  background: var(--wt-surface);
  border-radius: var(--wt-r-card);
  padding: 20px;
  display: flex; flex-direction: column; gap: 27px;
}
.wt-buy__head { display: flex; flex-direction: column; gap: 12px; }
.wt-eyebrow { font-size: 14px; font-weight: 600; color: var(--wt-accent); text-transform: uppercase; margin: 0; }
.wt-buy__title { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0; }

.wt-buy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.wt-buy__cell { display: flex; flex-direction: column; gap: 2px; }
.wt-buy__num { font-size: 24px; font-weight: 600; }
.wt-buy__cap { font-size: 15px; color: var(--wt-text-64); }

.wt-buy__price { font-size: 32px; font-weight: 600; letter-spacing: -0.64px; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wt-buy__price del { font-size: 20px; font-weight: 400; color: var(--wt-text-32); }
.wt-buy__price ins { text-decoration: none; background: none; color: inherit; }
.wt-buy__sold { font-size: 16px; color: var(--wt-text-64); margin: 0; }
.wt-buy__form { margin: 0; }

/* ── Полоса статистики ────────────────────────────────────────────*/
.wt-stats {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-panel);
  padding: 32px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.wt-stats__item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wt-stats__num { font-size: 32px; font-weight: 700; }
.wt-stats__cap { font-size: 14px; color: var(--wt-text-32); text-transform: uppercase; }

/* ── Ангар ────────────────────────────────────────────────────────*/
.wt-garage { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.wt-garage > .wt-h2 { font-size: 28px; letter-spacing: -1.12px; }

.wt-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.wt-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--wt-r-chip);
  border: 1px solid var(--wt-line-04);
  background: transparent;
  font-size: 16px; font-weight: var(--wt-w-medium);
  color: var(--wt-text-64);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.wt-tab__count { color: var(--wt-text-32); transition: color 0.18s ease; }
.wt-tab:hover { color: var(--wt-text); }
.wt-tab.is-active {
  background: var(--wt-field);
  border-color: var(--wt-accent);
  color: var(--wt-accent);
  box-shadow: inset 0 0 11.1px rgba(238, 113, 53, 0.33);
}
.wt-tab.is-active .wt-tab__count { color: var(--wt-accent); }

.wt-garage__panels { display: flex; flex-direction: column; gap: 52px; }
.wt-garage__panel { display: flex; flex-direction: column; gap: 28px; }
.wt-garage__head { font-size: 24px; font-weight: var(--wt-w-medium); margin: 0; }
.wt-garage__more { display: flex; justify-content: center; }

.wt-tanks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wt-tank {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* Из API приходит прозрачный рендер машины, а не фотография: вписываем
   целиком, иначе у танка отрезало бы ствол и корму. */
.wt-tank__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--wt-r-panel);
  background: var(--wt-field);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wt-tank__media img { width: 92%; height: 92%; object-fit: contain; }
.wt-tank__name { font-size: 20px; font-weight: var(--wt-w-medium); margin: 0; padding: 20px; }
.wt-tank__prem {
  position: absolute; right: 12px; top: 12px;
  padding: 5px 10px;
  border-radius: var(--wt-r-pill);
  border: 1px solid var(--wt-line-10);
  background: var(--wt-accent-grad);
  font-size: 13px; letter-spacing: 0.2px;
}

/* ── Условия ──────────────────────────────────────────────────────*/
.wt-terms {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 20px;
}
.wt-terms .wt-meta { margin: 0; }
.wt-link { color: var(--wt-accent); }
.wt-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   Общие блоки внутренних страниц
   ═══════════════════════════════════════════════════════════════════ */

/* Две колонки: содержимое и боковая панель 420. Так устроены касса,
   готовый заказ и поддержка. */
.wt-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 38px; align-items: start; margin-top: 30px; }
.wt-split__main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }

.wt-panel {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 20px;
}
.wt-panel--pad { padding: 24px; }
.wt-section-title { font-size: 32px; font-weight: var(--wt-w-medium); letter-spacing: -0.64px; margin: 0 0 20px; }

/* Подпись поля в макете сдвинута внутрь на радиус скругления — так она
   визуально приклеена к полю, а не висит над колонкой. */
.wt-label { display: block; padding-left: 16px; }
.wt-fields { display: grid; gap: 20px; }
.wt-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Поле с иконкой справа (пароль, скрытые данные). */
.wt-input-wrap { position: relative; }
.wt-input-wrap .wt-input { padding-right: 56px; }
.wt-reveal {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--wt-text-60);
}
.wt-reveal:hover { color: var(--wt-text); }
.wt-reveal svg { width: 24px; height: 24px; }
/* WooCommerce добавляет свою кнопку показа пароля внутрь поля. У нас
   для этого есть .wt-reveal из макета, а чужая приезжала без стилей —
   шестью пикселями серого прямоугольника под полем. */
.wt-input-wrap .show-password-input,
.woocommerce-form .show-password-input { display: none; }

/* ── Статусы заказа ───────────────────────────────────────────────*/
.wt-badge {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border-radius: var(--wt-r-pill);
  font-size: 16px; letter-spacing: -0.32px;
}
.wt-badge--paid    { background: rgba(45, 138, 62, 0.22); border: 1px solid rgba(76, 201, 100, 0.42); color: #7fe08f; }
.wt-badge--pending { background: rgba(238, 113, 53, 0.16); border: 1px solid rgba(238, 113, 53, 0.5); color: var(--wt-accent); }
.wt-badge--failed  { background: rgba(201, 62, 62, 0.18); border: 1px solid rgba(226, 92, 92, 0.45); color: #f08a8a; }
.wt-badge--neutral { background: var(--wt-field); border: 1px solid var(--wt-line-10); color: var(--wt-text-64); }

/* ── Строка покупки ───────────────────────────────────────────────*/
.wt-orders { display: flex; flex-direction: column; gap: 20px; }
.wt-order {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 8px;
  display: grid; grid-template-columns: 254px minmax(0, 1fr) auto; gap: 20px;
  align-items: stretch;
}
.wt-order__media { width: 254px; aspect-ratio: 254 / 169; border-radius: var(--wt-r-media); overflow: hidden; background: var(--wt-field); }
.wt-order__media img { width: 100%; height: 100%; object-fit: cover; }
.wt-order__info { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 12px 0; }
.wt-order__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 0; }

/* ── Сводка заказа ────────────────────────────────────────────────*/
.wt-summary { display: flex; flex-direction: column; gap: 20px; }
.wt-summary__title { font-size: 24px; font-weight: var(--wt-w-medium); margin: 0; }
.wt-summary__item { display: flex; gap: 16px; align-items: center; }
.wt-summary__thumb { width: 76px; height: 56px; flex: none; border-radius: 16px; overflow: hidden; background: var(--wt-field); }
.wt-summary__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wt-summary__rows { display: flex; flex-direction: column; }
.wt-summary__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--wt-line-04); font-size: 18px; color: var(--wt-text-64); }
.wt-summary__row--total { color: var(--wt-text); font-weight: var(--wt-w-medium); }
.wt-summary__row--total span:last-child { font-size: 20px; }
.wt-summary__steps { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--wt-line-04); display: flex; flex-direction: column; gap: 14px; counter-reset: wt-step; font-size: 18px; color: var(--wt-text-64); }
.wt-summary__steps li { counter-increment: wt-step; }
.wt-summary__steps li::before { content: counter(wt-step) '. '; color: var(--wt-text-32); }

/* ── Способы оплаты ───────────────────────────────────────────────*/
.wt-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.wt-pay {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px;
  border-radius: var(--wt-r-card);
  border: 1px solid var(--wt-line-04);
  background: var(--wt-surface);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.wt-pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wt-pay__icon {
  width: 40px; height: 40px;
  border-radius: var(--wt-r-pill);
  display: flex; align-items: center; justify-content: center;
  background: var(--wt-field);
  border: 1px solid var(--wt-line-10);
  color: var(--wt-text-64);
}
.wt-pay__name { font-size: 24px; font-weight: var(--wt-w-medium); }
.wt-pay:has(input:checked) { border-color: var(--wt-accent); box-shadow: inset 0 0 11.1px rgba(238, 113, 53, 0.33); }
.wt-pay:has(input:checked) .wt-pay__icon { background: var(--wt-accent-grad); border-color: transparent; color: #fff; }
.wt-pay:has(input:focus-visible) { outline: 2px solid var(--wt-accent); outline-offset: 3px; }

.wt-checkout__submit { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.wt-checkout__note { font-size: 16px; color: var(--wt-text-32); margin: 0; }

/* ── Поддержка ────────────────────────────────────────────────────*/
.wt-faq { display: flex; flex-direction: column; gap: 20px; }
.wt-faq__item { background: var(--wt-surface); border: 1px solid var(--wt-line-04); border-radius: var(--wt-r-card); padding: 20px; }
.wt-faq__q { font-size: 20px; font-weight: var(--wt-w-medium); margin: 0 0 8px; }
.wt-faq__a { font-size: 18px; color: var(--wt-text-60); margin: 0; }

.wt-help { display: flex; flex-direction: column; gap: 16px; }
.wt-help__icon {
  width: 44px; height: 44px; border-radius: var(--wt-r-pill);
  display: flex; align-items: center; justify-content: center;
  background: var(--wt-accent-grad); border: 1px solid var(--wt-line-10);
}
.wt-help__title { font-size: 24px; font-weight: var(--wt-w-medium); margin: 0; }

/* ── Текстовая страница ───────────────────────────────────────────*/
.wt-prose { font-size: 18px; line-height: 1.6; color: var(--wt-text-60); max-width: 74ch; }
.wt-prose h2 { font-size: 28px; font-weight: var(--wt-w-medium); color: var(--wt-text); letter-spacing: -1.12px; margin: 36px 0 12px; }
.wt-prose h3 { font-size: 22px; font-weight: var(--wt-w-medium); color: var(--wt-text); margin: 28px 0 10px; }
.wt-prose p, .wt-prose li { margin: 0 0 12px; }
.wt-prose a { color: var(--wt-accent); }
.wt-prose a:hover { text-decoration: underline; }
.wt-prose ul, .wt-prose ol { padding-left: 22px; }
.wt-prose > :first-child { margin-top: 0; }

/* ── Вход и регистрация ───────────────────────────────────────────*/
.wt-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 783px);
  align-items: start;
  gap: 40px;
  padding-top: 28px;
}
.wt-auth__form { max-width: 420px; margin: 141px auto 0; display: flex; flex-direction: column; gap: 44px; width: 100%; }
.wt-auth__head { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.wt-auth__title { font-size: 32px; font-weight: var(--wt-w-book); letter-spacing: -0.64px; margin: 0; }
.wt-auth__fields { display: flex; flex-direction: column; gap: 20px; }
.wt-auth__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.wt-auth__actions .wt-btn { min-width: 211px; }
.wt-auth__aside { display: flex; gap: 4px; font-size: 16px; color: var(--wt-text-60); }
/* Согласие на обработку данных печатает WooCommerce. Без стилей оно
   приходило основным кеглем в 20 пикселей и весило на экране больше,
   чем сама форма. В макете это мелкая подпись под полями. */
.woocommerce-privacy-policy-text { font-size: 14px; line-height: 1.5; color: var(--wt-text-60); }
.woocommerce-privacy-policy-text p { margin: 0; }
.woocommerce-privacy-policy-text a { color: var(--wt-accent); }

.wt-auth__error { border-radius: var(--wt-r-field); border: 1px solid rgba(226, 92, 92, 0.45); background: rgba(201, 62, 62, 0.14); padding: 14px 16px; font-size: 16px; color: #f5a3a3; }
.wt-auth__error ul { margin: 0; padding-left: 18px; }

/* Оранжевая плашка и танк поверх неё — как в макете, картинка выходит
   за левый край плашки, поэтому обрезает её внешний контейнер. */
.wt-auth__art { position: relative; height: 775px; overflow: hidden; }
.wt-auth__plate { position: absolute; left: 91px; right: 0; top: 0; bottom: 0; border-radius: var(--wt-r-panel); background: var(--wt-accent-grad); }
.wt-auth__tank { position: absolute; left: 0; top: -28px; width: 783px; height: 897px; object-fit: contain; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════
   Панель состояния: страничный вариант со строкой заказа
   ═══════════════════════════════════════════════════════════════════ */
.wt-state--page { max-width: 873px; margin-inline: auto; }

/* Разделители сверху и снизу — часть блока, а не самостоятельные линии:
   так они не появляются, когда строки заказа нет. */
.wt-state__order {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 52px 0;
  border-top: 1px solid var(--wt-line-10);
  border-bottom: 1px solid var(--wt-line-10);
  text-align: left;
}
.wt-state__product { display: flex; align-items: center; gap: 16px; min-width: 0; }
.wt-state__thumb { width: 123px; height: 88px; flex: none; border-radius: var(--wt-r-field); overflow: hidden; background: var(--wt-field); }
.wt-state__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wt-state__names { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wt-state__names .wt-h3 { font-size: 24px; }
/* Внутри панели зазор 52 уже задан flex-gap, а у блока свои отступы —
   схлопываем, иначе между линией и текстом было бы 104. */
.wt-state__order + .wt-state__actions { margin-top: -52px; }
.wt-state__glyph svg { width: 150px; height: 150px; transform: rotate(-15deg); }

/* ═══════════════════════════════════════════════════════════════════
   Кабинет
   ═══════════════════════════════════════════════════════════════════ */
.wt-account-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; font-size: 16px; color: var(--wt-text-64); }
.wt-account-nav a:hover { color: var(--wt-text); }
.wt-account-nav a.is-current { color: var(--wt-accent); }
.wt-delivery :is(table, .shop_table) { width: 100%; border-collapse: collapse; font-size: 18px; }
.wt-delivery :is(th, td) { padding: 12px 0; border-bottom: 1px solid var(--wt-line-04); text-align: left; color: var(--wt-text-60); }
.wt-delivery th { color: var(--wt-text); font-weight: var(--wt-w-medium); }
.wt-delivery a { color: var(--wt-accent); }

/* ═══════════════════════════════════════════════════════════════════
   Формы WooCommerce
   Разметку кассы и кабинета оставляем вукомерсовскую — на её классы
   и идентификаторы завязаны его скрипты и платёжные шлюзы. Здесь
   только внешний вид.
   ═══════════════════════════════════════════════════════════════════ */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.checkout p.form-row,
.woocommerce-form p.form-row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.checkout p.form-row-wide,
.checkout p.form-row.notes { grid-column: 1 / -1; }
.checkout label,
.woocommerce-form label { font-size: 20px; letter-spacing: -0.4px; color: var(--wt-text-60); padding-left: 16px; }
.checkout .required { color: var(--wt-accent); text-decoration: none; }

.checkout :is(input.input-text, textarea, select),
.woocommerce-form :is(input.input-text, textarea) {
  height: 63px; padding: 0 15px; width: 100%;
  background: var(--wt-field);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-field);
  font-size: 20px; letter-spacing: -0.4px; color: var(--wt-text);
}
.checkout textarea { height: auto; padding: 16px 15px; min-height: 120px; }
.checkout ::placeholder { color: var(--wt-text-32); }

/* ── Способы оплаты ───────────────────────────────────────────────*/
#payment { background: none; border: 0; padding: 0; }
#payment ul.wc_payment_methods {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
#payment li.wc_payment_method {
  position: relative;
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  padding: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#payment li.wc_payment_method > input.input-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
#payment li.wc_payment_method > label {
  display: flex; flex-direction: column; gap: 20px;
  font-size: 24px; font-weight: var(--wt-w-medium); color: var(--wt-text);
  padding: 0; cursor: pointer;
}
/* Кружок-иконка перед названием — в макете он есть у каждого способа. */
#payment li.wc_payment_method > label::before {
  content: '';
  width: 40px; height: 40px;
  border-radius: var(--wt-r-pill);
  background: var(--wt-field);
  border: 1px solid var(--wt-line-10);
}
#payment li.wc_payment_method > label img { max-height: 28px; width: auto; }
#payment li.wc_payment_method:has(input.input-radio:checked) {
  border-color: var(--wt-accent);
  box-shadow: inset 0 0 11.1px rgba(238, 113, 53, 0.33);
}
#payment li.wc_payment_method:has(input.input-radio:checked) > label::before {
  background: var(--wt-accent-grad); border-color: transparent;
}
#payment li.wc_payment_method:has(input.input-radio:focus-visible) { outline: 2px solid var(--wt-accent); outline-offset: 3px; }
#payment .payment_box { font-size: 16px; color: var(--wt-text-60); margin: 16px 0 0; padding: 0; background: none; }
#payment .payment_box::before { display: none; }

/* Согласие с условиями и кнопка оплаты — по центру, как в макете. */
#payment .form-row.place-order { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; padding: 0; }
#payment .woocommerce-terms-and-conditions-wrapper { width: 100%; margin-bottom: 8px; }
#payment .woocommerce-privacy-policy-text { font-size: 16px; color: var(--wt-text-32); }
#payment .validate-required label.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--wt-text-60); padding-left: 0; }
#payment input[type='checkbox'] { width: 24px; height: 24px; accent-color: var(--wt-accent); flex: none; }
#place_order {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 10px 24px;
  border-radius: var(--wt-r-pill);
  border: 1px solid var(--wt-line-10);
  background: var(--wt-accent-grad);
  color: var(--wt-text); font-size: 16px; letter-spacing: -0.32px;
  cursor: pointer; transition: filter 0.18s ease;
}
#place_order:hover { filter: brightness(1.14); }

/* Свой заголовок «Данные получателя» уже стоит выше — вукомерсовский
   «Данные покупателя» дублировал бы его. */
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 { display: none; }

/* Купон в макете не нарисован, но выключать скидки — решение владельца,
   а не вёрстки. Поэтому не прячем, а сворачиваем в неприметную строку
   внизу секции оплаты. */
.checkout_coupon { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.checkout_coupon p:first-child { width: 100%; font-size: 16px; color: var(--wt-text-32); margin: 0; }
.checkout_coupon .form-row { flex: 1 1 220px; }
.checkout_coupon button { height: 52px; padding: 10px 24px; border-radius: var(--wt-r-pill); border: 1px solid var(--wt-line-04); background: var(--wt-neutral-grad); color: var(--wt-text); font-size: 16px; cursor: pointer; }
/* Вход на кассе. Свёрнут по умолчанию: большинство здесь впервые, и
   развёрнутая форма входа над формой заказа читается как «сначала
   зарегистрируйтесь». Развёрнутый вид отличается фоном, чтобы блок
   не сливался с полями заказа под ним. */
.wt-checkout-login {
  margin-bottom: 24px;
  border: 1px solid var(--wt-line-04);
  border-radius: var(--wt-r-card);
  background: var(--wt-surface);
}
.wt-checkout-login__toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px; color: var(--wt-text-60);
}
.wt-checkout-login__toggle::-webkit-details-marker { display: none; }
.wt-checkout-login__toggle strong { color: var(--wt-accent, #ee7135); font-weight: var(--wt-w-medium); text-decoration: underline; text-underline-offset: 3px; }
.wt-checkout-login[open] .wt-checkout-login__toggle { padding-bottom: 4px; }
.wt-checkout-login__body { padding: 0 20px 20px; }
.wt-checkout-login__body .woocommerce-form-login { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.wt-checkout-login__body .woocommerce-form-login > p { margin: 0; }
.wt-checkout-login__body .woocommerce-form-login__submit { width: 100%; }

/* Значки способа оплаты. Идут за названием, а не перед ним: сначала
   человек читает, чем платит, и только потом видит подтверждение. */
.wt-pay-marks { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; vertical-align: middle; color: var(--wt-text-64); }
.wt-pay-mark { display: inline-flex; }
.wt-pay-mark svg { display: block; }

.woocommerce-form-coupon-toggle { font-size: 16px; }
.woocommerce-form-coupon-toggle .woocommerce-info { background: none; border: 0; padding: 0; color: var(--wt-text-32); }

/* ── Уведомления ──────────────────────────────────────────────────*/
:is(.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-notice) {
  list-style: none; margin: 0 0 24px; padding: 16px 20px;
  border-radius: var(--wt-r-field);
  font-size: 16px;
  background: var(--wt-field);
  border: 1px solid var(--wt-line-10);
  color: var(--wt-text-60);
}
.woocommerce-error { border-color: rgba(226, 92, 92, 0.45); background: rgba(201, 62, 62, 0.14); color: #f5a3a3; }
.woocommerce-message { border-color: rgba(76, 201, 100, 0.42); background: rgba(45, 138, 62, 0.18); color: #9fe6ac; }
:is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a { color: inherit; text-decoration: underline; }
.woocommerce-notices-wrapper:empty { display: none; }

.wt-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   Шторка меню и крестик панелей.
   Кнопки существуют в разметке всегда, но показывает их только
   мобильный медиазапрос: на десктопе нажимать было бы не на что.
   ═══════════════════════════════════════════════════════════════════ */
.wt-burger, .wt-panel-close {
  display: none;
  align-items: center; justify-content: center;
  flex: none; padding: 0;
  border: 0; border-radius: var(--wt-r-pill);
  background: transparent; color: var(--wt-text);
  cursor: pointer;
}
.wt-burger { width: 36px; height: 36px; }
.wt-burger svg { width: 20px; height: 20px; }

.wt-panel-close {
  position: absolute; right: 16px; top: 22px; z-index: 2;
  width: 32px; height: 32px;
}
.wt-panel-close svg { width: 20px; height: 20px; }

/* Шторка занимает всё под шапкой. Кнопка входа прижата к низу — как в
   макете m-menu: до неё дотягивается большой палец. */
.wt-menu {
  position: fixed; left: 0; right: 0; top: 68px; bottom: 0;
  z-index: 70;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  /* Отступ тот же, что у .wt-container в шапке: при жёстких 20px пункты
     меню стояли на 4px правее логотипа над ними, и открытая шторка
     выглядела съехавшей. */
  padding: 16px var(--wt-gutter) 20px;
  background: var(--wt-bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wt-menu__nav {
  display: flex; flex-direction: column; gap: 24px;
  font-size: 20px; font-weight: var(--wt-w-medium);
}
.wt-menu__nav a { padding: 2px 0; }

/* Пока меню открыто, шапка прибита к верху экрана: иначе между ней
   и шторкой оставалась бы полоса прокрученной страницы. Отступ у body
   возвращает те же 68 пикселей в поток, поэтому содержимое не прыгает
   при закрытии. */
html.wt-menu-open .wt-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: var(--wt-bg);
}
html.wt-menu-open body { padding-top: 68px; }

/* Панель админки прибита к верху экрана и перекрывает шапку шторок.
   Видит её только вошедший администратор — покупателя это не касается,
   но проверять магазин с телефона удобнее без перекрытия. */
/* ── Золото ───────────────────────────────────────────────────────────
   Экрана золота в макете нет: товар появился после отрисовки. Поэтому
   строим его из уже существующих деталей — панель покупки, пилюли,
   поля, шаги, — а нового вводим ровно одно: монету слева. Так экран
   читается как часть магазина, а не как приложение к нему.
   ─────────────────────────────────────────────────────────────────── */
.wt-gold__top { align-items: start; }

.wt-gold__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: var(--wt-r-panel, 24px);
  background: var(--wt-surface);
  border: 1px solid var(--wt-line-04);
}

/* Монета — единственная вольность на экране, поэтому она одна и
   крупная. Радиальный градиент тот же, что у акцентных кнопок:
   собственного золотого цвета в палитре нет и заводить его ради
   одного элемента незачем. */
.wt-gold__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border-radius: var(--wt-r-field, 16px);
  background: var(--wt-field);
  overflow: hidden;
}
.wt-gold__art img {
  width: auto;
  height: 180px;
  object-fit: contain;
}
.wt-gold__coin {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--wt-accent-grad);
  box-shadow: 0 24px 60px rgba(238, 113, 53, 0.35), inset 0 -8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
}
.wt-gold__coin::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.wt-gold__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--wt-text-64); font-size: 16px; }

.wt-gold__form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
/* Итог выбора: сколько золота выйдет на выбранную сумму. Стоит над
   ценой и набран крупнее подписи — это ответ на вопрос, ради которого
   человек и пришёл на страницу. */
.wt-gold__gets {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--wt-text-60);
}
.wt-gold__gets strong {
  font-size: 20px;
  color: var(--wt-text);
}

/* Номиналы — равнозначный набор, поэтому сетка, а не flex-wrap:
   при обёртке последний ряд повисает рваным хвостом, и глазу не за что
   зацепиться. Три колонки и на десктопе, и на телефоне: панель узкая
   в обоих случаях, а номиналов ровно шесть — два полных ряда. */
.wt-gold__form .wt-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wt-gold__form .wt-chip {
  text-align: center;
  padding: 12px 8px;
  font-size: 18px;
}

/* Кнопка с картинкой номинала. Рисунок отвечает на вопрос «сколько это»
   быстрее числа: пять слитков против двойной тележки видно сразу, а
   «2 000 ₽» и «10 000 ₽» отличаются одной цифрой. */
.wt-chip--art {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px 12px;
  line-height: 1.1;
}
.wt-chip--art img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  /* Рисунок ведёт себя как часть кнопки: нажатие ловит кнопка целиком. */
  pointer-events: none;
}
.wt-chip--art span { font-size: 15px; }

/* Сообщение под полем. Один класс с двумя состояниями, а не два
   независимых: место под текстом занято в обоих случаях одинаково,
   и разница только в цвете. */
.wt-gold__msg { font-size: 14px; margin: 0; color: var(--wt-text-60); }
.wt-gold__msg--ok  { color: #4ad07f; }
.wt-gold__msg--bad { color: #ff6b5b; }

.wt-gold__buy .wt-btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Монета в сводке заказа — та же деталь, что на странице золота,
   уменьшенная под миниатюру товара. */
.wt-summary__coin,
.wt-order__coin {
  display: block;
  width: 56px;
  height: 56px;
  margin: auto;
  border-radius: 50%;
  background: var(--wt-accent-grad);
  box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.25);
}
.wt-order__coin { width: 88px; height: 88px; }

/* Галочка согласия на регистрации: тот же компонент, что в фильтрах,
   но с многострочной подписью — ссылки в ней переносятся. */
.wt-auth__consent { align-items: flex-start; }
.wt-auth__consent .wt-check__box { margin-top: 2px; flex: none; }
.wt-auth__consent .wt-check__text { font-size: 15px; line-height: 1.45; color: var(--wt-text-64); }

/* Пары «подпись — значение» на странице золотого заказа. */
.wt-order__facts { display: grid; gap: 20px; margin: 20px 0 0; }
.wt-order__facts dt { margin: 0 0 4px; }
.wt-order__facts dd { margin: 0; }
@media (min-width: 561px) { .wt-order__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 782px) {
  body.admin-bar .wt-menu { top: 114px; }
  body.admin-bar .wt-catalog__panel { top: 46px; }
  html.wt-menu-open body.admin-bar .wt-header { top: 46px; }
}

/* Открытая шторка на широком экране — всегда ошибка состояния,
   а не сценарий: страховка на случай смены ширины при открытом меню. */
@media (min-width: 721px) { .wt-menu { display: none !important; } }

/* ── Вопрос-ответ: на мобильном карточка сворачивается ─────────────
   <details open> вместо своего аккордеона: на десктопе ответы открыты
   и стрелки нет — ровно как в d-support, на мобильном появляется
   шеврон из m-support. Ноль строк скрипта. */
.wt-faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  list-style: none;
}
.wt-faq__q::-webkit-details-marker { display: none; }
.wt-faq__chevron { display: none; flex: none; margin-top: 2px; color: var(--wt-text-32); transition: transform 0.18s ease; }
.wt-faq__chevron svg { width: 16px; height: 16px; }
.wt-faq__item[open] > .wt-faq__q .wt-faq__chevron { transform: rotate(180deg); }

/* Разделитель в карточке покупки. В d-orders его нет — там карточка
   горизонтальная и делить нечего. */
.wt-order__line { display: none; }

/* Поиск по ангару. В макете он только в m-product: на десктопе сетка
   в три колонки и хватает кнопки «Показать все». */
.wt-garage__search { position: relative; display: none; }
.wt-garage__search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--wt-text-32); pointer-events: none;
}
.wt-garage__search-icon svg { width: 18px; height: 18px; }
.wt-garage__search .wt-input { padding-left: 42px; }
.wt-garage__note { font-size: 15px; color: var(--wt-text-60); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   Планшет. Промежуточные ширины макета нет — здесь только корректная
   деградация десктопной сетки до мобильных кадров.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .wt-hero { flex-direction: column; align-items: flex-start; }
  .wt-hero__media { width: 100%; max-width: 667px; }
  .wt-cards, .wt-steps { grid-template-columns: repeat(2, 1fr); }
  .wt-search__row { flex-wrap: wrap; }
  .wt-field--tank { width: 100%; }

  /* Сайдбар перестаёт помещаться рядом с двумя карточками раньше,
     чем начинается мобильный макет, — поэтому шторка включается здесь. */
  .wt-catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wt-filters-toggle { display: inline-flex; gap: 10px; }
  .wt-filters-toggle__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 7px;
    border-radius: var(--wt-r-pill);
    background: var(--wt-accent-grad);
    font-size: 14px;
  }

  /* Шторка. inset:0 + скрытая по умолчанию — панель не участвует в
     потоке, поэтому на узком экране страница начинается сразу с выдачи. */
  .wt-catalog__panel {
    position: fixed; inset: 0; z-index: 60;
    display: none;
    padding: 20px;
    overflow-y: auto;
    background: rgba(16, 15, 13, 0.86);
    backdrop-filter: blur(8px);
  }
  .wt-catalog__panel.is-open { display: block; }
  .wt-catalog__panel .wt-filters { max-width: 420px; margin: 0 auto; }
  html.wt-locked, html.wt-locked body { overflow: hidden; }

  .wt-product__top { grid-template-columns: minmax(0, 1fr); }
  .wt-tanks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wt-split { grid-template-columns: minmax(0, 1fr); }
  .wt-auth { grid-template-columns: minmax(0, 1fr); }
  .wt-auth__form { margin-top: 40px; }
  .wt-auth__art { display: none; }
}

@media (max-width: 900px) {
  .wt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; }
  .wt-order { grid-template-columns: 160px minmax(0, 1fr); }
  .wt-order__media { width: 160px; }
  .wt-order__side { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 0 12px 12px; }
  .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
  .wt-state { padding: 56px 32px; }
  .wt-results__bar { flex-direction: column; align-items: stretch; }
  .wt-sort, .wt-sort__select { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   МОБИЛЬНЫЙ МАКЕТ — 15 кадров Figma шириной 393.
   Полотно 393 − поля 16×2 = 361; все размеры ниже сняты с этих кадров,
   а не получены пропорциональным уменьшением десктопа. Радиусы,
   цвета и градиенты общие с десктопом — это один компонент в макете,
   меняется только его геометрия.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  /* ── Золото ── */
  .wt-gold__intro { padding: 24px; gap: 16px; }
  .wt-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 14px; }
  .wt-float span { display: none; }
  .wt-helpbar { padding: 20px; }
  .wt-step__art img { height: 150px; }

  .wt-gold__art { height: 160px; }
  .wt-gold__art img { height: 128px; }
  .wt-chip--art img { width: 44px; height: 44px; }
  .wt-gold__coin { width: 96px; height: 96px; }
  .wt-gold__coin::after { inset: 13px; }
  .wt-gold__list { font-size: 15px; }

  :root {
    --wt-gutter:      16px;
    --wt-section-gap: 48px;
  }

  /* ── Типографика ────────────────────────────────────────────── */
  .wt-h1 { font-size: 36px; letter-spacing: -0.72px; }
  .wt-h2 { font-size: 24px; letter-spacing: -0.96px; }
  .wt-h3 { font-size: 20px; letter-spacing: 0.4px; }
  .wt-panel-title { font-size: 24px; letter-spacing: -0.96px; }
  /* Подписи полей. .woocommerce-form label весит больше, чем .wt-label,
     поэтому один только .wt-label здесь не сработал бы. В макете
     подпись стоит вровень с левым краем поля, без отступа. */
  .wt-lead, .wt-label { font-size: 16px; letter-spacing: -0.32px; }
  .wt-label, .checkout label, .woocommerce-form label { font-size: 16px; letter-spacing: -0.32px; padding-left: 0; }
  .wt-meta { font-size: 14px; letter-spacing: 0.28px; }
  .wt-price { font-size: 22px; letter-spacing: 0.44px; gap: 8px; }
  .wt-price del { font-size: 15px; }

  /* Поля ввода: 52 вместо 63 и обязательные 16px — на меньшем кегле
     Safari при фокусе масштабирует всю страницу. */
  .wt-input { height: 52px; padding: 0 16px; font-size: 16px; }
  .wt-input--sm { height: 52px; padding: 0 16px; }

  /* ── Шапка (все кадры) ──────────────────────────────────────── */
  .wt-header { height: 68px; }
  .wt-header__inner { gap: 12px; }
  .wt-header__logo { width: 132px; }
  .wt-nav, .wt-header__cta { display: none; }
  .wt-burger { display: inline-flex; }

  /* ── m-home: герой ────────────────────────────────────────────
     В макете картинка стоит между текстом и кнопкой, а в разметке
     кнопки лежат внутри текстового блока. Распускаем обёртку и
     задаём порядок — переставлять разметку ради одного экрана
     не нужно. */
  .wt-main { padding-top: 0; }
  .wt-hero { gap: 20px; align-items: stretch; }
  .wt-hero__text { display: contents; }
  .wt-hero__copy { gap: 12px; order: 1; }
  .wt-hero__media { order: 2; }
  .wt-hero__actions { order: 3; }
  .wt-hero__title > span { white-space: normal; }
  .wt-hero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .wt-hero__actions .wt-btn { width: 100%; }

  /* Пропорция кадра остаётся десктопной: плашка и танк заданы в
     процентах от неё, и при другом соотношении сторон танк сплющило бы
     относительно плашки. Ширина 361 из макета — от неё считается высота. */
  .wt-hero__media { width: 100%; height: auto; aspect-ratio: 667 / 384; }
  /* Плашка и танк переопределений не требуют: они заданы процентами. */

  /* ── m-home: подбор ─────────────────────────────────────────── */
  .wt-search { padding: 16px; gap: 16px; }
  .wt-search__fields { gap: 16px; }
  .wt-search__row { gap: 12px; }
  .wt-search .wt-btn { width: 100%; }

  /* ── Карточка аккаунта (m-home, m-catalog) ──────────────────── */
  .wt-cards, .wt-cards--2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wt-card { padding: 6px; gap: 0; }
  .wt-card__media { aspect-ratio: 349 / 174; }
  .wt-card__body { padding: 10px; gap: 16px; }
  .wt-card__info { gap: 6px; }
  .wt-card__main { gap: 6px; }
  .wt-card__foot { padding-top: 16px; gap: 12px; }
  .wt-card__foot .wt-btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .wt-card__badge { left: 12px; top: 12px; padding: 5px 12px; font-size: 14px; }

  /* «Весь каталог» в макете стоит под карточками во всю ширину, а не
     справа от заголовка: на 361 строка «заголовок + кнопка» ломается
     на четыре строки. Обёртку заголовка распускаем и раскладываем
     её содержимое порядком — :has() адресует только те секции,
     у которых эта шапка есть. */
  section:has(> .wt-section__head) { display: flex; flex-direction: column; }
  .wt-section__head { display: contents; }
  .wt-section__head > .wt-h2 { order: -1; margin-bottom: 16px; }
  .wt-section__head > .wt-btn { order: 1; width: 100%; margin-top: 20px; }

  /* ── m-home: шаги. Из колонки-карточки — в строку ───────────── */
  .wt-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wt-step { padding: 16px; gap: 16px; align-items: center; }
  .wt-step__num { width: 40px; height: 40px; font-size: 18px; letter-spacing: -0.72px; }
  .wt-step__text { gap: 4px; }

  /* ── Подвал (все кадры) ─────────────────────────────────────── */
  .wt-footer__top { flex-direction: row; align-items: flex-start; gap: 20px; }
  .wt-footer__brand { width: 180px; gap: 12px; }
  .wt-footer__brand img { width: 116px; height: auto; }
  .wt-footer__links { text-align: right; gap: 12px; font-size: 14px; letter-spacing: -0.28px; }
  .wt-footer__wordmark { margin-top: 32px; }

  /* ── Шапка внутренней страницы ──────────────────────────────── */
  .wt-page { padding-top: 24px; }
  .wt-page__head { gap: 8px; margin-bottom: 20px; }
  .wt-page__title { font-size: 32px; letter-spacing: -0.64px; }
  .wt-section-title { font-size: 18px; margin-bottom: 16px; }
  .wt-crumbs { font-size: 14px; margin-bottom: -8px; }

  /* ── m-catalog: строка «Фильтры | По цене» ──────────────────────
     Кнопка фильтров живёт в сайдбаре, сортировка — в шапке выдачи,
     то есть в разных контейнерах. display:contents распускает обёртки,
     и обе становятся ячейками одной сетки, как в макете. Остальные
     блоки занимают строку целиком и раскладываются автоматически,
     поэтому пропавшие чипы или пустая выдача ничего не ломают. */
  .wt-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px; row-gap: 20px;
    align-items: start;
  }
  .wt-catalog__aside,
  .wt-catalog__results,
  .wt-results__bar,
  .wt-results__head { display: contents; }

  .wt-catalog__aside > *,
  .wt-catalog__results > *,
  .wt-results__bar > *,
  .wt-results__head > * { grid-column: 1 / -1; }

  .wt-filters-toggle { grid-row: 1; grid-column: 1; }
  .wt-sort          { grid-row: 1; grid-column: 2; }

  .wt-filters-toggle,
  .wt-sort__select {
    height: 44px; padding: 0 16px;
    font-size: 14px; letter-spacing: -0.28px;
  }
  .wt-filters-toggle { justify-content: center; gap: 8px; }
  .wt-filters-toggle__count { min-width: 20px; height: 20px; font-size: 12px; }
  /* Шеврон на узкой пилюле стоял поверх последней буквы названия:
     сдвигаем его к краю и освобождаем под него поле. */
  .wt-sort__select { padding-right: 46px; text-overflow: ellipsis; }
  .wt-sort__chevron { right: 12px; }
  .wt-loadmore .wt-btn { width: 100%; }

  /* Чипы активных фильтров */
  .wt-chips { gap: 8px; }
  .wt-chip--active { height: 36px; padding: 0 13px; gap: 10px; font-size: 14px; }

  /* ── m-filters-overlay: нижняя шторка ───────────────────────── */
  .wt-catalog__panel { padding: 0; background: var(--wt-bg); backdrop-filter: none; }
  /* Крестик закреплён на экране, а не в потоке шторки: при длинном
     списке танков шторка прокручивается, и кнопка уезжала бы вверх. */
  .wt-panel-close { display: inline-flex; position: fixed; }
  body.admin-bar .wt-panel-close { top: 68px; }
  .wt-catalog__panel .wt-filters {
    max-width: none; margin: 0; min-height: 100%;
    border: 0; border-radius: 0;
    padding: 24px 16px 32px;
    gap: 24px;
  }
  /* Заголовок и «Сбросить» лежат в одной обёртке, а в макете разнесены:
     обёртку распускаем, ссылку уводим в конец колонки. */
  .wt-filters__head { display: contents; }
  .wt-filters__title { font-size: 28px; letter-spacing: -1.12px; padding-right: 44px; }
  .wt-filters__reset { order: 99; text-align: center; padding: 4px 0; }
  .wt-filters__legend { font-size: 18px; }
  .wt-filters__legend--sm { font-size: 14px; }
  .wt-filters__label { font-size: 14px; }
  .wt-filters__rows { gap: 16px; margin-top: 14px; }
  .wt-filters__budget { gap: 12px; }
  .wt-check input { width: 20px; height: 20px; }
  .wt-check__box { width: 20px; height: 20px; border-radius: 6px; background-size: 12px 10px; }
  .wt-check input:checked + .wt-check__box { background-size: 12px 10px, auto; }
  .wt-check__text { font-size: 16px; }

  /* Количество топов в макете — не список галочек, а сетка пилюль 3×2.
     Разметка та же: настоящий checkbox остаётся под пилюлей, поэтому
     форма, клавиатура и скринридер работают ровно как были. */
  .wt-filters__set--pills .wt-filters__rows {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  }
  .wt-filters__set--pills .wt-check {
    justify-content: center; text-align: center;
    min-height: 44px; padding: 6px 8px;
    border-radius: var(--wt-r-chip);
    border: 1px solid var(--wt-line-04);
    background: var(--wt-field);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .wt-filters__set--pills .wt-check__box { display: none; }
  .wt-filters__set--pills .wt-check__text { font-size: 15px; line-height: 1.2; }
  .wt-filters__set--pills .wt-check:has(input:checked) {
    border-color: var(--wt-accent);
    box-shadow: inset 0 0 11.1px rgba(238, 113, 53, 0.33);
  }
  .wt-filters__set--pills .wt-check:has(input:checked) .wt-check__text { color: var(--wt-accent); }
  .wt-filters__set--pills .wt-check:has(input:focus-visible) { outline: 2px solid var(--wt-accent); outline-offset: 3px; }

  /* ── m-product ─────────────────────────────────────────────── */
  .wt-product { padding-top: 20px; gap: 24px; }
  .wt-product__top { gap: 20px; }
  .wt-product__block { margin-top: 24px; gap: 16px; }

  .wt-gallery { gap: 12px; }
  .wt-gallery__main { aspect-ratio: 361 / 226; }
  .wt-gallery__thumbs { gap: 8px; }
  .wt-thumb { aspect-ratio: 84 / 63; border-radius: 14px; }

  /* Панель покупки в макете уходит в край экрана: отрицательное поле
     ровно на величину поля контейнера, углы и боковые границы снимаем —
     иначе они срезались бы за краем вьюпорта. */
  .wt-buy {
    margin-inline: calc(var(--wt-gutter) * -1);
    border-radius: 0;
    padding: 20px var(--wt-gutter);
    gap: 20px;
  }
  .wt-buy__head { gap: 8px; }
  .wt-buy__title { font-size: 24px; }
  .wt-buy__price { font-size: 32px; }
  .wt-buy__price del { font-size: 18px; }
  .wt-buy__grid { gap: 10px 12px; }
  .wt-buy__num { font-size: 18px; }
  .wt-buy__cap { font-size: 12px; }
  /* Растягиваем именно кнопку покупки, а не всякую кнопку внутри панели.
     Прежнее «.wt-buy button» писалось, когда кнопка в панели была одна;
     с появлением золота под него попали и пилюли номиналов, и каждая
     занимала строку — шесть строк вместо двух рядов. */
  .wt-buy .wt-btn, .wt-buy__form .wt-btn,
  .wt-buy button:not(.wt-chip):not(.wt-reveal) { width: 100%; }

  /* Полоса статистики распадается на четыре плитки 2×2 */
  .wt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  .wt-stats__item {
    gap: 6px; padding: 16px;
    background: var(--wt-field);
    border-radius: var(--wt-r-field);
  }
  .wt-stats__num { font-size: 18px; }
  .wt-stats__cap { font-size: 12px; }

  /* Ангар. Вкладок бывает пять и больше — на 361 они не переносятся,
     а прокручиваются вбок; поля прокрутки выводим в край экрана,
     чтобы первая и последняя вкладка не липли к границе. */
  .wt-garage { gap: 16px; margin-top: 8px; }
  .wt-garage > .wt-h2 { font-size: 20px; letter-spacing: -0.8px; }
  .wt-garage__panels { gap: 32px; }
  .wt-garage__panel { gap: 16px; }
  .wt-garage__head { font-size: 16px; }
  .wt-garage__more .wt-btn { width: 100%; }
  .wt-garage__search { display: block; }
  .wt-tabs {
    flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--wt-gutter) * -1);
    padding-inline: var(--wt-gutter);
  }
  .wt-tabs::-webkit-scrollbar { display: none; }
  .wt-tab { flex: none; height: 32px; padding: 0 12px; gap: 4px; font-size: 14px; }

  .wt-tanks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wt-tank { padding: 6px; }
  .wt-tank__media { aspect-ratio: 162 / 100; }
  .wt-tank__name { font-size: 14px; padding: 10px; }
  .wt-tank__prem { font-size: 11px; }

  /* ── m-checkout, m-account-delivery, m-support ──────────────── */
  .wt-split { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .wt-split__main { gap: 24px; }
  .wt-panel { padding: 20px; }
  .wt-panel--pad { padding: 20px; }

  /* На кассе сводка стоит над формой: покупатель сначала видит, за что
     платит. В кабинете порядок обратный — там сводка справочная,
     а главное на экране — доступы. */
  body.woocommerce-checkout .wt-split > .wt-panel { order: -1; }

  .wt-summary { gap: 16px; }
  .wt-summary__title { font-size: 18px; }
  .wt-summary__thumb { width: 74px; height: 54px; border-radius: 12px; }
  .wt-summary__item { gap: 14px; }
  .wt-summary__row { font-size: 15px; padding: 12px 0; }
  .wt-summary__row--total span:last-child { font-size: 18px; }
  .wt-summary__steps { font-size: 15px; gap: 12px; }

  .wt-pays { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wt-pay { padding: 16px; gap: 16px; }
  .wt-pay__icon { width: 36px; height: 36px; }
  .wt-pay__icon svg { width: 20px; height: 20px; }
  .wt-pay__name { font-size: 15px; }
  .wt-checkout__submit { margin-top: 0; }
  .wt-checkout__submit .wt-btn, .wt-checkout__submit button { width: 100%; }
  .wt-checkout__note { font-size: 12px; text-align: center; }

  /* ── m-success / m-pending / m-failed / пустые состояния ────── */
  .wt-state { padding: 24px; gap: 24px; }
  .wt-state--page { max-width: none; }
  .wt-state__title { font-size: 24px; letter-spacing: -0.48px; }
  .wt-state__sub { font-size: 16px; }
  .wt-state__text { gap: 8px; }

  /* Подушка с глифом — те же пропорции, кадр 127×98 вместо 166×128. */
  .wt-state__icon { width: 127px; height: 98px; border-radius: 29px; }
  .wt-state__pill { top: 37px; width: 127px; height: 61px; }
  .wt-state__glyph { left: -8px; top: -8px; width: 140px; height: 140px; }
  .wt-state__glyph img, .wt-state__glyph svg { width: 115px; height: 115px; }

  .wt-state__order { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 0; }
  .wt-state__order + .wt-state__actions { margin-top: -24px; }
  .wt-state__product { gap: 16px; }
  .wt-state__thumb { width: 74px; height: 54px; }
  .wt-state__names .wt-h3 { font-size: 16px; }
  .wt-state__actions { flex-direction: column; width: 100%; gap: 12px; }
  .wt-state__actions .wt-btn { width: 100%; min-width: 0; }
  .wt-btn--wide { min-width: 0; }

  /* ── m-orders: карточка покупки становится вертикальной ─────────
     Обёртки распускаем: в макете плашка статуса уходит под линию,
     к цене и кнопке, а в разметке она лежит с названием. */
  .wt-orders { gap: 16px; }
  .wt-order {
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 14px; row-gap: 6px;
    padding: 16px;
    align-items: start;
  }
  .wt-order__info, .wt-order__side { display: contents; }
  .wt-order__media { grid-column: 1; grid-row: 1 / span 2; width: 100px; aspect-ratio: 100 / 64; border-radius: var(--wt-r-field); }
  .wt-order__info > .wt-h3   { grid-column: 2; grid-row: 1; }
  .wt-order__info > .wt-meta { grid-column: 2; grid-row: 2; }
  .wt-order__line { display: block; grid-column: 1 / -1; grid-row: 3; margin: 16px 0 0; height: 0; border: 0; border-top: 1px solid var(--wt-line-04); }
  .wt-order__info > .wt-badge { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: 16px; }
  .wt-order__side > .wt-price { grid-column: 1 / -1; grid-row: 5; margin-top: 8px; }
  .wt-order__side > .wt-btn   { grid-column: 1 / -1; grid-row: 6; width: 100%; margin-top: 16px; }
  .wt-loadmore { gap: 12px; flex-wrap: wrap; }

  /* ── m-account-delivery ────────────────────────────────────── */
  .wt-account-nav { gap: 14px; margin-bottom: 20px; font-size: 14px; }
  /* Таблицу выдачи рисует плагин: на 361 её колонки не помещаются,
     поэтому строки разворачиваем в столбик. */
  .wt-delivery :is(table, .shop_table) { font-size: 15px; }
  .wt-delivery :is(table, .shop_table) :is(th, td) { display: block; width: auto; padding: 6px 0; }
  .wt-delivery :is(table, .shop_table) tr { display: block; padding: 8px 0; }
  .wt-delivery :is(table, .shop_table) tr + tr { border-top: 1px solid var(--wt-line-04); }
  .wt-delivery :is(th, td) { border-bottom: 0; }

  /* ── m-login / m-login-error / m-register / m-recovery ─────── */
  .wt-auth { min-height: 0; }
  .wt-auth__form { margin-top: 62px; max-width: none; }
  .wt-auth__title { font-size: 28px; letter-spacing: -0.56px; }
  .wt-auth__head { gap: 6px; }
  .wt-auth__actions { width: 100%; }
  .wt-auth__actions .wt-btn { width: 100%; min-width: 0; }
  .wt-auth__error { font-size: 14px; padding: 12px 14px; }

  /* ── m-terms: текстовая страница ───────────────────────────── */
  .wt-prose { font-size: 16px; }
  .wt-prose h2 { font-size: 22px; letter-spacing: -0.88px; margin: 24px 0 10px; }
  .wt-prose h3 { font-size: 18px; margin: 20px 0 8px; }

  /* ── m-support: карточки вопросов со стрелкой ──────────────── */
  .wt-faq { gap: 12px; }
  .wt-faq__item { padding: 20px; }
  .wt-faq__q { font-size: 16px; cursor: pointer; }
  .wt-faq__a { font-size: 14px; }
  .wt-faq__chevron { display: inline-flex; }
  .wt-help__title { font-size: 20px; }
}

/* Совсем узкие экраны — 320–360. Кадров в макете нет; здесь только
   то, что иначе переполняет строку. */
@media (max-width: 380px) {
  .wt-h1 { font-size: 32px; }
  .wt-page__title { font-size: 28px; }
  .wt-buy__price, .wt-state__title { font-size: 26px; }
  .wt-filters__set--pills .wt-filters__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-pays, .wt-stats { grid-template-columns: minmax(0, 1fr); }
}
