/* =========================================================
   КАСІ — майстерня меблів, Рівне
   Концепція: крісло з логотипа, розрізане навпіл — чорна й біла половини.
   Палітра — строго з логотипа: чорнило #151515 + біле полотно.
   ========================================================= */

:root {
  --ink: #151515;
  --ink-2: #1e1e1e;
  --ink-3: #2a2a2a;
  --linen: #f2efe9;
  --paper: #ffffff;
  --mute: #66625b;      /* текст на полотні, 5.4:1 */
  --mute-l: #aaa59c;    /* текст на чорнилі, 7.3:1 */
  --line: rgba(21, 21, 21, .16);
  --line-l: rgba(242, 239, 233, .18);

  --f-display: "Days One", "Arial Black", sans-serif;
  --f-body: "Ysabeau Office", "Segoe UI", system-ui, sans-serif;
  --f-chalk: "Pangolin", "Comic Sans MS", cursive;

  --pad: clamp(18px, 4vw, 56px);
  --sec: clamp(56px, 7vw, 96px);
  --r: 18px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
.why, .fabrics, .about, .cases { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--linen); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 10001; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.sec--ink { background: var(--ink); color: var(--linen); }
.chalk { font-family: var(--f-chalk); font-weight: 400; letter-spacing: .01em; }
.eyebrow { font-size: clamp(17px, 1.3vw, 20px); color: var(--mute); margin-bottom: 14px; }
.sec--ink .eyebrow { color: var(--mute-l); }
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--linen);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bg);
  border-radius: 100px;
  font-weight: 700; font-size: 16px; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn::before { /* стібок усередині кнопки */
  content: ""; position: absolute; inset: 4px; border-radius: inherit;
  border: 1.5px dashed currentColor; opacity: .35; pointer-events: none;
}
.btn::after { /* заливка «половиною» при наведенні */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::after { transform: translateX(0); }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--linen); }
.btn--light { --bg: var(--linen); --fg: var(--ink); }
.btn--ghost-l { --bg: transparent; --fg: var(--linen); border-color: rgba(242,239,233,.5); }
.btn--ghost-l::after { background: var(--linen); }
.btn--ghost-l:hover { color: var(--ink); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 100px; border: 2px solid var(--ink); font-weight: 700; transition: background .3s, color .3s; }
.pill--ink:hover { background: var(--ink); color: var(--linen); }

.round {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.round:hover { background: var(--ink); color: var(--linen); }
.round:active { transform: scale(.92); }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }

/* =========================================================
   PRELOADER
   ========================================================= */
.pl { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.pl-half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; background: var(--paper); will-change: transform; }
.pl-half--l { left: 0; }
.pl-half--r { right: 0; }
.pl-art { position: absolute; top: 50%; width: min(400px, 74vw); transform: translate(-50%, -50%); text-align: center; }
.pl-half--l .pl-art { left: 100%; }
.pl-half--r .pl-art { left: 0; }
.pl-svg { width: 100%; height: auto; overflow: visible; }
.pl-count { font-family: var(--f-chalk); font-size: 20px; margin-top: 22px; color: var(--ink); }
.pl-count b { font-family: var(--f-display); font-weight: 400; font-size: 26px; display: inline-block; min-width: 2.6ch; text-align: right; }
.pl-seam { position: absolute; left: 50%; top: 0; width: 0; height: 100%; border-left: 2px dashed var(--ink); transform: scaleY(0); transform-origin: top; }
body:not(.is-loading) .pl { visibility: hidden; }
.no-js .pl { display: none; }

/* =========================================================
   CURSOR — ґудзик із 4 дірочками + нитка
   ========================================================= */
