/* МИНИАТЮРА — светлая мастерская у окна (концепт R17).
   Шрифты: Literata (заголовки), Manrope (текст), Caveat (пометки мастера) — static/fonts/mini.css.
   Фактуры: крафт, бумага, орех — static/img/r17-*.jpg. Все цвета — токены ниже. */

:root {
  --paper: #F2ECE2;
  --paper-2: #E7DCC9;
  --card: #FFFAF2;
  --ink: #1E1A16;
  --ink-2: #2A231C;
  --text: #3D342B;
  --muted: #5C4E40;
  --muted-2: #6E6255;
  --red: #C63F27;
  --red-h: #B5361F;
  --red-ink: #8E2A18;
  --brown: #6B3A1C;
  --kraft: #E2CDA9;
  --walnut: #3E2414;
  --green: #2E6B45;
  --green-ink: #22543A;
  --line: rgba(30, 26, 22, .16);
  --line-2: rgba(70, 45, 20, .3);
  --shadow: 0 18px 40px rgba(70, 45, 20, .22), 0 2px 6px rgba(70, 45, 20, .16);
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --wrap: 1312px;
  --gut: 64px;
  /* для ui.css (календарь, выпадающие списки) */
  --text-ui: var(--ink); --card-ui: var(--card); --acc: var(--red); --acc-soft: rgba(198, 63, 39, .18); --mut: var(--muted);
}

/* ------------------------------------------------------------------ основа */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--paper); color: var(--ink);
  font: 500 16px/1.55 var(--sans);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, .m-fine a, .m-text a, .m-doc a, .m-terms a, .m-authalt a, .m-emptybox a, .m-foot-help a, label a {
  color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
p a:hover, li a:hover, dd a:hover, .m-doc a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.m-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #FFF6E8; font-weight: 700; }
.m-skip:focus { top: 12px; }
#pageload { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--red-ink), var(--red), #E8A64B); opacity: 0; transition: width .25s ease, opacity .3s ease; pointer-events: none; }
#pageload.go { opacity: 1; }
.m-wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.m-main.m-page { padding: 8px 0 104px; }
.m-center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* фактуры */
.m-walnut { background-color: #3E2414; background-image: url(../img/r17-walnut.jpg); background-size: 1024px 256px; }
.m-kraft-tex { background-color: #E2CDA9; background-image: url(../img/r17-kraft.jpg); background-size: 240px 240px; }
.m-paper { background-color: #F8F4EA; background-image: url(../img/r17-paper.jpg); background-size: 512px 512px; }

/* ------------------------------------------------------------------ типографика */
.m-eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); }
.m-h1 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 84px; line-height: .95; letter-spacing: -.022em; color: var(--ink); }
.m-h1 em, .m-h2 em { font-style: italic; font-weight: 400; }
.m-h1-page { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; margin-top: 14px; }
.m-h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(42px, 5.3vw, 76px); line-height: .98; letter-spacing: -.02em; margin-top: 18px; color: var(--ink); }
.m-h2-sheet { font-size: clamp(34px, 4vw, 58px); line-height: 1; margin-top: 14px; }
.m-h2-small { font-size: clamp(30px, 3vw, 42px); margin: 0 0 22px; }
.m-h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--ink); }
.m-text { font: 500 17px/1.6 var(--sans); color: var(--text); }
.m-text-narrow { max-width: 420px; }
.m-lead { margin-top: 20px; max-width: 500px; font: 500 17px/1.55 var(--sans); color: var(--text); }
.m-hand { font-family: var(--hand); font-weight: 600; color: var(--brown); line-height: 1.05; }
.m-handnote { font-size: 25px; margin-top: 10px; }
.m-handtilt { font-size: 28px; transform: rotate(-3deg); margin-bottom: 4px; }
.m-fine { font: 500 13.5px/1.5 var(--sans); color: var(--muted); }
.m-muted { color: var(--muted); }
.m-placeholder { font-weight: 700; color: var(--ink); }

/* проявление строк заголовка */
.m-line { display: block; overflow: hidden; padding-bottom: .08em; }
.m-line > span { display: inline-block; animation: mRise 1.15s cubic-bezier(.16, .84, .24, 1) both; }
.m-line:nth-child(2) > span { animation-delay: .12s; }
.m-line:nth-child(3) > span { animation-delay: .24s; }
.m-fade { animation: mFade 1.2s .35s cubic-bezier(.2, .8, .2, 1) both; }
.m-wiggle { animation: mWig 3.6s ease-in-out infinite; transform-origin: 0 50%; }
@keyframes mRise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes mFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mWig { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-2deg) translateX(3px); } }
.m-ruler {
  display: inline-block; margin-left: 18px; vertical-align: .12em; width: 186px; height: 22px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 9.3px) bottom left / 100% 9px no-repeat,
              repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 46.5px) bottom left / 100% 18px no-repeat;
  border-bottom: 2px solid var(--ink);
}

