/* ============================================================
   3Dобра — дизайн-система v5 «Плакат на сетке»
   Написана с нуля: 12-колоночная сетка, gutter 24px,
   единая шкала отступов, светлый плакатный стиль.
   Палитра бренда: #24282F (графит) + #FFE100 (жёлтый).
   ============================================================ */

:root {
  /* палитра */
  --paper: #FBFBFC;
  --card: #FFFFFF;
  --ink: #24282F;
  --ink-soft: #5B6068;
  --yellow: #FFE100;
  --yellow-deep: #B89F00;
  --wash: #EEF0F3;
  --dark: #24282F;
  --light: #F2F3F5;
  --line: rgba(36, 40, 47, .16);

  /* сетка */
  --maxw: 1200px;
  --gutter: 24px;
  --pad: 24px;

  /* шкала отступов */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  /* единый вертикальный отступ между блоками страницы (десктоп 80px) */
  --section: 80px;

  /* форма и типографика */
  --r: 6px;
  --bw: 2px;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- База ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  background-image: radial-gradient(rgba(36, 40, 47, .05) 1.1px, transparent 1.4px);
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 800;
  line-height: 1.14; letter-spacing: .01em; text-transform: uppercase;
}

/* ---------- Сетка ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative; z-index: 2;
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* Ритм секций: между любыми двумя блоками — один и тот же отступ var(--section)
   (80px на десктопе, 56px на телефоне). От последней секции до футера — тоже он:
   у футера своего внешнего отступа нет, чтобы промежутки не складывались.
   У обычной секции отступ только снизу (сверху обнуляется, чтобы промежутки
   не складывались). Секции со своим фоном (тёмная полоса) — особый случай:
   их фон начинается от края, поэтому следующая секция получает отступ сверху,
   иначе её верхняя линия прилипает к краю полосы («выступ»). */
section { padding-block: var(--section); }
section + section,
.post-page + section { padding-top: 0; }
.marquee + section,
.lab-band + section,
.facts-band + section { padding-top: var(--section); }
@media (max-width: 760px) { :root { --section: 56px; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: 15px 26px; min-height: 50px;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn .arr { transition: transform .2s var(--ease); font-weight: 400; }
.btn:hover { background: var(--ink); color: var(--yellow); transform: translateY(-2px); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:active { transform: none; }
.btn.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn.btn-yellow:hover { background: var(--ink); color: var(--yellow); }
.btn.btn-ghost { background: transparent; color: var(--ink); }
.btn.btn-ghost:hover { background: var(--ink); color: var(--card); }
.btn.btn-sm { padding: 10px 18px; font-size: 12px; min-height: 42px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; pointer-events: none; }

.icon-btn {
  width: 50px; height: 50px; flex-shrink: 0;
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  background: var(--card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  transition: .2s;
}
.icon-btn:hover { background: var(--yellow); }

/* ---------- Навигация ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--card);
  border-bottom: var(--bw) solid var(--ink);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad);
  height: 76px;
  display: flex; align-items: center; gap: var(--s4);
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo .mark { height: 38px; width: auto; display: block; transition: transform .4s var(--ease); }
.logo:hover .mark { transform: rotate(-10deg) scale(1.08); }
.logo .mark-fade { animation: mark-fade .6s var(--ease) .2s both; }
@keyframes mark-fade { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* при включённой в системе настройке «уменьшить движение» — без анимации */
@media (prefers-reduced-motion: reduce) {
  .sym .arc, .sym circle, .logo .mark-fade { animation: none; }
}
.logo img.word { height: 23px; width: auto; }

nav.main-nav { display: flex; gap: var(--s3); flex: 1; height: 100%; }
nav.main-nav a {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 13px; letter-spacing: .06em;
  display: inline-flex; align-items: center; height: 100%;
  text-decoration: none; color: var(--ink-soft);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: .2s;
}
nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a.active { color: var(--ink); border-bottom-color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.header-contacts { display: flex; flex-direction: column; gap: 2px; }   /* телефон и почта — друг под другом */
.hc-row { display: flex; align-items: center; gap: 6px; line-height: 1.25; }
.hc-row .ti { font-size: 15px; color: var(--ink-soft); flex: none; }
.header-contact { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.header-contact:hover { color: var(--ink); }

.cart-link {
  position: relative; text-decoration: none; display: flex; flex-shrink: 0;
  width: 50px; height: 50px; align-items: center; justify-content: center;
  border: var(--bw) solid var(--ink); border-radius: var(--r); font-size: 19px;
  transition: .2s; background: transparent; color: var(--ink);
}
.cart-link:hover { background: var(--yellow); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--ink); color: var(--yellow);
  font-size: 11px; font-weight: 800; border-radius: 999px;
  min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

@media (max-width: 1100px) { .header-contacts { display: none; } }
@media (max-width: 900px) {
  .header-inner { height: auto; flex-wrap: wrap; gap: var(--s2); padding-block: 12px; }
  nav.main-nav { order: 3; width: 100%; height: auto; gap: var(--s3); }
  nav.main-nav a { height: auto; padding-block: 6px; }
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  padding-top: var(--s3);
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--yellow-deep); padding-inline: 8px; }

/* ---------- Заголовки секций ---------- */
.section-head {
  border-top: var(--bw) solid var(--ink);
  padding-top: var(--s3);
  margin-bottom: var(--s5);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: end;
}
.section-head > div, .section-head > h2 { grid-column: 1 / 9; }
.section-head > .btn { grid-column: 10 / 13; justify-self: end; }
.section-title { font-size: clamp(26px, 3vw, 40px); font-weight: 900; }
.section-sub { color: var(--ink-soft); max-width: 56ch; font-size: 16px; font-weight: 500; margin-top: var(--s2); }
@media (max-width: 900px) {
  .section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
}

/* маркер-подчёркивание ключевого слова */
.hero h1 .mark, .hl {
  position: relative; display: inline-block; padding-inline: 8px;
  white-space: nowrap; color: var(--ink);
}
.hero h1 .mark::before, .hl::before {
  content: ""; position: absolute; inset: 6% -2% 2% -2%;
  background: var(--yellow); z-index: -1; border-radius: 4px;
}

/* ---------- Hero: сплит 6/6 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-full { display: flex; align-items: flex-start; padding-block: var(--s5) var(--section); } /* снизу тот же ритм секций */
.hero-full .container { width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: center;
}
.hero-grid > div:first-child { grid-column: 1 / 7; }
.hero-grid > .hero-3d { grid-column: 7 / 13; }
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.5rem); font-weight: 900; margin: var(--s3) 0; }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin-bottom: var(--s4); font-weight: 500; }
.hero-btns { display: flex; gap: var(--s2); flex-wrap: wrap; }

#dot-field { position: absolute; inset: 0; z-index: 0; }
#dot-field canvas { width: 100%; height: 100%; display: block; }

.hero-3d { position: relative; z-index: 2; height: 480px; }
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; cursor: none; }
.hero-3d .hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--card);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: 8px 16px; pointer-events: none; white-space: nowrap;
}
@media (max-width: 1000px) {
  .hero-full { min-height: auto; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--s5); }
  .hero-3d { height: 380px; }
}

