/* AGANEMNAN — дизайн-система «патч».
   Всё построено на анатомии нашитого патча: полотно-экрю, строчка-кант,
   лейбл-лента, серифная подпись. Чёрный — ткань, красный — нить. */

:root {
  --bg: #0C0A08;
  --bg-soft: #161210;
  --ecru: #E9E1CE;
  --ecru-2: #DED3BB;
  --ink: #171009;
  --ink-soft: #4A4237;
  --bone: #F6F2E8;
  --bone-dim: rgba(246, 242, 232, 0.68);
  --red: #C9231A;
  --red-hot: #E23325;
  --gold: #C08A2D;
  --line: rgba(246, 242, 232, 0.14);
  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-serif: "Prata", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* зерно ткани поверх всего */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: var(--bone); }

:focus-visible { outline: 2px dashed var(--red-hot); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- патч: полотно + строчка ---------- */

.patch {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.028) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--ecru) 0%, var(--ecru-2) 100%);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 14px 34px rgba(0, 0, 0, 0.35);
}

.patch::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.6px dashed rgba(201, 35, 26, 0.8);
  border-radius: 2px;
  pointer-events: none;
}

/* лейбл-лента (вканый ярлык) */
.tape-label {
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--bone);
  padding: 7px 14px;
  border-radius: 1px;
}

.tape-label::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(250, 247, 241, 0.55);
  pointer-events: none;
}

.tape-label--bone { background: var(--bone); color: #0E0705; }
.tape-label--gold { background: var(--gold); color: #0E0705; }

.tape-label--bone::before,
.tape-label--gold::before { border-color: rgba(14, 7, 5, 0.5); }

/* кнопки-патчи */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 30px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.4px dashed currentColor;
  opacity: 0.55;
  border-radius: 1px;
  pointer-events: none;
}

.btn-red {
  background: var(--red);
  color: var(--bone);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 12px 26px rgba(201, 35, 26, 0.22);
}

.btn-red:hover {
  background: var(--red-hot);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.5), 0 18px 34px rgba(201, 35, 26, 0.3);
}

.btn-red:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--bone-dim); transform: translateY(-2px); }