.thread, .btn-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
  .has-cursor input[type="text"], .has-cursor input[type="tel"] { cursor: text; }
  .thread {
    display: block; position: fixed; inset: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9998; mix-blend-mode: difference;
  }
  .btn-cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 9999;
    width: 26px; height: 26px; margin: -13px 0 0 -13px;
    border-radius: 50%; background: #fff;
    mix-blend-mode: difference; pointer-events: none;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
    will-change: transform;
  }
  .bc-holes { position: relative; width: 10px; height: 10px; transition: opacity .25s, transform .5s var(--ease); }
  .bc-holes i { position: absolute; width: 3.5px; height: 3.5px; border-radius: 50%; background: #000; }
  .bc-holes i:nth-child(1) { left: 0; top: 0; } .bc-holes i:nth-child(2) { right: 0; top: 0; }
  .bc-holes i:nth-child(3) { left: 0; bottom: 0; } .bc-holes i:nth-child(4) { right: 0; bottom: 0; }
  .bc-label { position: absolute; font-style: normal; font-family: var(--f-chalk); font-size: 15px; color: #000; opacity: 0; transition: opacity .25s; white-space: nowrap; }
  .btn-cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .btn-cursor.is-hover .bc-holes { transform: rotate(45deg) scale(1.4); }
  .btn-cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .btn-cursor.has-label .bc-holes { opacity: 0; }
  .btn-cursor.has-label .bc-label { opacity: 1; }
  .btn-cursor.is-down .bc-holes { transform: scale(.7); }
  .btn-cursor.is-hidden { opacity: 0; }
}

/* =========================================================
   HEADER
   ========================================================= */
.hdr-tag {
  position: fixed; z-index: 900; top: 14px; left: var(--pad);
  display: block; background: #fff; padding: 6px 10px 5px; border-radius: 12px;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.45);
  transition: transform .5s var(--ease);
}
.hdr-tag::after { content: ""; position: absolute; inset: 3px; border: 1.5px dashed rgba(21,21,21,.45); border-radius: 9px; pointer-events: none; }
.hdr-tag img { height: clamp(40px, 3.6vw, 52px); width: auto; }
.hdr-tag:hover { transform: rotate(-3deg) translateY(2px); }

.hdr {
  position: fixed; z-index: 890; top: 0; left: 0; right: 0;
  height: clamp(72px, 6.2vw, 86px);
  display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 32px);
  padding-inline: var(--pad);
  color: #fff; mix-blend-mode: difference;
  transition: transform .5s var(--ease);
}
.hdr-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: clamp(18px, 2.2vw, 36px); font-weight: 600; font-size: 16px; }
.hdr-nav a { position: relative; padding: 6px 0; }
.hdr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 2px dashed currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.burger { width: 50px; height: 50px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-content: center; gap: 7px; }
.burger-st { display: block; width: 22px; border-top: 2.5px dashed currentColor; transition: transform .45s var(--ease); }
.menu-open .burger-st:first-child { transform: translateY(4.75px) rotate(45deg); }
.menu-open .burger-st:last-child { transform: translateY(-4.75px) rotate(-45deg); }
.menu-open .hdr-nav, .menu-open .hdr-phone { opacity: 0; pointer-events: none; }

/* =========================================================
   MENU — дві половини
   ========================================================= */
.menu { position: fixed; inset: 0; z-index: 880; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; visibility: hidden; }
.menu.is-open { pointer-events: auto; visibility: visible; }
.menu-half { padding: clamp(110px, 12vh, 150px) var(--pad) 40px; display: flex; flex-direction: column; overflow-y: auto; }
.menu-half--l { background: var(--ink); color: var(--linen); transform: translateY(-101%); }
.menu-half--r { background: var(--linen); color: var(--ink); transform: translateY(101%); justify-content: flex-end; }
.menu-seam { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--mute-l); transform: scaleY(0); transform-origin: top; }
.menu-note { font-size: 19px; opacity: .7; margin-bottom: 18px; }
.menu-list a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-size: clamp(30px, 4.2vw, 62px); line-height: 1.18; transition: transform .4s var(--ease), opacity .3s; }
.menu-list small { font-family: var(--f-chalk); font-size: 18px; opacity: .55; min-width: 2ch; }
.menu-list:hover a { opacity: .45; }
.menu-list a:hover { opacity: 1; transform: translateX(12px); }
.menu-big { font-family: var(--f-display); font-size: clamp(30px, 4vw, 58px); line-height: 1.1; }
.menu-addr { margin: 16px 0 24px; font-size: 18px; color: var(--mute); }
.menu-msg { display: flex; gap: 10px; flex-wrap: wrap; }

/* menu motion (CSS, щоб працювало і на десктопі, і на мобайлі) */
.menu { transition: visibility 0s linear .9s; }
.menu.is-open { transition-delay: 0s; }
.menu-half { transition: transform .85s var(--ease-io); }
.menu.is-open .menu-half { transform: none; }
.menu-seam { transition: transform .6s var(--ease) 0s; }
.menu.is-open .menu-seam { transform: none; transition-delay: .6s; }
.menu-list li, .menu-half--r > * { opacity: 0; transform: translateY(26px); transition: opacity .4s, transform .6s var(--ease); }
.menu.is-open .menu-list li, .menu.is-open .menu-half--r > * { opacity: 1; transform: none; transition-delay: calc(.45s + var(--i, 0) * .055s); }
.menu.is-open .menu-half--r > * { transition-delay: .6s; }

/* пауза безкінечних анімацій поза екраном */
.is-off .rv-move, .tape.is-off .tape-track, .tape.is-off::before { animation-play-state: paused; }
@media (min-width: 761px) {
  .pr-track { width: max-content; padding-right: calc(var(--pad) + 90px); }
  .process .pr-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .hero-in .hero-side--r { right: 76px; }
}

/* =========================================================
   DOCK
   ========================================================= */