/* анимированный SVG-символ */
.sym { display: inline-block; }
/* Анимация значка. Обычное (статичное) состояние — полностью нарисованный
   значок; анимация лишь проигрывается при загрузке (fill-mode: backwards —
   первый кадр держится во время задержки) и после окончания снимается.
   Вариант с forwards «замораживал» последний кадр, и Chrome при прокрутке
   переставал отрисовывать точки значка в закреплённой шапке. */
.sym .arc { stroke-dasharray: 1600; stroke-dashoffset: 0; animation: sym-draw 1.4s var(--ease) .3s backwards; }
.sym circle { transform-origin: center; transform-box: fill-box; animation: sym-pop .6s var(--ease) backwards; }
.sym circle:nth-of-type(1) { animation-delay: .9s; }
.sym circle:nth-of-type(2) { animation-delay: 1.05s; }
.sym circle:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes sym-draw { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes sym-pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }

/* брайль-водяной знак */
.braille-bg {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-size: clamp(140px, 22vw, 300px); line-height: .9; color: currentColor;
  opacity: .05; font-family: system-ui; white-space: nowrap;
}
.hero .braille-bg { right: -3%; bottom: -12%; }

/* ---------- Бегущая строка ---------- */
.marquee {
  background: var(--yellow); color: var(--ink);
  border-block: var(--bw) solid var(--ink);
  overflow: hidden; padding-block: 14px; position: relative; z-index: 2;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; padding-right: 16px;
}
.marquee .dot { opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Аккордеон направлений ---------- */
.acc { border-top: var(--bw) solid var(--ink); }
.acc-item { border-bottom: var(--bw) solid var(--ink); }
.acc-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 72px 1fr 50px; gap: var(--gutter);
  align-items: center; padding: var(--s3) 0;
  transition: background .2s, padding .2s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: var(--yellow); padding-inline: var(--s2); }
.acc-item summary .b {
  font-family: system-ui; color: var(--yellow-deep); font-size: 22px; letter-spacing: 3px;
}
.acc-item summary:hover .b { color: var(--ink); }
.acc-item summary h3 { font-size: clamp(19px, 2.4vw, 30px); }
.acc-item summary .pl {
  width: 50px; height: 50px; border: var(--bw) solid var(--ink); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--card); transition: transform .3s var(--ease), background .2s;
}
.acc-item[open] summary .pl { transform: rotate(45deg); background: var(--yellow); }
.acc-body {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--gutter);
  padding-bottom: var(--s4);
}
.acc-body p { grid-column: 2; color: var(--ink-soft); max-width: 58ch; }
.acc-body .btn { grid-column: 3; align-self: start; }
@media (max-width: 700px) {
  .acc-item summary { grid-template-columns: 40px 1fr 42px; }
  .acc-item summary .b { font-size: 15px; }
  .acc-body { display: flex; flex-direction: column; gap: var(--s2); }
}

/* ---------- Брайль-лаборатория (тёмная панель) ---------- */
.braille-lab {
  background: var(--dark); color: var(--light);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  position: relative; overflow: hidden;
}
.braille-lab .braille-bg { color: var(--yellow); opacity: .08; right: -4%; top: -30%; }
.braille-lab .inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: var(--s6) var(--s5);
}
.braille-lab h2 { grid-column: 1 / 9; font-size: clamp(22px, 2.6vw, 34px); }
.braille-lab .sub { grid-column: 1 / 8; color: rgba(242,243,245,.62); font-size: 16px; }
.braille-lab input {
  grid-column: 1 / 7; margin-top: var(--s2);
  background: rgba(242,243,245,.08); border: var(--bw) solid rgba(242,243,245,.3);
  color: var(--light); border-radius: var(--r); padding: 15px 20px;
  font-size: 17px; font-family: var(--font-body); font-weight: 600; outline: none;
  transition: .2s;
}
.braille-lab input::placeholder { color: rgba(242,243,245,.4); }
.braille-lab input:focus { border-color: var(--yellow); }
#braille-out { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-start; min-height: 96px; margin-top: var(--s2); }
@media (max-width: 800px) {
  .braille-lab .inner { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s3); }
}

.b-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: b-in .4s var(--ease) both; }
@keyframes b-in { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
.b-grid { display: grid; grid-template-columns: repeat(2, 18px); gap: 7px; }
.b-dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(242,243,245,.12); transition: .25s var(--ease); }
.b-dot.on {
  background: radial-gradient(circle at 35% 30%, #FFF3A0, var(--yellow) 60%);
  box-shadow: 0 3px 10px rgba(255,225,0,.35), inset 0 -2px 3px rgba(0,0,0,.18);
  transform: scale(1.06);
}
.b-char { font-size: 12px; font-weight: 800; color: rgba(242,243,245,.55); letter-spacing: .05em; }
.b-space { width: 20px; }
.b-hint { color: rgba(242,243,245,.55); font-size: 15px; }
.b-hint button {
  background: transparent; color: var(--yellow); border: var(--bw) solid var(--yellow);
  border-radius: var(--r); padding: 6px 16px; margin: 0 4px 6px 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; transition: .2s;
}
.b-hint button:hover { background: var(--yellow); color: var(--ink); }

/* ---------- Тёмная растяжка: Брайль-лаборатория + факты ---------- */
.lab-band {
  background: var(--dark); color: var(--light);
  border-block: var(--bw) solid var(--ink);
  padding-block: var(--section);
  position: relative; overflow: hidden;
}
/* панель лаборатории внутри растяжки растворяется в фоне */
.lab-band .braille-lab { background: transparent; border: none; border-radius: 0; overflow: visible; }
.lab-band .braille-lab .inner { padding: 0; }
.lab-band .braille-bg { color: var(--yellow); opacity: .07; right: -2%; top: -16%; }
/* факты после лаборатории: отделяем воздухом */
.lab-band .facts { margin-top: var(--s4); }
.facts { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.fact { grid-column: span 4; border-top: var(--bw) solid rgba(242, 243, 245, .22); padding-top: var(--s3); position: relative; }
.fact::before { content: ""; position: absolute; top: calc(var(--bw) * -1); left: 0; width: 72px; height: var(--bw); background: var(--yellow); }
@media (max-width: 760px) { .fact { grid-column: span 12; } }  /* отступ фактов — как на десктопе, var(--s4) */
/* цифра — главный акцент блока; единица (мм, цвета, дней) — тоньше и меньше,
   на одной строке с цифрой; подпись — ниже, приглушённая.
   Важно: подпись адресуется как прямой потомок (.fact > span), иначе правило
   задевает и счётчик <span data-count> внутри <b> — цифры становились мелкими */
.fact b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 8vw, 120px); line-height: 1; display: block; color: var(--light);
  white-space: nowrap;
}
.fact b > span { font: inherit; color: inherit; }
.fact b small { font-size: .26em; font-weight: 500; color: var(--yellow); margin-left: .15em; letter-spacing: .01em; }
.fact > span { font-size: 16px; color: rgba(242, 243, 245, .65); font-weight: 600; display: block; margin-top: var(--s2); max-width: 30ch; }
@media (max-width: 760px) {
  .fact { grid-column: span 12; }
  .facts-band { padding-block: var(--s5); }
}

