@font-face {
  font-family: "MosboguJP";
  src: url("../fonts/mosbogu-jp.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   mosbogu v2 — дизайн-система «сумидо»
   Тёмная база, индиго, киноварь, тёплая бумага, золотые волоски.
   ============================================================ */

:root {
  /* поверхности */
  --bg: #080A0F;
  --surface-1: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-3: rgba(255, 255, 255, 0.085);
  --glass: rgba(12, 16, 26, 0.72);

  /* линии */
  --line: rgba(233, 224, 205, 0.11);
  --line-strong: rgba(233, 224, 205, 0.2);
  --gold: #C9A96A;
  --gold-dim: rgba(201, 169, 106, 0.42);

  /* текст */
  --paper: #EDE6D6;
  --paper-2: rgba(237, 230, 214, 0.66);
  --paper-3: rgba(237, 230, 214, 0.4);

  /* акценты */
  --indigo: #2E4A8C;
  --indigo-lt: #4B6FC4;
  --indigo-glow: rgba(75, 111, 196, 0.28);
  --vermilion: #D0452C;
  --vermilion-lt: #EC6242;

  /* геометрия */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --rail-w: 242px;
  --cart-w: 348px;
  --head-h: 74px;

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "MosboguJP", "Noto Serif JP", "Yu Mincho", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--sans);
  color: var(--paper);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ——— Фон: слои ——— */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* градиентная дымка */
.bg-layer--wash {
  background:
    radial-gradient(1100px 720px at 12% -8%, rgba(58, 92, 176, 0.30), transparent 62%),
    radial-gradient(900px 640px at 92% 8%, rgba(38, 64, 128, 0.22), transparent 60%),
    radial-gradient(1200px 800px at 78% 108%, rgba(160, 52, 34, 0.18), transparent 62%),
    linear-gradient(180deg, #0B0F18 0%, #080A0F 46%, #06070B 100%);
}

/* сэйгайха — волны, очень тихо */
.bg-layer--wave {
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 50% 100%, transparent 30%, rgba(201, 169, 106, 0.9) 31%, transparent 32%),
    radial-gradient(circle at 50% 100%, transparent 46%, rgba(201, 169, 106, 0.7) 47%, transparent 48%),
    radial-gradient(circle at 50% 100%, transparent 62%, rgba(201, 169, 106, 0.55) 63%, transparent 64%);
  background-size: 96px 48px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 42%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 42%);
  animation: tide 120s linear infinite;
}
@keyframes tide {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 960px 0, 960px 0, 960px 0; }
}

/* зерно бумаги васи */
.bg-layer--grain {
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

/* огромный водяной знак-мон */
.bg-layer--mon {
  opacity: 0.042;
  display: grid;
  place-items: center;
  transform: translate(24%, 12%);
}
.bg-layer--mon svg { width: min(78vh, 900px); height: auto; }

/* ============================================================
   Каркас: одно окно, скроллится только каталог
   ============================================================ */
/* без z-index: иначе .app создаёт свой контекст наложения
   и выдвижная корзина уходит под затемнение */
.app {
  position: relative;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.main {
  display: grid;
  grid-template-columns: var(--rail-w) 56px minmax(0, 1fr) var(--cart-w);
  min-height: 0;
  min-width: 0;
}

/* ——— вертикальный корешок: 縦書き и печать ——— */
.spine {
  position: relative;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 0 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(46, 74, 140, 0.14), transparent 42%);
}
.spine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-dim) 22%, var(--gold-dim) 74%, transparent);
}
.spine__jp {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(201, 169, 106, 0.28);
  animation: spineIn 0.55s var(--ease) both;
}
.spine__rule { width: 1px; flex: 0 0 26px; background: linear-gradient(180deg, var(--gold-dim), transparent); }
.spine__ru {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--paper-3);
  animation: spineIn 0.55s 0.06s var(--ease) both;
}
.spine__seal {
  margin-top: auto;
  width: 34px; height: 34px;
  opacity: 0.9;
  filter: drop-shadow(0 3px 10px rgba(208, 69, 44, 0.35));
}
.spine__n {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(237, 230, 214, 0.28);
}
@keyframes spineIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Шапка
   ============================================================ */
.head {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 19, 32, 0.9), rgba(9, 12, 20, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}
.head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 18%, var(--gold-dim) 82%, transparent);
}

