/* ============================================================
   Денис Галичин — сайты + AI · v2 «в движении»
   Крем-бумага + тёплый графит + чертёжный синий
   ============================================================ */

:root {
  --paper:      #F2EFE9;
  --paper-deep: #EAE6DD;
  --ink:        #1A1917;
  --ink-soft:   #56524A;
  --ink-faint:  #8A857B;
  --line:       rgba(26, 25, 23, 0.14);
  --blue:       #2447E0;
  --blue-soft:  rgba(36, 71, 224, 0.08);

  --font-display: 'Geologica', sans-serif;
  --font-body:    'Golos Text', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--blue); color: var(--paper); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* ---------- прелоадер ---------- */

.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.done { transform: translateY(-100%); }
.loader-inner { display: flex; align-items: baseline; gap: 18px; color: var(--paper); }
.loader-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 2.5rem;
  color: var(--blue); letter-spacing: -0.03em;
}
.loader-count { font-size: 1rem; color: rgba(242,239,233,0.6); min-width: 4ch; }

/* ---------- курсор ---------- */

.cursor-dot, .cursor-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block; position: fixed; z-index: 150; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue);
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 149; pointer-events: none;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid rgba(36, 71, 224, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  }
  .cursor-ring.grow {
    width: 92px; height: 92px;
    background: var(--blue); border-color: var(--blue);
  }
  .cursor-label {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper);
    white-space: nowrap; opacity: 0; transition: opacity 0.2s;
  }
  .cursor-ring.grow .cursor-label { opacity: 1; }
}

/* ---------- шапка ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 0.4s;
}
.site-header.hidden { transform: translateY(-110%); }

.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem;
  color: #fff;
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.logo-tag { font-weight: 400; font-size: 0.72rem; color: #9db1ff; margin-left: 10px; }

.nav { display: flex; gap: 26px; }
.nav-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: #fff; text-decoration: none; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.5); border-radius: 10px;
  padding: 0 10px; background: transparent;
}
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: var(--paper);
  display: none; flex-direction: column;
  padding: 90px 28px 28px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(26,25,23,0.3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; color: var(--blue); }

/* ---------- pill CTA ---------- */

.pill-cta {
  position: fixed; z-index: 100;
  right: 24px; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(242,239,233,0.25);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 16px 40px -12px rgba(26,25,23,0.45);
  transition: background 0.25s, transform 0.25s, opacity 0.3s;
}
.pill-cta:hover { background: var(--blue); transform: translateY(-2px); }
.pill-cta.hide { opacity: 0; pointer-events: none; }
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #43d97b;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 40px;
  overflow: hidden;
}
#blueprint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 28px; }

.hero-meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.02em;
  border-top: 1.5px solid var(--ink);
  padding-top: 14px; margin-bottom: 4vh;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 8.6vw, 8rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.ht-line { display: block; overflow: hidden; }
.ht-word { display: inline-block; transform: translateY(110%); }
.ht-accent .ht-word {
  color: var(--blue);
  -webkit-text-stroke: 0;
}

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-top: 5vh;
}
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); }

.hero-img {
  width: min(380px, 34vw); flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(26,25,23,0.4);
  will-change: transform;
}

