/* Стол ночью, многостраничная версия: обычный поток вместо координат 1440, ширина — во всё окно.
   Цвета и фактура стола — desk.css, здесь раскладка и детали. */
:root {
  --pad: clamp(16px, 4.6vw, 104px);
  --gap: clamp(20px, 2.6vw, 56px);
  --fs-body: clamp(17px, 1.06vw + 4px, 22px);
  --fs-h1: clamp(52px, 8.2vw, 210px);
  --fs-h2: clamp(40px, 5.4vw, 136px);
  --fs-h3: clamp(26px, 2.3vw, 52px);
}
body { font: 400 var(--fs-body)/1.45 'Shantell Sans', sans-serif; font-variation-settings: 'INFM' 0, 'BNCE' 0; }
#site { position: relative; z-index: 2; overflow: clip; }
#under { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
.wrap { padding-inline: var(--pad); }
.blk { position: relative; padding-block: clamp(56px, 7vw, 150px); }
.blk.tight { padding-block: clamp(36px, 4vw, 80px); }

/* шрифтовые роли */
.dela { font-family: 'Dela Gothic One', sans-serif; letter-spacing: -0.012em; line-height: .86; }
.hand { font-family: 'Shantell Sans', sans-serif; font-variation-settings: 'INFM' 100, 'BNCE' 45; }
.hand-b { font-family: 'Shantell Sans', sans-serif; font-weight: 800; font-variation-settings: 'INFM' 100, 'BNCE' 55; line-height: .95; }
.mono { font-family: 'Martian Mono', monospace; }
.chalk { color: var(--chalk); } .dim { color: var(--chalk-dim); } .org { color: var(--orange); } .gr { color: var(--graphite); }
.hatch { color: transparent; -webkit-text-stroke: 2.4px var(--orange); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; }
.outline { color: transparent; -webkit-text-stroke: 1.6px var(--chalk); }
.outline .fill { color: var(--chalk); -webkit-text-stroke: 0; }
.lead { max-width: 34em; color: var(--chalk); margin: 0; }
.sub { max-width: 40em; color: var(--chalk-dim); margin: 0; font-size: .86em; }
.kicker { font: 400 clamp(13px, .8vw, 16px) 'Martian Mono'; color: var(--chalk-dim); letter-spacing: .04em; }
.h1 { font-size: var(--fs-h1); color: var(--chalk); }
.h2 { font-size: var(--fs-h2); color: var(--chalk); }
.h3 { font-size: var(--fs-h3); }
.scrawl { font-size: clamp(30px, 3vw, 72px); color: var(--orange); transform: rotate(-2deg); display: inline-block; }

/* шапка: логотип, 4 раздела, кнопка */
.hdr { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 22px; border-bottom: 1px solid rgba(116,180,214,.22); }
.logo { font: 700 clamp(19px, 1.3vw, 26px) 'Martian Mono'; color: var(--chalk); letter-spacing: -.02em; text-decoration: none; }
.logo b { color: var(--orange); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.8vw, 34px); margin-left: auto; font: 400 clamp(14px, .9vw, 17px) 'Martian Mono'; color: var(--chalk-dim); }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 7px; }

/* бумага, скотч, фото */
.paper { position: relative; background-color: var(--paper); color: var(--graphite);
  background-image: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.35), rgba(0,0,0,.06) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .18  0 0 0 0 .15  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  box-shadow: 0 1px 1px rgba(0,0,0,.5), 0 6px 12px -2px rgba(0,0,0,.45), 0 22px 44px -14px rgba(0,0,0,.7); }