.brand {
  user-select: none;
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand__mon {
  width: 44px; height: 44px;
  filter: drop-shadow(0 3px 10px rgba(75, 111, 196, 0.35));
  transition: transform 0.7s var(--ease);
}
.brand:hover .brand__mon { transform: rotate(-14deg); }
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  background: linear-gradient(92deg, #F3ECDC 0%, #D8CDB4 44%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.brand__sub b { color: var(--vermilion-lt); font-weight: 600; }

.head__spacer { flex: 1; }

.search {
  position: relative;
  width: min(320px, 30vw);
  flex-shrink: 1;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--paper);
  font: 500 13.5px/1 var(--sans);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--paper-3); }
.search input:focus {
  border-color: rgba(75, 111, 196, 0.6);
  background: rgba(75, 111, 196, 0.09);
  box-shadow: 0 0 0 3px var(--indigo-glow);
}
.search svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--paper-3);
  pointer-events: none;
}

.head__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--paper-3);
  text-transform: uppercase;
}
.head__meta b { color: var(--paper-2); font-weight: 600; letter-spacing: 0.08em; }

.cart-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(135deg, rgba(46, 74, 140, 0.55), rgba(20, 28, 50, 0.55));
  color: var(--paper);
  font: 700 13px/1 var(--sans);
  cursor: pointer;
}
.cart-toggle b { color: var(--gold); }
.cart-toggle__ico { width: 17px; height: 17px; display: block; }

/* ============================================================
   Графическое меню категорий
   ============================================================ */
.rail {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.55), rgba(7, 9, 15, 0.2));
}

.rail__label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
  padding: 2px 8px 6px;
}

.cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper-2);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: background 0.22s var(--ease), border-color 0.22s, color 0.22s, transform 0.22s var(--ease);
  overflow: hidden;
}
.cat::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--vermilion);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.cat:hover { background: var(--surface-1); color: var(--paper); }
.cat.is-active {
  background: linear-gradient(100deg, rgba(46, 74, 140, 0.42), rgba(46, 74, 140, 0.08));
  border-color: rgba(75, 111, 196, 0.34);
  color: var(--paper);
}
.cat.is-active::before { transform: scaleY(1); }
.cat.is-active .cat__icon { color: var(--gold); }

.cat__icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  color: var(--paper-2);
  transition: color 0.22s, transform 0.35s var(--ease);
}
.cat:hover .cat__icon { transform: translateY(-2px); }
.cat__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat__name { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.cat__note {
  font-size: 10.5px;
  color: var(--paper-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat__jp {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(237, 230, 214, 0.22);
  flex-shrink: 0;
}
.cat.is-active .cat__jp { color: var(--gold-dim); }

.rail__foot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--paper-3);
}
.rail__foot b { display: block; color: var(--paper-2); font-size: 11.5px; margin-bottom: 3px; }
.rail__foot a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold-dim); }

/* ============================================================
   Каталог
   ============================================================ */
.catalog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
}

.filters {
  padding: 12px 22px 11px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.5), transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filters__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.filters__title {
  position: relative;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
/* мазок туши под названием раздела */
.filters__title::after {
  content: "";
  position: absolute;
  left: -3px; right: -9px; bottom: -7px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 6.4c18-3.4 34-4.2 61-4.6 34-.5 61 1.6 96 1.9 27 .2 49-1.1 74-2.4 24-1.3 44-1.1 65 .6-19 1.4-38 2.6-63 3.6-27 1.1-52 .6-83 .2-33-.4-62-1.4-92-.4-21 .7-38 2.2-58 5.1z' fill='%23C9A96A'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.7;
  pointer-events: none;
}
.filters__jp { font-family: var(--serif); font-size: 15px; color: var(--gold-dim); }
.filters__count { font-size: 12px; color: var(--paper-3); }
.filters__reset {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--vermilion-lt);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  padding: 4px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.filters__reset.is-on { opacity: 1; pointer-events: auto; }
.filters__reset:hover { text-decoration: underline; }

/* фильтры текут в общий поток — вся система видна за 2–3 строки */
.fflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  min-width: 0;
}
.fgroup {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fgroup__label {
  flex: 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-3);
  white-space: nowrap;
}
.fgroup__chips { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }

.frow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.frow__label {
  flex: 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-3);
  white-space: nowrap;
}