.hero-scroll {
  position: absolute; right: 28px; bottom: 24px;
  font-size: 0.75rem; color: var(--ink-faint);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- маркизы ---------- */

.marquee { overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee-dark { background: var(--ink); color: var(--paper); }
.marquee-blue { background: var(--blue); color: var(--paper); }
.marquee-track {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  text-transform: uppercase; letter-spacing: 0.01em;
  animation: marquee 28s linear infinite;
}
.marquee-track.marquee-reverse { animation-direction: reverse; }
.marquee-track span { padding-right: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секции, заголовки ---------- */

.section { padding: 130px 0; position: relative; }

.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.04em; color: var(--blue); margin-bottom: 24px;
}

.giant-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  line-height: 1; letter-spacing: -0.035em; text-transform: uppercase;
  margin-bottom: 30px;
}
.gt-accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.giant-title:hover .gt-accent { color: var(--blue); -webkit-text-stroke: 2px var(--blue); transition: color 0.3s; }

.section-sub { color: var(--ink-soft); max-width: 52ch; }
.section-note { margin-top: 40px; color: var(--ink-faint); font-size: 0.9375rem; }

/* ---------- услуги: строки-аккордеон ---------- */

.service-rows { margin-top: 40px; border-top: 1.5px solid var(--ink); }

.service-row-block { border-bottom: 1.5px solid var(--ink); }

.sr-head {
  width: 100%;
  display: flex; align-items: center; gap: 28px;
  padding-top: 30px; padding-bottom: 30px;
  text-align: left;
  transition: background 0.3s, color 0.3s;
}
.sr-num { font-size: 0.85rem; color: var(--blue); }
.sr-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em; text-transform: uppercase;
  flex: 1;
}
.sr-price { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.sr-plus {
  position: relative; width: 22px; height: 22px; flex-shrink: 0;
}
.sr-plus::before, .sr-plus::after {
  content: ''; position: absolute; background: var(--ink);
  transition: transform 0.35s, background 0.3s;
}
.sr-plus::before { left: 0; right: 0; top: 10px; height: 2px; }
.sr-plus::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.service-row-block.open .sr-plus::after { transform: rotate(90deg); }

.service-row-block:hover .sr-head { background: var(--blue-soft); }

.sr-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.sr-body ul { list-style: none; padding-bottom: 34px; max-width: 62ch; }
.sr-body li { padding: 8px 0; color: var(--ink-soft); }
.sr-body b { color: var(--ink); font-weight: 600; }

/* картинка, летящая за курсором над услугами */
.float-img {
  position: fixed; z-index: 90; pointer-events: none;
  width: 240px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(26,25,23,0.45);
  opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-4deg);
  transition: opacity 0.25s, transform 0.25s;
}
.float-img.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }

/* ---------- кейсы-витрины ---------- */

.section-work { background: var(--paper-deep); overflow: hidden; }

.showcase { margin-top: 130px; }
.showcase:first-of-type { margin-top: 70px; }

.show-head { max-width: 720px; }

.case-meta { font-size: 0.8rem; color: var(--blue); }
.case-meta a { color: var(--blue); }

.case-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.03em; text-transform: uppercase;
  margin: 14px 0 16px;
}
.case-text { color: var(--ink-soft); font-size: 1rem; }
.case-stack { margin-top: 26px; font-size: 0.8rem; color: var(--ink-faint); }

.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.chips li {
  font-family: var(--font-mono); font-size: 0.78rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 8px 16px;
  background: var(--paper);
}
.chips .chip-hi { background: var(--blue); border-color: var(--blue); color: var(--paper); }

/* сцена с коллажем */
.show-stage { position: relative; margin-top: 46px; }

.show-stage .browser-frame { max-width: 82%; }