/* ---------- Таймлайн процесса ---------- */
.timeline { position: relative; max-width: calc(100% / 12 * 8); }
.tl-line { position: absolute; left: 24px; top: 10px; bottom: 10px; width: var(--bw); background: var(--line); overflow: hidden; }
.tl-line-fill { display: block; width: 100%; height: 0; background: var(--yellow); transition: height 1s var(--ease); }
.tl-step {
  position: relative; padding: 0 0 var(--s5) 96px;
  opacity: .35; transform: translateX(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step.active { opacity: 1; transform: none; }
.tl-step .dot {
  position: absolute; left: 0; top: 0; width: 50px; height: 50px;
  border-radius: var(--r); background: var(--card); border: var(--bw) solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  transition: .3s var(--ease); z-index: 2;
}
.tl-step.active .dot { background: var(--yellow); }
.tl-step h3 { font-size: 19px; margin: 6px 0 var(--s1); }
.tl-step p { color: var(--ink-soft); font-size: 15px; max-width: 52ch; }
@media (max-width: 900px) { .timeline { max-width: 100%; } }
@media (max-width: 560px) { .tl-step { padding-left: 72px; } .tl-step .dot { width: 42px; height: 42px; font-size: 18px; } .tl-line { left: 20px; } }

/* ---------- Карусель каталога ---------- */
.section-head > .car-head-right { grid-column: 8 / 13; justify-self: end; display: flex; gap: 12px; align-items: center; }
.car-track {
  display: flex; gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px;  margin: -4px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track .shop-card {
  flex: 0 0 calc((100% - 2 * var(--gutter)) / 3);
  scroll-snap-align: start;
}
@media (max-width: 1000px) { .car-track .shop-card { flex-basis: calc((100% - var(--gutter)) / 2); } }
@media (max-width: 640px) { .car-track .shop-card { flex-basis: 100%; } }
@media (max-width: 900px) { .section-head > .car-head-right { justify-self: start; } }
body.a11y .car-track { flex-wrap: wrap; overflow: visible; }
body.a11y .car-track .shop-card { flex-basis: 100%; }

/* ---------- Товары: 3 × 4 колонки, без пустот ---------- */
.rail { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.rail .shop-card { grid-column: span 4; }
@media (max-width: 1000px) { .rail .shop-card { grid-column: span 6; } .rail .shop-card:last-child { grid-column: span 12; } }
@media (max-width: 640px) { .rail .shop-card { grid-column: span 12 !important; } }

.shop-card {
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shop-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.shop-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wash); display: block; border-bottom: var(--bw) solid var(--ink); }
.shop-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shop-card:hover .thumb img { transform: scale(1.05); }
.shop-card .body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.shop-card .b-word { font-family: system-ui; color: var(--yellow-deep); font-size: 16px; letter-spacing: 4px; transition: letter-spacing .4s var(--ease); }
.shop-card:hover .b-word { letter-spacing: 7px; }
.shop-card h3 { font-size: 17px; line-height: 1.3; }
.shop-card h3 a { text-decoration: none; }
.shop-card .desc { font-size: 14px; color: var(--ink-soft); flex: 1; }
.shop-card .row { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.shop-card .price { font-family: var(--font-display); font-weight: 900; font-size: 21px; margin-right: auto; }
.shop-card .go {
  width: 50px; height: 50px; flex-shrink: 0; border: var(--bw) solid var(--ink); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-size: 20px; background: var(--card); color: var(--ink); transition: .25s var(--ease);
}
.shop-card .go:hover { background: var(--yellow); transform: rotate(45deg); }

.shop-card.dark { background: var(--yellow); }
.shop-card.dark .desc, .shop-card.dark .soon-list { color: rgba(36,40,47,.75); }
.shop-card.dark .big-sym { width: 88px; margin: var(--s4) 0 0 var(--s3); }
.shop-card.dark .soon-list { list-style: none; padding: 0 var(--s3); font-size: 14px; font-weight: 600; }
.shop-card.dark .soon-list li { padding: 10px 0; border-bottom: 1px dashed rgba(36,40,47,.35); }
.shop-card.dark .soon-list li:last-child { border-bottom: none; }
.shop-card.dark .b-word { color: var(--ink); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--yellow); color: var(--ink); border: var(--bw) solid var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r);
}

/* ---------- CTA-плита ---------- */
.cta-band {
  background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  position: relative; overflow: hidden;
}
.cta-band .braille-bg { color: var(--ink); opacity: .07; left: -2%; bottom: -40%; }
.cta-band .inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: center; padding: var(--s6) var(--s5);
}
.cta-band h2 { grid-column: 1 / 9; font-size: clamp(21px, 2.4vw, 32px); }
.cta-band .btn { grid-column: 10 / 13; justify-self: end; background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.cta-band .btn:hover { background: transparent; color: var(--ink); }
.cta-band h2 em { font-style: normal; border-bottom: 4px solid var(--ink); }
@media (max-width: 900px) {
  .cta-band .inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s4) var(--s3); }
}