.dock { position: fixed; z-index: 850; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.dock-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.6);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.dock-btn:hover { background: var(--ink); color: #fff; transform: scale(1.08) rotate(-8deg); }
.dock-btn:first-child { animation: ring 4s var(--ease) infinite 3s; }
@keyframes ring { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-14deg); } 94% { transform: rotate(12deg); } 97% { transform: rotate(-6deg); } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; display: flex; }
.hero-bg { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: -2; }
.hero-bg span:first-child { background: var(--ink); }
.hero-bg span:last-child { background: var(--linen); }
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-fallback { display: none; }
.no-webgl .hero-fallback {
  display: block; position: absolute; z-index: -1;
  left: 50%; top: var(--fb-top, 50%); height: var(--fb-h, 240px); width: auto; max-width: 70vw;
  transform: translateX(-50%); object-fit: contain;
  padding: 10px 14px; background: #fff; border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}

.hero-in {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  padding: clamp(96px, 11vh, 130px) var(--pad) clamp(28px, 4vh, 48px);
  color: #fff; mix-blend-mode: difference;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.hero-kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.hero-rating { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.hero-rating b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.hero-rating .stars svg { width: 14px; height: 14px; }

.hero-title { margin-top: clamp(14px, 3vh, 36px); text-align: center; font-family: var(--f-display); font-weight: 400; line-height: .92; letter-spacing: -.035em; }
.ht-line { display: block; overflow: hidden; padding-bottom: .06em; }
.ht-line > .ht-w { display: inline-block; }
.ht-line:first-child { font-size: clamp(54px, 11vw, 168px); }
.ht-line--sm { font-size: clamp(19px, 2.2vw, 34px); letter-spacing: -.01em; margin-top: .3em; }
.ht-char { display: inline-block; will-change: transform; }

.hero-stage { position: relative; flex: 1; min-height: clamp(260px, 36vh, 440px); }
.hero-side { position: absolute; top: 18%; font-size: clamp(24px, 2.6vw, 40px); line-height: 1; }
.hero-side::after { content: ""; display: block; width: 2.2em; margin-top: 8px; border-top: 2px dashed currentColor; }
.hero-side--l { left: 0; }
.hero-side--r { right: 0; text-align: right; }
.hero-side--r::after { margin-left: auto; }

.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-lead { max-width: min(32vw, 420px); font-size: clamp(16px, 1.2vw, 19px); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-in .btn { --bg: #fff; --fg: #000; }
.hero-in .btn--ghost { --bg: transparent; --fg: #fff; border-color: #fff; }
.hero-in .btn--ghost::after { background: #fff; }
.hero-in .btn--ghost:hover { color: #000; }

.hotspots { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: difference; color: #fff; z-index: 1; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .5s; }
.hs.is-ready { opacity: 1; }
.hs i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #fff; flex: none; margin: -8px 0 0 -8px; }
.hs i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px dashed #fff; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hs span { font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 100px; background: #fff; color: #000; white-space: nowrap; }
.hs em { position: absolute; left: 6px; top: calc(100% + 8px); width: 220px; font-style: normal; font-size: 14px; line-height: 1.35; padding: 10px 12px; border-radius: 12px; background: #fff; color: #000; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; }
.hs:hover em, .hs.is-open em, .hs:focus-visible em { opacity: 1; transform: none; }
.hs--flip { flex-direction: row-reverse; }
.hs--flip i { margin: -8px -8px 0 0; }
.hs--flip em { left: auto; right: 6px; }

/* =========================================================
   TAPE — сантиметрова стрічка
   ========================================================= */
.tape {
  position: relative; overflow: hidden;
  background: var(--paper);
  border-block: 2px solid var(--ink);
  height: 64px;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -6px;
  z-index: 2;
}
.tape::before { /* поділки */
  content: ""; position: absolute; inset: 0 0 auto;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 18px, 100% 9px;
  background-repeat: no-repeat;
  animation: ticks 30s linear infinite;
}
@keyframes ticks { to { background-position: -500px 0, -500px 0; } }
.tape-track { position: absolute; bottom: 9px; left: 0; display: flex; gap: 0; white-space: nowrap; will-change: transform; animation: tape 40s linear infinite; }
.tape-track span { font-family: var(--f-display); font-size: 19px; text-transform: lowercase; padding-inline: 28px; position: relative; }
.tape-track span::after { content: "✕"; position: absolute; right: -8px; font-family: var(--f-body); font-size: 13px; top: 5px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT — текст з фото в рядку
   ========================================================= */
.about-text {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 4.4vw, 66px); line-height: 1.16; letter-spacing: -.025em;
  max-width: 1180px;
}
.inl { display: inline-block; vertical-align: middle; width: 1.5em; height: .95em; border-radius: 100px; overflow: hidden; margin: -.1em .08em 0; transform: rotate(-3deg); border: 3px solid var(--ink); }
.inl--w { width: 2.4em; transform: rotate(2deg); }
.inl img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform .8s var(--ease); }
.inl:hover img { transform: scale(1); }
.facts { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.facts li { padding: 22px 20px 4px 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.facts li + li { padding-left: 22px; border-left: 2px dashed var(--line); }
.facts b { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4.2vw, 64px); line-height: 1; }
.facts b em { font-style: normal; font-size: .45em; color: var(--mute); }
.facts span { color: var(--mute); font-weight: 500; }

/* =========================================================
   CASES — до / після
   ========================================================= */
.cases-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.cases-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 9vw, 150px); line-height: .9; letter-spacing: -.04em; display: flex; align-items: center; gap: .18em; }
.cases-title i { display: block; width: .07em; height: .95em; background: repeating-linear-gradient(180deg, var(--linen) 0 .09em, transparent .09em .16em); transform: rotate(16deg); }
.cases-title span:last-child { -webkit-text-stroke: 2px var(--linen); color: transparent; }
.cases-sub { max-width: 46ch; color: var(--mute-l); font-size: clamp(16px, 1.2vw, 19px); }

.cases-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 360px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.cmp { position: relative; }
.cmp-stage {
  position: relative; aspect-ratio: var(--ar); max-height: 72vh; width: 100%;
  margin-inline: auto;
  border-radius: var(--r); overflow: hidden;
  background: var(--ink-3);
  touch-action: pan-y; user-select: none;
  transition: aspect-ratio .6s var(--ease);
}
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-after { clip-path: inset(0 0 0 var(--p, 50%)); }
.cmp-tag { position: absolute; top: 16px; font-family: var(--f-chalk); font-size: 22px; padding: 2px 14px 4px; border-radius: 100px; pointer-events: none; }
.cmp-tag--b { left: 16px; background: var(--ink); color: var(--linen); }
.cmp-tag--a { right: 16px; background: var(--linen); color: var(--ink); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 0; border-left: 3px dashed #fff; filter: drop-shadow(0 0 6px rgba(0,0,0,.45)); pointer-events: none; }
.cmp-knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -30px;
  border-radius: 50%; background: var(--linen);
  box-shadow: 0 0 0 5px rgba(21,21,21,.35), 0 12px 30px -10px rgba(0,0,0,.6);
  display: grid; grid-template-columns: repeat(2, 8px); gap: 7px; place-content: center;
  transition: transform .35s var(--ease);
}
.cmp-knob i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.cmp-stage:active .cmp-knob { transform: scale(.9) rotate(45deg); }
.cmp-range { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cmp-range:focus-visible + .cmp-cap { outline: 3px solid var(--linen); outline-offset: 6px; border-radius: 6px; }
.cmp-cap { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.cmp-cap-t { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.cmp-cap-d { color: var(--mute-l); }

.case-list { display: flex; flex-direction: column; border-top: 2px solid var(--line-l); }
.case-btn { width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 20px 6px; border-bottom: 2px dashed var(--line-l); position: relative; transition: padding .4s var(--ease), color .3s; color: var(--mute-l); }
.case-btn small { grid-row: span 2; font-family: var(--f-chalk); font-size: 20px; }
.case-btn span { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.case-btn em { font-style: normal; font-size: 15px; }
.case-btn::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--linen); transform: scale(0); transition: transform .4s var(--ease); }
.case-btn:hover { color: var(--linen); }
.case-btn.is-active { color: var(--linen); padding-left: 30px; }
.case-btn.is-active::before { transform: scale(1); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { position: relative; }
.sv-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 40px); }
.sv-list { border-top: 2px solid var(--ink); }
.sv {
  display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 2px dashed var(--line);
  position: relative; transition: padding .45s var(--ease);
}
.sv::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.sv-n { font-family: var(--f-chalk); font-size: 22px; color: var(--mute); transition: color .3s; }
.sv-t { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.9vw, 44px); line-height: 1.05; letter-spacing: -.02em; transition: transform .45s var(--ease), color .3s; }
.sv-d { color: var(--mute); max-width: 46ch; transition: color .3s; }
.sv-thumb { display: none; }
.services .wrap { position: relative; z-index: 1; }
@media (hover: hover) {
  .sv:hover { color: var(--linen); padding-inline: 14px; }
  .sv:hover::before { transform: scaleY(1); }
  .sv:hover .sv-n, .sv:hover .sv-d { color: var(--mute-l); }
  .sv:hover .sv-t { transform: translateX(10px); }
}
.sv-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; pointer-events: none;
  border: 3px solid var(--linen);
  opacity: 0; transform: scale(.6);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.sv-float img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   WHY — етикетка
   ========================================================= */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.why-p { color: var(--mute-l); margin: 18px 0 28px; max-width: 44ch; font-size: clamp(16px, 1.2vw, 19px); }
.label-wrap { perspective: 1200px; display: flex; justify-content: center; }
.label {
  position: relative; width: min(100%, 520px);
  background: var(--paper); color: var(--ink);
  padding: 26px clamp(20px, 3vw, 34px) 22px;
  border-radius: 6px 6px 18px 18px;
  transform-origin: 50% 0; transform: rotate(-3deg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.label::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(21,21,21,.35); border-radius: 3px 3px 12px 12px; pointer-events: none; }
.label::after { /* петля, якою пришита етикетка */
  content: ""; position: absolute; top: -18px; left: 50%; width: 74px; height: 26px; margin-left: -37px;
  border: 3px solid var(--linen); border-bottom: 0; border-radius: 40px 40px 0 0;
}
.label-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.label-top img { height: 56px; width: auto; }
.label-top p { text-align: right; line-height: 1.2; }
.label-top b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.label-top span { font-family: var(--f-chalk); color: var(--mute); }
.label-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1.5px dashed var(--line); }
.label-list svg { width: 40px; height: 32px; color: var(--ink); }
.label-list b { display: block; font-weight: 800; font-size: 17px; line-height: 1.2; }
.label-list span { display: block; color: var(--mute); font-size: 15px; line-height: 1.35; }
.label-foot { display: flex; justify-content: space-between; padding-top: 14px; font-family: var(--f-display); font-size: 14px; letter-spacing: .1em; }

/* =========================================================
   FABRICS — колода
   ========================================================= */
.fab-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.fab-p { color: var(--mute); margin: 18px 0 28px; max-width: 44ch; font-size: clamp(16px, 1.2vw, 19px); }
.fab-ctrl { display: flex; align-items: center; gap: 18px; }
.fab-count { font-family: var(--f-chalk); font-size: 20px; min-width: 5ch; text-align: center; }
.fab-count b { font-family: var(--f-display); font-weight: 400; }
.deck { position: relative; height: clamp(440px, 46vw, 560px); touch-action: pan-y; }
.swatch {
  position: absolute; left: 50%; top: 0; width: min(100%, 400px); height: calc(100% - 50px); margin-left: calc(min(100%, 400px) / -2);
  border-radius: 20px; overflow: hidden; background: var(--paper);
  border: 2px solid var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.55);
  will-change: transform; user-select: none;
}
.sw-tex { flex: 1; position: relative; border-bottom: 2px solid var(--ink); }
.sw-tex::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; border-bottom: 2px dashed rgba(255,255,255,.55); }
.sw-body { padding: 20px 22px 22px; }
.sw-body h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; }
.sw-body p { color: var(--mute); margin: 8px 0 14px; font-size: 16px; line-height: 1.4; }
.sw-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; font-size: 14px; font-weight: 600; }
.sw-body dd { height: 8px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 calc(20% - 3px), transparent calc(20% - 3px) 20%); -webkit-mask: linear-gradient(90deg, #000 calc(var(--v) * 20%), rgba(0,0,0,.15) 0); mask: linear-gradient(90deg, #000 calc(var(--v) * 20%), rgba(0,0,0,.15) 0); }

[data-tex="velour"] .sw-tex { background: radial-gradient(120% 90% at 25% 15%, #4a4a4a 0%, #1a1a1a 55%, #0c0c0c 100%), #151515; }
[data-tex="velour"] .sw-tex::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px); }
[data-tex="rogozhka"] .sw-tex { background-color: #d9d4ca; background-image: repeating-linear-gradient(0deg, rgba(21,21,21,.22) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, rgba(21,21,21,.18) 0 2px, transparent 2px 5px); }
[data-tex="rogozhka"] .sw-tex::after, [data-tex="micro"] .sw-tex::after { border-color: rgba(21,21,21,.45); }
[data-tex="chenille"] .sw-tex { background-color: #2b2b2b; background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.16) 1.5px, transparent 2px), repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px), repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 6px, transparent 6px 12px); background-size: 9px 9px, auto, auto; }
[data-tex="leather"] .sw-tex { background: radial-gradient(70% 50% at 35% 30%, rgba(255,255,255,.28), transparent 60%), radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.5px) 0 0 / 6px 6px, linear-gradient(160deg, #262626, #0a0a0a); }
[data-tex="micro"] .sw-tex { background-color: #ece8e0; background-image: repeating-linear-gradient(135deg, rgba(21,21,21,.09) 0 1px, transparent 1px 4px), radial-gradient(80% 60% at 70% 20%, rgba(255,255,255,.9), transparent 60%); }
[data-tex="jacquard"] .sw-tex { background: conic-gradient(from 45deg, #151515 25%, #f2efe9 0 50%, #151515 0 75%, #f2efe9 0) 0 0 / 34px 34px; }
[data-tex="jacquard"] .sw-tex::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #151515 3px, transparent 3.5px) 17px 17px / 34px 34px; }

/* =========================================================
   PROCESS — горизонтальна стрічка
   ========================================================= */
.process { overflow: hidden; }
.pr-pin { padding-block: var(--sec); }
.pr-head { margin-bottom: clamp(30px, 4vw, 56px); }
.pr-head .h2 { max-width: 18ch; }
.pr-track { position: relative; padding-inline: var(--pad); }
.pr-thread { position: absolute; left: 0; top: 18px; width: 100%; height: 70px; overflow: visible; }
.pr-thread path { fill: none; stroke: var(--linen); stroke-width: 2.5; stroke-dasharray: 10 8; vector-effect: non-scaling-stroke; }
.pr-steps { position: relative; display: flex; gap: clamp(20px, 3vw, 48px); }
.pr-step { flex: 0 0 clamp(270px, 30vw, 420px); padding-top: 100px; position: relative; }
.pr-n {
  position: absolute; top: 18px; left: 0; width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; background: var(--linen); color: var(--ink);
  font-family: var(--f-display); font-size: 22px;
  box-shadow: 0 0 0 6px var(--ink);
}
.pr-n::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed var(--ink); }
.pr-step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; margin: 18px 0 10px; }
.pr-step p { color: var(--mute-l); max-width: 34ch; }

/* =========================================================
   CALC — квіз
   ========================================================= */
.calc-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border: 2px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--paper); }
.calc-side { background: var(--ink); color: var(--linen); padding: clamp(26px, 3.5vw, 50px); display: flex; flex-direction: column; }
.calc-side .eyebrow { color: var(--mute-l); }
.calc-side .h2 { font-size: clamp(30px, 3.5vw, 52px); }
.calc-step-big { margin: auto 0 0; padding-top: 30px; font-family: var(--f-display); line-height: .8; display: flex; align-items: baseline; gap: 10px; }
.calc-step-big b { font-weight: 400; font-size: clamp(90px, 11vw, 170px); }
.calc-step-big span { font-size: 28px; color: var(--mute-l); }
.calc-hint { color: var(--mute-l); margin-top: 18px; max-width: 36ch; }
.calc-form { padding: clamp(24px, 3.5vw, 50px); display: flex; flex-direction: column; min-height: 440px; }
.calc-q { border: 0; margin: 0; padding: 0; display: none; }
.calc-q.is-on { display: block; animation: qIn .5s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateX(24px); } }
.calc-q legend { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; margin-bottom: 22px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 100px; font-weight: 700; transition: background .3s, color .3s, transform .3s var(--ease); cursor: pointer; }
.chip span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; transition: background .3s; }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--ink); color: var(--linen); }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--linen); font: inherit; color: var(--ink); }
.field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(21,21,21,.15); }
.calc-msg { margin: 18px 0; padding: 16px 18px; background: var(--linen); border-radius: 14px; border: 2px dashed var(--line); font-size: 15px; white-space: pre-line; }
.calc-send { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-nav { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-btn { font-weight: 700; min-height: 44px; padding: 0 6px; white-space: nowrap; }
.link-btn:disabled { opacity: .3; cursor: default; }
.calc-dots { display: flex; gap: 8px; }
.calc-dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s, width .4s var(--ease); }
.calc-dots i.is-on { background: var(--ink); width: 44px; }
.calc-nav.is-final [data-calc="next"] { visibility: hidden; }

/* =========================================================
   REVIEWS — колонки, що перепливають
   ========================================================= */
.rv-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.rv-big { font-family: var(--f-display); font-size: clamp(100px, 13vw, 210px); line-height: .85; letter-spacing: -.05em; }
.stars--big { margin: 14px 0 16px; }
.stars--big svg { width: 30px; height: 30px; }
.rv-note { color: var(--mute-l); margin-bottom: 26px; max-width: 32ch; }
.rv-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  height: clamp(560px, 62vw, 720px); overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.rv-move { display: flex; flex-direction: column; gap: 16px; animation: rvUp var(--dur, 46s) linear infinite; will-change: transform; }
.rv-col--rev .rv-move { animation-direction: reverse; }
.rv-col:nth-child(3) .rv-move { --dur: 54s; }
.rv-cols:hover .rv-move { animation-play-state: paused; }
@keyframes rvUp { to { transform: translateY(calc(-50% - 8px)); } }
@keyframes rvLeft { to { transform: translateX(calc(-50% - 8px)); } }
.rv { background: var(--ink-2); border: 1.5px solid var(--line-l); border-radius: 18px; padding: 20px; font-size: 15.5px; line-height: 1.5; position: relative; }
.rv:nth-child(odd) { background: var(--linen); color: var(--ink); border-color: transparent; }
.rv header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 18px; background: var(--linen); color: var(--ink); position: relative; }
.av::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .5; }
.rv:nth-child(odd) .av { background: var(--ink); color: var(--linen); }
.rv header b { display: block; font-weight: 800; line-height: 1.2; }
.rv header small { color: var(--mute-l); font-size: 13px; }
.rv:nth-child(odd) header small { color: var(--mute); }
.rv .stars { margin-bottom: 8px; }
.rv .stars svg { width: 15px; height: 15px; }
.rv img { margin-top: 12px; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rv-tags { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--mute-l); }
.rv:nth-child(odd) .rv-tags { color: var(--mute); }

