@import url("./assets/fonts.css");

/* ==========================================================================
   UNICOPROM — clean black isometric world
   ========================================================================== */

:root {
  --bg: #070707;
  --bg-2: #0b0b0b;
  --surface: #101010;
  --surface-2: #161616;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;
  --coral: #ff5f3d;
  --coral-soft: rgba(255, 95, 61, 0.14);
  --coral-line: rgba(255, 95, 61, 0.38);

  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --r: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* атрибут hidden должен перебивать любые display в компонентах */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- helpers */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section[id], [id="brief"] { scroll-margin-top: 88px; }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

.h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.05; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.muted { color: var(--muted); }

.sect-head {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 900px) {
  .sect-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* ------------------------------------------------------------------ кнопки */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s var(--ease), transform .18s var(--ease),
              box-shadow .35s var(--ease), color .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 160% at 50% 130%, rgba(255,255,255,.16), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:hover { border-color: var(--line-strong); }
.btn:active { transform: translateY(1px) scale(0.995); }

.btn--primary {
  --btn-bg: var(--coral);
  --btn-fg: #12100f;
  --btn-bd: transparent;
  box-shadow: 0 10px 30px -12px rgba(255, 95, 61, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -12px rgba(255, 95, 61, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--light { --btn-bg: #f4f4f4; --btn-fg: #0b0b0b; --btn-bd: transparent; }
.btn--heartbeat { transform-origin: 50% 55%; }
.btn--heartbeat.is-beating {
  animation: merch-heartbeat 2.8s cubic-bezier(.16, 1, .3, 1) infinite;
  will-change: transform;
}
.btn--heartbeat.is-beating:hover,
.btn--heartbeat.is-beating:focus-visible,
.btn--heartbeat.is-beating:active {
  animation: none;
  transform: scale(1);
  will-change: auto;
}
@keyframes merch-heartbeat {
  0%, 7%, 16%, 25%, 100% { transform: scale(1); }
  11% { transform: scale(1.065); }
  20% { transform: scale(1.038); }
}
.btn--ghost { --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--line-strong); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .875rem; }

.btn .ico { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

/* --------------------------------------------------------------- шапка */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(7, 7, 7, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 72px;
  padding-block: 12px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); flex: none;
  padding-block: 8px;
}
.logo svg { height: 34px; width: auto; color: currentColor; }
.logo__word { height: 13px; width: auto; opacity: .95; }
@media (max-width: 560px) { .logo__word { height: 11px; } }

.nav { display: none; margin-left: auto; gap: clamp(14px, 2vw, 30px); }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  position: relative;
  font-size: .9rem;
  color: var(--muted);
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (min-width: 1000px) { .header__cta { margin-left: 0; } }
.header__cta .btn--sm { white-space: nowrap; }
@media (max-width: 720px) { .header__cta .js-hide-sm { display: none; } }

.burger {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 96px var(--pad) 40px;
  background: rgba(7, 7, 7, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
}
.menu a:last-of-type { border-bottom: 0; }
.menu .btn { margin-top: 22px; }

/* ---------------------------------------------------------------- герой */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 110px;
  padding-bottom: clamp(28px, 5vw, 56px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.25) contrast(1.08) brightness(0.62);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,7,7,.9) 0%, rgba(7,7,7,.35) 30%, rgba(7,7,7,.72) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,7,7,.9) 0%, rgba(7,7,7,.25) 55%, rgba(7,7,7,.55) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 15ch; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; }
.hero__sub { margin-top: clamp(20px, 2.6vw, 30px); max-width: 54ch; }
.hero__acts {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 880px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: clamp(16px, 2vw, 24px);
}
.facts dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  font-weight: 600;
}
.facts dd {
  margin: 8px 0 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ------------------------------------------------------- манифест / задачи */
.manifest__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 940px) {
  .manifest__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.manifest p + p { margin-top: 1em; }
.manifest strong { color: var(--text); font-weight: 600; }

.rules { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.rules > div {
  background: var(--bg);
  padding: clamp(16px, 2vw, 22px) 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}
.rules b {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--coral);
  letter-spacing: .06em;
  font-weight: 500;
}
.rules span { font-size: .96rem; color: var(--muted); }

/* задачи — строки, не карточки */
.tasks { border-top: 1px solid var(--line); margin-top: clamp(44px, 6vw, 76px); }
.task {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 28px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color .35s var(--ease);
}
@media (min-width: 820px) {
  .task { grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); align-items: baseline; }
}
.task::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.task:hover::after { transform: scaleX(1); }
.task__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.05;
}
.task__desc { color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------ welcome pack */
.wpack__grid {
  display: grid;
  gap: clamp(24px, 3.5vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 940px) {
  .wpack__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.wpack__scene {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(7,7,7,.02), rgba(7,7,7,.16)),
    url("assets/img/welcome-pack-photo.png") center / cover no-repeat,
    var(--surface);
  isolation: isolate;
}
.wpack__scene svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.wpack__scene .iso-svg > g:first-of-type > :not(.iso-routes) { opacity: 0; }
.wpack__scene .wp-band { display: none; }
.wp-pin { transition: opacity .3s var(--ease); }
.wp-pin line,
.wp-pin circle,
.wp-pin text { transition: stroke .3s var(--ease), fill .3s var(--ease); }
.wp-pin.is-on circle { fill: var(--coral); }
.wp-pin.is-on text { fill: #090909; }
.wpack.is-focus .wp-pin { opacity: .28; }
.wpack.is-focus .wp-pin.is-on { opacity: 1; }

@media (max-width: 560px) {
  .wpack__scene { border-radius: 12px; }
}

.wpack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: var(--line); border-block: 1px solid var(--line); }
.wp-item {
  background: var(--bg);
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 14px;
  padding: clamp(13px, 1.5vw, 17px) 0;
  transition: background .3s var(--ease);
}
.wp-item.is-on { background: var(--surface); }
.wp-item__n {
  font-family: var(--font-display);
  font-size: .84rem;
  letter-spacing: .06em;
  color: var(--coral);
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--coral-line);
  border-radius: 999px;
  align-self: start;
}
.wp-item__body { display: grid; gap: 3px; min-width: 0; }
.wp-item__body b {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: .005em;
}
.wp-item__body span { font-size: .87rem; line-height: 1.45; color: var(--muted); }

.wpack__foot {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: clamp(24px, 3vw, 38px);
}
@media (min-width: 820px) {
  .wpack__foot { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
}
.wpack__note { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); max-width: 62ch; }

/* --------------------------------------------------------------- процесс */
.process { position: relative; background: var(--bg); }
.process__head { padding-top: clamp(72px, 10vw, 130px); }

.process__track { position: relative; }
.process__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-block: clamp(78px, 9vh, 100px) clamp(20px, 3vh, 34px);
}
.process__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: 0;
  height: 100%;
}