.chip {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--paper-2);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--paper); background: var(--surface-2); }
.chip.is-on {
  background: linear-gradient(135deg, var(--indigo) 0%, #24386B 100%);
  border-color: rgba(201, 169, 106, 0.5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(46, 74, 140, 0.45);
}

/* цена + сортировка */
.frow--tail {
  gap: 14px;
  padding-top: 8px;
  border-top: 1px dashed rgba(233, 224, 205, 0.08);
}
.price-ctl { display: flex; align-items: center; gap: 10px; }
.price-ctl__val {
  font: 700 12.5px/1 var(--sans);
  color: var(--gold);
  min-width: 96px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 190px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--indigo-lt) var(--fill, 100%), rgba(255, 255, 255, 0.12) var(--fill, 100%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #0B0F18;
  box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.22);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #0B0F18;
  cursor: pointer;
}

.sort {
  height: 28px;
  padding: 0 30px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23EDE6D6' stroke-opacity='.55' stroke-width='1.6'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 10px center / 11px;
  color: var(--paper-2);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.sort option { background: #10141F; color: var(--paper); }

/* ——— сетка товаров ——— */
.grid-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 18px 22px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 106, 0.3) transparent;
}
.grid-wrap::-webkit-scrollbar { width: 9px; }
.grid-wrap::-webkit-scrollbar-track { background: transparent; }
.grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 106, 0.26);
  border-radius: 9px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.grid-wrap::-webkit-scrollbar-thumb:hover { background: rgba(201, 169, 106, 0.5); background-clip: content-box; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 14px;
}