.browser-frame {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: #FBFAF7;
  box-shadow: 0 34px 70px -34px rgba(26,25,23,0.4);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: #FBFAF7;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font-size: 0.75rem; color: var(--ink-faint); }

/* парящие карточки-3D */
.float-card {
  position: absolute; width: clamp(150px, 19vw, 250px);
  border-radius: 14px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -24px rgba(26,25,23,0.45);
}
.float-card img { aspect-ratio: 1 / 0.85; object-fit: cover; }
.float-card figcaption {
  font-size: 0.68rem; color: var(--ink-soft);
  padding: 8px 12px; border-top: 1px solid var(--line);
  background: #FBFAF7;
}
.fc-1 { right: 2%; top: -6%; transform: rotate(3deg); }
.fc-2 { right: 12%; bottom: -10%; transform: rotate(-4deg); }
.fc-3 { right: -2%; top: 44%; transform: rotate(6deg); }

[data-float] { animation: floaty 7s ease-in-out infinite; will-change: transform; }
[data-float]:nth-child(odd) { animation-duration: 8.5s; animation-delay: -2s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* телефон */
.phone {
  position: absolute;
  width: clamp(170px, 21vw, 260px);
  border-radius: 34px;
  border: 7px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(26,25,23,0.55);
}
.phone img { border-radius: 26px; }
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 16px; border-radius: 999px; background: var(--ink);
  z-index: 2;
}
.phone-badge {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem; color: var(--paper);
  background: var(--blue); border-radius: 999px; padding: 6px 12px;
  box-shadow: 0 8px 20px -6px rgba(36,71,224,0.6);
  z-index: 2;
}

.stage-site { padding-bottom: 70px; }
.stage-cab { padding-bottom: 110px; }
.stage-cab .phone { right: 4%; top: 50%; transform: translateY(-46%); }
.stage-cab .code-card { right: 18%; bottom: -4%; }

/* код-карточка */
.code-card {
  position: absolute;
  max-width: min(420px, 44vw);
  background: var(--ink); color: #d7d5ce;
  font-size: 0.72rem; line-height: 1.7;
  border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 30px 70px -26px rgba(26,25,23,0.6);
  transform: rotate(-2deg);
  overflow-x: auto;
}
.c-cm { color: #7d7a70; }
.c-kw { color: #9db1ff; }
.c-str { color: #b9e29a; }
.c-fn { color: #f0c674; }

/* телеграм-мокап */
.stage-mn { min-height: 560px; }
.stage-mn .phone { left: 4%; top: 0; }
.stage-mn .phone-back { left: auto; right: 6%; top: 10%; transform: rotate(3deg); z-index: 0; }

.tg-card {
  position: absolute; left: 32%; top: 6%;
  width: min(360px, 42vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 34px 70px -28px rgba(26,25,23,0.45);
  z-index: 2;
}
.tg-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  line-height: 1.15; margin-bottom: 14px;
}
.tg-head em { font-style: normal; font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; color: var(--ink-faint); }
.tg-ava {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
}
.tg-msg {
  background: #F1F0EC; border-radius: 4px 14px 14px 14px;
  padding: 12px 14px; font-size: 0.85rem; line-height: 1.5;
  margin-bottom: 10px;
}
.tg-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tg-btns span {
  font-size: 0.78rem; color: var(--blue);
  border: 1.5px solid rgba(36,71,224,0.45);
  border-radius: 10px; padding: 7px 14px;
}
.tg-result b { display: block; margin-bottom: 10px; font-size: 0.85rem; }
.tg-bar {
  display: block; height: 8px; border-radius: 999px;
  background: rgba(26,25,23,0.1); overflow: hidden; margin-top: 8px;
}
.tg-bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.tg-result small { font-size: 0.62rem; color: var(--ink-faint); }

.wrap-inner { display: block; }

/* ---------- AI-конструктор ---------- */

.section-plan { background: var(--ink); color: var(--paper); }
.section-plan .section-sub { color: rgba(242,239,233,0.65); }
.section-plan .gt-accent { -webkit-text-stroke: 2px var(--paper); }
.section-plan .giant-title:hover .gt-accent { color: var(--blue); -webkit-text-stroke: 2px var(--blue); }

.plan-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start;
}
.plan-img {
  margin-top: 40px; width: min(320px, 70%);
  border-radius: 16px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}

.plan-widget {
  background: rgba(242,239,233,0.04);
  border: 1px solid rgba(242,239,233,0.14);
  border-radius: 20px;
  padding: 38px;
  min-height: 380px;
}
.plan-q { font-size: 0.85rem; color: var(--blue); filter: brightness(1.6); margin-bottom: 22px; }

.plan-options { display: flex; flex-direction: column; gap: 12px; }
.plan-options button {
  text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--paper);
  border: 1px solid rgba(242,239,233,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.plan-options button:hover {
  background: var(--blue); border-color: var(--blue);
  transform: translateX(6px);
}

.plan-blocks { list-style: none; counter-reset: pb; margin-bottom: 22px; }
.plan-blocks li {
  counter-increment: pb;
  padding: 10px 0 10px 44px; position: relative;
  border-bottom: 1px solid rgba(242,239,233,0.1);
  color: rgba(242,239,233,0.88);
  font-size: 0.95rem;
  opacity: 0; transform: translateY(10px);
  animation: planIn 0.4s forwards;
}
.plan-blocks li::before {
  content: counter(pb, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue); filter: brightness(1.6);
}
.plan-blocks b { color: var(--paper); font-weight: 600; }
@keyframes planIn { to { opacity: 1; transform: none; } }

.plan-reco {
  margin: 18px 0 26px; padding: 16px 18px;
  background: rgba(36,71,224,0.16); border: 1px solid rgba(36,71,224,0.5);
  border-radius: 12px; font-size: 0.95rem;
}

.plan-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-copy, .btn-send {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; padding: 14px 26px; text-decoration: none;
  transition: transform 0.2s, background 0.25s;
}
.btn-copy { background: var(--paper); color: var(--ink); }
.btn-copy:hover { transform: translateY(-2px); }
.btn-send { background: var(--blue); color: var(--paper); }
.btn-send:hover { transform: translateY(-2px); background: #3355ff; }

.plan-restart {
  margin-top: 22px; font-size: 0.8rem; color: rgba(242,239,233,0.5);
}
.plan-restart:hover { color: var(--paper); }

/* ---------- обо мне ---------- */

.about-statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3.1rem);
  line-height: 1.15; letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.as-line { display: block; }
.as-dim { color: var(--ink-faint); font-weight: 500; }

.facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 40px;
}
.facts li { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.facts strong {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em;
}
.facts span { font-size: 0.9rem; color: var(--ink-soft); }

.about-note { color: var(--ink-soft); max-width: 56ch; }

/* ---------- CTA + footer ---------- */

.cta-section {
  position: relative; background: var(--ink); color: var(--paper);
  padding: 140px 0 0; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5; pointer-events: none;
}
.cta-inner { position: relative; }

.cta-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.98; letter-spacing: -0.04em; text-transform: uppercase;
}
.cta-title span { display: inline-block; }
.cta-text { margin-top: 22px; color: rgba(242,239,233,0.7); max-width: 44ch; }

.cta-links { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; }
.cta-link {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em; text-decoration: none;
  border-bottom: 3px solid var(--blue);
  transition: color 0.25s;
}
.cta-link:hover { color: var(--blue); }

.footer { position: relative; margin-top: 110px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(242,239,233,0.55);
  border-top: 1px solid rgba(242,239,233,0.15);
  padding-top: 22px; padding-bottom: 10px;
}
.footer-wordmark {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4rem, 16.5vw, 15rem);
  line-height: 0.72; letter-spacing: -0.02em;
  text-align: center; color: rgba(242,239,233,0.1);
  transform: translateY(0.14em);
  user-select: none;
}

/* ---------- reveal-заготовки (управляет GSAP) ---------- */

.reveal-up { opacity: 0; transform: translateY(40px); }
.as-line { opacity: 0; transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .ht-word { transform: none; }
  .reveal-up, .as-line { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-scroll { animation: none; }
  .pill-dot { animation: none; }
  .case-media img { transform: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1000px) {
  .plan-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .showcase { margin-top: 90px; }

  /* коллажи складываются в поток */
  .show-stage .browser-frame { max-width: 100%; }
  .stage-site, .stage-cab { padding-bottom: 0; }
  .float-card, .phone, .code-card, .tg-card {
    position: static; transform: none; width: auto; margin-top: 18px;
  }
  .float-card { display: inline-block; width: calc(33.3% - 10px); vertical-align: top; margin-right: 10px; }
  .stage-mn { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .stage-mn .phone, .stage-mn .phone-back { width: 100%; margin-top: 0; transform: none; }
  .tg-card { grid-column: 1 / -1; width: auto; }
  .stage-cab .phone { width: min(260px, 60%); margin: 18px auto 0; display: block; }
  .code-card { max-width: 100%; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: flex; }
  .section { padding: 84px 0; }
  .hero { padding-top: 100px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-img { width: min(320px, 78vw); align-self: flex-end; margin-top: -20px; }
  .hero-scroll { display: none; }
  .sr-head { gap: 14px; }
  .sr-price { display: none; }
  .plan-widget { padding: 26px 20px; }
  .float-img { display: none; }
  .pill-cta { bottom: 16px; font-size: 0.9rem; padding: 13px 22px; }
  .footer-top { flex-direction: column; gap: 6px; }
}
