/* RODRICK'S ANGELS — стили сайта */

/* Шрифты лежат в папке fonts/ (свои файлы, без внешних запросов).
   "RA Display" = Rubik One для латиницы + Rubik Black для кириллицы. */
@font-face { font-family: "RA Display"; src: url("../fonts/rubik-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RA Display"; src: url("../fonts/rubik-cyrillic-900-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #fff;
  --fg: #000;
  --muted: #6b6b6b;
  --line: #000;
  --soft: #e9e9e9;
  --accent: #78000d;
  --display: "RA Display", "Rubik One", "Arial Black", sans-serif;
  --text: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(14px, 2.6vw, 40px);
/* --star — звезда с воздухом вокруг (для рамок); --star-solid — без полей (маркеры) */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-11 -11 71 71'%3E%3Cpath d='M22.5002 4.86919C22.9831 3.35577 25.1246 3.35577 25.6075 4.86919L28.5458 14.0783C28.8015 14.8798 29.625 15.3552 30.4469 15.176L39.8914 13.1161C41.4435 12.7775 42.5143 14.6321 41.445 15.807L34.9389 22.9562C34.3726 23.5784 34.3726 24.5293 34.9389 25.1515L41.445 32.3007C42.5143 33.4756 41.4435 35.3302 39.8914 34.9916L30.4469 32.9317C29.625 32.7525 28.8015 33.2279 28.5458 34.0293L25.6075 43.2385C25.1246 44.7519 22.9831 44.7519 22.5002 43.2385L19.5619 34.0294C19.3062 33.2279 18.4827 32.7525 17.6608 32.9317L8.21625 34.9916C6.66415 35.3302 5.59343 33.4756 6.66265 32.3007L13.1688 25.1515C13.7351 24.5293 13.7351 23.5784 13.1688 22.9562L6.66265 15.807C5.59343 14.6321 6.66415 12.7775 8.21625 13.1161L17.6608 15.176C18.4827 15.3552 19.3062 14.8798 19.5619 14.0783L22.5002 4.86919Z'/%3E%3C/svg%3E");
  --star-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 49 49'%3E%3Cpath d='M22.5002 4.86919C22.9831 3.35577 25.1246 3.35577 25.6075 4.86919L28.5458 14.0783C28.8015 14.8798 29.625 15.3552 30.4469 15.176L39.8914 13.1161C41.4435 12.7775 42.5143 14.6321 41.445 15.807L34.9389 22.9562C34.3726 23.5784 34.3726 24.5293 34.9389 25.1515L41.445 32.3007C42.5143 33.4756 41.4435 35.3302 39.8914 34.9916L30.4469 32.9317C29.625 32.7525 28.8015 33.2279 28.5458 34.0293L25.6075 43.2385C25.1246 44.7519 22.9831 44.7519 22.5002 43.2385L19.5619 34.0294C19.3062 33.2279 18.4827 32.7525 17.6608 32.9317L8.21625 34.9916C6.66415 35.3302 5.59343 33.4756 6.66265 32.3007L13.1688 25.1515C13.7351 24.5293 13.7351 23.5784 13.1688 22.9562L6.66265 15.807C5.59343 14.6321 6.66415 12.7775 8.21625 13.1161L17.6608 15.176C18.4827 15.3552 19.3062 14.8798 19.5619 14.0783L22.5002 4.86919Z'/%3E%3C/svg%3E");
  --star-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 57 57'%3E%3Cpath d='M22.5002 4.86919C22.9831 3.35577 25.1246 3.35577 25.6075 4.86919L28.5458 14.0783C28.8015 14.8798 29.625 15.3552 30.4469 15.176L39.8914 13.1161C41.4435 12.7775 42.5143 14.6321 41.445 15.807L34.9389 22.9562C34.3726 23.5784 34.3726 24.5293 34.9389 25.1515L41.445 32.3007C42.5143 33.4756 41.4435 35.3302 39.8914 34.9916L30.4469 32.9317C29.625 32.7525 28.8015 33.2279 28.5458 34.0293L25.6075 43.2385C25.1246 44.7519 22.9831 44.7519 22.5002 43.2385L19.5619 34.0294C19.3062 33.2279 18.4827 32.7525 17.6608 32.9317L8.21625 34.9916C6.66415 35.3302 5.59343 33.4756 6.66265 32.3007L13.1688 25.1515C13.7351 24.5293 13.7351 23.5784 13.1688 22.9562L6.66265 15.807C5.59343 14.6321 6.66415 12.7775 8.21625 13.1161L17.6608 15.176C18.4827 15.3552 19.3062 14.8798 19.5619 14.0783L22.5002 4.86919Z'/%3E%3C/svg%3E");
}

/* MAGAZINE — инверсия: чёрный фон, белые детали */
body.is-dark {
  --bg: #000;
  --fg: #fff;
  --muted: #a8a8a8;
  --line: #fff;
  --soft: #2a2a2a;
  --accent: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-weight: 400;
  line-height: 1.4;
  transition: background-color .35s ease, color .35s ease;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Хедер ---------- */
.hdr {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding-bottom: clamp(6px, 0.9vw, 12px);
  border-bottom: 2px solid var(--line);
}
.hdr__logo { flex: 0 0 62.5%; max-width: 62.5%; display: block; }
.hdr__logo svg { display: block; width: 100%; height: auto; }
.hdr__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  font-family: var(--display);
  font-size: clamp(10px, 1.35vw, 17px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hdr__nav a {
  position: relative;
  padding: 2px 0;
  white-space: nowrap;
}
.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.hdr__nav a:hover::after,
.hdr__nav a.is-active::after { transform: scaleX(1); }

/* ---------- Контент ---------- */
main { flex: 1; padding: clamp(18px, 2.6vw, 36px) 0 clamp(36px, 5vw, 72px); }
.view { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Рамка из звёзд ----------
   Формат 3:4. --nx / --ny — сколько звёзд по ширине и высоте
   (соотношение 3:4, чтобы звёзды оставались ровными: 6×8, 9×12 …) */
.frame {
  --nx: 6;
  --ny: 8;
  --tx: calc(100% / var(--nx));
  --ty: calc(100% / var(--ny));
  position: relative;
  aspect-ratio: 3 / 4;
  color: var(--fg);
  isolation: isolate;
  transition: color .3s ease;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--star) 0 0 / var(--tx) var(--ty) repeat;
          mask: var(--star) 0 0 / var(--tx) var(--ty) repeat;
}
.frame::after {
  content: "";
  position: absolute;
  inset: var(--ty) var(--tx);
  background: var(--bg);
  transition: background-color .35s ease;
}
.frame__pic {
  position: absolute;
  inset: 15%;
  z-index: 1;
  mix-blend-mode: multiply; /* белый фон фото не перекрывает звёзды */
}
.frame__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* квадратное фото обрезается по бокам до 3:4 */
  opacity: 0;
  transition: opacity .4s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.frame__pic img.is-on { opacity: 1; }

/* ---------- Витрина ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 52px) clamp(12px, 2.6vw, 40px);
}
@media (max-width: 899px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { display: block; text-align: center; }
.card .frame { touch-action: pan-y; }
.card__name {
  margin-top: clamp(6px, .8vw, 10px);
  font-family: var(--display);
  font-size: clamp(10.5px, 1.25vw, 15px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: balance;
}
.card__price {
  margin-top: 4px;
  font-size: clamp(10px, 1vw, 12.5px);
  color: var(--fg);
}
@media (hover: hover) {
  .card:hover .frame { color: var(--accent); }
  .card.has-alt:hover .frame__pic img:nth-child(1) { opacity: 0; }
  .card.has-alt:hover .frame__pic img:nth-child(2) { opacity: 1; }
}

.card__new, .pdp__new {
  font-family: var(--display);
  font-size: clamp(8px, .8vw, 10px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #78000d;
}
.card__new { position: absolute; z-index: 2; top: calc(var(--ty) + 3%); left: calc(var(--tx) + 5%); }
.pdp__new { font-size: 11px; margin-bottom: 8px; }

/* ---------- Angels among us: Instagram и Telegram ---------- */
.social { margin-top: clamp(36px, 6vw, 84px); padding-top: clamp(8px, 1.1vw, 14px); border-top: 2px solid var(--line); }
.social__logo { width: 62.5%; }
.social__logo svg { display: block; width: 100%; height: auto; aspect-ratio: 4.7 / 1; }
.social__field { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: clamp(4px, .8vw, 10px); }
.social__dot { aspect-ratio: 1 / 1; background: var(--fg); opacity: .13; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.starbtn { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; color: var(--bg); --c: var(--fg); }
.starbtn::before { content: ""; position: absolute; inset: 0; background: var(--c); transition: background-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1); -webkit-mask: var(--star-solid) center / contain no-repeat; mask: var(--star-solid) center / contain no-repeat; }
.starbtn svg { position: relative; width: 21%; height: 21%; }
.starbtn .cut { stroke: var(--c); transition: stroke .25s ease; }
.starbtn--ig { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.starbtn--tg { grid-column: 9 / span 2; grid-row: 2 / span 2; }
@media (hover: hover) { .starbtn:hover { --c: #78000d; } .starbtn:hover::before { transform: rotate(30deg); } }
@media (max-width: 599px) {
  .social__logo { width: 100%; }
  .social__logo svg { aspect-ratio: 4 / 1; }
  .social__field { grid-template-columns: repeat(6, 1fr); }
  .social__dot:nth-of-type(n+17) { display: none; }
  .starbtn--ig { grid-column: 2 / span 2; grid-row: 1 / span 2; }
  .starbtn--tg { grid-column: 4 / span 2; grid-row: 3 / span 2; }
}

/* ---------- Страница товара ---------- */
.back {
  display: inline-block;
  margin-bottom: clamp(12px, 2vw, 24px);
  font-family: var(--display);
  font-size: clamp(10px, 1.1vw, 13px);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.back:hover { text-decoration: underline; text-underline-offset: 4px; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 799px) { .pdp { grid-template-columns: 1fr; } }

.pdp__gallery { position: sticky; top: 16px; }
@media (max-width: 799px) { .pdp__gallery { position: static; max-width: 460px; margin: 0 auto; width: 100%; } }
.pdp__gallery .frame { --nx: 9; --ny: 12; cursor: pointer; touch-action: pan-y; }
.pdp__gallery .frame__pic { inset: 11%; }
.thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.thumb {
  width: clamp(52px, 7vw, 76px);
  aspect-ratio: 3 / 4;
  border: 2px solid var(--soft);
  background: #fff;
  transition: border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on, .thumb:hover { border-color: var(--fg); }

.pdp__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.pdp__price { margin-top: 12px; font-size: clamp(16px, 1.6vw, 20px); }
.label {
  margin: clamp(22px, 3vw, 34px) 0 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.features { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.features li { padding: 7px 0 7px 26px; border-bottom: 1px solid var(--soft); position: relative; }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  background: currentColor;
  -webkit-mask: var(--star-solid) center / contain no-repeat;
          mask: var(--star-solid) center / contain no-repeat;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 52px;
  height: 46px;
  padding: 0 14px;
  border: 2px solid var(--fg);
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}
.size:hover { background: var(--soft); }
.size.is-on { background: var(--fg); color: var(--bg); }
.size[disabled] {
  border-color: var(--soft);
  color: #b0b0b0;
  text-decoration: line-through;
  cursor: not-allowed;
  background: none;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--fg);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--bg); color: var(--fg); }
.pdp .btn { margin-top: clamp(22px, 3vw, 34px); }

details.chart { margin-top: 22px; border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); }
details.chart summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
details.chart summary::-webkit-details-marker { display: none; }
details.chart summary::after { content: "+"; font-size: 18px; line-height: 1; }
details.chart[open] summary::after { content: "–"; }
.chart__body { padding-bottom: 18px; }
.chart__body img { width: 100%; max-width: 380px; margin: 0 auto 12px; }
table.sz { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
table.sz th { font-family: var(--display); font-weight: 400; font-size: 11px; text-transform: uppercase; padding: 8px 4px; border-bottom: 2px solid var(--fg); }
table.sz td { padding: 8px 4px; border-bottom: 1px solid var(--soft); }
.chart__note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- MAGAZINE ---------- */
.mag__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: clamp(18px, 3vw, 40px);
}
.mag__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 96px);
  line-height: .9;
  text-transform: uppercase;
}
.mag__meta { font-family: var(--display); font-size: clamp(10px, 1.1vw, 13px); text-transform: uppercase; text-align: right; }
/* Папки с фотосессиями */
.folders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px) clamp(14px, 2.6vw, 40px);
}
@media (max-width: 899px) { .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.folder { display: block; text-align: center; }
/* Обложка папки: фото во всю площадь, края уходят в чёрный, по краю звёзды */
.cover {
  --tx: calc(100% / 6);
  --ty: calc(100% / 8);
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
  color: #fff;
  transition: color .3s ease;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cover::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 2%, transparent 30%, transparent 70%, #000 98%),
    linear-gradient(#000 2%, transparent 24%, transparent 76%, #000 98%);
}
.cover__s { position: absolute; z-index: 1; background: currentColor; -webkit-mask: var(--star-big) 0 0; mask: var(--star-big) 0 0; }
.cover__s--t, .cover__s--b { left: 0; right: 0; height: var(--ty); -webkit-mask-size: var(--tx) 100%; mask-size: var(--tx) 100%; }
.cover__s--t { top: 0; } .cover__s--b { bottom: 0; }
.cover__s--l, .cover__s--r { top: var(--ty); bottom: var(--ty); width: var(--tx); -webkit-mask-size: 100% calc(100% / 6); mask-size: 100% calc(100% / 6); }
.cover__s--l { left: 0; } .cover__s--r { right: 0; }
.folder__name {
  margin-top: clamp(8px, 1vw, 14px);
  font-family: var(--display);
  font-size: clamp(12px, 1.5vw, 19px);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-wrap: balance;
}
@media (hover: hover) {
  .folder:hover .cover { color: #78000d; }
  .folder:hover .cover img { transform: scale(1.04); }
}
.mag__logo { margin: 0; width: clamp(190px, 46vw, 600px); line-height: 0; }
.mag__logo svg { display: block; width: 100%; height: auto; }

/* Страница выпуска: ряды по 1, 2 или 3 фото */
.issue { --g: clamp(8px, 1.6vw, 24px); }
.issue__row { display: flex; gap: var(--g); margin-bottom: var(--g); align-items: flex-end; }
.ph {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  display: block;
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .ph:hover img { transform: scale(1.03); } }
.row--1 { margin-top: calc(var(--g) * 3); margin-bottom: calc(var(--g) * 4); }
.row--1 .ph { flex: 0 0 54%; }
.row--1.is-right { flex-direction: row-reverse; }
.row--1.is-center { justify-content: center; }
.row--1.is-center .ph { flex-basis: 66%; }
/* Подписи товаров рядом с крупным кадром */
.issue__items {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .25em;
  align-items: flex-end; text-align: right;
  font-family: var(--display);
  font-size: clamp(16px, 2.5vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
}
.row--1.is-right .issue__items { align-items: flex-start; text-align: left; }
.issue__items a:hover, .issue__cap a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }
/* Подписи под рядом из нескольких фото */
.issue__cap {
  display: flex; gap: var(--g);
  margin: calc(var(--g) * -.5) 0 calc(var(--g) * 2);
  font-family: var(--display);
  font-size: clamp(10px, 1.3vw, 16px);
  text-transform: uppercase;
}
.issue__cap span { flex: 1; min-width: 0; }
.row--wide .ph { aspect-ratio: 4 / 3; }
.issue__end { margin-top: clamp(24px, 4vw, 56px); }
@media (max-width: 699px) {
  .row--1 { margin-top: var(--g); margin-bottom: var(--g); }
  .row--1 .ph, .row--1.is-center .ph { flex-basis: 100%; }
  .issue .row--1 { flex-direction: column; align-items: stretch; }
  .issue .row--1 .ph { flex: none; width: 100%; }
  .issue__items, .row--1.is-right .issue__items { flex: none; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; align-items: flex-start; text-align: left; font-size: 11px; margin: -2px 0 10px; }
}

/* Просмотр фото на весь экран */
.lb {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.96); color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
}
.lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb__stage { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 8px; min-width: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__nav { flex: 0 0 auto; width: clamp(44px, 7vw, 96px); height: 100%; font-family: var(--display); font-size: clamp(18px, 2.4vw, 30px); color: #fff; }
.lb__close { position: absolute; top: 14px; right: 18px; z-index: 1; padding: 8px 0 8px 12px; font-family: var(--display); font-size: 12px; text-transform: uppercase; color: #fff; }
.lb__n { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; font-family: var(--display); font-size: 12px; pointer-events: none; }
@media (max-width: 699px) { .lb__nav { display: none; } .lb__stage { padding: 56px 0; } }

/* ---------- Текстовая страница ---------- */
.doc { max-width: 720px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 36px); text-transform: uppercase; margin: 0 0 16px; }
.doc p { font-size: 15px; color: var(--muted); }

/* ---------- Футер ---------- */
.ftr {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--line);
  font-size: clamp(10px, 1vw, 12px);
}
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Кнопка корзины ---------- */
.cartfab {
  position: fixed;
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px;
  background: var(--fg); color: var(--bg);
  border: 2px solid var(--bg);
  font-family: var(--display); font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
  transform: translateY(140%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s;
}
.cartfab.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
.cartfab__n {
  min-width: 24px; height: 24px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--fg);
  font-size: 12px;
}

/* ---------- Корзина ---------- */
.shade {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.shade.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  --bg: #fff; --fg: #000; --muted: #6b6b6b; --soft: #e9e9e9;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
  width: min(460px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  border-left: 2px solid #000;
  transform: translateX(102%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  border-bottom: 2px solid #000;
  font-family: var(--display); font-size: 18px; text-transform: uppercase;
}
.drawer__close { font-family: var(--display); font-size: 12px; text-transform: uppercase; padding: 8px 0 8px 12px; }
.drawer__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.empty { padding: 56px 0; text-align: center; }
.empty__star { width: 56px; height: 56px; margin: 0 auto 14px; background: #000; -webkit-mask: var(--star-solid) center / contain no-repeat; mask: var(--star-solid) center / contain no-repeat; }
.empty p { margin: 0 0 20px; font-family: var(--display); font-size: 14px; text-transform: uppercase; }

.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--soft); align-items: center; }
.item__pic { width: 76px; height: 76px; border: 1px solid var(--soft); }
.item__pic img { width: 100%; height: 100%; object-fit: contain; }
.item__name { font-family: var(--display); font-size: 12px; line-height: 1.15; text-transform: uppercase; }
.item__size { margin-top: 3px; font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 2px solid #000; }
.qty button { width: 30px; height: 28px; font-family: var(--display); font-size: 14px; }
.qty button:hover { background: var(--soft); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.item__side { text-align: right; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.item__price { font-size: 14px; white-space: nowrap; }
.item__del { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; font-family: var(--display); font-size: 16px; text-transform: uppercase; }
.total__fee { font-size: 12px; color: var(--muted); min-height: 18px; }
.form { display: grid; gap: 10px; margin-top: 8px; }
.form .label { margin: 14px 0 0; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff; color: #000;
  font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: 84px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: #9a9a9a; }
.input.is-bad { border-color: var(--accent); background: #fbf1f3; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #000; }
.seg button { height: 46px; font-family: var(--display); font-size: 11px; text-transform: uppercase; }
.seg button + button { border-left: 2px solid #000; }
.seg button.is-on { background: #000; color: #fff; }
.drawer .btn { margin-top: 8px; }
.note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: #000; color: #fff; border: 2px solid #fff;
  font-family: var(--display); font-size: 12px; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

body.is-locked { overflow: hidden; }

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