.pstep {
  position: absolute;
  inset: 0 var(--pad);
  display: grid;
  gap: clamp(10px, 2.4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  pointer-events: none;
}
.pstep.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
@media (min-width: 980px) {
  .pstep {
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    grid-template-rows: minmax(0, 1fr);
  }
}
@media (min-width: 1360px) {
  .pstep { inset: 0 calc(var(--pad) * -0.4) 0 var(--pad); }
}

.pstep__text {
  display: grid;
  align-content: center;
  gap: clamp(8px, 1.2vw, 16px);
  transform: translateY(16px);
  transition: transform .7s var(--ease);
  min-width: 0;
}
.pstep.is-active .pstep__text { transform: none; }

.pstep__scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
  height: 100%;
  transform: scale(.97);
  transition: transform .9s var(--ease);
}
.pstep.is-active .pstep__scene { transform: none; }

/* рамка сцены: размер задаёт сам рендер, слой маршрутов ложится ровно поверх */
.pstep__frame {
  position: relative;
  line-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.pstep__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.pstep__frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.iso-route { opacity: 0; }
.pstep.is-active .iso-route { opacity: 1; }
.iso-node, .iso-mark { opacity: 0; transition: opacity .45s var(--ease); }
.iso-node.is-on, .iso-mark.is-on { opacity: 1; }

.step__no {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--coral-line);
  letter-spacing: .02em;
}
.pstep__text h3 { max-width: 18ch; }
.pstep__text p { max-width: 46ch; color: var(--muted); margin: 0; font-size: clamp(.92rem, 1.1vw, 1.04rem); }
.pstep__text ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pstep__text li {
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.process__nav {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  list-style: none;
  margin-block: clamp(14px, 2vw, 26px) 0;
}
.process__nav li { flex: 1; }
.process__nav button {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: var(--muted-2);
  transition: color .35s var(--ease);
  position: relative;
}
.process__nav button::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  height: 1px; width: var(--p, 0%);
  background: var(--coral);
  transition: width .12s linear;
}
.process__nav button.is-active { color: var(--text); }
.process__nav .n { font-family: var(--font-display); font-size: .8rem; letter-spacing: .08em; }
.process__nav .t {
  font-size: .82rem;
  line-height: 1.25;
  display: none;
}
@media (min-width: 700px) { .process__nav .t { display: block; } }