/* ---------- Блог: индексные строки ---------- */
.blog-list { border-top: var(--bw) solid var(--ink); }
.blog-row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: center; padding: var(--s3) 0;
  border-bottom: var(--bw) solid var(--ink);
  text-decoration: none; transition: background .2s, padding .2s;
}
.blog-row:hover { background: var(--yellow); padding-inline: var(--s2); }
.blog-row .date { grid-column: 1 / 3; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.blog-row:hover .date { color: var(--ink); }
.blog-row h3 { grid-column: 3 / 9; font-size: clamp(16px, 1.9vw, 22px); }
.blog-row .pic { grid-column: 9 / 12; width: 100%; height: 72px; object-fit: cover; border: var(--bw) solid var(--ink); border-radius: var(--r); opacity: .6; filter: grayscale(.4); transition: .3s var(--ease); }
.blog-row:hover .pic { opacity: 1; filter: none; }
.blog-row .pl {
  grid-column: 12 / 13; justify-self: end;
  width: 50px; height: 50px; border: var(--bw) solid var(--ink); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--card); transition: .25s;
}
.blog-row:hover .pl { transform: rotate(45deg); }
@media (max-width: 800px) {
  .blog-row { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; }
  .blog-row .date { width: 100%; }
  .blog-row h3 { flex: 1; }
  .blog-row .pic { display: none; }
}

/* ---------- Страница поста ---------- */
.post-page { max-width: 800px; padding-block: var(--s5) var(--section); }
.post-head { border-top: var(--bw) solid var(--ink); padding-top: var(--s3); margin-bottom: var(--s4); }
.post-date { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s2); }
.post-date .ti { color: var(--yellow-deep); }
.post-head h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; }
.post-excerpt { color: var(--ink-soft); font-size: 17px; margin-top: var(--s2); }
.post-cover { border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: var(--s4); }
.post-cover img { width: 100%; display: block; cursor: zoom-in; }
.post-body-full { font-size: 17px; color: var(--ink); }
.post-body-full p { margin-bottom: var(--s2); color: var(--ink); }
.post-body-full h2, .post-body-full h3 { margin: var(--s4) 0 var(--s2); font-size: clamp(19px, 2vw, 24px); }
.post-body-full ul, .post-body-full ol { margin: 0 0 var(--s2) 22px; }
.post-body-full blockquote { border-left: 4px solid var(--yellow); padding-left: var(--s2); margin-bottom: var(--s2); color: var(--ink-soft); }
.post-body-full img { max-width: 100%; border: var(--bw) solid var(--ink); border-radius: var(--r); margin: var(--s3) 0; cursor: zoom-in; }
.post-body-full a { font-weight: 700; }

.post-files { margin-top: var(--s4); border-top: var(--bw) solid var(--ink); padding-top: var(--s3); }
.post-files h3 { font-size: 16px; margin-bottom: var(--s2); }
.post-files .pf {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 10px 0;
  border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 9px 14px;
  text-decoration: none; font-weight: 700; font-size: 13.5px; background: var(--card); transition: .2s;
}
.post-files .pf:hover { background: var(--yellow); }
.post-files .pf .ti { color: var(--yellow-deep); font-size: 17px; }
.post-files .pf:hover .ti { color: var(--ink); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--s5); }
.post-nav .pn {
  border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--card);
  padding: var(--s2) var(--s3); text-decoration: none; transition: .2s;
}
.post-nav .pn:hover { background: var(--yellow); }
.post-nav .pn span { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.post-nav .pn:hover span { color: var(--ink); }
.post-nav .pn b { font-size: 14.5px; line-height: 1.35; }
.post-nav .pn.next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .pn.next { text-align: left; } }

.blog-grid .post-card.related { grid-column: span 4; }
@media (max-width: 800px) { .blog-grid .post-card.related { grid-column: span 12; } }