/* ——— карточка ——— */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.72), rgba(10, 13, 22, 0.72));
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
  animation: rise 0.42s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 106, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 106, 0.08);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0C1019;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--ip, 50% 50%);
  filter: grayscale(0.9) contrast(1.05) brightness(1.02);
  transform: scale(var(--iz, 1.02));
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.card:hover .card__media img {
  transform: scale(calc(var(--iz, 1.02) + 0.06));
  filter: grayscale(0.3) contrast(1.06) brightness(1.08);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(52, 84, 158, 0.42), rgba(14, 19, 32, 0.06) 58%, rgba(150, 52, 34, 0.24)),
    linear-gradient(0deg, rgba(8, 10, 15, 0.72), transparent 46%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* три тона дуотона, чтобы стена карточек не читалась одинаковой */
.card--t1 .card__media::after {
  background:
    linear-gradient(200deg, rgba(38, 62, 122, 0.5), rgba(20, 30, 48, 0.08) 62%, rgba(96, 84, 48, 0.3)),
    linear-gradient(0deg, rgba(8, 10, 15, 0.74), transparent 44%);
}
.card--t2 .card__media::after {
  background:
    linear-gradient(120deg, rgba(140, 56, 38, 0.34), rgba(16, 20, 34, 0.06) 52%, rgba(46, 74, 140, 0.5)),
    linear-gradient(0deg, rgba(8, 10, 15, 0.7), transparent 48%);
}
.card__glyph {
  position: absolute;
  right: 7px; bottom: 4px;
  width: 42px; height: 42px;
  color: rgba(237, 230, 214, 0.32);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card__glyph { opacity: 0; transform: translateY(6px); }

/* печать-ханко проявляется при наведении */
.card__seal {
  position: absolute;
  right: 9px; bottom: 7px;
  width: 38px; height: 38px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.62) rotate(-16deg);
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease);
  filter: drop-shadow(0 3px 10px rgba(208, 69, 44, 0.5));
}
.card:hover .card__seal { opacity: 1; transform: none; }
.card__kanji {
  position: absolute;
  left: 11px; bottom: 4px;
  font-family: var(--serif);
  font-size: 21px;
  color: rgba(237, 230, 214, 0.4);
  letter-spacing: 0.06em;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.card__badge {
  position: absolute;
  left: 9px; top: 9px;
  z-index: 3;
  max-width: 58%;
  padding: 4px 9px;
  border-radius: 999px;
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, var(--vermilion), #A5341F);
  color: #FFF3EC;
  box-shadow: 0 3px 12px rgba(208, 69, 44, 0.4);
}
.card__stock {
  position: absolute;
  right: 9px; top: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 7px;
  border-radius: 999px;
  font: 600 9.5px/1 var(--sans);
  background: rgba(8, 11, 18, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot--in { background: #4FBF8B; box-shadow: 0 0 8px rgba(79, 191, 139, 0.8); }
.dot--low { background: var(--gold); box-shadow: 0 0 8px rgba(201, 169, 106, 0.8); }
.dot--order { background: var(--indigo-lt); box-shadow: 0 0 8px rgba(75, 111, 196, 0.8); }

.card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card__name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
}
.card__sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--paper-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__specs { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  font: 600 10px/1.25 var(--sans);
  color: var(--paper-3);
}

.sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.size {
  min-width: 30px;
  height: 25px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-3);
  font: 700 11px/1 var(--sans);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.size:hover { border-color: var(--line-strong); color: var(--paper); }
.size.is-on {
  background: rgba(75, 111, 196, 0.24);
  border-color: var(--indigo-lt);
  color: var(--paper);
}

/* цена строкой, кнопка во всю ширину — одинаково на всех экранах */
.card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 4px;
}
.card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
  min-width: 0;
}
.card__price b {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.card__price s { font-size: 11px; color: var(--paper-3); }

.add {
  width: 100%;
  justify-content: center;
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 106, 0.42);
  background: linear-gradient(135deg, rgba(46, 74, 140, 0.85), rgba(26, 40, 78, 0.85));
  color: var(--paper);
  font: 700 12px/1 var(--sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.add svg { width: 12px; height: 12px; flex: 0 0 12px; }
.add:hover {
  background: linear-gradient(135deg, var(--vermilion), #A5341F);
  border-color: var(--vermilion-lt);
  box-shadow: 0 6px 20px rgba(208, 69, 44, 0.4);
  transform: translateY(-1px);
}
.add:active { transform: translateY(0) scale(0.97); }
.add.is-done {
  background: linear-gradient(135deg, #2E7D5B, #1F5C42);
  border-color: #4FBF8B;
}

.empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  text-align: center;
  color: var(--paper-3);
}
.empty svg { width: 62px; height: 62px; opacity: 0.35; margin-bottom: 14px; }
.empty h3 { margin: 0 0 6px; font-size: 15px; color: var(--paper-2); font-weight: 700; }
.empty p { margin: 0; font-size: 12.5px; }

/* ============================================================
   Корзина
   ============================================================ */
.cart {
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.82), rgba(7, 9, 15, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.cart__head {
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart__title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.cart__jp { font-family: var(--serif); font-size: 13px; color: var(--gold-dim); }
.cart__n {
  margin-left: auto;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--vermilion);
  color: #fff;
  font: 700 11px/22px var(--sans);
  text-align: center;
}
.cart__close {
  display: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--paper-2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.cart__list {
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 106, 0.28) transparent;
}
.cart__list::-webkit-scrollbar { width: 8px; }
.cart__list::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 106, 0.24);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.citem {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  animation: rise 0.3s var(--ease) both;
}
.citem__img {
  width: 46px; height: 46px;
  border-radius: 9px;
  object-fit: cover;
  filter: grayscale(0.85) brightness(1.06) contrast(1.03);
  border: 1px solid var(--line);
}
.citem__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.citem__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.citem__meta { font-size: 10.5px; color: var(--paper-3); }
.citem__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.citem__price { font-size: 12.5px; font-weight: 800; white-space: nowrap; }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px;
}
.qty button {
  width: 21px; height: 21px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--paper-2);
  font: 700 13px/1 var(--sans);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qty button:hover { background: var(--surface-3); color: var(--paper); }
.qty span { min-width: 18px; text-align: center; font: 700 11.5px/1 var(--sans); }

.cart__empty {
  padding: 40px 18px;
  text-align: center;
  color: var(--paper-3);
  font-size: 12.5px;
  line-height: 1.6;
}
.cart__empty svg { width: 54px; height: 54px; opacity: 0.28; margin-bottom: 12px; }

.cart__foot {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(180deg, transparent, rgba(46, 74, 140, 0.1));
}
.cart__line {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--paper-3);
}
.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
}
.cart__total span { font-size: 12px; color: var(--paper-2); letter-spacing: 0.08em; text-transform: uppercase; }
.cart__total b { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }

.btn-primary {
  height: 46px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 170, 140, 0.35);
  background: linear-gradient(135deg, var(--vermilion) 0%, #A5341F 100%);
  color: #FFF4EE;
  font: 800 14px/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease);
  box-shadow: 0 8px 26px rgba(208, 69, 44, 0.32);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(208, 69, 44, 0.45); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--paper-2);
  font: 700 13px/1 var(--sans);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--paper); border-color: var(--line-strong); }