/* мобильный вариант процесса — вертикальный список */
.process--stack .process__track { height: auto !important; }
.process--stack .process__stage {
  position: static;
  height: auto;
  display: block;
  padding-block: 0 0;
}
.process--stack .process__inner { height: auto; }
.process--stack .pstep {
  position: static;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-block: clamp(26px, 6vw, 44px);
  border-top: 1px solid var(--line);
  grid-template-rows: auto auto;
}
.process--stack .pstep:first-child { border-top: 0; }
.process--stack .pstep__text { transform: none; }
.process--stack .pstep__scene {
  transform: none;
  height: auto;
  margin-top: 18px;
  margin-inline: calc(var(--pad) * -0.55);
}
.process--stack .pstep__frame { max-height: none; width: 100%; }
.process--stack .pstep__frame img { width: 100%; max-height: none; }
/* на телефоне near-black почти сливается — поднимаем светлоту рендера */
@media (max-width: 979.98px) {
  .pstep__frame img { filter: brightness(1.3) contrast(1.04); }
}
@media (max-width: 620px) {
  .pstep__frame img { filter: brightness(1.45) contrast(1.07); }
}
.process--stack .process__nav { display: none; }

/* --------------------------------------------------------------- каталог */
.cat__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: clamp(22px, 3vw, 34px);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
@media (min-width: 1100px) {
  .cat__tabs {
    flex-wrap: wrap;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
.cat__tabs::-webkit-scrollbar { height: 4px; }
.cat__tabs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.cat__tab {
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.cat__tab:hover { color: var(--text); border-color: var(--line-strong); }
.cat__tab[aria-selected="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #12100f;
  font-weight: 600;
}

.cat__panel[hidden] { display: none; }
.cat__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.prod {
  background: var(--surface);
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: background .4s var(--ease);
}
.prod:hover { background: var(--surface-2); }
.prod__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prod__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.05;
}
.prod__no { font-family: var(--font-display); font-size: .8rem; color: var(--coral); letter-spacing: .06em; }
.prod__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod__tags span {
  font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.prod__note { font-size: .82rem; color: var(--muted-2); line-height: 1.45; margin: 0; }

.ptable { width: 100%; border-collapse: collapse; font-size: .84rem; }
.ptable th, .ptable td { padding: 7px 0; text-align: right; white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; white-space: normal; }
.ptable thead th {
  font-weight: 500;
  color: var(--muted-2);
  font-size: .74rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}
.ptable tbody th { font-weight: 500; color: var(--muted); }
.ptable tbody tr + tr th, .ptable tbody tr + tr td { border-top: 1px solid rgba(255,255,255,.05); }
.ptable td { font-variant-numeric: tabular-nums; }
.ptable tbody tr.is-brand th, .ptable tbody tr.is-brand td { color: var(--coral); }

.cat__note {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--muted-2);
  max-width: 78ch;
}

/* ------------------------------------------------------ примеры работ */
.showcase {
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(42% 80% at 7% 50%, rgba(255, 95, 61, .07), transparent 70%),
    var(--bg);
}
.showcase__head {
  display: grid;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}
@media (min-width: 760px) {
  .showcase__head { grid-template-columns: minmax(0, 1fr) auto; }
}
.showcase__title {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.3vw, 5rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.showcase__lead {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
}
.showcase__nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.showcase__hint {
  flex-basis: 100%;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: .76rem;
  text-align: right;
}
.showcase__status {
  min-width: 74px;
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
.showcase__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.showcase__arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.showcase__arrow:hover { border-color: var(--coral); background: var(--coral); color: #12100f; }
.showcase__arrow:disabled { opacity: .28; cursor: default; }
.showcase__arrow:disabled:hover { border-color: var(--line-strong); background: transparent; color: var(--text); }

.showcase__viewport {
  position: relative;
  isolation: isolate;
  height: clamp(560px, 58vw, 720px);
  overflow: hidden;
  perspective: 1400px;
  touch-action: pan-y;
  user-select: none;
}
.showcase__viewport::before {
  position: absolute;
  z-index: -1;
  inset: 12% 18% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 95, 61, .12), rgba(255, 95, 61, .025) 42%, transparent 70%);
  content: '';
  pointer-events: none;
}
.showcase__viewport:focus-visible { outline: 1px solid var(--coral); outline-offset: -1px; }
.showcase__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.showcase__item {
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(300px, 31vw, 450px);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: pointer;
}
.showcase__item:first-child {
  opacity: 1;
  visibility: visible;
}
.showcase__item.is-active { cursor: grab; }
.showcase__item.is-drag { cursor: grabbing; }
.showcase__item--wide { width: clamp(410px, 46vw, 680px); }
.showcase__item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transition: box-shadow .55s var(--ease), opacity .55s var(--ease);
  -webkit-user-drag: none;
}
.showcase__item.is-active img { box-shadow: 0 34px 76px rgba(0, 0, 0, .62), 0 14px 38px rgba(255, 95, 61, .11); }
.showcase__item--wide img { aspect-ratio: 4 / 3; }
.showcase__item figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 12px;
  color: var(--text);
  font-size: .88rem;
}
.showcase__item figcaption span {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: .76rem;
  letter-spacing: .06em;
}
@media (hover: hover) and (pointer: fine) {
  .showcase__item.is-active:hover img { box-shadow: 0 40px 88px rgba(0, 0, 0, .68), 0 16px 42px rgba(255, 95, 61, .15); }
}
@media (max-width: 620px) {
  .showcase { padding-block: 44px; }
  .showcase__title { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .showcase__nav { justify-content: flex-start; }
  .showcase__hint { display: none; }
  .showcase__viewport { height: min(132vw, 540px); }
  .showcase__item { width: min(72vw, 310px); }
  .showcase__item--wide { width: min(88vw, 390px); }
  .showcase__arrow { width: 42px; height: 42px; }
}

/* --------------------------------------------------------- брендирование */
.tech { border-top: 1px solid var(--line); }
.tech__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 28px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 860px) {
  .tech__row { grid-template-columns: 3.2rem minmax(0, 0.34fr) minmax(0, 0.66fr); align-items: baseline; }
}
.tech__no { font-family: var(--font-display); font-size: .8rem; color: var(--coral); letter-spacing: .06em; }
.tech__name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.05; }
.tech__desc { color: var(--muted); font-size: .95rem; }