/* ---------- Лайтбокс ---------- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(22, 24, 29, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }
.lb-overlay img {
  max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain;
  border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: var(--r);
  background: rgba(242,243,245,.1); border: 2px solid rgba(242,243,245,.4);
  color: #F2F3F5; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.lb-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(242,243,245,.7); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
body.lb-lock { overflow: hidden; }

/* ---------- Блог-страница: карточки ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.post-card {
  grid-column: span 6;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.post-card .thumb { aspect-ratio: 16 / 8; overflow: hidden; background: var(--wash); border-bottom: var(--bw) solid var(--ink); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: var(--s3); }
.post-card .date { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-deep); }
.post-card h3 { font-size: 18px; margin: var(--s1) 0; line-height: 1.3; }
.post-card p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 800px) { .post-card { grid-column: span 12; } }

/* ---------- Каталог: 2 карточки в ряд, фото сверху ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.catalog-grid .shop-card .thumb { aspect-ratio: 16 / 10; }
.catalog-grid .shop-card .body { padding: var(--s4); gap: var(--s2); }
.catalog-grid .shop-card h3 { font-size: clamp(18px, 1.9vw, 24px); }
.catalog-grid .shop-card .desc { font-size: 15px; }
.catalog-grid .cmeta { display: flex; gap: var(--s3); flex-wrap: wrap; }
.catalog-grid .cmeta div { border-top: var(--bw) solid var(--yellow); padding-top: 8px; min-width: 90px; flex: 1 1 0; max-width: 100%; }
.catalog-grid .cmeta b { font-family: var(--font-display); font-size: 15px; display: block; line-height: 1.25; overflow-wrap: anywhere; }
.catalog-grid .cmeta span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.catalog-grid .shop-card .price { font-size: 24px; }
@media (max-width: 820px) { .catalog-grid { grid-template-columns: 1fr; } }

/* ---------- Каталог: крупные сплиты ---------- */
.feat {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  overflow: hidden;
}
.feat + .feat, .feat + .mini-products, .feat.rev { margin-top: var(--s3); }
.feat .media { grid-column: 1 / 8; position: relative; min-height: 400px; background: var(--wash); border-right: var(--bw) solid var(--ink); }
.feat.rev .media { grid-column: 6 / 13; order: 2; border-right: none; border-left: var(--bw) solid var(--ink); }
.feat .info { grid-column: 8 / 13; padding: var(--s5) var(--s4); display: flex; flex-direction: column; justify-content: center; }
.feat.rev .info { grid-column: 1 / 6; order: 1; }
.feat .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feat:hover .media img { transform: scale(1.04); }
.feat .media a { position: absolute; inset: 0; z-index: 2; }
.feat .media .badge { top: 18px; left: 18px; }
.feat .info h3 { font-size: clamp(20px, 2.2vw, 27px); margin-bottom: var(--s2); }
.feat .info h3 a { text-decoration: none; }
.feat .info p { color: var(--ink-soft); margin-bottom: var(--s3); font-size: 15px; }
.feat .meta { display: flex; gap: var(--s3); margin-bottom: var(--s3); }
.feat .meta div { border-top: var(--bw) solid var(--yellow); padding-top: 8px; }
.feat .meta b { font-family: var(--font-display); font-size: 17px; display: block; }
.feat .meta span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.feat .buy { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.feat .buy .price { font-family: var(--font-display); font-size: 26px; font-weight: 900; }
@media (max-width: 1000px) {
  .feat { display: flex; flex-direction: column; }
  .feat .media { min-height: 280px; border-right: none; border-left: none !important; border-bottom: var(--bw) solid var(--ink); order: 0 !important; }
  .feat .info { padding: var(--s3); order: 1 !important; }
}

.mini-products { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.mini-card {
  grid-column: span 4;
  display: flex; align-items: center; gap: var(--s2);
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: var(--s2) var(--s3); text-decoration: none; transition: .25s var(--ease);
}
.mini-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.mini-card.soon { opacity: .6; }
.mini-card img { width: 64px; height: 50px; object-fit: cover; border-radius: var(--r); }
.mini-card .ph {
  width: 64px; height: 50px; border-radius: var(--r); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #EEF0F3 0 12px, #E4E7EB 12px 24px);
  font-family: system-ui; font-size: 20px; color: var(--ink-soft);
}
.mini-card .t { flex: 1; }
.mini-card .t b { display: block; font-size: 14px; line-height: 1.3; }
.mini-card .t span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 900px) { .mini-card { grid-column: span 12; } }

/* ---------- Страница товара ---------- */
.product-page {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: start; padding-block: var(--s5) var(--section);
}
.product-page .gallery { grid-column: 1 / 7; position: sticky; top: 100px; }
.product-page .product-info { grid-column: 7 / 13; }
.gallery .main-img { border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--wash); margin-bottom: var(--s2);
  aspect-ratio: 16 / 10; }   /* все фото 16:10 — при переключении ничего не прыгает */
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumbs { display: flex; gap: var(--s2); }
.gallery .thumbs img {
  width: 96px; height: auto; aspect-ratio: 8 / 5; flex: 0 1 96px; min-width: 0;   /* на телефоне 4+ миниатюры сжимаются, а не вылезают за экран */
  object-fit: cover; border-radius: var(--r); cursor: pointer;
  border: var(--bw) solid var(--line); transition: .2s; opacity: .7;
}
.gallery .thumbs img:hover { opacity: 1; }
.gallery .thumbs img.active { border-color: var(--ink); opacity: 1; }
.product-info h1 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 900; margin: var(--s2) 0; }
.product-info .badge { position: static; display: inline-block; }
.product-info .desc { color: var(--ink-soft); font-size: 16px; margin-bottom: var(--s3); }
.specs { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.specs th { color: var(--ink-soft); font-weight: 600; width: 46%; }
.product-info .price { font-family: var(--font-display); font-size: 34px; font-weight: 900; margin-bottom: var(--s2); }
.product-info .price small { font-size: .42em; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--card); height: 50px; }
.qty button { background: none; border: none; color: var(--ink); font-size: 20px; width: 44px; height: 100%; cursor: pointer; font-weight: 800; }
.qty button:hover { background: var(--yellow); }
.qty input { width: 44px; border: none; background: transparent; color: var(--ink); text-align: center; font-size: 16px; font-weight: 800; outline: none; font-family: var(--font-body); }
.note { font-size: 14px; color: var(--ink-soft); }
.note a { font-weight: 700; }
@media (max-width: 1000px) {
  .product-page { display: flex; flex-direction: column; }
  .product-page .gallery { position: static; width: 100%; }
}

/* ---------- Корзина: товары слева, заявка справа ---------- */
.cart-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.cart-main { grid-column: 1 / 9; }
.cart-side { grid-column: 9 / 13; position: sticky; top: 100px; }
.cart-side .order-form { max-width: none; padding: var(--s4); }
@media (max-width: 1000px) {
  .cart-layout { display: flex; flex-direction: column; }
  .cart-side { position: static; width: 100%; }
}

/* компактный степпер количества в таблице */
.cart-table .qty { height: 42px; width: max-content; }
.cart-table .qty button { width: 36px; font-size: 17px; }
.cart-table .qty input { width: 34px; font-size: 15px; }


.cart-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); background: var(--card); border: var(--bw) solid var(--ink); }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 14px 16px; border-bottom: var(--bw) solid var(--ink); }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table img { width: 84px; height: 62px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.cart-remove { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ink-soft); transition: .2s; }
.cart-remove:hover { color: #C0392B; }
.cart-total { text-align: right; font-family: var(--font-display); font-size: 24px; font-weight: 900; margin-bottom: var(--s4); text-transform: uppercase; }
.cart-empty { text-align: center; padding: var(--s6) 0; color: var(--ink-soft); }
.cart-empty .big { font-size: 56px; margin-bottom: var(--s1); color: var(--yellow-deep); }

.order-form {
  background: var(--dark); color: var(--light);
  border-radius: var(--r); padding: var(--s5); max-width: 640px; position: relative; overflow: hidden;
}
.order-form::after {
  content: "⠙⠕⠃⠗⠕"; position: absolute; right: -10px; bottom: -30px;
  font-size: 100px; color: var(--yellow); opacity: .1; font-family: system-ui; pointer-events: none;
}
.order-form h2 { margin-bottom: var(--s3); font-size: 22px; }
.form-row { margin-bottom: var(--s2); position: relative; z-index: 2; }
.form-row label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: rgba(242,243,245,.75); }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 16px; border: var(--bw) solid rgba(242,243,245,.25); border-radius: var(--r);
  font-size: 15px; font-family: inherit; background: rgba(242,243,245,.07); color: var(--light);
  transition: .2s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(242,243,245,.4); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--yellow); }
.order-form .btn { position: relative; z-index: 2; border-color: var(--yellow); }
.order-form .btn:hover { background: transparent; color: var(--yellow); }
.form-note { font-size: 13px; color: rgba(242,243,245,.55); margin-top: var(--s2); position: relative; z-index: 2; }

