:root {
  --bg: #000;
  --surface: #fff;
  --ink: #000;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --accent: #e10600;
  --footer: #0a0a0a;
  --font: "TildaSans", Arial, Helvetica, sans-serif;
  --header-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #000;
  color: #fff;
}

.brand { display: flex; align-items: center; }

.brand-logo {
  height: 32px;
  width: auto;
  filter: invert(1);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.brand:hover .brand-logo {
  opacity: 0.85;
  transform: scale(1.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  line-height: 1;
}

.cart-badge:empty { display: none; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 40px 24px 80px;
}

.hero__logo {
  width: min(82vw, 520px);
  height: auto;
  filter: none;
  shape-rendering: geometricPrecision;
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  animation: heroIn 1.25s var(--ease) 0.2s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1s forwards;
  transition: color 0.25s ease;
}

.hero__scroll:hover { color: #000; }
.hero__scroll svg { animation: bounce 1.6s ease-in-out infinite; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.catalog {
  padding: 64px 16px 96px;
  max-width: 1180px;
  margin: 0 auto;
}

.catalog__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.chip {
  padding: 9px 16px;
  border: 1px solid #111;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.chip:hover { transform: translateY(-1px); }
.chip.is-active,
.chip:hover {
  background: #000;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 14px;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 18px;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 20px;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 1;
  transform: translateY(18px);
  transition: transform 0.7s var(--ease), box-shadow 0.3s ease;
}

.product-card.is-visible {
  transform: none;
}

.product-card__media {
  display: block;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  background: #f4f4f4;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.045);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  flex: 1;
}

.product-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.product-card__price > span,
.product-card__price > s {
  display: inline-block;
  line-height: 1.2;
  vertical-align: baseline;
}

.product-card__price s {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92em;
}

.product-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__actions {
  margin-top: auto;
  padding-top: 10px;
}

.product-card__actions .btn {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #000;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 5px 8px;
}

.badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn.is-adding {
  transform: scale(0.97);
  opacity: 0.85;
}

.icon-btn.is-bump {
  animation: cartBump 0.55s var(--ease);
}

.cart-flyer {
  position: fixed;
  z-index: 120;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #111;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}

@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.btn--ghost {
  background: #fff;
  color: #000;
}

.btn--ghost:hover {
  background: #000;
  color: #fff;
}

.btn--block { width: 100%; }
.btn--promo {
  flex: 0 0 auto;
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--footer);
  color: #c8c8c8;
  padding: 64px 20px;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.footer-copy,
.footer-cta,
.footer-rights { margin: 0 0 14px; }

.footer-cta {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  margin: 28px 0;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
  border-color: #fff;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.nav-drawer.is-open { pointer-events: auto; }

.nav-drawer__panel {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.nav-drawer.is-open .nav-drawer__panel {
  opacity: 1;
  transform: none;
}

.nav-drawer__links {
  display: grid;
  gap: 22px;
  text-align: center;
}

.nav-drawer__links a {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s ease;
}

.nav-drawer.is-open .nav-drawer__links a {
  opacity: 1;
  transform: none;
}

.nav-drawer.is-open .nav-drawer__links a:nth-child(1) { transition-delay: 0.08s; }
.nav-drawer.is-open .nav-drawer__links a:nth-child(2) { transition-delay: 0.14s; }

.nav-drawer__links a:hover { color: #cfcfcf; }

.nav-drawer__social {
  display: flex;
  gap: 22px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease) 0.2s, transform 0.4s var(--ease) 0.2s;
}

.nav-drawer.is-open .nav-drawer__social {
  opacity: 1;
  transform: none;
}

.nav-drawer__social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.nav-drawer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-close--dark { color: #111; position: static; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.cart-drawer.is-open { pointer-events: auto; }

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.22);
  transform: translateX(104%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-drawer.is-open .cart-drawer__panel { transform: none; }

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
}

.cart-drawer__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--muted);
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cart-drawer__count {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75em;
}

.cart-drawer__scroll {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 transparent;
}

.cart-drawer__scroll::-webkit-scrollbar {
  width: 8px;
}

.cart-drawer__scroll::-webkit-scrollbar-thumb {
  background: #c8c8c8;
}

.cart-filled {
  padding: 0 20px 8px;
}

.cart-items {
  padding: 16px 0 8px;
  display: grid;
  gap: 0;
}

.cart-items .empty {
  margin: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(36px);
  pointer-events: none;
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  gap: 0;
  border-bottom-color: transparent;
}

.cart-item .qty-mini span {
  transition: transform 0.18s var(--ease);
}

.cart-item .qty-mini span.is-bump {
  transform: scale(1.18);
}

.cart-item img {
  width: 76px;
  height: 95px;
  object-fit: cover;
  background: #f2f2f2;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item .meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  min-height: 1em;
}

.cart-item .stock-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.cart-item .qty-mini {
  display: inline-flex;
  align-items: center;
  border: 1px solid #111;
  overflow: hidden;
}

.cart-item .qty-mini button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease;
}

.cart-item .qty-mini button:hover { background: #f3f3f3; }
.cart-item .qty-mini button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cart-item .qty-mini span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s var(--ease);
  display: inline-block;
}

.cart-item .side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-item .side strong {
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-item .remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cart-item .remove:hover {
  color: #111;
  transform: scale(1.08);
}

.ship-zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin: 0 0 18px;
  border: 1px solid #111;
}

.ship-zone__btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 62px;
  background: #fff;
  border: 0;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ship-zone__btn + .ship-zone__btn {
  border-left: 1px solid #111;
}

.ship-zone__btn.is-on {
  background: #111;
  color: #fff;
}

.ship-zone__code {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.ship-zone__name {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.europe-fields {
  margin-bottom: 2px;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 20px;
  padding: 14px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.cart-row span {
  min-width: 0;
  flex: 1 1 auto;
}

.cart-row strong {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cart-row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 650;
}

.cart-empty {
  padding: 56px 24px 40px;
  text-align: center;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.cart-empty p {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.cart-empty__hint {
  margin-bottom: 22px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--muted);
}

.cart-empty__btn {
  display: inline-flex;
  min-width: 160px;
  justify-content: center;
  border: 0;
  box-shadow: none;
}

.cart-filled.is-hidden,
.cart-empty.is-hidden { display: none !important; }

.cart-toast {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
}

.cart-toast-global {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  margin: 0;
  padding: 12px 14px;
  background: #111;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast-global.is-visible {
  opacity: 1;
  transform: none;
}

.cart-item .qty-mini button,
.cart-item .remove {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-item .qty-mini button svg,
.cart-item .remove svg,
.cart-item .qty-mini button path,
.cart-item .remove path {
  pointer-events: none;
}

.cart-item.is-busy {
  opacity: 0.7;
}

.promo-msg {
  min-height: 1.2em;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 12px;
}

.promo-msg.is-ok { color: #1b8a3e; font-weight: 600; }
.promo-msg.is-err { color: #c62828; font-weight: 600; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-check a {
  color: inherit;
  text-decoration: underline;
}

.field-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
  min-height: 1.1em;
}

.field-status.is-ok { color: #1b8a3e; }
.field-status.is-err { color: #c62828; }

.field input.is-ok { border-color: #1b8a3e; }
.field input.is-err { border-color: #c62828; }

.is-hidden { display: none !important; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.field > span,
.field-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.field-hint,
.field em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.field > span + .field-hint,
.field > span + em {
  margin-top: -4px;
}

.field-hint--warn {
  color: var(--accent);
}

.field-hint--warn[hidden] {
  display: none;
}

/* Проверка e-mail под полем: текст ошибки и кнопки «Исправить на …» / «Адрес верный». */
.email-check {
  display: grid;
  gap: 8px;
  margin: -6px 0 6px;
}

.email-check[hidden],
.email-check__actions[hidden],
.email-check__btn[hidden] {
  display: none;
}

.email-check .field-hint--warn {
  margin: 0;
}

.email-check__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-check__btn {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.email-check__btn--ghost {
  background: transparent;
  color: #111;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid #111;
  padding: 12px;
  background: #fff;
  min-height: 46px;
  line-height: 1.25;
}

.city-suggest {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #fff;
  border: 1px solid var(--line);
  z-index: 8;
  max-height: 200px;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.city-suggest[hidden] { display: none; }

.city-suggest li {
  padding: 11px 12px;
  cursor: pointer;
  font-size: 14px;
}

.city-suggest li:hover { background: #f5f5f5; }

.map-wrap {
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 240px;
}

.map {
  width: 100%;
  height: 240px;
  background: #ececec;
}

.pickup-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.pickup-list li {
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pickup-list li.is-active {
  border-color: #000;
  background: #f7f7f7;
}

.promo-row {
  display: block;
  margin-bottom: 4px;
}

.promo-field {
  margin-bottom: 0;
}

.promo-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.promo-controls input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 12px;
  line-height: 46px;
}

.promo-controls .btn--promo {
  flex: 0 0 auto;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  transform: none;
  box-shadow: none;
}

.promo-controls .btn--promo:hover {
  transform: none;
  box-shadow: none;
}

.checkout-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}

.checkout-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.checkout-note.is-by {
  color: #111;
}

.customs-mark {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border: 1px dashed #111;
  background:
    repeating-linear-gradient(
      -45deg,
      #f7f7f7,
      #f7f7f7 7px,
      #fff 7px,
      #fff 14px
    );
}

.customs-mark__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customs-mark__code {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
}

.customs-mark__chip {
  flex: 0 0 auto;
  border: 2px solid #111;
  padding: 2px 7px 1px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: rotate(-8deg);
}

.customs-mark p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.pickup-block.is-door .map-wrap,
.pickup-block.is-door .pickup-list {
  display: none;
}

.door-field {
  margin-top: 4px;
}

.product-page {
  display: grid;
  grid-template-columns: 1fr;
  /* колонка с фото не растягивается, когда справа раскрыта размерная сетка */
  align-items: start;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

@media (min-width: 880px) {
  .product-page {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    padding-top: 40px;
  }
}

.product-page__gallery {
  position: relative;
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
}

.gallery-track {
  position: relative;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: background 0.2s ease;
  z-index: 2;
  padding: 0;
  line-height: 1;
  font-size: 22px;
  font-weight: 400;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-50%);
}
.gallery-nav--prev { left: 10px; }
.gallery-nav--next { right: 10px; }

.gallery-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 0 4px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-dots button.is-active {
  background: #000;
  transform: scale(1.15);
}

.product-page__info h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-desc {
  color: #333;
  margin: 0 0 24px;
  white-space: pre-line;
  font-size: 14px;
}

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #111;
  box-sizing: border-box;
  max-width: 100%;
  background: #fff;
  overflow: visible;
}

.qty button,
.qty input {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.qty button {
  width: 46px;
  flex: 0 0 46px;
  min-height: 44px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: #111;
}

.qty input {
  width: 56px;
  flex: 0 0 56px;
  min-height: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  color: #111;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page,
.result-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-page h1,
.result-page h1 {
  margin-top: 0;
  font-weight: 600;
}

.legal-page section { margin-bottom: 28px; }
.legal-page h2 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.legal-page .note { color: var(--muted); }

.pay-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  padding: 24px;
  font-family: var(--font);
}

.pay-card {
  width: min(420px, 100%);
  background: #fff;
  color: #111;
  padding: 28px;
}

.pay-badge {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  margin: 0 0 12px;
}

.pay-amount {
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0 16px;
}

.pay-items { padding-left: 18px; color: #444; }
.pay-note { font-size: 13px; color: var(--muted); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

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

  .hero__logo,
  .product-card,
  .hero__scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

.hero__heading {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.catalog__intro {
  max-width: 720px;
  margin: -12px auto 32px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Размерная сетка категории на странице товара: картинка грузится, только когда её открыли. */
.size-chart {
  margin: -4px 0 16px;
}

.size-chart summary {
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

.size-chart summary::-webkit-details-marker {
  display: none;
}

.size-chart[open] summary {
  margin-bottom: 10px;
}

.size-chart img {
  width: 100%;
  height: auto;
  max-width: 560px;
  border: 1px solid #eee;
}

/* R32: оформление заказа */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn.is-incomplete {
  background: #8a8a8a;
  border-color: #8a8a8a;
}

.btn.is-incomplete:hover {
  transform: none;
  box-shadow: none;
}

.checkout-missing {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.checkout-missing:empty {
  display: none;
}

.is-missing {
  animation: fieldMissing 1.4s var(--ease);
}

@keyframes fieldMissing {
  0%, 60% { box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.35); }
  100% { box-shadow: 0 0 0 3px rgba(225, 6, 0, 0); }
}

[data-phone-warn] {
  margin: -6px 0 0;
}

.pickup-search {
  margin: 0 0 8px;
}

.pickup-search.is-hidden {
  display: none;
}

.pickup-tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.pickup-time {
  font-size: 12px;
  color: var(--muted);
}

.pickup-list li.pickup-more {
  cursor: default;
  border-style: dashed;
  color: var(--muted);
}

.result-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.result-page__actions form {
  margin: 0;
}

.result-page__order {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
}

.result-page__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
}

.result-page__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.result-page__muted {
  color: var(--muted);
  font-size: 13px;
}

.result-page__spinner::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