/* дополнительные технологии одной строкой */
.tech__more {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.tech__more-label { font-size: .78rem; color: var(--muted-2); letter-spacing: .02em; }
.tech__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tech__chips li {
  font-size: .85rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
}
.tech__note { margin: 4px 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); max-width: 68ch; }

/* крупные кнопки первого экрана */
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1rem; }
@media (max-width: 520px) { .btn--lg { min-height: 54px; padding: 0 22px; font-size: .94rem; } }

/* ----------------------------------------------------------------- кейсы */
.cases { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(6, 1fr); }
.case {
  position: relative;
  grid-column: span 6;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
@media (min-width: 760px) {
  .case--a { grid-column: span 4; }
  .case--b { grid-column: span 2; }
  .case--c { grid-column: span 2; }
  .case--d { grid-column: span 2; }
  .case--e { grid-column: span 2; }
}
.case img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .7s var(--ease);
  filter: saturate(.75);
}
.case:hover img { transform: scale(1.035); filter: saturate(1); }
.case__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(16px, 2vw, 26px);
  background: linear-gradient(0deg, rgba(6,6,6,.92), rgba(6,6,6,.55) 55%, transparent);
  display: grid;
  gap: 4px;
}
.case__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.1; }
.case__meta { font-size: .8rem; color: var(--muted); }
.case--a { aspect-ratio: 4 / 3; }
.case--b, .case--c, .case--d, .case--e { aspect-ratio: 4 / 5; }
.case--e img { object-position: 30% 50%; }
.case--d img { object-position: 55% 45%; }
@media (max-width: 759px) {
  .case { aspect-ratio: 4 / 3 !important; }
}