/* ---------- Футер ---------- */
footer.site-footer {
  background: var(--dark); color: rgba(242,243,245,.66);
  font-size: 14px; margin-top: 0; border-top: var(--bw) solid var(--ink);
}
footer .foot-display {
  max-width: var(--maxw); margin-inline: auto; padding: var(--s6) var(--pad) var(--s2);
  display: flex; align-items: flex-end; gap: var(--s4); flex-wrap: wrap;
}
footer .foot-display img.word { width: min(600px, 70%); height: auto; }
footer .foot-display img.mark { width: clamp(64px, 8vw, 104px); height: auto; }
footer .foot-braille {
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad) var(--s4);
  font-family: system-ui; font-size: clamp(18px, 2.6vw, 30px); color: var(--yellow); opacity: .55; letter-spacing: .18em;
}
footer .foot-braille { padding-top: var(--s5); }
footer .cols {
  max-width: var(--maxw); margin-inline: auto; padding: var(--s3) var(--pad) var(--s5);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
}
footer .cols > div:nth-child(1) { grid-column: 1 / 6; }
footer .cols > div:nth-child(2) { grid-column: 7 / 10; }
footer .cols > div:nth-child(3) { grid-column: 10 / 13; }
footer h4 { color: var(--light); margin-bottom: var(--s2); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
footer a { color: rgba(242,243,245,.66); text-decoration: none; display: block; margin-bottom: 8px; transition: .2s; }
footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(242,243,245,.14); text-align: center; padding: 16px; font-size: 12px; color: rgba(242,243,245,.4); }
@media (max-width: 800px) {
  footer .cols { display: flex; flex-direction: column; gap: var(--s3); }
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

/* ---------- Тост ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(22px);
  background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 14px;
  letter-spacing: .04em;
  padding: 14px 28px; border-radius: var(--r); opacity: 0; pointer-events: none;
  transition: .3s var(--ease); z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
/* успех / ошибка отправки форм: крупнее, с иконкой и крестиком, висят 5 секунд */
#toast { display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); line-height: 1.4; }
#toast > .ti { font-size: 22px; flex: none; }
#toast .toast-close { display: none; background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; padding: 4px; margin-right: -10px; }
#toast.toast-ok, #toast.toast-error { padding: 16px 22px; font-size: 15px; letter-spacing: 0; box-shadow: 0 12px 32px rgba(36, 40, 47, .28); }
#toast.toast-ok .toast-close, #toast.toast-error .toast-close { display: block; }
#toast.toast-ok { background: var(--ink); color: var(--light); border-left: 6px solid var(--yellow); }
#toast.toast-ok > .ti { color: var(--yellow); }
#toast.toast-error { background: #B3261E; color: #fff; }
#toast:not(.toast-ok):not(.toast-error) > .ti { display: none; }

/* галочка согласия на обработку персональных данных */
.consent-row { margin-top: 4px; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; line-height: 1.45; cursor: pointer; text-transform: none; letter-spacing: 0; }
label.consent input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--yellow); padding: 0; }
label.consent a { color: inherit; text-decoration: underline; }
.footer-bottom .legal { margin-left: 16px; }
.footer-bottom .legal a { color: inherit; }

/* ---------- Модальное окно ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(36, 40, 47, .6);
  display: flex; align-items: center; justify-content: center; padding: var(--s3);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto;
  padding: var(--s5) var(--s4); position: relative;
  transform: translateY(20px); transition: transform .3s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal h2 { font-size: 22px; margin-bottom: var(--s1); padding-right: 44px; }
.modal .modal-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: var(--s3); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--card); border: var(--bw) solid var(--ink); cursor: pointer;
  font-size: 17px; color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.modal-close:hover { background: var(--yellow); }
.modal .form-row label { color: var(--ink); }
.modal .form-row input, .modal .form-row textarea {
  background: var(--paper); color: var(--ink); border-color: var(--line);
}
.modal .form-row input:focus, .modal .form-row textarea:focus { border-color: var(--ink); }
.modal .modal-note { font-size: 13px; color: var(--ink-soft); margin-top: var(--s2); }
.modal .b-deco { position: absolute; right: 22px; top: 26px; font-family: system-ui; color: var(--yellow); font-size: 20px; letter-spacing: 4px; pointer-events: none; }
body.modal-lock { overflow: hidden; }

/* ============================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ (ГОСТ Р 52872-2019)
   ============================================================ */
.a11y-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: transparent; border: var(--bw) solid var(--ink); border-radius: var(--r);
  width: 50px; height: 50px;
  color: var(--ink); cursor: pointer; transition: .2s;
}
.a11y-toggle:hover { background: var(--yellow); }
.a11y-toggle .ti { font-size: 21px; }
.header-divider { width: var(--bw); height: 30px; background: var(--line); flex-shrink: 0; }

/* единая высота всех элементов в шапке */
.header-actions .btn { min-height: 50px; padding-block: 0; }

#a11y-panel { background: #fff; border-bottom: 3px solid #000; }
.a11y-panel-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--pad);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.a11y-group { display: flex; align-items: center; gap: 8px; }
.a11y-label { font-weight: 700; font-size: 15px; color: #000; }
#a11y-panel button {
  min-width: 44px; min-height: 44px; padding: 6px 14px;
  background: #fff; color: #000; border: 2px solid #000; border-radius: 6px;
  font-family: Arial, sans-serif; font-weight: 700; font-size: 15px; cursor: pointer;
}
#a11y-panel button[aria-pressed="true"] { background: #000; color: #fff; }
#a11y-panel button:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
#a11y-panel .sw-bw { background: #fff; color: #000; }
#a11y-panel .sw-wb { background: #000; color: #fff; }
#a11y-panel .sw-blue { background: #9DD1FF; color: #063462; border-color: #063462; }
#a11y-panel .sw-bw[aria-pressed="true"], #a11y-panel .sw-wb[aria-pressed="true"], #a11y-panel .sw-blue[aria-pressed="true"] { outline: 3px solid #000; outline-offset: 2px; }
.a11y-exit { margin-left: auto; }