/* ------------------------------------------------------------------ кнопки */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer; font: 700 16px/1.1 var(--sans); text-align: center; text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .2s, color .2s;
}
.m-red { background: var(--red); color: #FFF8EE; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px rgba(150, 46, 24, .28); }
.m-red:hover { transform: translateY(-2px); background: var(--red-h); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 30px rgba(150, 46, 24, .34); }
.m-dark { background: var(--ink); color: #FFF6E8; }
.m-dark:hover { background: #3A3129; transform: translateY(-1px); }
.m-ghost { background: rgba(255, 250, 242, .6); color: var(--ink); box-shadow: 0 0 0 1.5px rgba(30, 26, 22, .55) inset; }
.m-ghost:hover { background: #FFFAF2; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.m-btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; gap: 8px; }
.m-btn-xs { min-height: 36px; padding: 0 14px; font-size: 13px; }
.m-btn-block { display: flex; width: 100%; }
.m-btn[disabled], .m-btn:disabled { opacity: .55; cursor: default; transform: none; }
.m-btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.m-linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: 700 14px/1.2 var(--sans); color: var(--red-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.m-linkbtn:hover { color: var(--red); }
.m-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.m-iconbtn:hover { background: rgba(198, 63, 39, .1); color: var(--red); }
.m-morelink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--red-ink); }
.m-morelink:hover { color: var(--red); }

/* «+» на витрине */
.m-addform { display: contents; }
.m-add { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; background: var(--ink); color: #FFF6E8; display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s; }
.m-add:hover { background: var(--red); transform: scale(1.06); }
.m-add.is-done, .m-add.is-done:hover { background: var(--green); transform: none; }
.m-add:disabled { cursor: progress; }

/* чипы */
.m-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 248, 236, .6); color: var(--ink-2);
  font: 700 13.5px/1.1 var(--sans); box-shadow: 0 0 0 1px rgba(70, 45, 20, .28) inset; transition: background .2s, color .2s; white-space: nowrap;
}
.m-chip:hover { background: #FFF8EC; }
.m-chip.is-on { background: var(--ink); color: #FFF6E8; box-shadow: none; }
.m-chip-n { font-weight: 800; font-size: 12px; opacity: .72; }
.m-chip-ico { width: 44px; padding: 0; }
.m-chip-sm { min-height: 40px; font-size: 13px; }
.m-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.m-chiprow-center { justify-content: center; }

/* ------------------------------------------------------------------ шапка */
.ld-head { position: relative; z-index: 40; }
.is-home .ld-head { position: absolute; left: 0; right: 0; top: 0; }
body:not(.is-home) .ld-head { position: sticky; top: 0; background: rgba(242, 236, 226, .93); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); box-shadow: 0 1px 0 var(--line); }
.m-headbar { max-width: 1440px; height: 88px; margin: 0 auto; padding: 0 56px 0 64px; display: flex; align-items: center; gap: 28px; }
body:not(.is-home) .m-headbar { height: 76px; }
.m-logo { display: flex; align-items: center; gap: 14px; flex: none; min-height: 44px; }
.m-logo-word { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .26em; color: var(--ink); }
.m-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.m-nav > a, .m-menu-btn { font: 600 15px/1 var(--sans); padding: 14px 2px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.m-nav > a:hover, .m-menu-btn:hover { border-bottom-color: var(--red); }
.m-menu { position: relative; }
.m-menu-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.m-menu-btn::-webkit-details-marker { display: none; }
.m-menu[open] .m-menu-btn svg { transform: rotate(180deg); }
.m-menu-panel {
  position: absolute; top: calc(100% + 10px); left: -24px; z-index: 50; width: 520px; padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px;
  border-radius: 6px; background-color: #E6D3B2; background-image: url(../img/r17-kraft.jpg); background-size: 360px 360px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 50px rgba(60, 40, 20, .3);
}
.m-menu-col { display: flex; flex-direction: column; gap: 2px; }
.m-menu-col .m-eyebrow { margin-bottom: 8px; }
.m-menu-col a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 10px; border-radius: 4px; }
.m-menu-col a b { font: 700 15px/1.2 var(--sans); color: var(--ink); }
.m-menu-col a span { font: 600 12.5px/1.2 var(--sans); color: #4A3C2E; white-space: nowrap; }
.m-menu-col a:hover, .m-menu-col a.on { background: rgba(255, 248, 236, .7); }
.m-headtools { display: flex; align-items: center; gap: 12px; flex: none; }
.m-search { position: relative; display: block; }
.m-search > svg { position: absolute; left: 16px; top: 14px; color: var(--muted); pointer-events: none; }
.m-input { width: 230px; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 0; background: rgba(255, 250, 242, .85); box-shadow: 0 0 0 1px rgba(30, 26, 22, .18) inset; color: var(--ink); font: 500 15px/1 var(--sans); }
.m-input::placeholder { color: var(--muted-2); }
.m-input:focus { outline: none; box-shadow: 0 0 0 2px var(--red) inset; background: #FFFAF2; }
.m-toplink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 700 15px/1 var(--sans); color: var(--ink-2); }
.m-toplink:hover { color: var(--red); }
.m-cart { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--ink); color: #F6EFE4; font: 700 15px/1 var(--sans); }
.m-cart:hover { background: #3A3129; }
.m-cart.is-bump { animation: mBump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mBump { 40% { transform: scale(1.08); } }
.cart-badge { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #FFF6E8; font: 800 13px/30px var(--sans); text-align: center; }
.cart-badge.is-zero { background: rgba(255, 246, 232, .16); }
.m-burger { display: none; margin-left: auto; }
.m-burger-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; list-style: none; color: var(--ink); background: rgba(255, 250, 242, .7); box-shadow: 0 0 0 1px rgba(30, 26, 22, .18) inset; }
.m-burger-btn::-webkit-details-marker { display: none; }
.m-burger-panel { position: absolute; left: 12px; right: 12px; top: calc(100% + 4px); z-index: 60; padding: 16px; border-radius: 8px; background-color: #E6D3B2; background-image: url(../img/r17-kraft.jpg); background-size: 360px 360px; box-shadow: 0 24px 50px rgba(60, 40, 20, .32); }
.m-search-wide .m-input { width: 100%; }
.m-burger-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.m-burger-nav a { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 12px; border-radius: 6px; background: rgba(255, 248, 236, .6); }
.m-burger-nav a b { font: 700 15px/1.2 var(--sans); color: var(--ink); }
.m-burger-nav a span { font: 600 12px/1.3 var(--sans); color: #4A3C2E; }

/* подсказки поиска */
.ld-suggest { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 380px; max-width: 92vw; padding: 6px; border-radius: 8px; background: var(--card); box-shadow: 0 24px 50px rgba(60, 40, 20, .26), 0 0 0 1px var(--line); }
.ld-suggest a { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; min-height: 52px; padding: 6px 8px; border-radius: 6px; }
.ld-suggest a img { width: 34px; height: 46px; object-fit: cover; border-radius: 2px; }
.ld-suggest a span { font: 700 14px/1.25 var(--sans); color: var(--ink); }
.ld-suggest a small { display: block; font: 600 12px/1.3 var(--sans); color: var(--muted); }
.ld-suggest a b { font: 700 15px/1 var(--serif); white-space: nowrap; }
.ld-suggest a:hover, .ld-suggest a.is-active { background: #F2E6D2; }
.ld-suggest .ld-suggest-all { display: block; min-height: 44px; padding: 12px 10px; font: 700 13.5px/1.3 var(--sans); color: var(--red-ink); }

/* сообщения — записка на скотче */
.flashes { position: fixed; z-index: 90; top: 96px; right: 24px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.flash { position: relative; padding: 16px 20px 14px; border-radius: 4px; background-color: #F1E3C6; background-image: url(../img/r17-kraft.jpg); background-size: 360px; color: var(--ink); font: 600 15px/1.45 var(--sans); box-shadow: 0 16px 34px rgba(60, 40, 20, .28); animation: mFade .5s both; }
.flash::before { content: ''; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: rgba(245, 236, 214, .82); transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.flash-warn { box-shadow: 0 0 0 2px var(--red) inset, 0 16px 34px rgba(60, 40, 20, .28); }

/* ------------------------------------------------------------------ подвал: торец ореховой подставки */
.ld-foot { position: relative; color: #E8D8BF; background-color: #3E2414; background-image: url(../img/r17-walnut.jpg); background-size: 1024px 256px; }
.m-foot-glow { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(180deg, rgba(255, 224, 180, .35), rgba(255, 224, 180, 0)); pointer-events: none; }
.m-foot-top { max-width: 1440px; margin: 0 auto; padding: 64px 64px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.m-plaque { position: relative; display: block; padding: 26px 46px; border-radius: 6px; text-align: center; background: linear-gradient(180deg, #F3D99B 0%, #D9B266 40%, #B48A3E 72%, #8E6A2C 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(0, 0, 0, .25) inset, 0 14px 30px rgba(0, 0, 0, .45); }
.m-rivet { position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF1C9, #7A5A22); }
.m-rivet-r { left: auto; right: 14px; }
.m-plaque-word { display: block; font: 700 54px/1 var(--serif); letter-spacing: .22em; color: #3A2610; text-shadow: 0 1px 0 rgba(255, 240, 200, .65), 0 -1px 0 rgba(60, 35, 10, .35); }
.m-plaque-sub { display: block; margin-top: 10px; font: 800 12px/1 var(--sans); letter-spacing: .32em; color: #4A3214; }
.m-foot-help { width: 440px; font: 500 15px/1.6 var(--sans); }
.m-foot-help b { color: #fff; }
.m-foot-help a { color: #FFF4E2; }
.m-foot-pay { margin-top: 16px; }
.m-foot-grid { max-width: 1440px; margin: 48px auto 0; padding: 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.m-foot-head { font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #F3D99B; margin-bottom: 10px; }
.m-foot-col { display: flex; flex-direction: column; }
.m-foot-col a { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px/1.3 var(--sans); color: #FFF4E2; }
.m-foot-col a:hover { color: #F3D99B; text-decoration: underline; text-underline-offset: 4px; }
.m-foot-bottom { max-width: calc(1440px - 128px); margin: 40px auto 0; padding: 24px 0 44px; border-top: 1px solid rgba(242, 230, 210, .22); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; font: 500 13.5px/1.5 var(--sans); color: #E8D8BF; }
.m-foot-domain { font: 800 15px/1 var(--sans); color: #FFF4E2; letter-spacing: .04em; }
.paylogos { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.paylogo svg { display: block; width: 52px; height: 32px; }

/* ------------------------------------------------------------------ ГЕРОЙ */
.m-home { padding: 0; }
.m-hero { position: relative; min-height: clamp(860px, 72.2vw, 1040px); background: var(--paper-2); overflow: hidden; }
.m-stage { position: absolute; inset: 0; z-index: 0; }
.m-still { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; pointer-events: none; }
.m-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.m-cv.is-on { opacity: 1; }
.m-cv.is-off { display: none; }
/* без WebGL — снимки диорам вместо живых сцен (качаются только в этом случае) */
.m-stage.no-gl > .m-still { background-image: url(../img/still/hero-desk.jpg); }
.m-poststage.no-gl > .m-still { background-image: url(../img/still/post-desk.jpg); }
.m-tiles.no-gl .m-still-race { background-image: url(../img/still/tile-race.jpg); }
.m-tiles.no-gl .m-still-sport { background-image: url(../img/still/tile-sport.jpg); }
.m-tiles.no-gl .m-still-farm { background-image: url(../img/still/tile-farm.jpg); }
.m-tiles.no-gl .m-still-fort { background-image: url(../img/still/tile-fort.jpg); }
.m-stage.no-gl ~ .m-caption, .m-stage.no-gl ~ .m-hero-in .m-hint { display: none; }
.m-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.m-veil-sel { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(242, 236, 226, .92) 0%, rgba(242, 236, 226, .86) 30%, rgba(242, 236, 226, .35) 41%, rgba(242, 236, 226, 0) 48%); }
.m-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(242, 236, 226, .86) 0%, rgba(242, 236, 226, .62) 22%, rgba(242, 236, 226, .18) 36%, rgba(242, 236, 226, 0) 44%), linear-gradient(180deg, rgba(242, 236, 226, .55) 0%, rgba(242, 236, 226, 0) 13%); }
.m-hero-in { position: relative; z-index: 4; max-width: 1440px; margin: 0 auto; padding: 132px 64px 72px; pointer-events: none; }
.m-hero-text { width: 600px; pointer-events: auto; }
.m-hero .m-h1 { margin-top: 18px; }
.m-ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.m-hint { position: absolute; left: 652px; top: 206px; z-index: 4; width: 240px; font-size: 27px; pointer-events: none; }
.m-hint svg { display: block; margin: 2px 0 0 70px; }
.m-caption { position: absolute; right: 56px; bottom: 26px; z-index: 4; font: 600 12px/1.5 var(--sans); color: var(--text); text-align: right; letter-spacing: .02em; pointer-events: none; }

/* афиши, ценники, таблички — ставит mini-gl.js */
.m-post { position: absolute; left: 0; top: 0; width: 120px; height: 180px; padding: 0; margin: 0; border: 0; background: #F4EFE6; transform-origin: 0 0; visibility: hidden; cursor: pointer; pointer-events: auto; will-change: transform; }
.m-post img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-post::after { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .12) 100%); pointer-events: none; }
.m-post:focus-visible { outline: 8px solid var(--red); outline-offset: 6px; }
.m-tag { position: absolute; left: 0; top: 0; transform-origin: 0 0; visibility: hidden; pointer-events: none; padding: 5px 9px; border-radius: 3px; background: #FFF8EC; color: var(--ink); font: 800 13px/1 var(--sans); white-space: nowrap; box-shadow: 0 2px 0 rgba(60, 40, 20, .25), 0 6px 14px rgba(60, 40, 20, .18); }
.m-tag::before { content: ''; position: absolute; left: 50%; top: -9px; width: 1px; height: 9px; background: rgba(60, 40, 20, .55); }
.m-sign { position: absolute; left: 0; top: 0; width: 300px; height: 80px; padding: 0 18px 0 22px; margin: 0; border: 0; transform-origin: 0 0; visibility: hidden; pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #2A1C10; font: 800 33px/1 var(--sans); letter-spacing: .01em; background: linear-gradient(180deg, #F1E3C6 0%, #E4D0A8 55%, #D8C095 100%); border-radius: 6px; box-shadow: 0 0 0 4px #7A5434 inset, 0 0 0 7px rgba(255, 236, 200, .5) inset, 0 6px 0 #5B3C22; }
.m-sign::before { content: ''; position: absolute; inset: -28px -12px; }
.m-sign:hover, .m-sign.is-on { background: linear-gradient(180deg, #FFF3DA 0%, #F4DFB5 55%, #EACB93 100%); color: var(--red-ink); }
.m-sign .m-arr { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #2A1C10; color: #F1E3C6; display: grid; place-items: center; }
.m-sign:hover .m-arr, .m-sign.is-on .m-arr { background: var(--red); }
.m-sign:focus-visible { outline: 6px solid var(--red); outline-offset: 6px; }
.m-note { position: absolute; left: 0; top: 0; pointer-events: none; font: 600 25px/1.05 var(--hand); color: #FFFDF6; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .25); white-space: nowrap; visibility: hidden; }

/* карточка «набора» на крафте */
.m-card { position: relative; background-color: #E2CDA9; background-image: url(../img/r17-kraft.jpg); background-size: 360px 360px; border-radius: 4px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, var(--shadow); }
.m-tape { position: absolute; right: 56px; top: -13px; width: 110px; height: 28px; background: rgba(245, 236, 214, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transform: rotate(3deg); pointer-events: none; }
.m-kit { width: 500px; margin-top: 40px; padding: 20px 22px 12px; pointer-events: auto; }
.m-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 14px; }
.m-chips .m-chip { flex: none; padding: 0 11px; font-size: 13px; }
.m-chips .m-chip-ico { width: 44px; padding: 0; }
.m-kitpanel { margin-top: 8px; }
.m-kithead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.m-kitname { font: 600 30px/1 var(--serif); color: var(--ink); }
.m-kitno { color: var(--brown); white-space: nowrap; }
.m-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 44px; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px dashed rgba(70, 45, 20, .35); }
.m-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #3A2A1A; display: grid; place-items: center; font: 800 12px/1 var(--sans); color: #2A1C10; }
.m-rowmain { min-width: 0; }
.m-rowt { display: inline-block; font: 700 15px/1.25 var(--sans); color: var(--ink); }
a.m-rowt:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.m-row:hover .m-rowt { color: var(--red-ink); }
.m-rows { margin-top: 3px; font: 500 12.5px/1.3 var(--sans); color: #4A3C2E; }
.m-price { font: 700 19px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.m-kitmore { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; border-top: 1px dashed rgba(70, 45, 20, .35); font: 700 14px/1.2 var(--sans); color: var(--red-ink); }
.m-kitmore:hover { color: var(--red); }
.m-empty-note { padding: 14px 0; font: 600 14px/1.4 var(--sans); color: #4A3C2E; }

/* ------------------------------------------------------------------ ЖАНРЫ */
.m-sec { position: relative; padding-top: 112px; }
.m-sechead-split { display: grid; grid-template-columns: 1fr 470px; gap: 40px; align-items: end; }
.m-sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.m-tiles { position: relative; margin-top: 46px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.m-tiles > .m-cv { z-index: 0; pointer-events: none; }
.m-tile { position: relative; z-index: 3; aspect-ratio: 640 / 540; }
.m-tview { position: absolute; inset: 0; }
.m-tview > .m-still { border-radius: 2px; }
.m-tlabel { position: absolute; left: 20px; top: 18px; display: flex; align-items: center; gap: 10px; padding: 2px 14px 2px 10px; border-radius: 4px; background: rgba(255, 250, 241, .92); box-shadow: 0 6px 16px rgba(60, 40, 20, .16); }
.m-tno { font: 800 11px/1 var(--sans); letter-spacing: .12em; color: #FFF6E8; background: var(--ink); padding: 6px 7px; border-radius: 3px; }
.m-tname { display: inline-flex; align-items: center; min-height: 44px; font: 600 22px/1 var(--serif); color: var(--ink); }
.m-tname:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 4px; }
.m-tscale { font: 700 12px/1 var(--sans); color: var(--muted); letter-spacing: .06em; }
.m-tcards { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-tcard { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 10px; border-radius: 4px; background-color: #E6D3B2; background-image: url(../img/r17-kraft.jpg); background-size: 360px 360px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 26px rgba(60, 40, 20, .24); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.m-tcard:hover { transform: translateY(-3px); }
.m-tcardmain { min-width: 0; }
.m-tcard .m-rowt { font-size: 14px; }
.m-tcard .m-rows { font-size: 12px; }
.m-tcard .m-price { margin-top: 6px; font-size: 18px; }
.m-thumb { width: 44px; height: 62px; object-fit: cover; display: block; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.m-tpost { position: absolute; z-index: 2; left: 0; top: 0; width: 120px; height: 180px; transform-origin: 0 0; visibility: hidden; pointer-events: none; background: #F4EFE6; will-change: transform; }
.m-tpost img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-tpost::after { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .12) 100%); }

/* ------------------------------------------------------------------ КОРОБКИ (полка мастера) */
.m-boxcell { --bxs: 1; --bxh: 262px; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.m-boxlink { position: relative; z-index: 1; height: var(--bxh); display: flex; align-items: flex-end; justify-content: center; perspective: 1400px; perspective-origin: 50% -40%; }
.m-boxshadow { position: absolute; left: 50%; bottom: -10px; width: 210px; height: 26px; margin-left: -96px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 22, 10, .42), rgba(40, 22, 10, 0)); transform: scale(var(--bxs)); }
.m-box { position: relative; display: block; width: 168px; height: 232px; transform-style: preserve-3d; transform-origin: 50% 100%; transform: scale(var(--bxs)) rotateY(-32deg) rotateX(-4deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.m-boxcell:hover .m-box, .m-boxcell:focus-within .m-box { transform: scale(var(--bxs)) rotateY(-12deg) rotateX(-2deg) translateY(-12px); }
.m-face { position: absolute; left: 0; top: 0; display: block; backface-visibility: hidden; }
.m-front { width: 168px; height: 232px; transform: translateZ(32px); background: #FBF6EC; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06) inset; }
.m-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 32%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .1) 100%); pointer-events: none; }
.m-front img { position: absolute; left: 8px; top: 30px; width: 152px; height: 194px; object-fit: cover; display: block; background: #E7DCC9; }
.m-front-head { position: absolute; left: 8px; right: 8px; top: 8px; height: 16px; display: flex; justify-content: space-between; align-items: center; font: 800 9px/1 var(--sans); letter-spacing: .14em; color: var(--ink); }
.m-side { width: 64px; height: 232px; transform: rotateY(90deg) translateZ(168px) translateX(-32px); transform-origin: 0 0; background: var(--spine, #3B3A52); box-shadow: inset 12px 0 18px rgba(0, 0, 0, .28); overflow: hidden; }
.m-side > span { position: absolute; left: 0; top: 0; width: 232px; height: 64px; transform: rotate(90deg) translateY(-64px); transform-origin: 0 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; font: 800 11px/1.1 var(--sans); letter-spacing: .12em; color: #FFF6E8; white-space: nowrap; overflow: hidden; text-transform: uppercase; }
.m-top { width: 168px; height: 64px; transform: rotateX(90deg) translateY(-32px); transform-origin: 0 0; background-color: #E2CDA9; background-image: url(../img/r17-kraft.jpg); background-size: 240px 240px; box-shadow: inset 0 -10px 16px rgba(0, 0, 0, .12); }
.m-sticker { position: absolute; right: -14px; bottom: 26px; width: 74px; height: 74px; border-radius: 50%; background: var(--red); color: #FFF8EE; display: grid; place-items: center; text-align: center; font: 800 13.5px/1.05 var(--sans); transform: rotate(-12deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); white-space: nowrap; }
.m-sale { position: absolute; left: -10px; bottom: 30px; padding: 5px 8px; border-radius: 3px; background: var(--ink); color: #FFF6E8; font: 800 12px/1 var(--sans); transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.m-boxcap { position: relative; z-index: 1; margin-top: 34px; width: 210px; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.m-boxtext { min-width: 0; }
.m-boxcap .m-rowt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-boxcap .m-rows { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* доска под коробками: на главной — одна ореховая, в разделах — сегмент у каждой ячейки (стыков не видно) */
.m-shelf-home { position: relative; margin-top: 54px; }
.m-shelfrow { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.m-plank { position: absolute; left: -20px; right: -20px; top: 252px; height: 26px; z-index: 1; border-radius: 3px; box-shadow: 0 1px 0 rgba(255, 220, 180, .35) inset, 0 -1px 0 rgba(0, 0, 0, .3) inset, 0 22px 30px rgba(60, 35, 15, .28); }
.m-shelfmore { margin-top: 28px; text-align: center; }
.m-shelfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); column-gap: 24px; row-gap: 56px; margin-top: 30px; }
.m-shelfgrid .m-boxcell::before {
  content: ''; position: absolute; z-index: 0; left: -12px; right: -12px; top: calc(var(--bxh) - 10px); height: 26px;
  background: linear-gradient(180deg, rgba(255, 220, 180, .28) 0, rgba(255, 220, 180, 0) 3px),
              repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 5px, rgba(0, 0, 0, .07) 5px 6px, rgba(255, 210, 160, .05) 6px 9px),
              linear-gradient(180deg, #6A4127 0%, #4A2C19 55%, #3A2213 100%);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .3) inset, 0 22px 26px -10px rgba(60, 35, 15, .3);
}
.m-shelfgrid .m-boxcell[hidden] { display: none; }
.m-shelftitle { margin: 36px 0 0; font: 600 28px/1.15 var(--serif); }
.m-shelftitle span { font: 600 16px/1 var(--sans); color: var(--muted); }
.ld-more-wrap { margin-top: 40px; text-align: center; }

/* ------------------------------------------------------------------ ИНСТРУКЦИЯ (лист) */
.m-sheet { position: relative; padding: 54px 60px 58px; border-radius: 3px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 50px rgba(70, 45, 20, .16), 0 2px 6px rgba(70, 45, 20, .12); }
.m-howsec .m-sheet-fold { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(0, 0, 0, .07) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(0, 0, 0, .07) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); -webkit-mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.m-sheethead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 22px; }
.m-steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; counter-reset: none; }
.m-stephead { display: flex; align-items: center; gap: 18px; }
.m-step-n { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font: 600 30px/1 var(--serif); color: var(--ink); background: #FFFCF5; }
.m-part { font: 700 11px/1.35 var(--sans); letter-spacing: .08em; color: var(--muted); }
.m-stepart { display: block; width: 100%; max-width: 300px; height: auto; margin-top: 22px; }
.m-steps .m-h3 { margin-top: 18px; }
.m-steps p { margin-top: 10px; font: 500 16px/1.6 var(--sans); color: var(--text); }

/* ------------------------------------------------------------------ «ПОЧТА» */
.m-postsec { position: relative; margin-top: 110px; height: 460px; overflow: hidden; background: var(--paper-2); }
.m-poststage { position: absolute; inset: 0; }
.m-postveil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(242, 236, 226, .92) 0%, rgba(242, 236, 226, .8) 26%, rgba(242, 236, 226, .2) 37%, rgba(242, 236, 226, 0) 42%), linear-gradient(180deg, rgba(242, 236, 226, 1) 0%, rgba(242, 236, 226, 0) 16%); }
.m-sign-post { position: absolute; z-index: 2; left: 0; top: 0; width: 260px; height: 36px; transform-origin: 0 0; visibility: hidden; pointer-events: none; display: grid; place-items: center; background: #1F3F86; color: #fff; font: 800 26px/1 var(--sans); letter-spacing: .32em; text-indent: .32em; }
.m-posttext { position: absolute; left: max(64px, calc(50vw - 656px)); top: 92px; z-index: 3; width: 420px; }
.m-h2-post { font-size: 56px; margin-top: 16px; }
.m-posttext .m-text { margin-top: 18px; font-size: 16px; }
.m-posttext .m-btn { margin-top: 22px; }

/* ------------------------------------------------------------------ внутренние страницы */
.m-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding-top: 12px; font: 600 13.5px/1.4 var(--sans); color: var(--muted); }
.m-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.m-crumbs a:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.m-crumbs > span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.m-pagehead { padding: 26px 0 18px; }
.m-pagehead-shelf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.m-pagelead { margin-top: 14px; max-width: 640px; }
.m-filters { padding: 6px 0 4px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.m-budget { margin: 6px 0 14px; padding: 14px 16px 12px; border-radius: 4px; background: rgba(255, 250, 242, .55); box-shadow: 0 0 0 1px var(--line) inset; }
.pricepick-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.m-budget-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.m-budget-label { font: 700 14px/1.2 var(--sans); color: var(--ink); }
.m-budget-input { position: relative; display: inline-flex; align-items: center; }
.m-budget-input input { width: 150px; height: 46px; padding: 0 34px 0 16px; border-radius: 999px; border: 0; background: #FFFAF2; box-shadow: 0 0 0 1px rgba(30, 26, 22, .25) inset; font-weight: 700; }
.m-budget-input input:focus { outline: none; box-shadow: 0 0 0 2px var(--red) inset; }
.pricepick-cur { position: absolute; right: 14px; font-weight: 800; color: var(--muted); pointer-events: none; }
.pricepick-range { display: block; flex: 1 1 220px; max-width: 360px; min-height: 44px; margin: 0; accent-color: var(--red); }
.pricepick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-found { font: 600 15px/1.4 var(--sans); color: var(--muted); }
.m-bigsearch { position: relative; display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 6px 0 4px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #FFFAF2; box-shadow: 0 0 0 1.5px rgba(30, 26, 22, .3) inset; }
.m-bigsearch > svg { color: var(--muted); flex: none; }
.m-bigsearch input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: 600 17px/1 var(--sans); }
.m-bigsearch input:focus { outline: none; }
.m-bigsearch:focus-within { box-shadow: 0 0 0 2px var(--red) inset; }
.m-bigsearch .ld-suggest { left: 0; right: auto; width: 100%; }
.m-emptybox { margin: 34px auto 10px; max-width: 620px; padding: 34px 28px; text-align: center; border-radius: 4px; background: rgba(255, 250, 242, .6); box-shadow: 0 0 0 1px var(--line) inset; }
.m-emptybox b { display: block; font: 600 24px/1.2 var(--serif); color: var(--ink); }
.m-emptybox p { margin: 10px 0 16px; color: var(--text); }
.m-emptyart { width: 220px; height: auto; margin-bottom: 14px; }

/* ------------------------------------------------------------------ карточка товара */
.m-pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; padding: 26px 0 30px; }
.m-pdp-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 560px; perspective: 1600px; perspective-origin: 50% -20%; }
.m-bigbox { position: relative; width: 300px; height: 414px; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(-3deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); z-index: 2; margin-bottom: 18px; }
.m-pdp-stage:hover .m-bigbox { transform: rotateY(-10deg) rotateX(-2deg) translateY(-8px); }
.m-bigbox .m-front { width: 300px; height: 414px; transform: translateZ(48px); }
.m-bigbox .m-front img { left: 14px; top: 44px; width: 272px; height: 330px; }
.m-bigbox .m-front-head { left: 14px; right: 14px; top: 14px; height: 20px; font-size: 12px; }
.m-front-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; font: 800 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; }
.m-bigbox .m-side { width: 96px; height: 414px; transform: rotateY(90deg) translateZ(300px) translateX(-48px); }
.m-bigbox .m-side > span { width: 414px; height: 96px; transform: rotate(90deg) translateY(-96px); font-size: 15px; }
.m-bigbox .m-top { width: 300px; height: 96px; transform: rotateX(90deg) translateY(-48px); }
.m-sticker-big { width: 104px; height: 104px; right: -26px; bottom: 54px; font-size: 18px; }
.m-bigbox-shadow { position: absolute; bottom: 64px; left: 50%; width: 380px; height: 40px; margin-left: -170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 22, 10, .45), rgba(40, 22, 10, 0)); z-index: 1; }
.m-plinth { position: relative; z-index: 1; width: min(460px, 100%); height: 70px; border-radius: 4px; display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255, 220, 180, .35) inset, 0 -2px 0 rgba(0, 0, 0, .3) inset, 0 22px 36px rgba(60, 35, 15, .3); }
.m-plinth-plate { padding: 8px 16px; border-radius: 3px; background: linear-gradient(180deg, #F3D99B 0%, #D9B266 45%, #B48A3E 100%); color: #3A2610; font: 800 11px/1 var(--sans); letter-spacing: .22em; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 10px rgba(0, 0, 0, .35); }
.m-pdp-card { padding: 30px 32px 26px; }
.m-pdp-title { margin-top: 12px; font: 600 clamp(32px, 3.6vw, 48px)/1.04 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.m-ok { color: var(--green-ink); }
.m-warn { color: var(--red-ink); }
.m-specs { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.m-specs li { padding: 10px 12px; border-radius: 4px; background: rgba(255, 248, 236, .55); box-shadow: 0 0 0 1px rgba(70, 45, 20, .22) inset; }
.m-specs span { display: block; font: 700 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #4A3C2E; }
.m-specs b { display: block; margin-top: 4px; font: 700 15px/1.3 var(--sans); color: var(--ink); }
.m-pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 22px; }
.m-pricebig { font: 600 44px/1 var(--serif); color: var(--ink); }
.m-priceold { font: 600 20px/1 var(--serif); color: #4A3C2E; }
.m-salechip { padding: 5px 9px; border-radius: 3px; background: var(--ink); color: #FFF6E8; font: 800 13px/1 var(--sans); }
.m-buyform { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.m-buybtns { display: flex; flex-wrap: wrap; gap: 10px; }
.m-qty { display: inline-flex; align-items: center; gap: 6px; }
.m-qty-label { font: 700 14px/1.2 var(--sans); margin-right: 8px; }
.m-qty input { width: 64px; height: 44px; border: 0; border-radius: 6px; text-align: center; font: 800 17px/1 var(--sans); background: #FFFAF2; box-shadow: 0 0 0 1px rgba(30, 26, 22, .25) inset; -moz-appearance: textfield; }
.m-qty input::-webkit-outer-spin-button, .m-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m-qty input:focus { outline: none; box-shadow: 0 0 0 2px var(--red) inset; }
.m-qbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 248, 236, .75); box-shadow: 0 0 0 1px rgba(30, 26, 22, .3) inset; font: 700 20px/1 var(--sans); cursor: pointer; }
.m-qbtn:hover { background: #FFF8EC; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.m-fine a { color: var(--red-ink); }
.m-pdp-card .m-fine { margin-top: 14px; }
.m-note-warn { margin-top: 16px; padding: 12px 14px; border-radius: 4px; background: rgba(198, 63, 39, .1); font: 600 15px/1.45 var(--sans); }
.m-pdp-sheet { margin-top: 26px; }
.m-parts { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.m-partlist > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px dashed rgba(30, 26, 22, .25); }
.m-partlist > div:first-child { border-top: 0; padding-top: 0; }
.m-partlist dt { display: flex; align-items: center; gap: 10px; font: 700 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.m-partno { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 15px/1 var(--serif); color: var(--ink); letter-spacing: 0; background: #FFFCF5; }
.m-partlist dd { font: 600 16px/1.5 var(--sans); color: var(--ink); }
.m-desc p { margin-top: 10px; color: var(--text); }
.m-mini-steps { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; counter-reset: st; }
.m-mini-steps li { position: relative; padding-left: 38px; font: 500 15.5px/1.55 var(--sans); color: var(--text); counter-increment: st; }
.m-mini-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 13px/1 var(--serif); color: var(--ink); background: #FFFCF5; }
.m-mini-steps b { color: var(--ink); }
.m-reviews { margin-top: 64px; }
.m-revlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.m-review { padding: 16px 18px; border-radius: 4px; background: rgba(255, 250, 242, .65); box-shadow: 0 0 0 1px var(--line) inset; }
.m-review p { margin-top: 8px; color: var(--text); }
.m-stars span { color: rgba(30, 26, 22, .22); font-size: 18px; }
.m-stars span.on { color: #C9932C; }
.m-related { margin-top: 64px; }

/* ------------------------------------------------------------------ корзина: верстак */
.m-bench { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-top: 18px; }
.m-benchtop { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 220, 180, .22), rgba(255, 220, 180, 0) 4px), repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 11px, rgba(0, 0, 0, .05) 11px 12px), linear-gradient(180deg, #A9784C, #8C5E38); box-shadow: 0 1px 0 rgba(255, 230, 190, .4) inset, 0 -3px 0 rgba(0, 0, 0, .22) inset, 0 28px 40px rgba(60, 35, 15, .28); }
.m-benchitem { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 110px 44px; gap: 18px; align-items: center; padding: 12px 14px; border-radius: 4px; background-color: #E6D3B2; background-image: url(../img/r17-kraft.jpg); background-size: 360px 360px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 22px rgba(40, 22, 10, .3); }
.m-benchcover { position: relative; display: block; width: 72px; height: 100px; border-left: 8px solid var(--spine, #3B3A52); border-radius: 2px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.m-benchcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-benchmain { min-width: 0; }
.m-eta { color: var(--green-ink); font-weight: 700; }
.m-benchqty { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.js .m-benchqty .m-linkbtn { display: none; }
.m-qty-sm input { width: 52px; }
.m-benchsum { font: 600 20px/1 var(--serif); text-align: right; white-space: nowrap; }
.m-receipt { position: sticky; top: 100px; padding: 26px 24px 30px; background: #FFFCF5; box-shadow: 0 24px 40px rgba(70, 45, 20, .2); border-radius: 3px 3px 0 0; }
.m-receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, #FFFCF5 0) 0 0 / 16px 12px, linear-gradient(45deg, transparent 8px, #FFFCF5 0) 0 0 / 16px 12px; background-repeat: repeat-x; }
.m-receipt-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed rgba(30, 26, 22, .3); }
.m-receipt-n { font: 600 14px/1 var(--sans); color: var(--muted); }
.m-receipt-total { margin: 16px 0 14px; font: 600 46px/1 var(--serif); color: var(--ink); }
.m-receipt-notes { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.m-receipt-notes li { position: relative; padding-left: 20px; font: 600 14px/1.45 var(--sans); color: var(--text); }
.m-receipt-notes li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.m-receipt .m-linkbtn { display: flex; justify-content: center; margin-top: 8px; }
.m-emptybench { margin-top: 30px; }

/* ------------------------------------------------------------------ оформление */
.m-checkout { margin-top: 18px; padding: 40px 44px 44px; }
.m-costeps { display: grid; grid-template-columns: 1.15fr 1fr 1.2fr; gap: 40px; }
.m-costep { min-width: 0; }
.m-costep + .m-costep { padding-left: 40px; border-left: 1px dashed rgba(30, 26, 22, .25); }
.m-colist { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.m-colist li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.m-colist img { width: 44px; height: 62px; object-fit: cover; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.m-colist-t { font: 700 15px/1.3 var(--sans); color: var(--ink); }
.m-colist-t small { display: block; margin-top: 3px; font: 500 12.5px/1.35 var(--sans); color: var(--muted); }
.m-colist b { font: 600 17px/1 var(--serif); white-space: nowrap; }
.m-cototal { margin: 18px 0 6px; padding-top: 14px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 700 14px/1.2 var(--sans); }
.m-cototal b { font: 600 30px/1 var(--serif); }
.m-cofixed { margin-top: 20px; font: 600 16px/1.5 var(--sans); color: var(--text); }
.m-cofixed b { color: var(--ink); overflow-wrap: anywhere; }
.m-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.m-field > span { font: 700 14px/1.3 var(--sans); color: var(--ink); }
.m-field input, .m-field textarea, .m-field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 6px; background: #FFFAF2; box-shadow: 0 0 0 1px rgba(30, 26, 22, .28) inset; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.m-field textarea { resize: vertical; }
.m-field input:focus, .m-field textarea:focus, .m-field select:focus { outline: none; box-shadow: 0 0 0 2px var(--red) inset; }
.m-field small { font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.m-fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font: 600 15px/1.4 var(--sans); }
.m-check input { width: 20px; height: 20px; accent-color: var(--red); }
.m-terms { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font: 500 14px/1.5 var(--sans); color: var(--text); }
.m-terms b { color: var(--ink); }
.m-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin: 18px 0; padding: 14px; border-radius: 6px; background: rgba(255, 250, 242, .8); box-shadow: 0 0 0 1.5px rgba(30, 26, 22, .3) inset; font: 600 14px/1.5 var(--sans); cursor: pointer; }
.m-consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--red); }
.m-conext { margin: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.m-conext li { position: relative; padding-left: 20px; font: 600 13.5px/1.45 var(--sans); color: var(--muted); }
.m-conext li::before { content: '→'; position: absolute; left: 0; color: var(--red); }
.m-copay { margin: 10px 0; }

/* ------------------------------------------------------------------ заказ: квитанция */
.m-status { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font: 800 12.5px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; background: rgba(30, 26, 22, .08); color: var(--ink); }
.status-new { background: #F7DFC4; color: #7A3A12; }
.status-reported { background: #E8DDF6; color: #4B2C80; }
.status-paid { background: #DCE8F7; color: #1F3F86; }
.status-done { background: #D5EADB; color: #1E5434; }
.status-cancelled { background: rgba(30, 26, 22, .1); color: var(--muted); }
.m-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 22px; }
.m-track li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: rgba(255, 250, 242, .55); box-shadow: 0 0 0 1px var(--line) inset; font: 700 14px/1.2 var(--sans); color: var(--muted); }
.m-track-n { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font: 600 15px/1 var(--serif); }
.m-track li.now { background: var(--ink); color: #FFF6E8; box-shadow: none; }
.m-track li.done { color: var(--green-ink); background: rgba(46, 107, 69, .1); box-shadow: 0 0 0 1px rgba(46, 107, 69, .35) inset; }
.m-orderwrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
.m-ticket { position: relative; padding: 22px 22px 24px; background: #FFFCF5; box-shadow: 0 24px 40px rgba(70, 45, 20, .18); border-radius: 3px; }
.m-ticket::before, .m-ticket::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background-repeat: repeat-x; }
.m-ticket::before { top: -12px; background: linear-gradient(135deg, transparent 8px, #FFFCF5 0) 0 0 / 16px 12px, linear-gradient(-135deg, transparent 8px, #FFFCF5 0) 0 0 / 16px 12px; background-repeat: repeat-x; }
.m-ticket::after { bottom: -12px; background: linear-gradient(-45deg, transparent 8px, #FFFCF5 0) 0 0 / 16px 12px, linear-gradient(45deg, transparent 8px, #FFFCF5 0) 0 0 / 16px 12px; background-repeat: repeat-x; }
.m-ticket-head { display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); font: 800 12px/1 var(--sans); letter-spacing: .18em; }
.m-ticket-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(30, 26, 22, .25); }
.m-ticket-row img { width: 48px; height: 66px; object-fit: cover; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.m-ticket-t b { display: block; font: 700 15px/1.3 var(--sans); }
.m-ticket-t span { display: block; margin-top: 4px; font: 500 12.5px/1.45 var(--sans); color: var(--muted); word-break: break-word; }
.m-ticket-sum { font: 600 17px/1 var(--serif); white-space: nowrap; }
.m-ticket-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font: 700 14px/1.2 var(--sans); }
.m-ticket-total b { font: 600 28px/1 var(--serif); }
.m-ticket-cut { height: 0; margin: 14px -22px 12px; border-top: 2px dashed rgba(30, 26, 22, .28); }
.m-ticket-foot { font: 500 13px/1.5 var(--sans); color: var(--muted); }
.order-bill { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; background: rgba(30, 26, 22, .07); color: var(--ink); }
.order-bill svg { width: 28px; height: 28px; }
.m-claim { margin-top: 14px; padding: 12px 14px; border-radius: 4px; background: rgba(46, 107, 69, .1); font: 500 14px/1.5 var(--sans); }
.m-claim b { display: block; font-weight: 800; }
.m-ordermain { padding: 34px 36px 36px; }
.m-pay { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.m-qr { display: flex; flex-direction: column; gap: 12px; }
.qr-box { padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset, 0 10px 24px rgba(40, 22, 10, .14); }
.qr-box img { display: block; width: 100%; height: auto; }
.m-paysteps { margin: 14px 0 12px; display: flex; flex-direction: column; gap: 12px; counter-reset: ps; }
.m-paysteps li { position: relative; padding-left: 40px; font: 500 15.5px/1.55 var(--sans); color: var(--text); counter-increment: ps; }
.m-paysteps li::before { content: counter(ps); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 14px/1 var(--serif); color: var(--ink); background: #FFFCF5; }
.m-paysteps form { margin-top: 10px; }
.m-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 4px; }
.m-amount .amount { font: 600 30px/1 var(--serif); color: var(--ink); }
.m-cancel { margin-top: 22px; padding-top: 14px; border-top: 1px dashed rgba(30, 26, 22, .25); }
.m-cancel summary { list-style: none; cursor: pointer; }
.m-cancel summary::-webkit-details-marker { display: none; }
.m-cancelform { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 10px; }
.m-cancelform textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 0; border-radius: 6px; background: #FFFAF2; box-shadow: 0 0 0 1px rgba(30, 26, 22, .28) inset; }
.m-paynone { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font: 500 16px/1.55 var(--sans); color: var(--text); }
.m-paynone-art { width: 120px; height: auto; }
.m-paynone b { color: var(--ink); }
.m-paynone-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.m-wait { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font: 500 16px/1.55 var(--sans); color: var(--text); }
.m-pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(198, 63, 39, .5); animation: mPulse 1.6s infinite; }
@keyframes mPulse { 70% { box-shadow: 0 0 0 16px rgba(198, 63, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 63, 39, 0); } }
.m-done-row { display: flex; gap: 18px; align-items: center; }
.m-bigmark { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.m-done p { color: var(--text); }
.m-letter { margin-top: 18px; border-radius: 6px; background: #FFFCF5; box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.m-letter-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px dashed rgba(30, 26, 22, .25); }
.m-letter-head b { display: block; }
.m-letter-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #F2E6D2; }
.m-letter-body { padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font: 600 14.5px/1.55 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); }
.m-reviewbox { margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(30, 26, 22, .25); }
.m-starsinput { display: inline-flex; flex-direction: row-reverse; gap: 2px; border: 0; margin: 10px 0 2px; }
.m-starsinput input { position: absolute; opacity: 0; pointer-events: none; }
.m-starsinput label { width: 44px; height: 44px; display: grid; place-items: center; font-size: 30px; color: rgba(30, 26, 22, .25); cursor: pointer; }
.m-starsinput input:checked ~ label, .m-starsinput label:hover, .m-starsinput label:hover ~ label { color: #C9932C; }
.m-starsinput input:focus-visible + label { outline: 3px solid var(--red); border-radius: 6px; }
.m-reviewbox .m-btn { margin-top: 14px; }
.only-mobile { display: none; }

/* ------------------------------------------------------------------ вход, кабинет */
.m-authwrap { display: flex; justify-content: center; padding-top: 48px; }
.m-authcard { width: 100%; max-width: 480px; padding: 34px 34px 26px; }
.m-authcard-wide { max-width: 640px; }
.m-authtitle { margin-top: 10px; font: 600 44px/1 var(--serif); color: var(--ink); }
.m-authlead { margin-top: 12px; font: 500 15.5px/1.55 var(--sans); color: #3D342B; }
.m-authform { margin-top: 8px; display: flex; flex-direction: column; }
.m-authform .m-btn { margin-top: 20px; }
.m-authcard .m-field input { background: #FFFAF2; }
.m-authalt { margin-top: 18px; font: 600 15px/1.5 var(--sans); text-align: center; }
.m-authcard .m-fine { margin-top: 12px; color: #4A3C2E; }
.m-cab .m-pagehead { padding-bottom: 22px; }
.m-cabmail { text-transform: none; letter-spacing: .02em; overflow-wrap: anywhere; }
.m-cabactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-cabstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.m-cabstat { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 4px; background: rgba(255, 250, 242, .65); box-shadow: 0 0 0 1px var(--line) inset; }
.m-cabstat b { font: 600 32px/1 var(--serif); color: var(--ink); }
.m-cabstat-main { background-color: #E2CDA9; background-image: url(../img/r17-kraft.jpg); background-size: 360px 360px; box-shadow: var(--shadow); }
.m-cab > .m-fine { margin-bottom: 34px; }
.m-cablist { display: flex; flex-direction: column; gap: 8px; }
.m-cabrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; min-height: 72px; padding: 10px 16px; border-radius: 4px; background: rgba(255, 250, 242, .65); box-shadow: 0 0 0 1px var(--line) inset; }
a.m-cabrow:hover { background: #FFFAF2; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.m-cabrow img { width: 40px; height: 56px; object-fit: cover; border-radius: 2px; }
.m-cabbill { width: 40px; height: 40px; display: grid; place-items: center; }
.m-cabbill svg { width: 26px; height: 26px; }
.m-cabmain { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-cabmain b { font: 700 15px/1.3 var(--sans); }
.m-cabprice { font: 600 18px/1 var(--serif); white-space: nowrap; }
.m-cabrow-col { grid-template-columns: 1fr; }
.m-cabline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; }
.m-deliver { padding-top: 10px; }
.m-deliver summary { cursor: pointer; min-height: 40px; font-weight: 700; color: var(--red-ink); }
.m-deliver textarea { width: 100%; padding: 12px; border: 0; border-radius: 6px; background: #FFFAF2; box-shadow: 0 0 0 1px rgba(30, 26, 22, .28) inset; font: 600 14px/1.5 ui-monospace, Menlo, monospace; }
.m-deliver pre { white-space: pre-wrap; font: 600 14px/1.5 ui-monospace, Menlo, monospace; }
.m-formcard { max-width: 720px; padding: 28px 30px; display: flex; flex-direction: column; }
.m-formcard .m-btn { margin-top: 18px; align-self: flex-start; }
.selk, .selk-field { width: 100%; }

/* ------------------------------------------------------------------ документы */
.m-docwrap { max-width: calc(920px + var(--gut) * 2); }
.m-doc { margin-top: 30px; padding: 48px 56px 52px; }
.m-doc h1 { margin: 12px 0 8px; font: 600 clamp(34px, 4.2vw, 52px)/1.05 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.m-doc h2 { margin: 30px 0 10px; font: 600 23px/1.25 var(--serif); color: var(--ink); }
.m-doc p, .m-doc li { font: 500 16px/1.65 var(--sans); color: var(--text); }
.m-doc p + p { margin-top: 8px; }
.m-doc ol, .m-doc ul { margin: 8px 0 0 0; display: flex; flex-direction: column; gap: 6px; }
.m-doc ol { list-style: decimal; padding-left: 22px; }
.m-doc ul { list-style: disc; padding-left: 22px; }
.m-doc b { color: var(--ink); }
.m-doc .m-muted { font-size: 16.5px; }
.m-doc details { border-top: 1px dashed rgba(30, 26, 22, .25); }
.m-doc details:last-of-type { border-bottom: 1px dashed rgba(30, 26, 22, .25); }
.m-doc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 19px/1.3 var(--serif); color: var(--ink); }
.m-doc summary::-webkit-details-marker { display: none; }
.m-doc summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 18px/1 var(--sans); transition: transform .25s; }
.m-doc details[open] summary::after { transform: rotate(45deg); }
.m-doc details p { padding-bottom: 16px; }
.m-doc h1 + .m-muted { margin-bottom: 18px; }
.faq-wrap > .m-muted { margin-bottom: 18px; }
.m-docback { margin-top: 30px; }
.pay-logos-row { margin: 18px 0 6px; }
.m-contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.m-ccard { padding: 28px 28px 24px; }
.m-ccard .m-h3 { margin-bottom: 12px; }
.m-contactbig { display: inline-block; font: 600 30px/1.2 var(--serif); color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.m-reqs { display: flex; flex-direction: column; margin: 8px 0 10px; }
.req-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(70, 45, 20, .35); }
.req-label { font: 700 13px/1.4 var(--sans); color: #4A3C2E; }
.req-value { font: 700 15px/1.4 var(--sans); color: var(--ink); word-break: break-word; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.m-ccard .m-fine { color: #4A3C2E; }
.m-404 { text-align: center; padding: 60px var(--gut) 20px; }
.m-404-art { width: 260px; height: auto; }
.m-404 .m-text { margin: 16px auto 22px; max-width: 520px; }
.m-404 .m-btnrow { justify-content: center; }

/* ------------------------------------------------------------------ адаптив */
@media (max-width: 1240px) {
  :root { --gut: 40px; }
  .m-headbar { padding: 0 32px 0 40px; gap: 18px; }
  .m-nav { gap: 22px; }
  .m-input { width: 190px; }
  .m-hero-in { padding: 128px 40px 64px; }
  .m-hint { left: 610px; }
  .m-h1 { font-size: 76px; }
  .m-shelfrow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .m-shelf-home .m-boxcell { --bxs: .86; --bxh: 228px; }
  .m-plank { top: 218px; }
  .m-steps { gap: 36px; }
  .m-foot-top { padding: 56px 40px 0; }
  .m-foot-grid { padding: 0 40px; }
  .m-foot-bottom { max-width: calc(100% - 80px); }
  .m-posttext { left: 40px; }
}
@media (max-width: 1100px) {
  .m-nav > a[href$="#shelf"] { display: none; }
  .m-toplink { display: none; }
  .m-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 32px; }
  .m-bench { grid-template-columns: minmax(0, 1fr) 320px; }
  .m-costeps { grid-template-columns: 1fr 1fr; }
  .m-costep:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: 26px; border-top: 1px dashed rgba(30, 26, 22, .25); }
  .m-orderwrap { grid-template-columns: 360px minmax(0, 1fr); }
  .m-pay { grid-template-columns: 1fr; }
  .m-qr { max-width: 280px; }
}
/* столбиком: планшет и телефон */
@media (max-width: 999px) {
  :root { --gut: 24px; }
  .m-nav, .m-headtools .m-search, .m-toplink, .m-caption, .m-hint, .m-veil, .m-veil-sel { display: none; }
  .m-burger { display: block; }
  .m-headbar, body:not(.is-home) .m-headbar { height: 68px; padding: 0 16px; gap: 12px; }
  .is-home .ld-head { position: sticky; top: 0; background: rgba(231, 220, 201, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
  .m-logo-word { font-size: 18px; letter-spacing: .2em; }
  .m-logo svg { width: 34px; height: 34px; }
  .m-cart { padding: 0 6px 0 14px; }
  .flashes { top: 80px; right: 16px; left: 16px; max-width: none; }
  .m-hero { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; overflow: visible; }
  .m-hero-in { display: contents; }
  .m-hero-text { grid-row: 1; width: auto; padding: 28px var(--gut) 18px; }
  .m-stage { position: relative; grid-row: 2; height: clamp(360px, 78vw, 620px); overflow: hidden; }
  .m-kit { grid-row: 3; width: auto; margin: -48px var(--gut) 8px; }
  .m-h1 { font-size: clamp(46px, 10vw, 72px); }
  .m-lead { font-size: 16px; }
  .m-sec { padding-top: 76px; }
  .m-sechead-split { grid-template-columns: 1fr; gap: 14px; }
  .m-sechead-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .m-tiles { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .m-tile { aspect-ratio: auto; }
  .m-tview { position: relative; aspect-ratio: 640 / 540; }
  .m-tcards { position: static; margin-top: 12px; }
  .m-shelfrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); gap: 8px; padding: 0 var(--gut) 8px; margin: 0 calc(var(--gut) * -1); scrollbar-width: none; }
  .m-shelfrow::-webkit-scrollbar { display: none; }
  .m-shelfrow .m-boxcell { flex: 0 0 210px; scroll-snap-align: start; }
  .m-shelf-home .m-boxcell { --bxs: .9; --bxh: 236px; }
  .m-shelf-home .m-boxcell::before { content: ''; position: absolute; z-index: 0; left: -6px; right: -6px; top: calc(var(--bxh) - 10px); height: 24px; background: linear-gradient(180deg, #6A4127, #3A2213); }
  .m-plank { display: none; }
  .m-sheet { padding: 34px 26px 36px; }
  .m-howsec .m-sheet-fold { display: none; }
  .m-sheethead { flex-direction: column; align-items: flex-start; }
  .m-steps { grid-template-columns: 1fr; gap: 34px; }
  .m-postsec { height: auto; margin-top: 76px; display: flex; flex-direction: column; }
  .m-posttext { position: relative; left: auto; top: auto; width: auto; padding: 0 var(--gut) 8px; order: -1; }
  .m-poststage { position: relative; inset: auto; height: clamp(240px, 52vw, 420px); }
  .m-postveil { background: linear-gradient(180deg, rgba(231, 220, 201, 1) 0%, rgba(231, 220, 201, 0) 18%); }
  .m-stage.no-gl > .m-still { background-image: url(../img/still/hero-mob.jpg); }
  .m-poststage.no-gl > .m-still { background-image: url(../img/still/post-mob.jpg); }
  .m-h2-post { font-size: 44px; }
  .m-foot-top { flex-direction: column; align-items: flex-start; padding: 48px var(--gut) 0; }
  .m-foot-help { width: auto; }
  .m-foot-grid { grid-template-columns: 1fr 1fr; padding: 0 var(--gut); }
  .m-foot-bottom { max-width: none; margin: 32px var(--gut) 0; }
  .m-pdp { grid-template-columns: 1fr; gap: 10px; }
  .m-pdp-stage { min-height: 480px; }
  .m-parts { grid-template-columns: 1fr; gap: 28px; }
  .m-bench { grid-template-columns: 1fr; }
  .m-receipt { position: relative; top: auto; }
  .m-orderwrap { grid-template-columns: 1fr; gap: 36px; }
  .m-contactgrid { grid-template-columns: 1fr; }
  .m-pagehead-shelf { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* телефон */
@media (max-width: 759px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .m-logo-word { font-size: 16px; letter-spacing: .16em; }
  .m-cart-word { display: none; }
  .m-cart { padding: 0 6px 0 12px; gap: 8px; }
  .m-headbar, body:not(.is-home) .m-headbar { padding: 0 12px; }
  .m-hero-text { padding-top: 22px; }
  .m-h1 { font-size: clamp(42px, 12.4vw, 56px); }
  .m-ruler { width: 110px; margin-left: 10px; }
  .m-ctas .m-btn { flex: 1 1 auto; }
  .m-stage { height: clamp(330px, 96vw, 420px); }
  .m-kit { margin-top: -36px; padding: 18px 14px 10px; }
  .m-kitname { font-size: 26px; }
  .m-kithead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .m-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-row { grid-template-columns: 26px minmax(0, 1fr) 44px; grid-template-areas: "n t a" "n p a"; row-gap: 4px; }
  .m-row .m-num { grid-area: n; width: 26px; height: 26px; }
  .m-row .m-rowmain { grid-area: t; }
  .m-row .m-price { grid-area: p; font-size: 17px; }
  .m-row .m-add { grid-area: a; }
  .m-h2 { font-size: clamp(38px, 11vw, 48px); }
  .m-handnote { font-size: 22px; }
  .m-tlabel { left: 10px; top: 10px; padding: 5px 10px 5px 6px; }
  .m-tname { font-size: 19px; }
  .m-tcards { grid-template-columns: 1fr; gap: 8px; }
  .m-shelfgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 40px; }
  .m-shelfgrid .m-boxcell { --bxs: .74; --bxh: 200px; }
  .m-shelfgrid .m-boxcell::before { left: -6px; right: -6px; }
  .m-boxcap { margin-top: 24px; width: 100%; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .m-boxcap .m-rowt { font-size: 14px; }
  .m-sticker { font-size: 13px; }
  .m-step-n { width: 52px; height: 52px; flex-basis: 52px; font-size: 26px; }
  .m-foot-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .m-foot-col a { font-size: 14px; }
  .m-plaque { padding: 20px 26px; }
  .m-plaque-word { font-size: 34px; letter-spacing: .16em; }
  .m-plaque-sub { font-size: 9px; letter-spacing: .2em; }
  .m-foot-bottom { flex-direction: column; align-items: flex-start; }
  .m-crumbs > span:last-child { max-width: 100%; }
  .m-pdp-stage { min-height: 400px; perspective: 1200px; }
  .m-bigbox { transform: scale(.78) rotateY(-24deg) rotateX(-3deg); transform-origin: 50% 100%; margin-bottom: 8px; }
  .m-pdp-stage:hover .m-bigbox { transform: scale(.78) rotateY(-10deg) rotateX(-2deg); }
  .m-bigbox-shadow { width: 300px; margin-left: -130px; bottom: 56px; }
  .m-plinth { height: 56px; }
  .m-pdp-card { padding: 24px 18px 20px; }
  .m-pricebig { font-size: 38px; }
  .m-buybtns .m-btn { flex: 1 1 100%; }
  .m-partlist > div { grid-template-columns: 1fr; gap: 6px; }
  .m-benchtop { padding: 12px; }
  .m-benchitem { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "c m d" "c q s"; gap: 8px 12px; padding: 12px; }
  .m-benchcover { grid-area: c; width: 56px; height: 78px; border-left-width: 6px; }
  .m-benchmain { grid-area: m; }
  .m-benchqty { grid-area: q; flex-direction: row; justify-content: flex-start; }
  .m-benchsum { grid-area: s; align-self: center; font-size: 17px; }
  .m-benchdel { grid-area: d; align-self: start; }
  .m-checkout { padding: 26px 18px 30px; }
  .m-costeps { grid-template-columns: 1fr; gap: 26px; }
  .m-costep + .m-costep { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px dashed rgba(30, 26, 22, .25); }
  .m-costep:nth-child(3) { padding-top: 24px; }
  .m-track { grid-template-columns: 1fr; }
  .m-ordermain { padding: 24px 18px 28px; }
  .m-ticket { padding: 18px 16px 20px; }
  .m-ticket-cut { margin-left: -16px; margin-right: -16px; }
  .m-qr { max-width: none; }
  .m-doc { padding: 30px 18px 34px; margin-top: 16px; }
  .m-doc summary { font-size: 17px; }
  .m-authwrap { padding-top: 22px; }
  .m-authcard { padding: 28px 18px 22px; }
  .m-authtitle { font-size: 38px; }
  .m-cabstats { grid-template-columns: 1fr; }
  .m-cabrow { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "i m" "i s" "i p"; row-gap: 6px; }
  .m-cabrow img, .m-cabrow .m-cabbill { grid-area: i; }
  .m-cabrow .m-cabmain { grid-area: m; }
  .m-cabrow .m-status { grid-area: s; justify-self: start; }
  .m-cabrow .m-cabprice { grid-area: p; }
  .m-cabrow-col { grid-template-columns: 1fr; grid-template-areas: none; }
  .m-cabline { grid-template-columns: 1fr; gap: 8px; }
  .m-fieldrow { grid-template-columns: 1fr; }
  .req-row { grid-template-columns: 1fr; gap: 2px; }
  .m-budget-input input { width: 130px; }
  .m-filters .m-chiprow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 0 var(--gut); scroll-padding: 0 var(--gut); }
  .m-filters .m-chiprow::-webkit-scrollbar { display: none; }
  .m-filters .m-chip { flex: none; }
  .pricepick-range { display: none; }
  .m-budget { padding: 12px; }
  .m-plinth-plate { display: none; }
  .m-bigsearch { padding-left: 14px; }
  .only-mobile { display: flex; }
}

/* сенсорный экран: курсора нет — подсказки про наведение не показываем */
.m-touch-only { display: none; }
@media (hover: none) { .m-hover-only { display: none; } .m-touch-only { display: inline; } }

/* меньше движения: без анимаций (сцены рисуют один кадр — mini-gl.js) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-line > span, .m-fade, .m-wiggle, .flash, .m-pulse, .m-cart.is-bump { animation: none; }
  .m-box, .m-bigbox, .m-tcard, .m-btn, .m-cv { transition: none; }
}