/* ------------------------------------------------------------ презентация */
.deck {
  position: relative;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(255,95,61,.12), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.deck__grid {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 980px) { .deck__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }
.deck__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.deck__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: .82rem; color: var(--muted-2); }

.deck__stack { position: relative; }
.deck__stack a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
  transition: transform .6s var(--ease), border-color .4s var(--ease);
}
.deck__stack a:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.deck__strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  cursor: grab;
}
.deck__strip.is-drag { cursor: grabbing; scroll-behavior: auto; }
.deck__strip::-webkit-scrollbar { height: 4px; }
.deck__strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.deck__strip img {
  flex: none;
  width: clamp(140px, 22vw, 210px);
  border-radius: 8px;
  border: 1px solid var(--line);
  opacity: .55;
  transition: opacity .4s var(--ease), border-color .4s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.deck__strip img:hover { opacity: 1; border-color: var(--coral-line); }

/* ============================ КАРУСЕЛЬ УСЛУГ: сцены и внутренние пачки работ */
.reel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(56px, 7vw, 96px) clamp(28px, 4vw, 52px);
}
.reel__head { position: relative; z-index: 3; }
.reel__head .sect-head { margin-bottom: clamp(20px, 2.4vw, 32px); }

/* --------------------------------------------------- плавающие декорации */
.reel__deco { position: absolute; inset: -6% -4%; z-index: 0; pointer-events: none; overflow: hidden; }
.deco {
  position: absolute;
  left: var(--l); top: var(--t);
  width: var(--s); height: var(--s);
  translate: -50% -50%;
  transform: translate3d(0, var(--dy, 0px), 0) rotate(var(--rot, 0deg));
  opacity: .38;
  animation: deco-drift 14s var(--d, 0s) ease-in-out infinite;
}
.deco--ring { border: 1px solid var(--coral-line); border-radius: 50%; }
.deco--dot { background: var(--coral); border-radius: 50%; box-shadow: 0 0 22px 4px rgba(255,95,61,.35); }
.deco--bar { height: 1px; background: linear-gradient(90deg, transparent, var(--coral-line), transparent); }
.deco--corner { border-left: 2px solid var(--coral-line); border-top: 2px solid var(--coral-line); }
.deco--corner::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 42%; height: 42%;
  border-right: 2px solid var(--coral-line);
  border-bottom: 2px solid var(--coral-line);
}
@keyframes deco-drift {
  0%, 100% { --dy: -10px; --rot: -3deg; opacity: .30; }
  50%      { --dy: 14px;  --rot: 4deg;  opacity: .58; }
}
@property --dy { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --rot { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------------------------------------------------------------- сцена */
.reel__track { position: relative; z-index: 1; }
.reel__stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 2vh, 26px);
}
.reel__viewport {
  position: relative;
  min-height: 0;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}