body.a11y, body.a11y h1, body.a11y h2, body.a11y h3, body.a11y .display,
body.a11y .price, body.a11y .fact b, body.a11y .section-title {
  font-family: Arial, Verdana, sans-serif !important;
}
body.a11y { line-height: 1.7; background-image: none; }
body.a11y *, body.a11y *::before, body.a11y *::after { animation: none !important; transition: none !important; }
body.a11y .reveal { opacity: 1 !important; transform: none !important; }
body.a11y #dot-field, body.a11y .hero-3d, body.a11y .marquee,
body.a11y .braille-bg, body.a11y .foot-braille, body.a11y .b-deco { display: none !important; }
body.a11y .hero-grid { display: block; }
body.a11y .hero-full { min-height: auto; }
body.a11y a { text-decoration: underline !important; }
body.a11y .btn, body.a11y nav a, body.a11y .logo { text-decoration: none !important; }
body.a11y :focus-visible { outline: 3px solid currentColor !important; outline-offset: 3px; }

body.a11y.a11y-size-2 { zoom: 1.25; }
body.a11y.a11y-size-3 { zoom: 1.5; }
body.a11y.a11y-ls, body.a11y.a11y-ls * { letter-spacing: .08em !important; word-spacing: .18em !important; }
body.a11y.a11y-noimg img { display: none !important; }
body.a11y.a11y-noimg .feat .media, body.a11y.a11y-noimg .thumb,
body.a11y.a11y-noimg .gallery, body.a11y.a11y-noimg .shop-card .thumb,
body.a11y.a11y-noimg .blog-row .pic { display: none !important; }
body.a11y.a11y-noimg .feat, body.a11y.a11y-noimg .product-page { display: block !important; }

body.a11y.a11y-c-bw, body.a11y.a11y-c-bw * {
  background-color: #fff !important; background-image: none !important;
  color: #000 !important; border-color: #000 !important; box-shadow: none !important;
}
body.a11y.a11y-c-wb, body.a11y.a11y-c-wb * {
  background-color: #000 !important; background-image: none !important;
  color: #fff !important; border-color: #fff !important; box-shadow: none !important;
}
body.a11y.a11y-c-blue, body.a11y.a11y-c-blue * {
  background-color: #9DD1FF !important; background-image: none !important;
  color: #063462 !important; border-color: #063462 !important; box-shadow: none !important;
}
body.a11y .btn, body.a11y .icon-btn, body.a11y .cart-link, body.a11y .qty,
body.a11y input, body.a11y textarea, body.a11y .a11y-toggle,
body.a11y .post-card, body.a11y .mini-card, body.a11y .shop-card,
body.a11y .feat, body.a11y .braille-lab .inner, body.a11y .cta-band .inner,
body.a11y .order-form, body.a11y .modal, body.a11y .modal-close,
body.a11y .acc-item, body.a11y .blog-row {
  border: 2px solid currentColor !important;
}
body.a11y .braille-lab, body.a11y .cta-band { border: none !important; }
body.a11y .b-dot { background: transparent !important; border: 2px solid currentColor !important; }
body.a11y .b-dot.on { background: currentColor !important; }
body.a11y.a11y-c-wb .logo img, body.a11y.a11y-c-wb .logo svg, body.a11y.a11y-c-wb footer img { filter: invert(1); }

/* ---------- Доступность и адаптив ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Текст записи из визуального редактора ---------- */
.post-body { font-size: 14.5px; color: var(--ink-soft); }
.post-body p { margin-bottom: 10px; }
.post-body h2, .post-body h3 { color: var(--ink); margin: 14px 0 8px; font-size: 16px; }
.post-body ul, .post-body ol { margin: 0 0 10px 20px; }
.post-body a { color: var(--ink); font-weight: 700; }
.post-body blockquote { border-left: 3px solid var(--yellow); padding-left: 14px; margin-bottom: 10px; }

/* ---------- Экран подтверждения заказа ---------- */
.order-success {
  max-width: 560px; margin-inline: auto; text-align: center;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: var(--s6) var(--s4);
}
.order-success .ok-mark {
  width: 72px; height: 72px; margin: 0 auto var(--s3);
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
  font-size: 34px;
}
.order-success h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: var(--s2); }
.order-success p { color: var(--ink-soft); max-width: 42ch; margin: 0 auto var(--s2); }
.order-success .ok-mail { font-weight: 700; color: var(--ink); }
.order-success .ok-mail .ti { color: var(--yellow-deep); }
.order-success .b-note { font-family: system-ui; color: var(--yellow-deep); letter-spacing: 5px; font-size: 20px; }
.order-success .btn { margin-top: var(--s2); }

/* ---- Категории, скидки, видео (универсализация CMS) ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s4); }
.cat-head { font-family: Montserrat, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: 22px; margin: var(--s4) 0 var(--s3); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.badges .badge { position: static; }
.badge.sale { background: var(--ink); color: var(--yellow); }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-weight: 600; font-size: .82em; margin-right: 6px; }
.product-video { margin-top: var(--s3); }
.product-video video, .product-video iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: var(--bw) solid var(--ink); border-radius: var(--r); background: #000; }

/* ---- Динамические блоки и промо-шаблон ---- */
.dyn-block { margin: var(--s3) 0; padding: var(--s4); border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--card); }
.dyn-block.dark { background: var(--ink); color: var(--light); }
.dyn-block.yellow { background: var(--yellow); }
.db-heading { font-family: Montserrat, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(22px, 3vw, 32px); margin: 0 0 var(--s2); color: inherit; }
.db-text { line-height: 1.7; margin: 0 0 var(--s2); }
.dyn-block.dark .db-text { color: rgba(242, 243, 245, .85); }
.db-image { width: 100%; display: block; border: var(--bw) solid var(--ink); border-radius: var(--r); margin: 0 0 var(--s2); }
.db-video { margin: 0 0 var(--s2); }
.db-video iframe, .db-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border: var(--bw) solid var(--ink); border-radius: var(--r); background: #000; }
.db-btn { margin: 0; }
.promo-hero { text-align: center; padding: var(--s6) 0 var(--s4); }
.promo-hero h1 { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; letter-spacing: .01em; }
.promo-hero .lead { max-width: 640px; margin: var(--s2) auto 0; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.promo-body { max-width: 900px; padding-bottom: var(--section); }

/* ---------- Варианты товара: теги-радиокнопки ---------- */
.variants { border: 0; padding: 0; margin: var(--s3) 0 var(--s2); }
.variants legend { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; padding: 0; }
.variant-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-tag { position: relative; cursor: pointer; }
.variant-tag input { position: absolute; opacity: 0; pointer-events: none; }
.variant-tag span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: var(--bw) solid var(--line); border-radius: 999px;
  background: var(--card); font-weight: 700; font-size: 14px; line-height: 1.2; transition: border-color .15s, background .15s; }
