/* FM Merch — витрина в цветах канала FastMotion: чёрный, фирменный красный #FF0D35, белый */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, .1);
  --text: #f6f6f4;
  --muted: #8e8e94;
  --red: #ff0d35;
  --red-hover: #ff3a5a;
  --cdek: #1ab248; /* зелёный СДЭК — только для меток и выбора пункта */
  --font: 'Inter Tight', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --radius: 18px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --skew: -12deg; /* наклон, как у логотипа FM */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* атрибут hidden сильнее display у .btn, .field и т. п. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 16px; background: var(--red); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Наклонный жирный шрифт — фирменный приём */
.display, .h2, .hero__title, .thanks__title { font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .92; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 18px; height: 6px; background: var(--red); transform: skewX(var(--skew)); }

/* ——— Кнопки ——— */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; isolation: isolate; transition: color .2s, transform .2s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 6px; transform: skewX(var(--skew)); transition: background-color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover svg { transform: none; }
.btn:active { transform: translateY(1px); }
.btn--red { color: #fff; }
.btn--red::before { background: var(--red); }
.btn--red:hover::before { background: var(--red-hover); }
.btn--ghost::before { border: 2px solid var(--line); }
.btn--ghost:hover::before { border-color: var(--text); }
.btn--block { width: 100%; }

/* ——— Шапка ——— */
.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 11, .78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo-mark { display: block; width: auto; height: 44px; max-width: none; }
.logo__word { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); font-style: italic; font-weight: 900; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.logo--footer .logo-mark { height: 52px; }
.header__links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__links + .cart-button { margin-left: 4px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .2s, background-color .2s; }
.pill:hover { border-color: var(--text); }
.pill svg { width: 17px; height: 17px; }
.pill--icon { justify-content: center; width: 38px; padding: 0; }
.pill--icon svg { width: 18px; height: 18px; }
/* Иконки площадок в фирменных цветах; при наведении цвета меняются местами */
.pill--yt, .pill--tg { --brand: #ff0000; background: var(--brand); border-color: var(--brand); color: #fff; }
.pill--tg { --brand: #26a5e4; }
.pill--yt:hover, .pill--tg:hover, .pill--yt:focus-visible, .pill--tg:focus-visible { background: #fff; border-color: #fff; color: var(--brand); }
.pill--yt svg { width: 20px; height: 20px; fill-rule: evenodd; } /* треугольник «Play» — прорезь, сквозь неё виден фон кнопки */
@media (max-width: 560px) {
  /* логотип и корзина — первой строкой, ссылки FastMotion — второй */
  .header__inner { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .header__links { order: 3; width: 100%; margin-left: 0; gap: 6px; }
  .header__links + .cart-button { margin-left: auto; }
  .pill { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .pill--icon { width: 34px; padding: 0; }
}

/* ——— Первый экран: коротко, без украшений ——— */
.hero { padding-block: clamp(48px, 7vw, 88px) 0; }
.hero__title { font-size: clamp(34px, 5.2vw, 64px); }
.hero__accent { color: var(--red); }
.hero__lead { max-width: 36em; margin-top: 16px; font-size: clamp(15px, 1.3vw, 17px); color: var(--muted); }

/* ——— Секции ——— */
.section { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 110px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.h2 { font-size: clamp(20px, 2vw, 26px); }
.section__count { color: var(--muted); font-weight: 600; }
.empty { padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ——— Каталог ——— */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.card__link { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .35s var(--ease), background-color .3s; }
.card__link:hover { background: var(--surface-2); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 30% 0%, #26262a, #121214); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__noimage { display: grid; place-items: center; width: 100%; height: 100%; font-style: italic; font-weight: 900; font-size: 64px; color: #2a2a2e; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.card.is-closed .card__media img { filter: grayscale(.8) brightness(.7); }

.badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; font-size: 12px; font-weight: 800; font-style: italic; letter-spacing: .08em; text-transform: uppercase; color: #fff; isolation: isolate; }
.badge::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); border-radius: 3px; }
.badge--red::before { background: var(--red); }
.badge--muted::before { background: #3a3a3e; }
.badge--out::before { background: #0a0a0b; box-shadow: inset 0 0 0 1.5px var(--red); }

.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price__now { font-weight: 800; font-size: 18px; }
.price__old { color: var(--muted); font-size: 16px; }
.price__off { padding: 2px 8px; border-radius: 4px; background: rgba(255, 13, 53, .15); color: var(--red); font-weight: 800; font-size: 13px; }

/* ——— Кнопка корзины в шапке ——— */
.cart-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--text); color: var(--bg); transition: transform .2s var(--ease), background-color .2s; }
.cart-button:hover { background: #fff; transform: scale(1.05); }
.cart-button svg { width: 20px; height: 20px; }
.cart-button__count { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.cart-button__count[hidden] { display: none; }

/* ——— Окна: товар по центру, корзина справа ——— */
dialog { padding: 0; border: 0; color: var(--text); background: var(--surface); }
dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s; }
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button svg { width: 20px; height: 20px; }
body:has(dialog[open]) { overflow: hidden; }

.modal { width: min(100vw - 32px, 980px); max-height: min(100dvh - 32px, 860px); border-radius: var(--radius); overflow-y: auto; overscroll-behavior: contain; }
.modal[open] { animation: pop .3s var(--ease); }
.modal__close { position: sticky; top: 12px; float: right; z-index: 2; margin: 12px 12px -52px 0; background: rgba(10, 10, 11, .7); }
.pmodal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pmodal .gallery { padding: 16px; }
.pmodal__info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 32px 32px 16px; }
.pmodal__info > .badge { position: relative; left: 0; top: 0; }
.pmodal__title { font-style: italic; font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: .98; text-transform: uppercase; letter-spacing: -.02em; }
.pmodal__desc { color: #c9c9cc; font-size: 15px; }
.pmodal__desc p + p { margin-top: .7em; }
.pmodal__buy { display: grid; gap: 16px; width: 100%; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.pmodal__note { color: var(--muted); font-size: 13px; }
.btn.is-added::before { background: #1f9d55; }
@media (max-width: 760px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .pmodal { grid-template-columns: 1fr; }
  .pmodal .gallery { padding: 0; }
  .pmodal .gallery__main { border-radius: 0; }
  .pmodal .gallery__thumbs { padding: 0 16px; }
  .pmodal__info { padding: 20px 16px 32px; }
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.gallery__main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--bg); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; width: 64px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; opacity: .5; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { outline-color: var(--red); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(100vw, 440px); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.drawer:not([open]) { display: none; }
.drawer[open] { animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-style: italic; font-weight: 900; font-size: 22px; text-transform: uppercase; }
.drawer__view { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.drawer__view[hidden] { display: none; }
.drawer__empty { margin: auto 0; color: var(--muted); text-align: center; }
.drawer__empty[hidden] { display: none; }
.drawer__alert { padding: 12px 14px; border-radius: 10px; background: rgba(255, 13, 53, .12); color: #ffb3c0; font-size: 14px; font-weight: 600; }
.drawer__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer__foot[hidden] { display: none; }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); }
.drawer__total b { color: var(--text); font-style: italic; font-weight: 900; font-size: 24px; }
.drawer__note { color: var(--muted); font-size: 13px; }

.lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--bg); }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media .card__noimage { font-size: 18px; }
.line__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.line__title { font-weight: 700; line-height: 1.25; }
.line__meta { color: var(--muted); font-size: 13px; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__remove { width: 34px; height: 34px; }
.line__remove svg { width: 18px; height: 18px; }

.checkout .back { align-self: flex-start; }
.done { align-items: center; justify-content: center; text-align: center; }
.done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; }
.done__icon svg { width: 30px; height: 30px; }
.done__title { font-style: italic; font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; }
.done__text { color: #c9c9cc; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.back svg { transform: rotate(180deg); }
.back:hover { color: var(--text); }

/* ——— Форма предзаказа ——— */
.order__closed { padding: 14px 16px; border-radius: 12px; background: rgba(255, 13, 53, .12); color: #ffb3c0; font-weight: 600; }
.order__closed { width: 100%; background: var(--bg); color: var(--muted); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-weight: 700; font-size: 14px; }
.field__label small { font-weight: 500; color: var(--muted); }
.field__error { color: #ff6b85; font-size: 14px; font-weight: 500; }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #5b5b61; }
.input:hover { border-color: rgba(255, 255, 255, .22); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 13, 53, .25); }
.input.is-invalid { border-color: #ff6b85; }

.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.size:hover span { border-color: var(--text); }
.size input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
/* размера нет на складе — можно предзаказать */
.size--out span { border-style: dashed; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.size--out input:checked + span { background: transparent; border: 1px solid var(--red); color: var(--text); text-decoration: none; }

.qty { display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { display: grid; place-items: center; width: 48px; height: 50px; transition: background-color .2s; }
.qty button:hover { background: var(--surface-2); }
.qty svg { width: 18px; height: 18px; }
.qty input { width: 56px; height: 50px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.qty--sm button { width: 34px; height: 34px; }
.qty--sm svg { width: 15px; height: 15px; }
.qty__value { min-width: 28px; font-weight: 800; text-align: center; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #b9b9bd; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ——— Спасибо / 404 ——— */
.thanks { padding-block: clamp(64px, 10vw, 128px); }
.thanks__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.thanks__title { font-size: clamp(28px, 4vw, 44px); }
.thanks__lead { max-width: 34em; color: #c9c9cc; font-size: 18px; }

/* ——— Подвал ——— */
.footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; }
.footer__text { max-width: 40em; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.footer__links a:hover { border-color: var(--text); }
.footer__links svg { width: 18px; height: 18px; color: var(--red); }
.footer__copy { grid-column: 1 / -1; color: #5b5b61; font-size: 13px; }
.footer__docs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.footer__docs a { color: var(--muted); }
.footer__docs a:hover { color: var(--text); }

/* ——— Юридические страницы ——— */
.doc { padding-block: clamp(32px, 6vw, 72px); }
.doc__inner { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; align-items: start; }
.doc__nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.doc__nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.doc__nav a:hover { color: var(--text); background: var(--surface); }
.doc__nav a.is-current { color: var(--text); background: var(--surface-2); }
.doc__body { font-size: 16px; line-height: 1.65; color: #d7d7d4; }
.doc__body h2 { margin: 36px 0 12px; color: var(--text); font-size: 20px; font-weight: 800; }
.doc__body p, .doc__body ul, .doc__body ol, .doc__table { margin: 0 0 14px; }
.doc__body ul, .doc__body ol { padding-left: 22px; }
.doc__body li { margin-bottom: 6px; }
.doc__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.doc__title { margin-bottom: 6px; color: var(--text); font-style: italic; font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; text-transform: uppercase; }
.doc__date { color: var(--muted); font-size: 14px; }
.doc__draft { padding: 10px 14px; border-radius: 10px; background: rgba(255, 13, 53, .12); color: #ffb3c0; font-size: 14px; }
.doc__todo { padding: 0 4px; border-radius: 4px; background: rgba(255, 200, 0, .2); color: #ffd666; }
.doc__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc__table th, .doc__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__table thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.doc__table--keys th { width: 160px; color: var(--muted); font-weight: 600; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.drawer__note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 820px) {
  .doc__inner { grid-template-columns: 1fr; gap: 24px; }
  .doc__nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr; } }

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

/* ——— Оплата: кнопка T-Pay в фирменном жёлтом Т-Банка, страница заказа, заглушка банка ——— */
.btn--tpay { color: #1f1f1f; font-style: normal; }
.btn--tpay::before { background: #ffdd2d; transform: none; border-radius: 12px; }
.btn--tpay:hover::before { background: #fcc521; }
.tpay-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #1f1f1f; color: #ffdd2d; font-weight: 900; font-style: normal; font-size: 14px; }
.done__pay { display: grid; gap: 10px; width: 100%; }
.done__pay[hidden] { display: none; }
.done__pay a { color: var(--text); text-decoration: underline; }
.paypage { padding-block: clamp(40px, 7vw, 88px); }
.paypage__inner { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.paypage__title { font-style: italic; font-weight: 900; font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; line-height: 1; }
.paypage__total { padding-top: 12px; border-top: 1px solid var(--line); }
.paypage__note { color: var(--muted); font-size: 14px; }
.paypage form { width: 100%; }
.lines--page { border-top: 1px solid var(--line); }
.line--page { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 14px; }
.paystate { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.paystate svg { width: 20px; height: 20px; flex: none; }
.paystate--ok { background: rgba(31, 157, 85, .15); color: #7fe0a8; }
.paystate--wait { background: rgba(255, 221, 45, .12); color: #ffe27a; }
.paystate--fail { background: rgba(255, 13, 53, .12); color: #ffb3c0; }
.paystate--muted { background: var(--surface); color: var(--muted); }
.mockbank { align-items: stretch; padding: 28px; border: 2px dashed rgba(255, 221, 45, .5); border-radius: var(--radius); background: var(--surface); }
.mockbank__badge { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: #ffdd2d; color: #1f1f1f; font-weight: 800; font-size: 13px; }
.mockbank__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.mockbank__actions { display: grid; gap: 10px; }
.muted { color: var(--muted); }

/* ——— Заказ из наличия: группы корзины, шаги, доставка, карта СДЭК ——— */
.badge--light::before { background: #f6f6f4; }
.badge--light { color: #0a0a0b; }
.groups { display: grid; gap: 22px; }
.groups__why { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.group { display: grid; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group__title { font-style: italic; font-weight: 900; font-size: 18px; text-transform: uppercase; }
.drawer__step { font-style: italic; font-weight: 900; font-size: 20px; text-transform: uppercase; }
.stepper { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.stepper li { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; counter-increment: step; }
.stepper li::before { content: counter(step) '. '; }
.stepper li.is-current { border-color: var(--red); color: var(--text); }
.stepper li.is-done { border-color: rgba(255, 13, 53, .45); }
.field__hint { color: var(--muted); font-size: 13px; }
.methods { gap: 8px; }
.method { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.method:hover { border-color: rgba(255, 255, 255, .25); }
.method:has(input:checked) { border-color: var(--red); background: rgba(255, 13, 53, .07); }
.method input { width: 18px; height: 18px; accent-color: var(--red); }
.method small { color: var(--muted); font-size: 14px; }
.cdek, .post { display: grid; gap: 14px; }
.cdek[hidden], .post[hidden] { display: none; }
.city { position: relative; }
.city__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; margin: 4px 0 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.city__list li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.city__list li span { color: var(--muted); font-size: 13px; }
.city__list li.is-active, .city__list li:hover { background: rgba(255, 13, 53, .15); }
.chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: rgba(255, 255, 255, .3); }
.chip.is-active { border-color: var(--text); background: var(--text); color: var(--bg); }

/* Кнопка «Выбрать пункт на карте» и выбранный пункт на шаге «Доставка» */
.pvz-open { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 12px; text-align: left; transition: border-color .2s, background-color .2s; }
.pvz-open:hover { border-color: var(--cdek); background: rgba(26, 178, 72, .08); }
.pvz-open > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.pvz-open small { color: var(--muted); font-size: 13px; }
.pvz-open__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cdek); color: #fff; }
.pvz-open__icon svg { width: 20px; height: 20px; }
.pvz-open__arrow { width: 20px; height: 20px; color: var(--muted); }
.pvz-open--small { padding: 12px 14px; border-style: solid; }
.pvz-open--small small, .pvz-open--small .pvz-open__icon { display: none; }
.pvz-choice { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--cdek); border-radius: 12px; background: rgba(26, 178, 72, .08); }
.pvz-choice[hidden] { display: none; }
.pvz-choice__price { margin-top: 4px; color: #6fdc92; font-weight: 700; }
.pvz-tag { justify-self: start; align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: rgba(26, 178, 72, .16); color: #6fdc92; font-size: 12px; font-weight: 700; }
.pvz-tag--box { background: rgba(255, 255, 255, .1); color: var(--text); }
.pvz__meta { color: var(--muted); font-size: 13px; }

/* Окно выбора пункта: слева список и карточка, справа карта; на телефоне карта сверху */
.pvz { width: min(100vw - 32px, 1240px); max-width: none; height: min(100dvh - 32px, 860px); max-height: none; border-radius: var(--radius); overflow: hidden; }
.pvz[open] { display: grid; grid-template-columns: 380px 1fr; animation: pop .25s var(--ease); }
.pvz__side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.pvz__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; }
.pvz__title { font-style: italic; font-weight: 900; font-size: 22px; text-transform: uppercase; }
.pvz__browse, .pvz__detail { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 0 20px 20px; overflow-y: auto; }
.pvz__browse[hidden], .pvz__detail[hidden], .pvz__tools[hidden], .pvz__cities[hidden] { display: none; }
.pvz__cities { display: flex; flex-wrap: wrap; gap: 6px; }
.pvz__tools { display: grid; gap: 10px; }
.pvz__filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search .input { padding-left: 42px; }
.pvz__status { color: var(--muted); font-size: 13px; }
.pvz__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pvz__list button { display: grid; gap: 4px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-align: left; transition: border-color .2s, background-color .2s; }
.pvz__list button:hover { border-color: rgba(255, 255, 255, .3); background: var(--surface-2); }
.pvz__list li.is-picked button { border-color: var(--cdek); background: rgba(26, 178, 72, .08); }
.pvz__list b { font-weight: 600; line-height: 1.35; }
.pvz__more { padding: 8px 4px; color: var(--muted); font-size: 13px; }
.pvz__detail .back { align-self: flex-start; }
.pvz__address { font-size: 22px; font-weight: 800; line-height: 1.25; }
.pvz__city { color: var(--muted); font-size: 14px; }
.pvz__facts { display: grid; gap: 12px; margin: 4px 0 0; }
.pvz__facts dt { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pvz__facts dd { margin: 2px 0 0; font-size: 15px; }
.pvz__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pvz__badges:empty { display: none; }
.pvz__badges span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.pvz__choose { position: sticky; bottom: -20px; margin: auto -20px -20px; padding: 16px 20px 20px; background: linear-gradient(transparent, var(--surface) 30%); }
.pvz__map { position: relative; min-height: 0; background: #e8e6e1; }
.pvz__map .leaflet-control-attribution { font-size: 10px; }

/* Метки СДЭК: зелёная капля, постамат — квадрат; выбранная — фирменная красная */
.pvz-pin { background: none; border: 0; }
.pvz-pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--cdek); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transform: rotate(-45deg); transform-origin: center; transition: transform .15s; }
.pvz-pin span::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.pvz-pin--box span::after { border-radius: 2px; }
.pvz-pin:hover span { transform: rotate(-45deg) scale(1.12); }
.pvz-pin.is-active { z-index: 1000 !important; }
.pvz-pin.is-active span { background: var(--red); transform: rotate(-45deg) scale(1.25); }
.pvz-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(26, 178, 72, .28); }
.pvz-cluster span { display: grid; place-items: center; width: calc(100% - 8px); height: calc(100% - 8px); border: 2px solid #fff; border-radius: 50%; background: var(--cdek); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }

@media (max-width: 760px) {
  .pvz { width: 100vw; height: 100dvh; border-radius: 0; }
  .pvz[open] { grid-template-columns: 1fr; grid-template-rows: 42dvh 1fr; }
  .pvz__map { grid-row: 1; }
  .pvz__side { grid-row: 2; border-right: 0; border-top: 1px solid var(--line); }
  .pvz__head { position: absolute; top: 10px; right: 10px; z-index: 1001; padding: 0; }
  .pvz__head .pvz__title { display: none; }
  .pvz__head .icon-button { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
  .pvz__browse, .pvz__detail { padding-top: 14px; }
  .pvz__address { font-size: 19px; }
}
.summary { display: grid; gap: 16px; }
.summary__items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.summary__items li { display: flex; justify-content: space-between; gap: 12px; }
.summary__who { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.summary__who dt { color: var(--muted); }
.summary__who dd { margin: 0; }
.receipt__meta { display: grid; gap: 8px; margin: 0; }
.receipt__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.receipt__meta dt { color: var(--muted); }
.receipt__meta dd { margin: 0; }
.receipt__items { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipt__items th { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; text-align: left; font-size: 13px; }
.receipt__items td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt__items td:last-child, .receipt__items th:last-child { text-align: right; padding-right: 0; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
@media print { .header, .footer, .back, .mockbank__badge { display: none; } body { background: #fff; color: #000; } }
.btn__note { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .85; }

/* Промокод в корзине */
.promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.promo .input { text-transform: uppercase; }
.promo .input[readonly] { color: #6fdc92; }
.promo .btn { min-height: 48px; padding: 0 18px; }
.promo__status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 1em; color: var(--muted); font-size: 13px; }
.promo__status:empty { display: none; }
.promo__status.is-ok { color: #6fdc92; }
.promo__status.is-error { color: #ff8a9e; }
.promo__remove { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.promo__remove:hover { background: var(--surface-2); color: var(--text); }
.group__old { margin-right: 6px; color: var(--muted); font-weight: 500; }
.group__promo, .summary__promo { color: #6fdc92; font-size: 14px; }