/* ============================================================
   Оформление заказа — панель в том же окне
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.sheet.is-open { opacity: 1; pointer-events: auto; }

.sheet__box {
  width: min(760px, 100%);
  max-height: calc(100dvh - 44px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #131928 0%, #0A0D16 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.34s var(--ease);
}
.sheet.is-open .sheet__box { transform: none; }
.sheet__box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sheet__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(46, 74, 140, 0.24), transparent);
}
.sheet__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.sheet__head .cart__jp { font-size: 14px; }
.sheet__x {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--paper-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s;
}
.sheet__x:hover { background: var(--surface-3); color: var(--paper); }

.sheet__body {
  overflow-y: auto;
  padding: 18px 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 106, 0.28) transparent;
}
.sheet__body::-webkit-scrollbar { width: 9px; }
.sheet__body::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 106, 0.24);
  border-radius: 9px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  font: 500 13.5px/1.45 var(--sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(237, 230, 214, 0.28); }
.field input:focus, .field textarea:focus {
  border-color: rgba(75, 111, 196, 0.65);
  box-shadow: 0 0 0 3px var(--indigo-glow);
}
.field.is-bad input, .field.is-bad textarea { border-color: rgba(208, 69, 44, 0.8); }
.field small { font-size: 10.5px; color: var(--vermilion-lt); min-height: 0; }

.radios { display: flex; flex-direction: column; gap: 7px; }
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.radio:hover { border-color: var(--line-strong); background: var(--surface-2); }
.radio.is-on {
  border-color: rgba(201, 169, 106, 0.55);
  background: linear-gradient(100deg, rgba(46, 74, 140, 0.35), rgba(46, 74, 140, 0.07));
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: border-color 0.18s;
}
.radio.is-on .radio__mark { border-color: var(--gold); }
.radio__mark::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}
.radio.is-on .radio__mark::after { transform: scale(1); }
.radio__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.radio__t { font-size: 13px; font-weight: 700; }
.radio__d { font-size: 11px; color: var(--paper-3); line-height: 1.45; }
.radio__p { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--gold); white-space: nowrap; }

.summary {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-self: start;
  position: sticky;
  top: 0;
}
.summary h3 {
  margin: 0 0 2px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 700;
}
.summary__list { display: flex; flex-direction: column; gap: 7px; max-height: 210px; overflow-y: auto; }
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--paper-2);
  line-height: 1.4;
}
.summary__row b { white-space: nowrap; color: var(--paper); font-weight: 700; }
.summary__row--sep { border-top: 1px dashed var(--line); padding-top: 8px; }
.summary__row--total { font-size: 15px; padding-top: 4px; }
.summary__row--total span { font-weight: 700; }
.summary__row--total b { font-size: 18px; }
.form__note { margin: 0; font-size: 10.5px; line-height: 1.5; color: rgba(237, 230, 214, 0.4); }
.done__back { padding: 0 26px; }

/* успех */
.done { text-align: center; padding: 34px 20px 40px; grid-column: 1 / -1; }
.done svg { width: 82px; height: 82px; margin-bottom: 16px; }
.done h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.done p { margin: 0 auto 20px; font-size: 13.5px; line-height: 1.65; color: var(--paper-2); max-width: 440px; }
.done .num {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px dashed var(--gold-dim);
  font: 800 14px/1 var(--sans);
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* тост */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 22px);
  z-index: 80;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(14, 19, 32, 0.94);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font: 700 12.5px/1 var(--sans);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 9px;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: #4FBF8B; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 6, 10, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* ============================================================
   Адаптив
   ============================================================ */

/* корзина — выдвижная */
@media (max-width: 1180px) {
  .main { grid-template-columns: var(--rail-w) 56px minmax(0, 1fr); }
  .cart-toggle { display: inline-flex; }
  .cart {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 40;
    width: min(380px, 92vw);
    transform: translateX(102%);
    transition: transform 0.34s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  }
  .cart.is-open { transform: none; }
  .cart__close { display: block; }
}

