/* ─── Clawdom.ai · сцена-витрина ──────────────────────────────── */
:root {
  --red: #ed1b2f;
  --red-deep: #c60d20;
  --red-hot: #ff2742;
  --black: #0b0a0a;
  --ink: #141416;
  --white: #ffffff;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --wipe: 280ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══ ВИТРИНА ══════════════════════════════════════════════════ */
/* витрина занимает три экрана прокрутки: карточка «прилипает»,
   а сцены внутри неё сменяются по мере скролла */
.showcase {
  position: relative;
  height: 300svh;
  background: radial-gradient(120% 30% at 50% 0%, #1b1719 0%, var(--black) 60%);
}
.showcase__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: clamp(12px, 1.6vw, 26px);
  padding-bottom: clamp(46px, 6vh, 74px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: clamp(16px, 1.6vw, 26px);
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.stage__defs { position: absolute; width: 0; height: 0; }

/* ── шапка карточки ── */
.bar {
  position: absolute;
  z-index: 50;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 34px);
}
.bar__brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.bar__mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex: none;
  transition: transform 0.4s cubic-bezier(.2,1.4,.4,1);
}
.bar__brand:hover .bar__mark { transform: rotate(-12deg) scale(1.08); }
.bar__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
.bar__name small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.45;
}
.bar__nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.bar__nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.bar__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 1.5px;
  background: currentColor;
  transition: right 0.32s cubic-bezier(.2,.8,.2,1);
}
.bar__nav a:hover { opacity: 1; }
.bar__nav a:hover::after { right: 0; }
.bar__menu {
  display: none;
  width: 42px; height: 42px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  z-index: 130;
}
.bar__menu span { width: 24px; height: 2px; background: var(--white); transition: transform 0.3s, translate 0.3s; }
.bar__menu[aria-expanded="true"] span:first-child { transform: rotate(45deg); translate: 0 4.5px; }
.bar__menu[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); translate: 0 -4.5px; }

/* ═══ СЦЕНЫ ════════════════════════════════════════════════════
   активная открыта, следующая «вытирается» снизу вверх          */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  pointer-events: none;
}
.scene.is-active {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  pointer-events: auto;
  z-index: 20;
}
.scene.is-entering {
  visibility: visible;
  z-index: 30;
  animation: wipe-up var(--wipe) cubic-bezier(.4,.05,.2,1) forwards;
}
/* уходящая сцена остаётся раскрытой под наезжающей, иначе она мигает в пустоту */
.scene.is-leaving {
  visibility: visible;
  z-index: 10;
  clip-path: inset(0 0 0 0);
}
@keyframes wipe-up {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* содержимое приезжающей сцены слегка догоняет вайп */
.scene.is-entering .scene__grid,
.scene.is-entering .scene__mascot--center,
.scene.is-entering .scene__word,
.scene.is-entering .scene__tags {
  animation: catch-up var(--wipe) cubic-bezier(.3,.9,.3,1) both;
}
@keyframes catch-up {
  from { transform: translateY(46px); }
  to   { transform: translateY(0); }
}

/* уходящий контент смазывается — как в референсе */
.scene.is-leaving .blurable { animation: smear calc(var(--wipe) * 0.95) cubic-bezier(.5,0,.9,.4) forwards; }
.scene.is-leaving .scene__mascot { animation: smear-mascot var(--wipe) cubic-bezier(.5,0,.9,.4) forwards; }
@keyframes smear {
  0%   { filter: blur(0); transform: translateX(0) scaleX(1); opacity: 1; }
  55%  { filter: blur(7px); transform: translateX(-26px) scaleX(1.14); opacity: 0.7; }
  100% { filter: blur(16px); transform: translateX(-70px) scaleX(1.3); opacity: 0; }
}
@keyframes smear-mascot {
  0%   { filter: blur(0); transform: translateY(0) scale(1); opacity: 1; }
  100% { filter: blur(11px); transform: translateY(38px) scale(1.05); opacity: 0; }
}

/* общий каркас сцены */
.scene__grid {
  position: relative;
  z-index: 10;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.86fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 60px);
  padding: clamp(84px, 11vh, 118px) clamp(20px, 3.4vw, 56px) clamp(46px, 6vh, 64px);
}
.scene__copy { align-self: center; min-width: 0; }
.scene--pills .scene__copy { padding-bottom: clamp(10px, 5vh, 56px); }
/* на десктопе маскот «стоит» на нижней кромке карточки, а не над отступом */
@media (min-width: 901px) {
  .scene__mascot { margin-bottom: calc(-1 * clamp(46px, 6vh, 64px)); }
}
.scene--pills { background: radial-gradient(120% 95% at 64% 42%, var(--red-hot) 0%, var(--red) 46%, var(--red-deep) 100%); }
.scene--word  { background: radial-gradient(105% 95% at 50% 45%, var(--red-hot) 0%, var(--red) 48%, var(--red-deep) 100%); }
.scene--type  { background: radial-gradient(120% 100% at 70% 40%, #17161a 0%, #0a090b 62%); }

/* маскоты внутри сцен */
.scene__mascot {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.scene__mascot :is(img, video) {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  filter: drop-shadow(0 34px 46px rgba(60, 0, 6, 0.45));
  transform: translate(calc(var(--px, 0) * 20px), calc(var(--py, 0) * 12px));
  transition: transform 0.28s ease-out;
}
.scene--type .scene__mascot :is(img, video) { filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.7)); }

/* кот забегает справа, потом «дышит» */
.scene--pills.is-active .scene__mascot--run :is(img, video),
.scene--pills.is-entering .scene__mascot--run :is(img, video) {
  animation:
    cat-run-in 1.15s cubic-bezier(.28,.75,.32,1) 60ms both,
    breathe 5.5s ease-in-out 1.3s infinite;
}
@keyframes cat-run-in {
  0%   { opacity: 0; transform: translateX(58vw) translateY(0)    rotate(7deg) scale(0.95); }
  8%   { opacity: 1; }
  20%  { transform: translateX(44vw) translateY(-30px) rotate(6deg); }
  34%  { transform: translateX(32vw) translateY(0)     rotate(5deg) scale(1, 0.95); }
  48%  { transform: translateX(21vw) translateY(-24px) rotate(4deg); }
  62%  { transform: translateX(11vw) translateY(0)     rotate(3deg) scale(1, 0.96); }
  76%  { transform: translateX(3vw)  translateY(-15px) rotate(1deg); }
  88%  { transform: translateX(-1.4vw) translateY(0)   rotate(-2deg) scale(1.05, 0.94); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotate(0) scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-11px) rotate(-1deg); }
}