/* =========================================================
   FAQ — акордеон
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faq-p { color: var(--mute); margin: 16px 0 24px; max-width: 34ch; }
.acc { border-top: 2px solid var(--ink); }
.acc-i { border-bottom: 2px dashed var(--line); }
.acc-b { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.2; transition: padding .4s var(--ease); }
.acc-b:hover { padding-left: 10px; }
.acc-x { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); position: relative; transition: background .35s, transform .5s var(--ease); }
.acc-x::before, .acc-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; margin: -1px 0 0 -8px; border-top: 2px solid currentColor; transition: transform .5s var(--ease); }
.acc-x::after { transform: rotate(90deg); }
.acc-i.is-open .acc-x { background: var(--ink); color: var(--linen); transform: rotate(180deg); }
.acc-i.is-open .acc-x::after { transform: rotate(0); }
.acc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-p > div { overflow: hidden; }
.acc-p p { padding: 0 64px 24px 0; color: var(--mute); font-size: 17px; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--ease); }
.acc-i.is-open .acc-p { grid-template-rows: 1fr; }
.acc-i.is-open .acc-p p { opacity: 1; transform: none; transition-delay: .1s; }

/* =========================================================
   CONTACTS + MAP
   ========================================================= */
.contacts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--ink); color: var(--linen); }
.ct-info { padding: var(--sec) var(--pad); padding-right: clamp(24px, 4vw, 64px); }
.ct-info .eyebrow { color: var(--mute-l); }
.ct-list { margin: 30px 0; display: flex; flex-direction: column; }
.ct-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 0; border-bottom: 2px dashed var(--line-l); align-items: start; }
.ct-list svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--linen); color: var(--ink); }
.ct-list small { display: block; font-family: var(--f-chalk); color: var(--mute-l); font-size: 16px; }
.ct-list address, .ct-list a, .ct-list p { font-weight: 700; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; }
.ct-list a:hover { text-decoration: underline dashed; text-underline-offset: 5px; }
.ct-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-map { position: relative; min-height: 480px; background: #d8d5cf; overflow: hidden; }
.ct-map::before { /* шов між інфо та картою */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 18px;
  background: linear-gradient(90deg, var(--ink) 0 8px, transparent 8px), repeating-linear-gradient(180deg, var(--linen) 0 10px, transparent 10px 18px) 12px 0 / 2px 100% no-repeat;
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.12) brightness(1.03); }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, calc(-100% - 46px)); display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, calc(-100% - 54px)); } }
.map-pin-tag { background: #fff; padding: 8px 10px; border-radius: 14px; border: 2px solid var(--ink); box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); }
.map-pin-tag img { height: 50px; width: auto; }
.map-pin-txt { margin-top: 6px; background: var(--ink); color: var(--linen); padding: 4px 12px; border-radius: 100px; font-weight: 700; font-size: 14px; position: relative; }
.map-pin-txt::after { content: ""; position: absolute; left: 50%; top: 100%; height: 26px; border-left: 2px dashed var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { background: var(--ink); color: var(--linen); padding-bottom: 26px; overflow: hidden; }
.ftr-word { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--f-display); font-size: clamp(90px, 25vw, 400px); line-height: .9; letter-spacing: -.05em; border-top: 2px dashed var(--line-l); }
.ftr-word span { padding-top: .08em; overflow: hidden; }
.ftr-word span:first-child { text-align: right; padding-right: .04em; }
.ftr-word span:last-child { background: var(--linen); color: var(--ink); padding-left: .04em; }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 30px; padding-top: 24px; color: var(--mute-l); font-size: 15px; }
.ftr-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ftr-nav a:hover, .ftr-up:hover { color: var(--linen); }
.ftr-up { font-weight: 700; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 9000; transform: translate(-50%, 140%); background: var(--ink); color: var(--linen); padding: 14px 22px; border-radius: 100px; font-weight: 700; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); transition: transform .5s var(--ease), opacity .3s, visibility 0s linear .5s; max-width: calc(100vw - 32px); text-align: center; opacity: 0; visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* reveal (JS ставить класи) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hdr-nav { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; border-top: 0; }
  .case-btn { border-top: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 2px dashed var(--line); }
}