/* меню наверх */
@media (max-width: 900px) {
  :root { --head-h: 62px; }
  .main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .spine { display: none; }

  .rail {
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail__label, .rail__foot, .cat__note { display: none; }
  .cat {
    flex-direction: column;
    gap: 5px;
    min-width: 86px;
    padding: 9px 10px;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
  }
  .cat::before { top: auto; bottom: 0; left: 20%; right: 20%; width: auto; height: 2px; transform: scaleX(0); }
  .cat.is-active::before { transform: scaleX(1); }
  .cat__icon { width: 30px; height: 30px; }
  .cat__name { font-size: 11.5px; }
  .cat__jp { margin-left: 0; font-size: 11px; position: absolute; top: 6px; right: 8px; }

  /* шапка в две строки: бренд + корзина, ниже поиск */
  .head {
    height: auto;
    flex-wrap: wrap;
    padding: 9px 12px 10px;
    gap: 9px;
  }
  .head__meta { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 17px; letter-spacing: 0.24em; text-indent: 0.24em; }
  .brand__mon { width: 34px; height: 34px; }
  .search { order: 3; flex: 1 0 100%; width: 100%; }
  .search input { height: 36px; font-size: 13px; }
  .cart-toggle { height: 38px; }

  .filters { padding: 10px 0 9px; gap: 7px; }
  .filters__head { padding: 0 13px; }
  .filters__title { font-size: 16px; }
  .fflow {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 14px;
    padding: 0 13px 2px;
    scrollbar-width: none;
  }
  .fflow::-webkit-scrollbar { display: none; }
  .fgroup { flex-shrink: 0; }
  .fgroup__chips { flex-wrap: nowrap; }
  .frow--tail { padding: 8px 13px 0; margin: 0; gap: 10px; flex-wrap: nowrap; }
  .frow--tail .frow__label { display: none; }
  .price-ctl { flex: 1; min-width: 0; }
  input[type="range"] { width: 100%; min-width: 60px; }
  .price-ctl__val { min-width: 0; white-space: nowrap; }
  .sort { flex: 0 0 auto; max-width: 44%; }

  .grid-wrap { padding: 13px 13px 96px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
  .card__body { padding: 10px 10px 11px; gap: 6px; }
  .card__sub { display: none; }
  .card__specs .tag:nth-child(n + 3) { display: none; }
  .card__name { font-size: 12.5px; }
  .card__price b { font-size: 15px; }
  .card__foot { gap: 7px; }
  .add { height: 32px; font-size: 11.5px; }
  .card__kanji { font-size: 18px; }
  .card__glyph { width: 36px; height: 36px; }
  .card__seal { width: 32px; height: 32px; }
  .card__seal svg { width: 32px; height: 32px; }

  .sheet { padding: 0; align-items: stretch; }
  .sheet__box {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .sheet__body { grid-template-columns: minmax(0, 1fr); padding: 15px 14px 30px; }
  .summary { position: static; order: -1; }
}

/* мобильная нижняя панель корзины */
.mcart {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 35;
  height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(13, 18, 30, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(96px);
  transition: transform 0.34s var(--ease);
}
.mcart.is-on { transform: none; }
.mcart__info { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.mcart__n { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); }
.mcart__sum { font-size: 16px; font-weight: 800; }
.mcart__btn {
  margin-left: auto;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--vermilion), #A5341F);
  color: #FFF4EE;
  font: 800 13px/1 var(--sans);
  cursor: pointer;
}
@media (max-width: 900px) {
  .mcart { display: flex; }
  .toast { bottom: 80px; }
  .cart-toggle { padding: 0 12px; }
  .cart-toggle span { display: none; }
}

@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .search input { font-size: 12.5px; }
}

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

/* ============================================================
   Страница 404
   ============================================================ */
.err {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}
.err__box {
  width: min(520px, 100%);
  text-align: center;
  padding: 34px 28px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.78), rgba(10, 13, 22, 0.78));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.err__mon { width: 76px; height: 76px; margin: 0 auto 16px; display: block; }
.err__code {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 4px;
}
.err__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.err__text { margin: 0 auto 22px; font-size: 13.5px; line-height: 1.65; color: var(--paper-2); max-width: 380px; }
.err__link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 170, 140, 0.35);
  background: linear-gradient(135deg, var(--vermilion), #A5341F);
  color: #FFF4EE;
  font: 800 14px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(208, 69, 44, 0.3);
}
.err__link:hover { transform: translateY(-1px); }