.paper.lined { background-color: #e9e6df; background-image: linear-gradient(transparent calc(1.6em - 1px), rgba(116,180,214,.5) calc(1.6em - 1px), rgba(116,180,214,.5) 1.6em); background-size: 100% 1.6em; }
.paper.grid { background-color: #e9e7e1; background-image: linear-gradient(rgba(116,180,214,.32) 1px, transparent 1px), linear-gradient(90deg, rgba(116,180,214,.32) 1px, transparent 1px); background-size: 22px 22px; }
.tape { position: absolute; height: 30px; width: 96px; background: var(--tape); z-index: 5;
  background-image: linear-gradient(90deg, rgba(255,255,255,.12), rgba(0,0,0,.05) 40%, rgba(255,255,255,.1)); }
.tape.tl { left: -22px; top: 4px; transform: rotate(-34deg); } .tape.tr { right: -22px; top: 6px; transform: rotate(32deg); }
.tape.tc { left: calc(50% - 48px); top: -13px; transform: rotate(-3deg); }
.shot { position: relative; display: block; background: #f3f1ec; padding: 9px; margin: 0; box-shadow: 0 1px 1px rgba(0,0,0,.5), 0 18px 34px -12px rgba(0,0,0,.75); }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.shot figcaption, .shot i { display: block; margin: 8px 2px 0 3px; font: 400 clamp(13px, .8vw, 15px)/1.3 'Martian Mono'; font-style: normal; color: #5d5850; }
.xerox img { filter: grayscale(1) contrast(1.06); }
.r1 { transform: rotate(-2.2deg); } .r2 { transform: rotate(1.6deg); } .r3 { transform: rotate(-1deg); } .r4 { transform: rotate(2.6deg); }
.stamp { display: inline-block; font: 700 clamp(26px, 2.4vw, 46px)/1 'Martian Mono'; color: var(--orange-ink); border: 4px solid var(--orange-ink); padding: 8px 14px 6px; mix-blend-mode: multiply; opacity: .85; }
.stamp.on-desk { mix-blend-mode: normal; color: var(--orange); border-color: var(--orange); opacity: .9; }

/* кнопка — лента из ленточного принтера */
.dymo { position: relative; display: inline-flex; align-items: center; gap: 16px; text-decoration: none; background: var(--dymo); z-index: 8;
  color: #fff6ee; font: 700 clamp(15px, 1.05vw, 22px)/1 'Martian Mono', monospace; letter-spacing: .12em; text-transform: uppercase; padding: 1.05em 2em 1.05em 1.8em;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.12));
  text-shadow: 0 -1px 0 rgba(120,30,0,.55), 0 1px 0 rgba(255,255,255,.35);
  box-shadow: 0 2px 2px rgba(0,0,0,.45), 0 10px 20px -8px rgba(0,0,0,.6); transform: rotate(-1.2deg); transition: background-color .15s; }
.dymo:hover { background-color: #b5350a; }
.dymo .lbl { display: inline-block; line-height: 1.35; }
.dymo .lbl .w { display: inline-block; white-space: nowrap; }
.dymo .lbl .w span { display: inline-block; }
.dymo svg { width: 1.3em; height: .9em; overflow: visible; flex: none; }
.dymo.small { font-size: clamp(12px, .78vw, 15px); padding: .95em 1.7em .95em 1.5em; gap: 10px; letter-spacing: .1em; transform: rotate(1deg); }
.ctaline { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(26px, 2.6vw, 48px); }
.ctanote { font-size: .82em; color: var(--chalk-dim); max-width: 22em; }

/* ссылка-полоска скотча */
.tapelink { position: relative; display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 52px 12px 22px; background: var(--tape); color: var(--graphite); text-decoration: none; max-width: 100%; box-sizing: border-box;
  background-image: linear-gradient(90deg, rgba(255,255,255,.14), rgba(0,0,0,.05) 40%, rgba(255,255,255,.1)); }
.tapelink b { font: 800 clamp(19px, 1.3vw, 25px)/1.05 'Shantell Sans'; font-variation-settings: 'INFM' 100, 'BNCE' 40; }
.tapelink span { font: 400 13px/1.2 'Martian Mono'; color: #3b372f; word-break: break-word; }
.tapelink .ext { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--orange-ink); }
.tapelink:hover b { text-decoration: underline; text-decoration-color: var(--orange-ink); text-underline-offset: 4px; }

/* Каракуль и реплика */
.duo { display: flex; align-items: flex-end; gap: 0; }
.duo.left { flex-direction: row-reverse; justify-content: flex-end; }
.say { position: relative; z-index: 3; margin: 26px 34px 40px 22px; font: 400 clamp(16px, 1.05vw, 21px)/1.32 'Shantell Sans'; font-variation-settings: 'INFM' 100, 'BNCE' 20; color: var(--chalk); max-width: 17em; }
.say.on-paper { color: var(--graphite); }
.say a { color: var(--orange); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kk { flex: none; width: clamp(110px, 10vw, 210px); height: auto; overflow: visible; }

/* маркер поверх текста */
[data-mark] { position: relative; white-space: nowrap; }
.mk { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: -1; }
.mk.top { z-index: 2; }
.draw-in { clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.3,.7,.2,1); }
.draw-in.in { clip-path: inset(-20% -20% -20% -20%); }
@media (prefers-reduced-motion: reduce) { .draw-in { clip-path: none; transition: none; } }

/* сетки */
.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--gap); align-items: center; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cols5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 44px); }
.head2 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 40px; margin-bottom: clamp(30px, 3.6vw, 70px); }
.head2 .hand { font-size: clamp(18px, 1.3vw, 26px); }