@media (max-width: 900px) {
  .why-grid, .fab-grid, .faq-grid, .rv-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
  .calc-card { grid-template-columns: 1fr; }
  .calc-step-big { display: none; }
  .calc-hint { margin-top: 12px; }
  .contacts { grid-template-columns: 1fr; }
  .ct-map { min-height: 400px; }
  .ct-map::before { width: 100%; height: 18px; bottom: auto; background: linear-gradient(180deg, var(--ink) 0 8px, transparent 8px), repeating-linear-gradient(90deg, var(--linen) 0 10px, transparent 10px 18px) 0 12px / 100% 2px no-repeat; }
  .rv-score { text-align: left; }
  .rv-cols { height: auto; grid-template-columns: 1fr; gap: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-inline: calc(var(--pad) * -1); }
  .rv-move { flex-direction: row; align-items: flex-start; width: max-content; animation-name: rvLeft; gap: 14px; }
  .rv-move .rv { width: 300px; flex: none; }
  .rv-col:nth-child(2) .rv-move { --dur: 38s; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .hdr-phone span { display: none; }
  .hdr-phone { width: 50px; height: 50px; border: 2px solid currentColor; border-radius: 50%; justify-content: center; }
  .burger, .hdr-phone { width: 46px; height: 46px; }
  .hdr-tag { top: 12px; }
  .hdr-tag img { height: 38px; }

  .dock { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; gap: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 2px dashed var(--mute-l); }
  .dock-btn { flex: 1; height: 50px; border-radius: 14px; border: 0; background: transparent; color: var(--linen); box-shadow: none; }
  .dock-btn + .dock-btn { border-left: 1.5px dashed var(--line-l); border-radius: 0; }
  .dock-btn:first-child { background: var(--linen); color: var(--ink); animation: none; }

  .menu { grid-template-columns: 1fr; grid-template-rows: 1.4fr 1fr; }
  .menu-half { padding: 92px var(--pad) 24px; }
  .menu-half--l { transform: translateX(-101%); }
  .menu-half--r { transform: translateX(101%); padding-top: 24px; justify-content: center; }
  .menu-seam { left: 0; right: 0; top: 58.3%; bottom: auto; border-left: 0; border-top: 2px dashed var(--mute-l); transform: scaleX(0); transform-origin: left; }
  .menu-list a { font-size: 30px; line-height: 1.25; }
  .menu-big { font-size: 30px; }
  .menu-addr { margin: 10px 0 16px; font-size: 16px; }

  .hero { min-height: 0; }
  .hero-in { padding-top: 84px; padding-bottom: 30px; min-height: calc(100svh - 66px); }
  .hero-top { flex-wrap: wrap; row-gap: 6px; }
  .hero-kicker { font-size: 11.5px; letter-spacing: .08em; }
  .hero-rating { font-size: 12px; }
  .hero-rating b { font-size: 18px; }
  .hero-title { margin-top: 22px; }
  .ht-line:first-child { font-size: clamp(46px, 13.4vw, 80px); }
  .ht-line--sm { font-size: clamp(18px, 5vw, 26px); }
  .hero-stage { min-height: 300px; }
  .hero-side { top: 6%; font-size: 24px; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-lead { max-width: none; font-size: 16px; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hs span { font-size: 11.5px; padding: 5px 10px; }
  .hs em { width: 180px; font-size: 13px; }

  .tape { height: 56px; }
  .tape-track span { font-size: 16px; padding-inline: 20px; }

  .inl { border-width: 2px; }
  .facts li { padding: 18px 12px 4px 0; }
  .facts li:nth-child(even) { padding-left: 14px; }

  .cases-head { grid-template-columns: 1fr; gap: 14px; }
  .cmp-tag { top: 10px; font-size: 18px; }
  .cmp-tag--b { left: 10px; } .cmp-tag--a { right: 10px; }
  .cmp-knob { width: 48px; height: 48px; margin: -24px 0 0 -25px; gap: 6px; grid-template-columns: repeat(2, 7px); }
  .cmp-knob i { width: 7px; height: 7px; }
  .cmp-stage { max-height: 62vh; }
  .case-list { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .case-btn { grid-template-columns: 1fr; padding: 14px 4px; }
  .case-btn small { grid-row: auto; font-size: 16px; }
  .case-btn span { font-size: 18px; }
  .case-btn em { font-size: 13px; }
  .case-btn.is-active { padding-left: 4px; }
  .case-btn::before { display: none; }
  .case-btn.is-active small::after { content: " ●"; }

  .sv { grid-template-columns: 1fr 96px; grid-template-rows: auto auto auto; gap: 4px 14px; }
  .sv-n { grid-column: 1; }
  .sv-t { grid-column: 1; }
  .sv-d { grid-column: 1 / -1; font-size: 15.5px; }
  .sv-thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 96px; height: 72px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
  .sv-float { display: none; }

  .label { width: 92%; }
  .calc-dots i { width: 18px; } .calc-dots i.is-on { width: 30px; }
  .label-top img { height: 44px; }
  .label-list li { grid-template-columns: 38px 1fr; gap: 10px; padding: 11px 0; }
  .label-list svg { width: 34px; height: 28px; }

  .deck { height: 470px; }
  .swatch { width: min(100%, 330px); margin-left: calc(min(100%, 330px) / -2); height: calc(100% - 44px); }
  .fab-ctrl { justify-content: center; }

  .pr-steps { flex-direction: column; gap: 0; }
  .pr-thread { display: none; }
  .pr-track::before { content: ""; position: absolute; left: calc(var(--pad) + 34px); top: 30px; bottom: 30px; border-left: 2.5px dashed var(--linen); opacity: .6; }
  .pr-step { flex: none; padding: 0 0 28px 92px; min-height: 100px; }
  .pr-n { top: 0; width: 62px; height: 62px; font-size: 19px; left: 4px; }
  .pr-step h3 { margin: 12px 0 6px; font-size: 24px; }

  .calc-form { min-height: 0; }
  .fields { grid-template-columns: 1fr; }
  .calc-send .btn { flex: 1 1 100%; }
  .chip span { min-height: 46px; padding: 0 16px; }

  .acc-p p { padding-right: 0; font-size: 16px; }
  .acc-x { width: 40px; height: 40px; }

  .ct-list li { grid-template-columns: 40px 1fr; }
  .ct-list svg { width: 40px; height: 40px; padding: 9px; }
  .ct-btns .btn { flex: 1 1 auto; }
  .ct-btns .btn--light { flex-basis: 100%; }

  .ftr-row { flex-direction: column; align-items: flex-start; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .rv-move { animation: none !important; }
  .rv-cols { overflow-y: auto; }
}