/* ---------- верхняя навигация ---------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-block: 22px;
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img { width: 30px; height: auto; }

.brand b {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.22em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topnav a { opacity: 0.75; transition: opacity 0.15s, color 0.15s; }
.topnav a:hover { opacity: 1; color: var(--red-hot); }

.topnav .price-chip {
  opacity: 1;
  border: 1px dashed rgba(246, 242, 232, 0.4);
  padding: 8px 12px;
  border-radius: 2px;
}

.topbar--page { position: static; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #191411 0%, var(--bg) 58%);
}

.hero-in {
  padding-block: 120px 90px;
  display: grid;
  justify-items: center;
}

.hero-horse {
  width: clamp(150px, 22vh, 250px);
  filter: drop-shadow(0 18px 46px rgba(201, 35, 26, 0.35));
  animation: horse-in 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-word {
  margin: 8px 0 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(24px, 12vw, 152px);
  max-width: 100%;
  line-height: 1;
  letter-spacing: 0.055em;
  text-indent: 0.055em; /* компенсация трекинга для центровки */
  animation: rise-in 0.9s 0.15s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-slogan {
  margin-top: clamp(18px, 3vh, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 12px 16px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(13px, 2vw, 21px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: rise-in 0.9s 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-slogan .knot {
  width: 9px;
  height: 9px;
  background: var(--red-hot);
  box-shadow: 0 0 18px rgba(226, 51, 37, 0.8);
}

.hero-sub {
  max-width: 560px;
  margin-top: 20px;
  color: var(--bone-dim);
  font-size: 15.5px;
  animation: rise-in 0.9s 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
  animation: rise-in 0.9s 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes horse-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- бегущая лента ---------- */

.tape {
  position: relative;
  background: var(--red);
  color: #120705;
  overflow: hidden;
  padding-block: 13px;
  transform: rotate(-0.6deg) scale(1.01);
  box-shadow: 0 10px 30px rgba(201, 35, 26, 0.25);
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.4px dashed rgba(18, 7, 5, 0.55);
}

.tape::before { top: 5px; }
.tape::after { bottom: 5px; }

.tape-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: tape-run 26s linear infinite;
}

.tape span {
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-inline: 18px;
}

@keyframes tape-run {
  to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */

.section { padding-block: clamp(80px, 12vh, 150px); }

.section-head {
  display: grid;
  gap: 18px;
  justify-items: start;
  margin-bottom: clamp(40px, 6vh, 70px);
}

.section-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-title em {
  font-style: normal;
  color: var(--red-hot);
}

.section-lead { max-width: 620px; color: var(--bone-dim); font-size: 16px; }

/* ---------- качество (экрю-разворот) ---------- */

.quality {
  background:
    repeating-linear-gradient(0deg, rgba(23, 16, 9, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(23, 16, 9, 0.035) 0 1px, transparent 1px 4px),
    var(--ecru);
  color: var(--ink);
}

.quality .section-lead { color: var(--ink-soft); }

.q-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.q-item { display: grid; gap: 16px; }

.q-item:nth-child(odd) { transform: rotate(-0.7deg); }
.q-item:nth-child(even) { transform: rotate(0.55deg) translateY(22px); }

.q-photo {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(23, 16, 9, 0.5), 0 22px 44px rgba(23, 16, 9, 0.28);
}

.q-photo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.6px dashed rgba(246, 242, 232, 0.75);
  border-radius: 2px;
  pointer-events: none;
  mix-blend-mode: screen;
}

.q-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.q-item h3 {
  margin: 6px 0 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
}

.q-item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.q-foot {
  margin-top: clamp(48px, 7vh, 80px);
  padding-top: 26px;
  border-top: 1.6px dashed rgba(23, 16, 9, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- каталог ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 4vw, 56px);
}

.card {
  position: relative;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.card:nth-child(odd) { transform: rotate(-0.55deg); }
.card:nth-child(even) { transform: rotate(0.45deg) translateY(30px); }

.card:hover { transform: rotate(0deg) translateY(-6px); z-index: 2; }

.card:nth-child(even):hover { transform: rotate(0deg) translateY(24px); }

.card-frame { padding: 10px 10px 0; }

.card-photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #C4C7CD;
}

.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.card-photo .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.card:hover .card-photo .alt { opacity: 1; }
.card:hover .card-photo img { transform: scale(1.02); }

.card-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  background: rgba(12, 10, 8, 0.82);
  color: var(--bone);
  padding: 7px 10px;
  border-radius: 1px;
}

.card-colors {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(246, 242, 232, 0.6);
  transition: transform 0.15s ease;
}

/* тап-зона 44px при визуальных 30px */
.swatch::before {
  content: "";
  position: absolute;
  inset: -7px;
}

.swatch:hover { transform: scale(1.12); }

.swatch--black { background: #121212; }
.swatch--white { background: #F3F1EC; }

.swatch.on::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1.6px dashed var(--red-hot);
  border-radius: 50%;
}

.card-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 8px 18px;
}

.card-caption .name {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.3vw, 30px);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.card-caption .tag {
  display: block;
  margin-top: 4px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(23, 16, 9, 0.72);
}

.card-caption .price {
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.8vw, 23px);
  color: var(--red);
  white-space: nowrap;
}

/* ---------- страница товара ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 6vh, 72px);
}

.gallery { display: grid; gap: 14px; }

.gallery-main {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #C4C7CD;
  cursor: zoom-in;
}

.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.thumbs button {
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: #C4C7CD;
  opacity: 0.55;
  transition: opacity 0.15s ease, outline-color 0.15s;
  outline: 1.5px dashed transparent;
  outline-offset: 2px;
}

.thumbs button.on { opacity: 1; outline-color: var(--red-hot); }
.thumbs button:hover { opacity: 1; }
.thumbs button:focus-visible { opacity: 1; outline-color: var(--red-hot); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.p-panel {
  position: sticky;
  top: 24px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 18px;
}

.p-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(23, 16, 9, 0.74);
}

.p-name {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.p-hook { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

.p-desc { margin: 0; color: var(--ink-soft); font-size: 15px; }

.p-row-label {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(23, 16, 9, 0.72);
  margin-bottom: 8px;
}

.p-colors { display: flex; gap: 10px; }

.p-color {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.4px solid rgba(23, 16, 9, 0.25);
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.15s;
}

.p-color .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }

.p-color.on { border: 1.6px dashed var(--red); }
.p-color:not(.on):hover { border-color: var(--ink); }

.sizes { display: flex; gap: 10px; flex-wrap: wrap; }

.size {
  min-width: 56px;
  padding: 13px 0;
  text-align: center;
  border: 1.4px solid rgba(23, 16, 9, 0.25);
  border-radius: 2px;
  background: transparent;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.size:hover { border-color: var(--ink); }

.size.on {
  background: var(--ink);
  color: var(--ecru);
  border-color: var(--ink);
}

.p-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1.6px dashed rgba(23, 16, 9, 0.3);
  padding-top: 18px;
}

.p-price { font-family: var(--f-serif); font-size: 34px; color: var(--ink); }

.p-price small { font-size: 15px; color: var(--ink-soft); letter-spacing: 0.06em; }

/* знак рубля вне Prata (в сабсетах нет U+20BD) */
.rub { font-family: var(--f-body); font-weight: 600; }

.p-panel .btn-red { width: 100%; padding-block: 20px; }

.p-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}

.p-perks li { display: flex; gap: 9px; align-items: baseline; }

.p-perks li::before { content: "✕"; color: var(--red); font-size: 10px; }

/* детали: макро-полоса */
.details-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-block: 10px 0;
}

.details-strip figure { margin: 0; position: relative; border-radius: 3px; overflow: hidden; }
.details-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.details-strip figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

/* соседние модели */
.p-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 8vh, 90px);
}

.p-nav a {
  padding: clamp(28px, 4vw, 46px) var(--gutter);
  display: grid;
  gap: 6px;
  transition: background 0.2s ease;
}