/* сцена одной услуги */
.act {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.act.is-live { visibility: visible; }

/* пачка работ */
.act__deck {
  position: relative;
  /* ширину и высоту ставит JS: вписывает родное соотношение в область сцены,
     иначе широкие работы 16:10 обрезаются, а вертикальные не влезают */
  width: 320px;
  aspect-ratio: var(--ar);
  transform-style: preserve-3d;
}
@media (min-width: 1000px) {
  /* карточка смещена вправо — панель с текстом наезжает на неё слева */
  .act__deck { translate: 11% 0; }
}

.act__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
  will-change: transform, opacity;
  transform-origin: 50% 120%;
}
.act__hit {
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: none;
  cursor: zoom-in;
}
.act__slide img { width: 100%; height: 100%; object-fit: cover; }

/* подпись к конкретной работе — только у верхней карточки пачки */
.act__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  font-size: .76rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
  background: linear-gradient(0deg, rgba(5,5,5,.9), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.act__slide.is-top .act__cap { opacity: 1; }

/* панель с текстом услуги */
.act__panel {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: min(400px, 78vw);
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 7, 7, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .95);
  will-change: transform, opacity;
}
.act__no {
  font-family: var(--font-display);
  font-size: .84rem;
  letter-spacing: .1em;
  color: var(--coral);
}
.act__no i { font-style: normal; color: var(--muted-2); }
.act__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.04;
  margin: 0;
}
.act__desc { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.act__count { font-size: .76rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.act__count b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------- нижняя навигация */
.reel__nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 3;
}
.reel__nav li { flex: 1; min-width: 0; }
.reel__nav button {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: var(--muted-2);
  transition: color .35s var(--ease);
  position: relative;
}
.reel__nav button::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  height: 1px; width: var(--p, 0%);
  background: var(--coral);
  transition: width .12s linear;
}
.reel__nav button.is-active { color: var(--text); }
.reel__nav .n { font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; }
.reel__nav .t {
  font-size: .78rem; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: none;
}
@media (min-width: 700px) { .reel__nav .t { display: block; } }

.reel__hint {
  position: relative;
  z-index: 3;
  margin: clamp(12px, 1.8vh, 20px) auto 0;
  font-size: .78rem;
  color: var(--muted-2);
}

/* ------------------------------------------------ десктоп: закреплённая сцена */
@media (min-width: 1000px) {
  /* вся секция ровно в экран: шапка / сцена / подсказка */
  .reel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    height: 100svh;
    padding-block: clamp(80px, 10vh, 112px) clamp(14px, 2.4vh, 26px);
  }
  .reel > * { min-width: 0; }
  .reel__head .sect-head { margin-bottom: clamp(10px, 1.8vh, 22px); }
  .reel__track { min-height: 0; }
  .reel__stage { height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
  .reel__viewport { padding-inline: var(--pad); }
}

/* ------------------------------------------- планшет и телефон: компактнее */
@media (max-width: 999.98px) {
  .reel { padding-block: clamp(88px, 12vh, 108px) clamp(20px, 3vw, 34px); }
  .reel__stage { min-height: 0; }
  .reel__viewport { height: clamp(320px, 52vh, 520px); }
  .act__panel {
    left: 50%;
    top: auto;
    bottom: 0;
    translate: -50% 0;
    width: min(520px, calc(100% - 2 * var(--pad)));
    padding: 16px 18px;
    gap: 7px;
  }
  .act__desc { font-size: .84rem; }
  .act__cap { display: none; }
  .reel__nav { margin-top: 14px; }
}
@media (max-width: 620px) {
  .act__panel { width: calc(100% - 2 * var(--pad)); }
  .act__title { font-size: 1.15rem; }
}

