/* КодЛейбл — витрина. Палитра: тёплая бумага, типографская чернь, лаймовый акцент. */

:root {
  --paper: #f3f1ea;
  --paper-2: #eae7dc;
  --surface: #ffffff;
  --ink: #14161a;
  --ink-2: #3a3f47;
  --muted: #6d727b;
  --line: #dcd8cb;
  --line-2: #e8e5da;
  --lime: #c9f23a;
  --lime-2: #b6de22;
  --lime-ink: #1a2300;
  --deep: #10261d;
  --deep-2: #183628;
  --red: #c9382f;
  --green: #1a8a4b;
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-1: 0 1px 2px rgba(20, 22, 26, .05), 0 6px 16px -6px rgba(20, 22, 26, .08);
  --shadow-2: 0 2px 4px rgba(20, 22, 26, .05), 0 22px 44px -18px rgba(20, 22, 26, .22);
  --shadow-label: 0 1px 1px rgba(20, 22, 26, .10), 0 6px 14px -4px rgba(20, 22, 26, .22);
  --font: 'Onest Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Consolas, monospace;
  --w: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.i { flex: none; }
.container { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 800px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.nb { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 650; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); line-height: 1.12; letter-spacing: -.028em; font-weight: 650; }
h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.012em; font-weight: 620; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--ink); border-radius: 2px; }
.eyebrow--lime::before { background: var(--lime); box-shadow: 0 0 0 1px rgba(20, 22, 26, .35); }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(20, 22, 26, .45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--lime { --bg: var(--lime); --fg: var(--lime-ink); --bd: rgba(26, 35, 0, .18); }
.btn--lime:hover { --bg: var(--lime-2); box-shadow: 0 10px 22px -10px rgba(140, 180, 0, .9); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bg: var(--surface); --bd: var(--ink); box-shadow: none; }
.btn--glass { --bg: rgba(255, 255, 255, .08); --fg: #fff; --bd: rgba(255, 255, 255, .22); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .16); box-shadow: none; }
.btn--text { --bg: transparent; --bd: transparent; --fg: var(--muted); padding-inline: 10px; }
.btn--text:hover { --fg: var(--ink); box-shadow: none; transform: none; }
.btn--sm { height: 36px; padding: 0 13px; font-size: .86rem; border-radius: 10px; gap: 6px; }
.btn--lg { height: 54px; padding: 0 24px; font-size: 1.02rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

.iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); transition: .15s; }
.iconbtn:hover { color: var(--red); background: #fbe9e7; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; border-bottom: 1px solid transparent; transition: gap .15s, border-color .15s; }
.link-arrow:hover { gap: 10px; border-color: currentColor; }
.link-arrow--back:hover { gap: 6px; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(243, 241, 234, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.hdr.is-stuck { border-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__name { font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em; }
.brand--light { color: #fff; }
.nav { display: flex; gap: 4px; }
.nav__link { padding: 8px 12px; border-radius: 10px; font-weight: 520; font-size: .95rem; color: var(--ink-2); transition: .15s; }
.nav__link:hover { background: var(--paper-2); color: var(--ink); }
.nav__link.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 10px 10px 0 0; }
.hdr__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr__search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; width: 220px; border-radius: 11px; background: var(--paper-2); color: var(--muted); border: 1px solid transparent; transition: .15s; }
.hdr__search:focus-within { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.hdr__search input { border: 0; background: none; outline: 0; width: 100%; font-size: .9rem; }
.hdr__search input::placeholder { color: var(--muted); }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 13px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; transition: .15s; }
.cartbtn:hover { transform: translateY(-1px); }
.cartbtn__count { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font: 600 .78rem/1 var(--mono); }
.cartbtn__count.is-empty { background: rgba(255, 255, 255, .16); color: #fff; }
.burger { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: none; place-items: center; }

/* ---------- hero ---------- */
.hero { padding: 18px 0 0; }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px;
  min-height: 560px; padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(900px 500px at 88% 18%, rgba(201, 242, 58, .20), transparent 60%),
    radial-gradient(700px 520px at 6% 110%, rgba(64, 160, 110, .32), transparent 62%),
    var(--deep);
}
.hero__panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 10%, #000 60%);
}
.hero__text { align-self: center; max-width: 590px; }
.hero__text .eyebrow { color: rgba(255, 255, 255, .7); }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.1rem); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__lead { margin-top: 22px; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; color: rgba(255, 255, 255, .7); }
.hero__facts b { font: 600 1.25rem/1 var(--mono); color: #fff; margin-right: 6px; letter-spacing: -.03em; }

.hero__art { position: relative; min-height: 380px; }
.roll { position: absolute; inset: 0; }
.roll__item {
  position: absolute; display: block; padding: 0; background: #fff; border-radius: 6px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 26px 50px -16px rgba(0, 0, 0, .6);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.roll__item img { width: 100%; height: auto; border-radius: 6px; }
.roll__item img.is-round { border-radius: 50%; }
.roll__item span { position: absolute; left: 0; bottom: -26px; font: 500 .72rem/1 var(--mono); color: rgba(255, 255, 255, .62); letter-spacing: .04em; }
.roll__item--1 { width: 62%; left: 22%; top: 4%; transform: rotate(-5deg); z-index: 3; }
.roll__item--2 { width: 54%; left: 0; top: 46%; transform: rotate(4deg); z-index: 4; }
.roll__item--3 { width: 34%; right: 0; top: 52%; transform: rotate(-8deg); z-index: 5; }
.roll__item--4 { width: 30%; left: 2%; top: 6%; transform: rotate(9deg); z-index: 2; }
.roll__item:hover { transform: rotate(0) scale(1.04); z-index: 9; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.facts li { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-left: 1px solid var(--line-2); }
.facts li:first-child { border-left: 0; }
.facts .i { width: 40px; height: 40px; padding: 10px; border-radius: 11px; background: var(--paper); }
.facts b { display: block; font-weight: 620; font-size: .96rem; letter-spacing: -.01em; }
.facts span { display: block; font-size: .84rem; color: var(--muted); }

/* ---------- секции ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0 0; }
.section--tint { margin-top: clamp(56px, 7vw, 96px); padding: clamp(56px, 7vw, 88px) 0; background: var(--paper-2); }
.section--last { padding-bottom: clamp(64px, 8vw, 110px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.section__head--center h2 { max-width: 720px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat { position: relative; display: grid; gap: 6px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.cat__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 13px; background: var(--ink); color: var(--lime); transition: .2s; }
.cat:hover .cat__icon { background: var(--lime); color: var(--lime-ink); }
.cat__name { font-weight: 640; font-size: 1.16rem; letter-spacing: -.02em; }
.cat__desc { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.cat__count { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 500 .78rem/1 var(--mono); color: var(--ink-2); }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- раскройный коврик и этикетка ---------- */
.mat {
  background-color: #e6e3d7;
  background-image:
    linear-gradient(rgba(20, 22, 26, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 26, .055) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: -1px -1px;
}
.label-img { width: auto; height: auto; max-width: calc(var(--s, .7) * 100%); max-height: calc(var(--s, .7) * 100%); border-radius: 3px; box-shadow: var(--shadow-label); background: #fff; }
.label-img--round { border-radius: 50% !important; }

.size { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.size i { font-style: normal; opacity: .45; margin: 0 1px; }
.size small { font-weight: 500; font-size: .78em; opacity: .6; margin-left: 4px; }

/* ---------- карточка шаблона ---------- */
.tcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.tcard__stage { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.1; overflow: hidden; }
.tcard__stage .label-img { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tcard:hover .tcard__stage .label-img { transform: scale(1.05) rotate(-1.2deg); }
.tcard__size { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .78rem; line-height: 1; }
.tcard__free { position: absolute; right: 12px; top: 12px; padding: 6px 9px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font: 600 .72rem/1 var(--font); }
.tcard__free--price { background: #fff; color: var(--ink); font-family: var(--mono); }
.tcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.tcard__cat { font: 500 .7rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.tcard__title { font-size: 1.02rem; line-height: 1.28; }
.tcard__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tcard__sub { margin-top: 5px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.tcard__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.tcard__foot .btn { flex: 1; }
.tcard__foot form { flex: 1; display: flex; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 4px 9px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-2); font-size: .76rem; font-weight: 520; color: var(--ink-2); white-space: nowrap; }
.chip--more { font-family: var(--mono); }
.chips--lg .chip { padding: 6px 11px; font-size: .84rem; border-radius: 9px; background: var(--surface); }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 26px 24px 28px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.step__n { display: block; font: 600 2.4rem/1 var(--mono); letter-spacing: -.06em; color: var(--ink); margin-bottom: 22px; }
.step__n::after { content: ''; display: block; width: 28px; height: 4px; margin-top: 14px; background: var(--lime); border-radius: 2px; box-shadow: 0 0 0 1px rgba(26, 35, 0, .14); }
.step p { margin-top: 8px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.step p b { color: var(--ink); font-weight: 600; }
.steps--compact .step { padding: 22px 20px; }
.steps--compact .step__n { font-size: 1.7rem; margin-bottom: 16px; }

/* ---------- фича с макетом ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 60px); background: var(--deep); color: #fff; border-radius: var(--r-xl); overflow: hidden; }
.feature .eyebrow { color: rgba(255, 255, 255, .7); }
.feature__text p { margin-top: 18px; color: rgba(255, 255, 255, .76); max-width: 500px; }
.ticks { display: grid; gap: 10px; margin: 24px 0 30px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks .i { color: var(--lime); margin-top: 3px; }
.ticks--dark .i { color: var(--green); }
.mock { position: relative; display: grid; grid-template-columns: .82fr 1fr; gap: 14px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mock__form { display: grid; align-content: start; gap: 7px; padding: 18px; border-radius: 14px; background: #fff; color: var(--ink); }
.mock__label { font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.mock__label:first-child { margin-top: 0; }
.mock__input { display: flex; align-items: center; height: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); font: 500 .88rem/1 var(--mono); }
.mock__input i { width: 1.5px; height: 17px; margin-left: 2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
.mock__input:nth-of-type(2) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 242, 58, .55); }
.mock__btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; margin-top: 12px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; }
.mock__label-wrap { display: grid; place-items: center; padding: 18px; border-radius: 14px; }
.mock__label-wrap img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-label); }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- требования ---------- */
.reqs { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.reqs__head p { margin: 16px 0 22px; color: var(--ink-2); max-width: 460px; }
/* знак «Честный ЗНАК»: основная вариация, высота не меньше 35 px, вокруг — охранное поле */
.czbadge { display: flex; align-items: center; gap: 20px; max-width: 460px; margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.czbadge__logo { flex: none; width: auto; height: 44px; }
.reqs__head .czbadge span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.reqs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reqs__list li { padding: 20px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line-2); }
.reqs__list b { display: block; font-weight: 630; letter-spacing: -.012em; margin-bottom: 6px; }
.reqs__list span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: var(--ink); color: #fff; background-image: radial-gradient(520px 260px at 92% 0%, rgba(201, 242, 58, .22), transparent 70%); }
.cta .eyebrow { color: rgba(255, 255, 255, .65); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .72); max-width: 560px; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; cursor: pointer; font-weight: 600; font-size: 1.06rem; letter-spacing: -.012em; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { position: relative; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); transition: .2s; }
.faq__mark::before, .faq__mark::after { content: ''; position: absolute; left: 9px; top: 14px; width: 12px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s; }
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark { background: var(--lime); }
.faq__item[open] .faq__mark::after { transform: rotate(0); }
.faq__a { padding: 0 48px 22px 2px; color: var(--ink-2); line-height: 1.6; }
.faq__a p + p { margin-top: 10px; }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }
.faq + .center { margin-top: 28px; }

/* ---------- заголовок страницы ---------- */
.pagehead { padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 40px); }
.pagehead--slim { padding-bottom: 22px; }
.pagehead__lead { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; max-width: 720px; }
.pagehead__meta { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font: 500 .76rem/1.3 var(--mono); letter-spacing: .03em; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs b { font-weight: 500; color: var(--ink); }
.crumbs span { opacity: .5; }

/* ---------- каталог ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.filters { position: sticky; top: 92px; }
.filters__toggle { display: none; width: 100%; }
.dotmark { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-2); box-shadow: 0 0 0 1px rgba(26, 35, 0, .3); }
.fgroup + .fgroup { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.fgroup__h { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.flist { display: grid; gap: 2px; }
.flist a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-inline: -10px; border-radius: 9px; font-size: .94rem; color: var(--ink-2); transition: .12s; }
.flist a:hover { background: var(--paper-2); color: var(--ink); }
.flist a.is-on { background: var(--ink); color: #fff; font-weight: 600; }
.flist span { font: 500 .78rem/1.7 var(--mono); opacity: .55; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; font-weight: 520; transition: .12s; }
.fchip--mono { font-family: var(--mono); font-size: .8rem; }
.fchip:hover { border-color: var(--ink); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters__reset { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: .88rem; font-weight: 600; color: var(--red); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.toolbar__count { color: var(--muted); font-size: .94rem; }
.toolbar__count b { color: var(--ink); font-family: var(--mono); }
.toolbar__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .9rem; }
.toolbar__sort span { color: var(--muted); margin-right: 6px; }
.toolbar__sort a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.toolbar__sort a:hover { background: var(--paper-2); }
.toolbar__sort a.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line); transition: .2s; }
.banner:hover { border-color: var(--ink); }
.banner b { display: block; font-weight: 640; font-size: 1.05rem; letter-spacing: -.015em; }
.banner span:not(.btn) { color: var(--muted); font-size: .93rem; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.empty--wide { grid-column: 1 / -1; }
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--paper); margin-bottom: 8px; }
.empty h2 { font-size: 1.4rem; }
.empty p { color: var(--muted); max-width: 420px; }
.empty__actions { display: flex; gap: 10px; margin-top: 12px; }
.empty > .btn { margin-top: 12px; }

/* ---------- страница шаблона ---------- */
.product { padding-top: clamp(22px, 3vw, 36px); padding-bottom: clamp(56px, 7vw, 96px); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__stage { position: sticky; top: 92px; }
.viewer { position: relative; display: grid; place-items: center; min-height: 500px; padding: 64px 44px 44px 64px; border-radius: var(--r-xl); overflow: hidden; }
.viewer__frame { position: relative; display: inline-grid; max-width: 100%; }
.viewer__img { width: auto; height: auto; max-width: 100%; max-height: 520px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(20, 22, 26, .14), 0 22px 40px -14px rgba(20, 22, 26, .38); transition: opacity .2s; }
.viewer.is-busy .viewer__img { opacity: .45; }
.ruler { position: absolute; font: 500 .74rem/1 var(--mono); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.ruler span { padding: 3px 7px; background: #e6e3d7; border-radius: 5px; position: relative; z-index: 1; white-space: nowrap; }
.ruler::before { content: ''; position: absolute; background: var(--ink-2); opacity: .55; }
.ruler--x { left: 0; right: 0; top: -30px; height: 16px; }
.ruler--x::before { left: 0; right: 0; top: 50%; height: 1px; box-shadow: 0 0 0 0 transparent; }
.ruler--x::after, .ruler--y::after { content: ''; position: absolute; border: solid var(--ink-2); opacity: .55; }
.ruler--x::after { left: 0; right: 0; top: 2px; bottom: 2px; border-width: 0 1px; }
.ruler--y { top: 0; bottom: 0; left: -30px; width: 16px; }
.ruler--y span { transform: rotate(-90deg); }
.ruler--y::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.ruler--y::after { top: 0; bottom: 0; left: 2px; right: 2px; border-width: 1px 0; }
.viewer__busy { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .84rem; font-weight: 520; white-space: nowrap; }
.viewer__error { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 11px 14px; border-radius: 11px; background: #fbe9e7; color: #8f241d; font-size: .88rem; font-weight: 520; }
[hidden] { display: none !important; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--lime); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer__note { display: flex; gap: 9px; margin-top: 14px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.viewer__note .i { margin-top: 2px; }

.product__info h1 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); }
.product__lead { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; line-height: 1.58; }
.buy { margin-top: 26px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
.buy__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.buy__price b { font-size: 1.7rem; font-weight: 680; letter-spacing: -.035em; }
.buy__price span { color: var(--muted); font-size: .9rem; }
.buy__price s { color: var(--muted); }
.buy__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy__actions > .btn { flex: 1 1 200px; }
.buy__actions form { display: flex; flex: 1 1 150px; }
.buy__actions form .btn { width: 100%; }
.buy__formats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: .86rem; color: var(--muted); }
.buy__formats a { padding: 4px 9px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-2); font: 500 .8rem/1.4 var(--mono); color: var(--ink); transition: .12s; }
.buy__formats a:hover { border-color: var(--ink); }

.panel { margin-top: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.panel--accent { border-color: rgba(26, 35, 0, .2); box-shadow: inset 4px 0 0 var(--lime); }
.panel__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.panel__head h2 { font-size: 1.14rem; letter-spacing: -.018em; }
.panel__head p { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.panel__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--paper); }
.panel--accent .panel__icon { background: var(--lime); color: var(--lime-ink); }
.panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.panel__foot { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.panel--fold > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.panel--fold > summary::-webkit-details-marker { display: none; }
.panel--fold[open] > summary { margin-bottom: 18px; }
.panel__chev { margin-left: auto; width: 10px; height: 10px; margin-top: 12px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.panel--fold[open] .panel__chev { transform: rotate(-135deg); margin-top: 16px; }

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; align-content: start; }
.fld--wide { grid-column: 1 / -1; }
.fld__label { font-size: .84rem; font-weight: 580; color: var(--ink-2); }
.fld__label b { color: var(--red); margin-left: 3px; }
.fld__label code { margin-left: 4px; padding: 1px 5px; border-radius: 5px; background: var(--paper); color: var(--muted); font-size: .76rem; font-weight: 500; }
.fld__hint { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.fld__error { font-size: .82rem; color: var(--red); font-weight: 520; }
.input { width: 100%; height: 44px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: #bdb8a8; }
.input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 242, 58, .6); }
.input.is-changed { border-color: var(--ink); background: #fbfde9; }
.has-error .input { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check.has-error { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.specs { margin-top: 30px; }
.specs h2 { font-size: 1.3rem; margin-bottom: 14px; }
.specs h3 { margin: 26px 0 12px; font-size: 1rem; }
.dl { border-top: 1px solid var(--line); }
.dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { font-weight: 520; }
.ok { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: #e3f6ea; color: var(--green); font-size: .78rem; font-weight: 600; }
.fieldlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fieldlist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: .86rem; min-width: 0; }
.fieldlist code { flex: none; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: .76rem; }
.fieldlist span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specs__note { margin-top: 12px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.howto, .related { margin-top: clamp(48px, 6vw, 80px); }
.howto h2 { margin-bottom: 24px; }
.howto .center { margin-top: 24px; }

.alert { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; font-weight: 520; }
.alert--error { background: #fbe9e7; border-color: #f0c2bd; color: #8f241d; }

/* ---------- набор, оформление, заказ ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.card { padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.card h2 { font-size: 1.4rem; }
.card > .muted { margin: 6px 0 22px; font-size: .93rem; }
.card h2 + .formgrid { margin-top: 22px; }
.card .fld--wide { margin-top: 14px; }
.cartlist { display: grid; gap: 12px; margin-bottom: 20px; }
.cartitem { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.cartitem__img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.cartitem__title { font-weight: 620; font-size: 1.04rem; letter-spacing: -.012em; }
.cartitem__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.cartitem__meta { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.cartitem__custom { margin-top: 9px; display: grid; gap: 2px; font-size: .84rem; }
.cartitem__custom span { color: var(--muted); }
.cartitem__side { display: flex; align-items: center; gap: 12px; }
.cartitem__side b { font-weight: 640; }
.summary { position: sticky; top: 92px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.summary h2 { font-size: 1.2rem; margin-bottom: 14px; }
.summary__items { display: grid; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.summary__items li { display: flex; justify-content: space-between; gap: 14px; }
.summary__items b { font-weight: 600; white-space: nowrap; }
.summary__items em { font-style: normal; color: var(--muted); font-size: .82rem; display: block; }
.summary__rows > div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); font-size: .94rem; }
.summary__total { margin-bottom: 16px; font-weight: 680; font-size: 1.22rem !important; color: var(--ink) !important; letter-spacing: -.02em; }
.summary__note { display: flex; gap: 8px; margin-top: 14px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.summary .link-arrow { font-size: .88rem; color: var(--muted); }

.order { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); max-width: 860px; }
.order__hero { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); }
.order__hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.order__hero p:not(.eyebrow) { color: var(--ink-2); max-width: 520px; }
.order__hero .btn { margin-top: 12px; }
.order__hero .eyebrow { margin-bottom: 0; }
.order__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--lime); color: var(--lime-ink); margin-bottom: 6px; }
.orderlist { display: grid; gap: 10px; margin-top: 16px; }
.orderitem { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.orderitem__img { display: grid; place-items: center; width: 84px; height: 64px; border-radius: 10px; flex: none; }
.orderitem__img img { max-width: 72%; max-height: 72%; width: auto; border-radius: 2px; box-shadow: var(--shadow-label); }
.orderitem__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.orderitem__body span { color: var(--muted); font-size: .84rem; }
.order__next { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px dashed var(--line); }
.order__next h2 { font-size: 1.1rem; }
.order__next p { margin-top: 4px; color: var(--muted); font-size: .92rem; max-width: 480px; }

/* ---------- текстовые страницы ---------- */
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 4vw, 60px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.prose { font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.prose h2 { margin: 52px 0 18px; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); color: var(--ink); }
.prose > h2:first-child, .prose > .callout + h2 { margin-top: 0; }
.prose > .callout + h2 { margin-top: 36px; }
.prose h3 { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose a:not(.link-arrow):not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 22, 26, .35); }
.prose a:not(.link-arrow):not(.btn):hover { text-decoration-color: currentColor; }
.prose > ul, .prose--doc ul { display: grid; gap: 8px; margin: 14px 0; }
.prose > ul > li, .prose--doc li, .bigsteps ul li { position: relative; padding-left: 24px; }
.prose > ul > li::before, .prose--doc li::before, .bigsteps ul li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-2); box-shadow: 0 0 0 1px rgba(26, 35, 0, .25); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--paper-2); color: var(--ink); font-size: .86em; }
.prose--doc { padding-bottom: clamp(56px, 7vw, 96px); }
.prose--doc h2 { margin: 36px 0 12px; font-size: 1.22rem; }
.bigsteps { display: grid; gap: 14px; }
.bigsteps > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.bigsteps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--ink); color: var(--lime); font: 600 1.3rem/1 var(--mono); }
.bigsteps h2 { margin: 2px 0 8px; font-size: 1.22rem; }
.bigsteps ul { display: grid; gap: 7px; margin-top: 12px; font-size: .95rem; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.table th { font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 580; color: var(--ink); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--ink); color: rgba(255, 255, 255, .82); }
.callout .i { color: var(--lime); margin-top: 3px; }
.callout b { color: #fff; }

/* ---------- свои страницы сайта (CRM → «Страницы сайта») ---------- */
.page-content { padding-bottom: clamp(56px, 7vw, 96px); overflow-wrap: break-word; }
.page-content::after { content: ''; display: block; clear: both; }
.page-content > * + * { margin-top: 14px; }
.page-content > :first-child { margin-top: 0; }
.page-content h3 { margin: 34px 0 12px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; }
.page-content h4 { margin: 26px 0 8px; font-size: 1.04rem; font-weight: 650; color: var(--ink); }
.page-content ul, .page-content ol { display: grid; gap: 8px; margin: 14px 0; }
.page-content li > ul, .page-content li > ol { margin: 8px 0 0; }
.page-content ul > li { position: relative; padding-left: 24px; }
.page-content ul > li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-2); box-shadow: 0 0 0 1px rgba(26, 35, 0, .25); }
.page-content ol { counter-reset: pc-ol; }
.page-content ol > li { counter-increment: pc-ol; position: relative; padding-left: 30px; }
.page-content ol > li::before { content: counter(pc-ol) '.'; position: absolute; left: 0; top: 0; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.page-content blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lime-2); color: var(--ink); font-size: 1.08rem; }
.page-content hr { height: 1px; margin: 36px 0; border: 0; background: var(--line); }
.page-content mark { padding: 0 3px; border-radius: 3px; background: var(--lime); color: var(--lime-ink); }
.page-content pre { padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper-2); overflow-x: auto; font: .86rem/1.6 var(--mono); }
.page-content pre code { padding: 0; background: none; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.page-content img.img-wide, .page-content figure.img-wide img { width: 100%; }
.page-content img.img-left { float: left; max-width: min(45%, 320px); margin: 6px 22px 12px 0; }
.page-content img.img-right { float: right; max-width: min(45%, 320px); margin: 6px 0 12px 22px; }
.page-content figure { margin: 26px 0; }
.page-content figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); text-align: center; }
.page-content .table-wrap, .page-content > table { margin: 22px 0; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.page-content > table { display: block; }
.page-content table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.page-content th, .page-content td { padding: 11px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.page-content th + th, .page-content td + td { border-left: 1px solid var(--line-2); }
.page-content th { background: var(--paper); color: var(--ink); font-weight: 620; font-size: .9rem; }
.page-content tr:last-child td { border-bottom: 0; }
.page-content .lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink); }
.page-content .text-center { text-align: center; }
.page-content .callout { display: block; margin: 22px 0; padding: 16px 20px; border: 1px solid #dde9a6; border-radius: var(--r); background: #f4f9e0; color: var(--ink); }
.page-content .callout b { color: inherit; }
.page-content .callout--warn { border-color: #f0d9a4; background: #fdf3dc; }
.page-content .callout--ok { border-color: #b9e0c7; background: #e4f4ea; }
.prose.page-content a.btn-link { display: inline-flex; align-items: center; min-height: 48px; margin: 4px 6px 4px 0; padding: 10px 22px; border: 1px solid rgba(26, 35, 0, .18); border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-weight: 650; line-height: 1.25; text-decoration: none; transition: .15s; }
.prose.page-content a.btn-link:hover { background: var(--lime-2); box-shadow: 0 10px 22px -10px rgba(140, 180, 0, .9); }
.prose.page-content a.btn-link--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.prose.page-content a.btn-link--ghost:hover { border-color: var(--ink); background: var(--surface); box-shadow: none; }
.pagepreview { padding: 10px 0; background: var(--ink); color: rgba(255, 255, 255, .86); font-size: .88rem; }
.pagepreview .container::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
@media (max-width: 620px) {
  .page-content img.img-left, .page-content img.img-right { float: none; max-width: 100%; margin: 16px 0; }
}
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.act { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.act__ref { font: 500 .74rem/1.4 var(--mono); letter-spacing: .03em; color: var(--muted); }
.act h3 { font-size: 1rem; }
.act p:not(.act__ref) { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.act .link-arrow { margin-top: auto; padding-top: 8px; font-size: .84rem; align-self: flex-start; }
.reqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reqcard { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.reqcard h3 { font-size: 1rem; margin-bottom: 6px; }
.reqcard p { font-size: .9rem; line-height: 1.5; }
.reqcard--warn { box-shadow: inset 4px 0 0 var(--red); }
.codeviz { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; padding: 20px; border-radius: var(--r); background: var(--ink); font: 500 .92rem/1 var(--mono); color: #fff; }
.codeviz__part { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 10px 12px 30px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.codeviz__part i { font-style: normal; margin-right: 8px; padding: 3px 6px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font-size: .78rem; }
.codeviz__part small { position: absolute; left: 12px; bottom: 9px; font: 500 .68rem/1 var(--font); color: rgba(255, 255, 255, .55); white-space: nowrap; }
.sources { font-size: .92rem; }
.aside { display: grid; gap: 14px; }
.aside--sticky { position: sticky; top: 92px; }
.aside__card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.aside__card--plain { background: transparent; border-style: dashed; border-color: var(--line); }
.aside__card h3 { font-size: .98rem; margin-bottom: 10px; }
.aside__card h3:not(:first-child) { margin-top: 20px; }
.aside__card p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.aside__card .link-arrow { margin-top: 10px; font-size: .88rem; }
.aside .ticks { margin: 0; gap: 9px; font-size: .92rem; }
.toc { display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; margin-inline: -10px; border-radius: 8px; font-size: .92rem; color: var(--ink-2); }
.toc a:hover { background: var(--paper); color: var(--ink); }
.done { display: grid; justify-items: start; gap: 12px; }
.done p { color: var(--ink-2); }
.errorpage { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(60px, 10vw, 140px) 0; }
.errorpage__code { font: 600 clamp(5rem, 14vw, 9rem)/.9 var(--mono); letter-spacing: -.08em; color: var(--ink); text-shadow: 6px 6px 0 var(--lime); }
.errorpage p { color: var(--muted); max-width: 440px; }
.errorpage__actions { display: flex; gap: 10px; margin-top: 14px; }

/* ---------- подвал ---------- */
.ftr { margin-top: 0; padding: 56px 0 28px; background: var(--ink); color: rgba(255, 255, 255, .7); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.ftr__about p { margin-top: 16px; max-width: 420px; font-size: .92rem; line-height: 1.55; }
.ftr__contacts { display: grid; gap: 4px; margin-top: 16px; font-size: .92rem; }
.ftr__h { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 16px; }
.ftr__list { display: grid; gap: 9px; font-size: .93rem; }
.ftr a:hover { color: var(--lime); }
.ftr__cz { justify-self: start; width: auto; height: 35px; margin: 4px 0 10px; }
.ftr__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; line-height: 1.55; color: rgba(255, 255, 255, .45); display: grid; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 30px); display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .93rem; font-weight: 520; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: .25s cubic-bezier(.2, .8, .2, 1); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--lime); font-weight: 600; white-space: nowrap; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hdr__search { width: 170px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
}
/* пять пунктов меню, поиск и набор помещаются в строку только от ~1250 px — уже прячем меню под кнопку */
@media (max-width: 1250px) {
  .nav { position: absolute; left: 0; right: 0; top: 70px; display: none; flex-direction: column; gap: 2px; padding: 12px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 12px; font-size: 1.02rem; }
  .nav__link.is-active { box-shadow: none; background: var(--paper-2); border-radius: 10px; }
  .burger { display: grid; }
}
@media (max-width: 940px) {
  .hdr__in { gap: 14px; }
  .hero__panel { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { min-height: 340px; margin-top: 8px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .reqs { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; gap: 18px; }
  .filters { position: static; }
  .filters__toggle { display: inline-flex; }
  .filters__body { display: none; margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
  .filters.is-open .filters__body { display: block; }
  .product__grid, .checkout, .prose-wrap, .twocol { grid-template-columns: 1fr; }
  .product__stage, .summary, .aside--sticky { position: static; }
  .viewer { min-height: 360px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__about { grid-column: 1 / -1; }
  .aside--sticky { order: -1; }
  .aside--sticky .aside__card--plain, .aside--sticky > .btn { display: none; }
}
@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 28px, var(--w)); }
  .hdr__search, .cartbtn__label { display: none; }
  .cartbtn { padding-left: 11px; }
  .hero { padding-top: 8px; }
  .hero__panel { border-radius: 24px; padding: 26px 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__art { min-height: 280px; }
  .facts, .cats, .steps, .reqs__list, .acts, .reqgrid, .formgrid, .fieldlist { grid-template-columns: 1fr; }
  .facts li { border-left: 0 !important; border-top: 1px solid var(--line-2); }
  .facts li:first-child { border-top: 0; }
  .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard__body { padding: 14px 13px 13px; }
  .tcard__foot { flex-direction: column; }
  .tcard__sub, .tcard .chips { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }
  .mock { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .banner, .order__next { flex-direction: column; align-items: flex-start; }
  .viewer { padding: 54px 22px 28px 50px; min-height: 300px; border-radius: 22px; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cartitem { grid-template-columns: 84px minmax(0, 1fr); }
  .cartitem__side { grid-column: 1 / -1; justify-content: space-between; }
  .bigsteps > li { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .faq__a { padding-right: 2px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 30px; }
  .orderitem { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- вход на сайт: кнопка в шапке (сам диалог — auth.css) ---------- */
.acctbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: border-color .15s; }
.acctbtn:hover { border-color: var(--ink); }
.acctbtn .i, .acctbtn svg { flex: none; }
.acctbtn__balance { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; background: var(--paper-2); font: 600 .78rem/1 var(--mono); }
@media (max-width: 620px) {
  .acctbtn { padding: 0 10px; }
  .acctbtn__label { display: none; }
}