/* кот открывает ноут */
.scene--type.is-active .scene__mascot--laptop :is(img, video),
.scene--type.is-entering .scene__mascot--laptop :is(img, video) {
  transform-origin: 50% 100%;
  animation:
    laptop-open 900ms cubic-bezier(.2,.9,.3,1.15) both,
    breathe 7s ease-in-out 1s infinite;
}
@keyframes laptop-open {
  0%   { opacity: 0; transform: translateY(60px) rotateX(34deg) scale(0.93); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

/* кот по центру + гигантское слово */
.scene__mascot--center {
  position: absolute;
  inset: clamp(70px, 10vh, 108px) 0 clamp(26px, 5vh, 52px);
  z-index: 10;
  justify-content: center;
}
.scene__mascot--center :is(img, video) { object-position: bottom center; }
.scene--word.is-active .scene__mascot--center :is(img, video),
.scene--word.is-entering .scene__mascot--center :is(img, video) {
  animation:
    hero-land 800ms cubic-bezier(.2,1.1,.3,1) both,
    breathe 6s ease-in-out 1s infinite;
}
@keyframes hero-land {
  0%   { opacity: 0; transform: translateY(-40px) scale(0.9); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.scene__word {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: clamp(16px, 3.4vh, 40px);
  /* центрируем через translate, а не transform — иначе анимации смаза и подъёма
     затирают смещение и слово прыгает вбок */
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: min(clamp(48px, 11vw, 190px), calc((100vw - 90px) / 8.6));
  line-height: 0.82;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--white);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.35), 0 18px 50px rgba(90, 0, 8, 0.4);
  pointer-events: none;
}
.scene--word.is-active .scene__word,
.scene--word.is-entering .scene__word { animation: word-rise 900ms cubic-bezier(.2,.9,.25,1) 120ms both; }
@keyframes word-rise {
  0%   { opacity: 0; transform: translateY(70%) scaleY(1.25); filter: blur(9px); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

/* ── подпись и кнопки-пилюли ── */
.scene__eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(10.5px, 0.85vw, 12.5px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: clamp(10px, 3.2vh, 34px);
}
.scene--pills.is-active .scene__eyebrow,
.scene--pills.is-entering .scene__eyebrow { animation: rise-in 520ms ease-out 900ms both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pills { display: flex; flex-direction: column; gap: clamp(6px, 1.7vh, 18px); align-items: flex-start; }
.pill {
  --pad: clamp(24px, 2.4vw, 38px);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(13px, 1.05vw, 15.5px);
  padding: clamp(9px, 2vh, 21px) var(--pad);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(120, 0, 10, 0.26);
  transition: padding 0.42s cubic-bezier(.2,.9,.25,1), transform 0.42s cubic-bezier(.2,.9,.25,1),
              background 0.3s, box-shadow 0.42s;
}
/* при наведении пилюля раздаётся вширь — как в референсе */
.pill:hover {
  --pad: clamp(34px, 4.4vw, 76px);
  transform: translateX(6px);
  background: var(--white);
  box-shadow: 0 26px 50px rgba(120, 0, 10, 0.38);
}
.scene--pills.is-active .pill:nth-child(1),
.scene--pills.is-entering .pill:nth-child(1) { animation: pill-pop 520ms cubic-bezier(.2,1.4,.35,1) 1020ms both; }
.scene--pills.is-active .pill:nth-child(2),
.scene--pills.is-entering .pill:nth-child(2) { animation: pill-pop 520ms cubic-bezier(.2,1.4,.35,1) 1140ms both; }
.scene--pills.is-active .pill:nth-child(3),
.scene--pills.is-entering .pill:nth-child(3) { animation: pill-pop 520ms cubic-bezier(.2,1.4,.35,1) 1260ms both; }
@keyframes pill-pop {
  0%   { opacity: 0; transform: translateX(-34px) scale(0.9); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── печатающийся текст ── */
.type {
  font-family: var(--font-mono);
  /* размер зависит и от высоты — иначе на низких экранах текст наезжает на теги */
  font-size: clamp(11.5px, min(1.15vw, 2.3vh), 15.5px);
  line-height: 1.72;
  color: #e6f1e6;
  white-space: pre-wrap;
}
.type-wrap { position: relative; }
.type--sizer { visibility: hidden; }
.type-wrap #typewriter { position: absolute; inset: 0; }
.type__caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--white);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 0.85s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.scene__tags {
  position: absolute;
  z-index: 15;
  left: clamp(20px, 3.4vw, 56px);
  bottom: clamp(20px, 3.4vh, 38px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.scene__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
/* задержки обязаны стоять и на is-entering, иначе теги мигают во время вайпа */
.scene--type:is(.is-active, .is-entering) .scene__tags span { animation: rise-in 460ms ease-out both; }
.scene--type:is(.is-active, .is-entering) .scene__tags span:nth-child(1) { animation-delay: 1.15s; }
.scene--type:is(.is-active, .is-entering) .scene__tags span:nth-child(2) { animation-delay: 1.27s; }
.scene--type:is(.is-active, .is-entering) .scene__tags span:nth-child(3) { animation-delay: 1.39s; }
.scene--type:is(.is-active, .is-entering) .scene__tags span:nth-child(4) { animation-delay: 1.51s; }

/* ── круговой узор ── */
.mandala {
  position: absolute;
  z-index: 2;
  width: min(135vh, 1180px);
  aspect-ratio: 1;
  left: 62%;
  top: 48%;
  transform: translate(calc(-50% + var(--px, 0) * -24px), calc(-50% + var(--py, 0) * -18px));
  pointer-events: none;
  transition: transform 0.28s ease-out;
}
.mandala--wide { left: 50%; width: min(155vh, 1400px); }
.mandala--section { position: absolute; left: 50%; top: 50%; width: 1500px; transform: translate(-50%, -50%); }
.mandala__spin { transform-origin: 600px 600px; animation: mandala-rot 90s linear infinite; }
@keyframes mandala-rot { to { transform: rotate(360deg); } }
.mandala__t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 5.5px;
  text-transform: uppercase;
}
.mandala__t--dark  { fill: rgba(0, 0, 0, 0.15); }
.mandala__t--light { fill: rgba(255, 255, 255, 0.11); }
.mandala--section .mandala__t { font-size: 38px; letter-spacing: 8px; }

/* ── точки-переключатели ── */
.dots {
  position: absolute;
  z-index: 60;
  right: clamp(12px, 2.4vw, 34px);
  bottom: clamp(4px, 1.4vh, 16px);
  display: flex;
  align-items: center;
  gap: 9px;
}
/* кнопка высокая (палец попадает), а видимая полоска — псевдоэлемент */
.dot {
  position: relative;
  width: 34px; height: 44px;
  padding: 0; border: none; background: none;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(.2,.9,.3,1);
  -webkit-tap-highlight-color: transparent;
}
.dot::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
}
.dot:hover::before { background: rgba(255, 255, 255, 0.55); }
.dot.is-active { width: 62px; }
.dot.is-active::before { background: rgba(255, 255, 255, 0.28); }
.dot i {
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 5px;
  margin-top: -2.5px;
  background: var(--white);
  border-radius: 999px;
  transition: width 0.12s linear;
}
@keyframes dot-fill { from { width: 0; } to { width: 100%; } }

.scroll-hint {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s;
}
.scroll-hint:hover { color: var(--white); }
.scroll-hint span { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ═══ ОБЩИЕ ЗАГОЛОВКИ ══════════════════════════════════════════ */
.section-head { max-width: 1200px; margin: 0 auto; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.06;
  text-transform: uppercase;
}
.section-head p {
  margin-top: 22px;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.section-head--onred p { color: rgba(255, 255, 255, 0.85); }

/* ═══ УСЛУГИ ═══════════════════════════════════════════════════ */
.services { background: var(--black); padding: clamp(90px, 13vh, 160px) clamp(20px, 4vw, 56px); }
.service-list {
  max-width: 1200px;
  margin: 60px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.service {
  display: grid;
  grid-template-columns: 70px 1.05fr 1.3fr 44px;
  align-items: center;
  gap: 22px;
  padding: 30px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  transition: background 0.35s, padding 0.35s;
}
.service b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--red-hot);
  transition: color 0.35s;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.3;
}
.service p { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.58); transition: color 0.35s; }
.service__arrow { font-size: 22px; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.35s; }
.service:hover { background: var(--red); padding-left: 34px; }
.service:hover b { color: rgba(255, 255, 255, 0.85); }
.service:hover p { color: rgba(255, 255, 255, 0.85); }
.service:hover .service__arrow { opacity: 1; transform: translateX(0); }

/* ═══ ПОДХОД ═══════════════════════════════════════════════════ */
.process {
  position: relative;
  overflow: hidden;
  background: radial-gradient(110% 110% at 50% 35%, var(--red-hot) 0%, var(--red) 48%, var(--red-deep) 100%);
  padding: clamp(90px, 13vh, 160px) clamp(20px, 4vw, 56px);
}
.process .section-head, .process__grid { position: relative; z-index: 5; }
.process__grid {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 30px;
  padding: 34px 28px 38px;
  box-shadow: 0 22px 44px rgba(120, 0, 10, 0.22);
  transition: transform 0.35s;
}
.process-card:hover { transform: translateY(-6px); }
.process-card b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--red); }
.process-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 14px 0 12px;
  line-height: 1.3;
}
.process-card p { font-size: 14px; line-height: 1.6; color: #4c4c52; }

/* ═══ РЕЗУЛЬТАТЫ ═══════════════════════════════════════════════ */
.outcomes { background: var(--black); padding: clamp(90px, 13vh, 160px) clamp(20px, 4vw, 56px); }
.outcomes__grid {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.outcomes__grid article { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 26px; }
.outcomes__grid b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--red-hot); }
.outcomes__grid h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  margin: 14px 0 12px;
}
.outcomes__grid p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.geography {
  max-width: 1200px;
  margin: clamp(60px, 9vh, 100px) auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
}
.geography strong { font-weight: 800; font-size: 15px; }
.geography span { color: rgba(255, 255, 255, 0.6); font-size: 14.5px; }
.geography i { font-style: normal; color: var(--red-hot); }

/* ═══ РАБОТЫ ═══════════════════════════════════════════════════ */
.works { background: var(--black); padding: clamp(90px, 13vh, 160px) clamp(20px, 4vw, 56px); }
.works__grid {
  max-width: 1200px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1), border-color 0.35s, background 0.35s;
}
.work::after {
  content: '';
  position: absolute;
  inset: auto -40% -70% auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 27, 47, 0.5), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.work:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 60%);
}
.work:hover::after { opacity: 1; }
.work__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--red-hot);
}
.work h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.2;
}
.work p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.6); flex: 1; }
.work__go {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.work__go i { font-style: normal; transition: transform 0.3s; }
.work:hover .work__go i { transform: translate(3px, -3px); }

/* ═══ КОНТАКТЫ ═════════════════════════════════════════════════ */
.contact {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 40% 30%, var(--red-hot) 0%, var(--red) 50%, var(--red-deep) 100%);
  padding: clamp(90px, 13vh, 160px) clamp(20px, 4vw, 56px);
}
.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.contact__copy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.12;
  text-transform: uppercase;
}
.contact__copy p { margin-top: 22px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.lead-form label { display: block; margin-bottom: 16px; }
.lead-form label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-form input, .lead-form textarea {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px; /* ≥16px — iOS Safari не приближает страницу при фокусе */
  padding: 20px 30px;
  border-radius: 999px;
  outline: none;
  transition: box-shadow 0.25s, background 0.25s;
}
.lead-form textarea { border-radius: 28px; resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form textarea:focus {
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #8b8b93; font-weight: 600; }
.pill--submit {
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 22px 34px;
}
.pill--submit:hover { --pad: clamp(24px, 2.4vw, 38px); background: #000; transform: translateY(-3px); }
.lead-form small { display: block; margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.form-success {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  padding: 18px 28px;
  border-radius: 999px;
}
.form-success:empty { padding: 0; margin: 0; background: none; }

/* ═══ FOOTER ═══════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 60px clamp(20px, 4vw, 56px) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.bar__brand--footer .bar__mark { background: var(--red); color: var(--white); }
.footer p { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }

/* ═══ WHATSAPP ═════════════════════════════════════════════════ */
.whatsapp {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}
.whatsapp:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp svg { width: 24px; height: 24px; fill: var(--white); flex: none; }

/* ═══ ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ АДАПТИВ ══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .service { grid-template-columns: 52px 1fr 44px; }
  .service p { grid-column: 2; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .bar__nav { display: none; }
  .bar__nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: radial-gradient(120% 100% at 50% 30%, var(--red-hot) 0%, var(--red) 55%, var(--red-deep) 100%);
  }
  .bar__nav.open a { font-family: var(--font-display); font-size: 23px; text-transform: uppercase; opacity: 1; }
  .bar__menu { display: flex; }

  /* на телефоне витрина листается быстрее — 3 полных экрана утомляют */
  .showcase { height: 250svh; }
  .showcase__sticky { padding-bottom: clamp(38px, 5vh, 56px); }
  /* на узких экранах маскот стоит в правом нижнем углу сцены, текст — сверху */
  .scene__grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    align-items: start;
    padding: clamp(74px, 10.5vh, 100px) clamp(18px, 4vw, 34px) clamp(44px, 6.5vh, 60px);
    gap: 0;
  }
  .scene__copy { align-self: start; position: relative; z-index: 10; }
  .scene__mascot {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(64%, 360px);
    height: min(52%, 440px);
    z-index: 5;
  }
  .scene--type .scene__mascot { width: min(58%, 320px); height: min(44%, 360px); z-index: 1; opacity: 0.92; }
  .scene--type .type { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
  .scene__mascot--center {
    position: absolute;
    inset: clamp(64px, 9vh, 92px) 0 clamp(56px, 8.5vh, 80px);
    width: auto;
    height: auto;
    opacity: 1;
    z-index: 10;
  }
  .scene__word { font-size: min(10.4vw, calc((100vw - 60px) / 8.6)); bottom: clamp(30px, 5vh, 48px); }
  /* резервируем полосу под теги, иначе манифест наезжает на них */
  .scene--type .scene__grid { padding-bottom: calc(clamp(44px, 6.5vh, 60px) + 26px); }
  .scene__tags { gap: 8px 18px; }
  .mandala { left: 66%; width: 170vw; }
  .mandala--wide { left: 50%; width: 190vw; }
  .outcomes__grid { grid-template-columns: 1fr; gap: 34px; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .whatsapp__label { display: none; }
  .whatsapp { padding: 14px; }
}
@media (max-width: 560px) {
  .bar { padding: 14px 16px; }
  .bar__name small { display: none; }
  .bar__mark { width: 36px; height: 36px; font-size: 16px; }
  .scene__grid { padding: 82px 16px 50px; }
  .scene__eyebrow { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 14px; }
  .pills { width: 100%; gap: 9px; }
  .pill { width: 100%; font-size: 12.5px; --pad: 20px; padding: 14px var(--pad); }
  .pill:hover { --pad: 20px; transform: none; }
  .scene__mascot { width: min(74%, 260px); height: min(46%, 330px); }
  .scene--type .scene__mascot { width: min(66%, 230px); height: min(36%, 260px); opacity: 0.75; }
  /* центральный кот шире экрана — иначе он упирается в ширину и мельчает */
  .scene__mascot--center { inset: 58px -16% 44px; width: auto; height: auto; }
  .scene__word { font-size: min(10.2vw, calc((100vw - 48px) / 8.6)); }
  .type { font-size: clamp(11px, min(3.3vw, 2.4vh), 12.5px); line-height: 1.7; }
  /* теги выше точек-переключателей, иначе они накладываются */
  .scene__tags { bottom: 72px; }
  .scene__tags span { font-size: 10.5px; letter-spacing: 0.1em; }
  .dots { left: 14px; right: auto; }
  .dot { width: 28px; }
  .dot.is-active { width: 48px; }
  .bar__brand { padding: 4px 0; }
  .process__grid { grid-template-columns: 1fr; gap: 14px; }
  .works__grid { grid-template-columns: 1fr; gap: 12px; }
  .work { padding: 24px 22px 22px; border-radius: 22px; }
  .process-card { padding: 26px 22px 28px; border-radius: 24px; }
  .service { grid-template-columns: 40px 1fr; padding: 22px 10px; row-gap: 8px; }
  .service__arrow { display: none; }
  .service:hover { padding-left: 18px; }
  .geography { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lead-form input, .lead-form textarea { padding: 15px 22px; }
  .footer { padding: 48px 18px 96px; }
}

/* телефон в альбомной ориентации — карточка низкая, маскот должен остаться крупным */
@media (max-height: 540px) and (orientation: landscape) {
  .scene__grid { padding: 66px clamp(18px, 3.4vw, 40px) 38px; }
  .scene__mascot { width: min(38%, 300px); height: 76%; }
  .scene--type .scene__mascot { width: min(34%, 260px); height: 72%; opacity: 0.9; }
  .scene__mascot--center { inset: 54px 0 30px; }
  .scene__word { font-size: min(9.5vw, calc((100vw - 60px) / 8.6)); bottom: 10px; }
  .type { font-size: clamp(9px, min(1.5vw, 2.9vh), 12px); line-height: 1.5; }
  /* в альбомной ориентации манифест идёт в одну широкую колонку — так строк меньше
     и текст не наползает на теги; кот уходит в правый нижний угол */
  .scene--type .scene__grid { grid-template-columns: 1fr; padding-bottom: 46px; }
  .scene--type .scene__copy { padding-right: 30%; align-self: start; }
  .scene--type .scene__mascot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(30%, 250px);
    height: 76%;
    margin-bottom: 0;
    z-index: 1;
    opacity: 0.85;
  }
  /* пилюли ужимаются по высоте, иначе третья кнопка уезжает за нижнюю кромку */
  .scene--pills .scene__copy { align-self: center; padding-bottom: 0; }
  .scene__eyebrow { font-size: 10px; margin-bottom: 8px; }
  .pills { gap: 6px; }
  .pill { padding: 9px 20px; font-size: 12.5px; }
  .scene--type .scene__grid { padding-bottom: 46px; }
  .scene__tags { bottom: 12px; gap: 6px 18px; }
  .dots { bottom: 12px; }
  .whatsapp { right: 14px; bottom: 14px; padding: 10px; }
  .whatsapp__label { display: none; }
  .bar { padding: 12px 18px; }
  .bar__name small { display: none; }
}

/* совсем низкая полоска экрана — убираем вторичный декор, чтобы текст влез */
@media (max-height: 430px) and (orientation: landscape) {
  .scene__tags { display: none; }
  .scene--type .scene__grid { padding-bottom: 28px; }
}

/* ═══ УМЕНЬШЕННОЕ ДВИЖЕНИЕ ═════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .scene { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