/* ------------------------------- без скриптов и при «уменьшить движение» */
.reel--static {
  display: block;
  height: auto;
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 80px);
}
.reel--static .reel__track { height: auto !important; }
.reel--static .reel__hint { display: none; }
.reel--static .reel__stage { height: auto; display: block; padding-block: 0; }
.reel--static .reel__viewport {
  position: static;
  height: auto;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.reel--static .act {
  position: static;
  opacity: 1;
  visibility: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-block: clamp(26px, 5vw, 44px);
  border-top: 1px solid var(--line);
  place-items: stretch;
}
.reel--static .act:first-child { border-top: 0; }
.reel--static .act__deck {
  height: auto;
  width: 100%;
  translate: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: auto;
}
.reel--static .act__slide {
  position: static;
  aspect-ratio: var(--ar);
  transform: none !important;
  opacity: 1 !important;
}
.reel--static .act__cap { display: none; }
.reel--static .act__panel {
  order: -1;
  position: static;
  translate: none;
  width: auto;
  transform: none !important;
  opacity: 1 !important;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
}
.reel--static .reel__nav { display: none; }
.reel--static .deco { animation: none; opacity: .25; }


/* ------------------------------------------ полноэкранный просмотр работы */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: clamp(10px, 2vw, 22px);
  background: rgba(4, 4, 4, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viewer__title { font-size: .84rem; color: var(--muted); }
.viewer__stage { display: grid; place-items: center; min-height: 0; cursor: zoom-out; }
.viewer__stage img {
  max-width: 100%;
  /* процент от grid-области резолвится ненадёжно — режем по вьюпорту */
  max-height: calc(100vh - 120px);
  max-height: calc(100svh - 120px);
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.viewer__close {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.viewer__close:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.viewer__close svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ бриф */
.brief {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 100% at 85% 0%, rgba(255,95,61,.09), transparent 60%),
    var(--bg);
}
.brief__grid { display: grid; gap: clamp(28px, 4vw, 60px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .brief__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: .95rem;
  min-height: 52px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--coral-line);
  background: var(--surface-2);
  outline: none;
}
.field.is-error input, .field.is-error textarea { border-color: #ff5f3d; }
.field__err { font-size: .76rem; color: var(--coral); min-height: 0; }
@media (min-width: 620px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.form__foot { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 620px) { .form__foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.form__note { font-size: .76rem; color: var(--muted-2); line-height: 1.4; margin: 0; }
.form__ok {
  display: none;
  border: 1px solid var(--coral-line);
  background: var(--coral-soft);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .92rem;
}
.form__ok.is-on { display: block; }

.contacts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(26px, 3vw, 36px); }
.contacts a, .contacts div { background: var(--surface); padding: 16px 20px; display: grid; gap: 3px; transition: background .3s var(--ease); }
.contacts a:hover { background: var(--surface-2); }
.contacts small { color: var(--muted-2); font-size: .74rem; }
.contacts b { font-weight: 500; font-size: 1rem; }

/* ----------------------------------------------------------------- футер */
.footer { border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 60px); }
.footer__in { display: grid; gap: 26px; }
@media (min-width: 800px) { .footer__in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 2px 22px; font-size: .86rem; color: var(--muted); }
.footer__links a { padding-block: 8px; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--text); }
.footer small { color: var(--muted-2); font-size: .76rem; line-height: 1.5; display: block; }

/* ------------------------------------------------------------- анимации */
.js .reveal { opacity: 0; transform: translateY(26px); }

/* разбивка заголовка на слова */
.h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.h1 .w > i { display: inline-block; font-style: normal; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .scene, .step { transition: none; }
  .btn--heartbeat.is-beating { animation: none; will-change: auto; }
}

/* -------------------------------------------------------------- курсор */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  pointer-events: none;
  z-index: 90;
  translate: -50% -50%;
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), opacity .3s;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 46px; height: 46px; background: rgba(255,255,255,.9); border-color: transparent; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}