/* лист с фиксированной внутренней сеткой: масштабируется целиком (data-fit) */
.fit { position: relative; transform-origin: 50% 50%; }
.fitbox { position: relative; }
.abs { position: absolute; }
.draw { position: absolute; mix-blend-mode: multiply; }
svg.ink { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }

/* первый экран */
.hero { padding-top: clamp(30px, 4vw, 80px); padding-bottom: clamp(40px, 5vw, 110px); }
/* заголовок первого экрана — по ширине своей колонки: самое длинное слово ≈ 5,3 кегля */
.hero .h1 { font-size: calc((100vw - 2 * var(--pad) - var(--gap)) * .54 / 5.3); }
.hero .h1 .l { display: block; white-space: nowrap; }
.hero .h1 .ins { display: block; font-size: .3em; margin: .3em 0 .5em .9em; color: var(--chalk); transform: rotate(-2deg); white-space: nowrap; letter-spacing: 0; }
.hero .h1 .l3 { font-size: .64em; }
.lph { font-size: clamp(40px, 5vw, 128px); color: var(--chalk); line-height: .92; }
.lph .hatch { -webkit-text-stroke-width: 1.8px; }
.hero .kicker { display: block; margin-bottom: clamp(14px, 1.4vw, 26px); }
.hero .lead { margin-top: clamp(24px, 2.4vw, 46px); }
.hero .sub { margin-top: 14px; }