.p-nav a:hover { background: var(--bg-soft); }

.p-nav a + a { border-left: 1px solid var(--line); text-align: right; justify-items: end; }

.p-nav .dir {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.p-nav .to {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.05em;
}

.p-nav a:hover .to { color: var(--red-hot); }

/* ---------- лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 4, 3, 0.94);
  display: none;
  place-items: center;
}

.lightbox.open { display: grid; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--bone);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 18px;
}

.lightbox button:hover { opacity: 1; color: var(--red-hot); }

.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- заказ ---------- */

.order-wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 6vh, 72px);
}

.o-form { display: grid; gap: 22px; }

.o-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }

.o-form legend {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--bone);
}

.o-form legend em { font-style: normal; color: var(--red-hot); }

.field { display: grid; gap: 7px; }

.field label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1.4px solid var(--line);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 14px 15px;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--red-hot); border-style: dashed; }

.field input.err { border-color: var(--red-hot); border-style: solid; }

.field .hint { font-size: 13px; color: #F4574A; display: none; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(246, 242, 232, 0.55); }

.field.show-hint .hint { display: block; }

.f-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay {
  position: relative;
  border: 1.4px solid var(--line);
  border-radius: 2px;
  padding: 16px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pay:hover { border-color: var(--bone-dim); }

.pay input { position: absolute; opacity: 0; }

.pay.on { border: 1.6px dashed var(--red-hot); }

.pay:has(input:focus-visible) { outline: 2px dashed var(--red-hot); outline-offset: 3px; }

.pay b { font-family: var(--f-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; }

.pay span { font-size: 12.5px; color: var(--bone-dim); }

.o-summary { padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; position: sticky; top: 24px; }

.o-item { display: flex; gap: 16px; align-items: center; }

.o-item img { width: 88px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 2px; }

.o-item .n { font-family: var(--f-serif); font-size: 22px; color: var(--ink); letter-spacing: 0.04em; }

.o-item .m { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

.o-size { display: flex; align-items: center; gap: 10px; }

.o-size select {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border: 1.4px solid rgba(23, 16, 9, 0.3);
  background: transparent;
  color: var(--ink);
  border-radius: 2px;
}

.o-rows { display: grid; gap: 9px; border-top: 1.6px dashed rgba(23,16,9,0.3); padding-top: 16px; font-size: 14px; color: var(--ink-soft); }

.o-rows div { display: flex; justify-content: space-between; gap: 10px; }

.o-rows .total { font-family: var(--f-serif); font-size: 24px; color: var(--ink); }

.o-note { font-size: 12px; color: rgba(23, 16, 9, 0.68); }

/* успех заказа */
.o-success {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 4, 3, 0.96);
  display: none;
  place-items: center;
  padding: 20px;
}

.o-success.open { display: grid; }

.o-success .patch { max-width: 520px; padding: clamp(30px, 5vw, 52px); display: grid; gap: 16px; justify-items: center; text-align: center; }

.o-success .num { font-family: var(--f-serif); font-size: clamp(34px, 6vw, 52px); color: var(--ink); }

.o-success p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- футер ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 8vh, 80px) 34px;
}

.footer-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }

.footer .brand img { width: 42px; }

.footer .slogan {
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer .slogan i { font-style: normal; color: var(--red-hot); }

.footer nav { display: grid; gap: 10px; justify-items: start; align-content: start; }

.footer nav b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer nav a { font-family: var(--f-serif); font-size: 17px; letter-spacing: 0.06em; opacity: 0.85; padding-block: 6px; }

.footer nav a:hover { color: var(--red-hot); opacity: 1; }

.footer-bottom {
  margin-top: clamp(36px, 6vh, 60px);
  padding-top: 22px;
  border-top: 1.6px dashed rgba(246, 242, 232, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 12.5px;
  color: var(--bone-dim);
}

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1); }

.rv.on { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
  .product, .order-wrap { grid-template-columns: 1fr; }
  .p-panel, .o-summary { position: relative; top: 0; }
  .q-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .q-item:nth-child(even) { transform: rotate(0.55deg); }
  .footer-in { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cat-grid { grid-template-columns: 1fr; }
  .card:nth-child(even) { transform: rotate(0.45deg); }
  .card:nth-child(even):hover { transform: translateY(-4px); }
  .topbar:not(.topbar--page) .topnav a { display: none; }
  .topbar--page .price-chip { display: none; }
  .details-strip { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .f-2col, .pay-opts { grid-template-columns: 1fr; }
  .p-nav { grid-template-columns: 1fr; }
  .p-nav a + a { border-left: 0; border-top: 1px solid var(--line); }
  /* iOS не зумит поля при font-size >= 16px */
  .field input, .field textarea, .o-size select { font-size: 16px; }
  .o-size select { padding: 11px 14px; }
}

@media (max-width: 420px) {
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .topbar:not(.topbar--page) .price-chip { display: none; }
  .hero-word { letter-spacing: 0.035em; text-indent: 0.035em; }
  .hero-slogan { letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .tape-track { animation: none; }
  .rv { opacity: 1; transform: none; }
}