.variant-tag span:not(:has(img)) { padding-left: 14px; }
.variant-tag img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.variant-tag:hover span { border-color: var(--ink); }
.variant-tag input:checked + span { border-color: var(--ink); background: var(--yellow); }
.variant-tag input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.buy[hidden] { display: none; }

/* карточка товара: краткое описание под заголовком, покупка сразу под ним */
.product-info .lead { font-size: 17px; font-weight: 600; color: var(--ink-soft); margin: 0 0 var(--s2); max-width: 52ch; }
.product-info .buy { margin-bottom: var(--s3); }
.product-info .buy + .desc, .product-info .variants + .buy { margin-top: var(--s2); }
.product-info .desc { margin-top: var(--s3); }

/* ---------- Плитки поштучно: сколько каких плиток в одной позиции ---------- */
.picker { border: 0; padding: 0; margin: 0 0 var(--s2); min-width: 0; }
.picker legend { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.picker-hint { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.pick { display: flex; flex-direction: column; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; transition: border-color .15s; }
.pick-face { height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px;
  font-family: var(--font-display); transition: background .15s; }
.pick-glyph { font-family: var(--font-body); font-size: 13px; font-weight: 500; line-height: 1.1; color: var(--ink-soft); }
.pick-word .pick-glyph { font-size: 11px; hyphens: auto; -webkit-hyphens: auto; text-align: center; max-width: 100%; }
/* клетка Брайля: 2 × 3, выпуклые точки — чёрные, пустые места — бледным контуром */
.bcell { --d: 9px; --g: 5px; display: grid; grid-template-columns: repeat(2, var(--d)); grid-auto-rows: var(--d); gap: var(--g) calc(var(--g) + 1px); margin-bottom: 4px; }
.bcell i { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.bcell i.on { background: var(--ink); box-shadow: none; }
.pick.on .pick-glyph { color: var(--ink); }
.pick.on { border-color: var(--ink); }
.pick.on .pick-face { background: var(--yellow); }
.pick-qty { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); height: 34px; }
.pick.on .pick-qty { border-top-color: var(--ink); }
.pick-qty button { height: 100%; border: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; }
.pick-qty button:hover:not(:disabled) { background: var(--yellow); }
.pick-qty button:disabled { color: var(--line); cursor: default; }
.pick-qty button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pick-n { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; color: var(--ink-soft); }
.pick.on .pick-n { color: var(--ink); }
.picker-sum { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); font-weight: 700; }
.picker-sum .btn { margin-left: auto; }

/* раскладка карточки «поштучно»: фото | заголовок, цена, описание; ниже — выбор плиток на всю ширину */
.product-page.has-picker .gallery { grid-row: 1 / span 2; position: static; }   /* без «прилипания»: иначе фото наезжает на плитки ниже */
.product-page.has-picker .product-info { grid-row: 1; }
.product-page .product-more { grid-column: 7 / 13; grid-row: 2; }
.product-more .desc { color: var(--ink-soft); font-size: 16px; margin-bottom: var(--s3); }
.product-page .picker-wrap { grid-column: 1 / 13; grid-row: 3; border-top: var(--bw) solid var(--ink); padding-top: var(--s4); margin-top: var(--s2); }
.picker-wrap[hidden] { display: none; }
.picker-wrap { scroll-margin-top: 110px; }   /* якорь «Выбрать плитки»: заголовок блока не уходит под закреплённую шапку */
.price-row { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.price-row .price { margin-bottom: 0; }
.has-picker .product-info .buy { margin-bottom: 0; }
@media (min-width: 1001px) {
  .picker-wrap .picker-grid { grid-template-columns: repeat(11, 1fr); gap: 10px; }   /* 33 буквы — ровно три ряда */
  .picker-wrap .pick-face { height: 82px; }
  .picker-wrap .bcell { --d: 10px; --g: 6px; }
  .picker-wrap .pick-glyph { font-size: 14px; }
  .picker-wrap .pick-word .pick-glyph { font-size: 11.5px; }   /* «Пробел», «Шеститочие» — словом */
}
@media (max-width: 1000px) {
  .product-page.has-picker .gallery { order: 1; }
  .product-page.has-picker .product-info { order: 2; }
  .product-page .picker-wrap { order: 3; margin-top: 0; padding-top: var(--s3); }
  .product-page .product-more { order: 4; }
  .picker-sum .btn { margin-left: 0; width: 100%; justify-content: center; }
  .pick-qty { height: 40px; }   /* крупнее под палец */
}
.picker-reset { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.picker-reset:hover { color: var(--ink); }
.picker-reset[hidden] { display: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* в корзине: строка позиции и под ней плитки с количеством */
.cart-unit { display: block; font-size: 12px; color: var(--ink-soft); }
.cart-table tr.cart-picker td { border-bottom: none; }
.cart-table tr.cart-picker-tiles td { padding-top: 0; }
.cart-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cart-tile { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.cart-tile-name { font-family: var(--font-display); font-weight: 900; font-size: 17px; min-width: 18px; }
.cart-tile .qty { height: 34px; }
.cart-tile .qty button { width: 30px; font-size: 16px; }
.cart-tile .qty input { width: 28px; font-size: 14px; }
.cart-tile .cart-remove { font-size: 15px; padding: 0 4px; }

/* корзина на телефоне: строка товара — карточка (фото | название, цена, количество | сумма, удалить) */
@media (max-width: 700px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table tr { display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img title del" "img price sum" "img qty qty";
    gap: 6px 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
  .cart-table tr:last-child { border-bottom: none; }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td:nth-child(1) { grid-area: img; align-self: start; }
  .cart-table td:nth-child(2) { grid-area: title; }
  .cart-table td:nth-child(3) { grid-area: price; }
  .cart-table td:nth-child(4) { grid-area: qty; }
  .cart-table td:nth-child(5) { grid-area: sum; text-align: right; }
  .cart-table td:nth-child(6) { grid-area: del; text-align: right; }
  .cart-table img { width: 72px; height: 54px; }
  .cart-unit { display: inline; margin-left: 4px; }
  .cart-table tr.cart-picker { border-bottom: none; padding-bottom: 8px; }
  .cart-table tr.cart-picker-tiles { display: block; padding-top: 0; }
  .cart-total { font-size: 20px; }
}