/* двери на главной */
.doorgrp + .doorgrp { margin-top: clamp(48px, 5vw, 110px); }
.doorgrp > .hand { font-size: clamp(20px, 1.6vw, 32px); color: var(--chalk-dim); margin-bottom: 22px; transform: rotate(-1deg); }
.door { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); text-decoration: none; transition: transform .2s ease-out; min-height: 100%; }
.door:hover { transform: rotate(0deg) translateY(-6px) !important; }
.door .dv { position: relative; overflow: hidden; background: #1d1a16; min-height: clamp(220px, 20vw, 460px); }
.door .dv img, .door .dv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door .dv.light { background: #e6e3dc; }
.door .dv.light img { object-fit: contain; mix-blend-mode: multiply; padding: 6%; box-sizing: border-box; }
.door .dt { padding: clamp(20px, 2vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.door .dt .dela { font-size: clamp(32px, 2.9vw, 66px); color: var(--graphite); line-height: .9; }
.door .dt p { margin: 0; font-size: .92em; }
.door .dt .pr { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.door .dt .pr b { font: 800 clamp(22px, 1.8vw, 38px)/1 'Shantell Sans'; font-variation-settings: 'INFM' 100, 'BNCE' 55; color: var(--orange-ink); }
.door .go { font: 400 13px 'Martian Mono'; color: #4b463f; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.arr { width: 22px; height: 12px; flex: none; }
.door:hover .go { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 4px; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: st; }
.step { padding: clamp(22px, 2vw, 38px); padding-top: clamp(64px, 5vw, 110px); }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: clamp(14px, 1.4vw, 28px); top: clamp(-34px, -2.4vw, -18px); font: 800 clamp(72px, 7vw, 150px)/1 'Shantell Sans'; font-variation-settings: 'INFM' 100, 'BNCE' 60; color: var(--orange); opacity: .92; }
.step h3 { font: 800 clamp(22px, 1.6vw, 34px)/1.05 'Shantell Sans'; font-variation-settings: 'INFM' 100, 'BNCE' 30; margin-bottom: 8px; }
.step p { margin: 0; font-size: .92em; }

/* возражения: карточки из блокнота */
.objs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.obj { padding: clamp(24px, 2.2vw, 44px); }
.obj h3 { font: 800 clamp(22px, 1.6vw, 34px)/1.08 'Shantell Sans'; font-variation-settings: 'INFM' 100, 'BNCE' 30; margin-bottom: 12px; }
.obj p { margin: 0; font-size: .94em; }
.obj .fact { display: block; margin-top: 14px; font: 400 13px/1.45 'Martian Mono'; color: #4b463f; }

/* отзыв-карточка */
.review { padding: clamp(24px, 2.4vw, 48px); background-color: #ebe8df; }
.review .rh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 700 13px 'Martian Mono'; letter-spacing: .14em; color: #4b463f; padding-bottom: 14px; border-bottom: 2px solid rgba(201,60,10,.55); }
.review .rh span + span { font-weight: 400; letter-spacing: .02em; }
.review blockquote { margin: 20px 0 0; font: 400 clamp(18px, 1.25vw, 25px)/1.55 'Shantell Sans'; font-variation-settings: 'INFM' 0, 'BNCE' 0; }
.review .by { margin-top: 18px; font: 400 13px/1.5 'Martian Mono'; color: #4b463f; }

/* прайс-чек */
.receipt { background-color: #ece9e3; padding: clamp(24px, 2.2vw, 40px) clamp(22px, 2vw, 38px) 44px; font: 400 clamp(14px, .95vw, 18px)/1.65 'Martian Mono'; color: var(--graphite); }
.receipt .rr { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px dashed rgba(42,39,35,.35); }
.receipt .rr small { display: block; font: 400 .82em/1.35 'Shantell Sans'; color: #4b463f; }
.receipt .rr > span:last-child { white-space: nowrap; font-weight: 700; text-align: right; }
.receipt .rhd { display: flex; justify-content: space-between; font-weight: 700; letter-spacing: .2em; padding-bottom: 12px; border-bottom: 3px double rgba(42,39,35,.6); margin-bottom: 6px; }
.receipt .rft { margin-top: 16px; font-size: .84em; color: #4b463f; }

/* сравнение «было — стало» ползунком */
.cmp { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: #111; }
.cmp img { display: block; width: 100%; height: auto; -webkit-user-drag: none; pointer-events: none; }
.cmp .cmp-a { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.cmp .cmp-a img { height: 100%; object-fit: cover; }
.cmp .cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 0; }
.cmp .cmp-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--orange); }
.cmp .cmp-h button { position: absolute; top: 50%; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; cursor: ew-resize; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.cmp .cmp-l { position: absolute; top: 12px; font: 700 13px 'Martian Mono'; letter-spacing: .08em; background: rgba(21,19,17,.78); color: var(--chalk); padding: 6px 10px; }
.cmp .cmp-l.a { left: 12px; } .cmp .cmp-l.b { right: 12px; }

/* переключатели */
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg button { font: 400 clamp(13px, .85vw, 16px) 'Martian Mono'; color: var(--chalk); background: transparent; border: 1.5px solid rgba(236,231,222,.4); padding: 10px 16px; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:hover { border-color: var(--chalk); }
.seg button[aria-pressed="true"] { background: var(--chalk); color: var(--graphite); border-color: var(--chalk); }
.seg.on-paper button { color: var(--graphite); border-color: rgba(42,39,35,.4); }
.seg.on-paper button[aria-pressed="true"] { background: var(--graphite); color: var(--paper); }

/* живой бот: телефон гостя и телефон баристы */
.phones { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(14px, 1.6vw, 30px); align-items: start; }
.phone { position: relative; background: #0b0f14; border-radius: clamp(26px, 2.2vw, 40px); padding: 12px; box-shadow: 0 0 0 2px #2a2f36, 0 30px 60px -20px rgba(0,0,0,.9); }
.phone .scr { border-radius: clamp(18px, 1.6vw, 30px); overflow: hidden; background: #0e1621; display: flex; flex-direction: column; height: clamp(440px, 34vw, 640px); font: 400 clamp(14px, .9vw, 17px)/1.38 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.phone .ph { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212b; color: #e9eef3; }
.phone .ph i { width: 34px; height: 34px; border-radius: 50%; background: #c93c0a; flex: none; display: grid; place-items: center; font: 400 15px 'Dela Gothic One'; color: #fff; font-style: normal; }
.phone .ph b { display: block; font-weight: 600; font-size: .95em; } .phone .ph small { color: #7f91a4; font-size: .8em; }
.ch-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.025) 0 2px, transparent 3px), radial-gradient(circle at 70% 80%, rgba(255,255,255,.02) 0 2px, transparent 3px); background-size: 60px 60px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; color: #e9eef3; animation: pop .18s ease-out; }
.msg.bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7f91a4; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: #17212b; min-height: 52px; }
.ch-chips button { flex: 1 1 auto; font: inherit; color: #e9eef3; background: #2b5278; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: background-color .12s; }
.ch-chips button:hover { background: #3a6a98; }
.ib-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ib-empty { color: #7f91a4; text-align: center; margin-top: 40%; padding: 0 16px; }
.ord { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #182533; color: #e9eef3; border-left: 0; transition: background-color .6s ease-out, box-shadow .6s ease-out; }
.ord b { color: var(--orange); font-weight: 700; }
.ord.new { background: #3a2a1f; box-shadow: 0 0 0 2px var(--orange); }
.tryme { font-size: clamp(20px, 1.5vw, 30px); color: var(--orange); transform: rotate(-2deg); display: inline-block; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .msg, .msg.typing i { animation: none; } }

/* слои, которые меняются переключателем */
.layers { position: relative; display: grid; }
.layers > [data-layer] { grid-area: 1 / 1; opacity: 0; transition: opacity .25s ease-out; pointer-events: none; }
.layers > [data-layer].on { opacity: 1; pointer-events: auto; }
.layers img { display: block; width: 100%; height: auto; }
.squint img { filter: blur(6px) saturate(1.1); }
.squint img, .layers img { transition: filter .25s ease-out; }
.wbframe { background: #fff; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.ctrl { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 18px; }
.ctrl .lbl { font: 400 13px 'Martian Mono'; color: var(--chalk-dim); }

/* вращение 3D */
.spin { position: relative; cursor: grab; touch-action: pan-y; user-select: none; background: #120f0c; }
.spin.grab { cursor: grabbing; }
.spin .spin-v { aspect-ratio: 1; background-repeat: no-repeat; }
.spin .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 400 13px 'Martian Mono'; color: var(--chalk-dim); background: rgba(21,19,17,.7); padding: 6px 12px; white-space: nowrap; pointer-events: none; }

/* лента слайдов карточки: на узком экране листается вбок */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 18px); }
.strip img { display: block; width: 100%; height: auto; box-shadow: 0 18px 30px -14px rgba(0,0,0,.8); }
@media (max-width: 1000px) {
  .phones { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .phone.inbox .scr { height: 300px; }
  .strip { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .strip img { scroll-snap-align: start; }
}

/* подвал */
.ft { display: grid; grid-template-columns: 1.3fr 1fr .9fr 1fr; gap: 40px; padding-block: 40px 110px; font: 400 clamp(13px, .82vw, 16px)/1.7 'Martian Mono'; color: var(--chalk-dim); border-top: 1px solid rgba(116,180,214,.22); }
.ftc { display: flex; flex-direction: column; }
.ftc b { color: var(--chalk); font-weight: 700; margin-bottom: 4px; }
.ftc a { color: var(--chalk-dim); text-decoration: underline; text-decoration-color: rgba(255,90,28,.55); text-underline-offset: 4px; }
.ftc a:hover { color: var(--chalk); }

.stickycta { display: none; }
.cookie { position: fixed; z-index: 95; left: 16px; bottom: 16px; max-width: 420px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); color: var(--graphite); font: 400 14px/1.4 'Shantell Sans'; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--orange-ink); }
.cookie button { flex: none; font: 700 13px 'Martian Mono'; background: var(--graphite); color: var(--paper); border: 0; padding: 10px 14px; cursor: pointer; }
@media (max-width: 1000px) { .cookie { left: 12px; right: 12px; bottom: 84px; max-width: none; } }

/* ===================== колонка: планшет и телефон ===================== */
@media (max-width: 1000px) {
  .split, .cols2, .cols3, .objs { grid-template-columns: minmax(0, 1fr); }
  .cols4, .cols5, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .hero .h1 { font-size: calc((100vw - 2 * var(--pad)) / 5.3); }
  .hdr .dymo { margin-left: auto; }
  .ft { grid-template-columns: 1fr 1fr; }
  .stickycta { display: inline-flex; position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px);
    margin: 0 auto; font-size: 14px; transform: translateY(170%); visibility: hidden; transition: transform .25s ease-out, visibility 0s linear .25s; }
  .stickycta.on { transform: translateY(0) rotate(-0.8deg); visibility: visible; transition: transform .25s ease-out; }
}
@media (max-width: 640px) {
  .cols4, .cols5, .steps { grid-template-columns: minmax(0, 1fr); }
  .door { grid-template-columns: minmax(0, 1fr); }
  .door .dv { min-height: 0; aspect-ratio: 4 / 3; }
  .ft { grid-template-columns: 1fr; gap: 22px; }
  .hero .h1 .ins { white-space: normal; }
  .hero .h1 { font-size: calc((100vw - 2 * var(--pad)) / 5.6); }
  .h2 { font-size: min(var(--fs-h2), 9.6vw); }
  .lph { font-size: min(40px, 10.4vw); }
  .dymo { font-size: 13px; letter-spacing: .07em; padding: 1em 1.4em 1em 1.3em; gap: 10px; max-width: 100%; box-sizing: border-box; }
  .wbmath .kit { font-size: 1.1em; }
  .wbmath [data-mark] { white-space: normal; }
  .steps { gap: 60px; }
  .kk { width: 96px; }
  .say { margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .stickycta, .door, .dymo { transition: none !important; } }
