/* CWS — дизайн-система
   Тёмная база, холодный неон, крупная типографика, переходы «как в программе». */

:root {
  --bg:        #07080c;
  --bg-2:      #0d0f16;
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);

  --tx:        #eef1f7;
  --tx-2:      #9aa3b6;
  --tx-3:      #626b80;

  --cyan:      #6ee7f9;
  --violet:    #a78bfa;
  --lime:      #b9f18d;
  --grad:      linear-gradient(115deg, var(--cyan), var(--violet));

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --shell: 1400px;
  --gut: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .55s;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--violet); color: #0b0c11; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: #0b0c11; padding: 12px 20px; border-radius: 0 0 var(--r-s) 0;
}
.skip:focus { left: 0; }

/* ---------- фон ---------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg__glow {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .28;
  will-change: transform;
}
.bg__glow--a {
  width: 62vw; height: 62vw; left: -18vw; top: -22vw;
  background: radial-gradient(circle, #2a6cf6 0%, transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.bg__glow--b {
  width: 54vw; height: 54vw; right: -16vw; top: 24vh;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(14vw, 12vh, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(-12vw, -10vh, 0) scale(1.12); } }

.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
}

.bg__grain {
  position: absolute; inset: -50%;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

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

.hdr {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 28px; height: 76px; }

.hdr__bar {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--grad); transition: width .45s var(--ease-out);
}
.is-loading .hdr__bar { width: 72%; }
.is-loaded  .hdr__bar { width: 100%; opacity: 0; transition: width .2s, opacity .4s .1s; }

.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark { display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.logo:hover .logo__mark { transform: rotate(120deg); }
.logo__txt { font-weight: 800; letter-spacing: .06em; font-size: 19px; line-height: 1; }
.logo__txt em {
  display: block; font: 500 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .18em; color: var(--tx-3); margin-top: 5px; text-transform: uppercase;
}

.nav { display: flex; gap: 4px; }
.nav__i {
  position: relative; padding: 9px 15px; border-radius: 999px;
  color: var(--tx-2); font-size: 15px; font-weight: 500;
  transition: color .25s, background .25s;
}
.nav__i:hover { color: var(--tx); background: var(--surface); }
.nav__i.is-active { color: var(--tx); }
.nav__i.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--tx); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- сцена и переходы ---------- */

.stage { display: block; min-height: 60vh; perspective: 1400px; }

@keyframes stage-in {
  from { opacity: 0; transform: translate3d(0, 26px, -70px) scale(.985); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes stage-out {
  from { opacity: 1; transform: none; filter: none; }
  to   { opacity: 0; transform: translate3d(0, -18px, -220px) scale(.94); filter: blur(9px); }
}

.stage.is-out { animation: stage-out .34s var(--ease) forwards; }
.stage.is-in  { animation: stage-in  .52s var(--ease-out) both; }

::view-transition-old(root) { animation: stage-out .34s var(--ease) forwards; }
::view-transition-new(root) { animation: stage-in  .52s var(--ease-out) both; }

/* ---------- появление блоков при скролле ---------- */

/* Скрываем только когда JS точно жив: без него и при любом сбое
   наблюдателя контент виден сразу. */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .rv.is-vis { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; } .rv-d2 { transition-delay: .14s; }
.rv-d3 { transition-delay: .21s; } .rv-d4 { transition-delay: .28s; }

/* ---------- типографика ---------- */

.h1 {
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(38px, 5vw, 66px); margin: 0;
}
.h2 {
  font-weight: 800; letter-spacing: -.025em; line-height: 1.08;
  font-size: clamp(29px, 4vw, 48px); margin: 0;
}
.h3 { font-weight: 700; letter-spacing: -.015em; font-size: clamp(20px, 2.2vw, 25px); margin: 0; }

.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: inherit;
}

/* Заголовок с заданной разбивкой по строкам.
   На узких экранах строки становятся строчными и переносятся сами —
   иначе длинная строка не влезает в 375 px. */
.h1--lines span { display: inline; }
.h1--lines b { font-weight: inherit; }

@media (min-width: 700px) {
  .h1--lines span { display: block; }
}
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--tx-2); line-height: 1.62; margin: 0; }
.muted { color: var(--tx-2); }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-2); padding: 9px 15px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(185,241,141,.55); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(185,241,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(185,241,141,0); }
}

/* ---------- секции ---------- */

.sec { padding-block: clamp(44px, 5.2vw, 76px); }
.sec--tight { padding-block: clamp(30px, 3.4vw, 48px); }
.sec__head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 38px); }
.sec__head .h2 { margin-bottom: 13px; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; position: relative;
  background: var(--grad); color: #08090e;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), filter .3s;
  box-shadow: 0 8px 30px -12px rgba(167,139,250,.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -14px rgba(167,139,250,.85); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface); color: var(--tx); border-color: var(--line-2); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--tx-3); box-shadow: none; }
.btn--sm { padding: 11px 20px; font-size: 15px; }

.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- карточки ---------- */

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 32px);
  transition: border-color .35s, background .35s, transform .45s var(--ease-out);
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-4px); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(167,139,250,.13), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::after { opacity: 1; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- первый экран ---------- */

.hero { padding-block: clamp(40px, 5.5vw, 76px) clamp(32px, 4vw, 56px); }
.hero__in {
  display: grid; gap: clamp(30px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
}
.hero .h1 { margin-block: 18px 20px; }
.hero .lead { max-width: 52ch; }
.hero__btns { margin-top: 28px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(28px, 3.4vw, 44px);
  grid-column: 1 / -1;
}

/* макет браузера в первом экране */
.mock {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  display: flex; flex-direction: column; align-self: stretch; min-height: 100%;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, #10131c, #0a0c12);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: perspective(1300px) rotateY(-8deg) rotateX(2deg); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.mock:hover { transform: perspective(1300px) rotateY(-3deg) rotateX(1deg); }
.mock__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__url {
  margin-left: 10px; flex: 1; height: 22px; border-radius: 99px;
  background: rgba(255,255,255,.05); display: flex; align-items: center;
  padding: 0 12px; font: 500 11px/1 "JetBrains Mono", monospace; color: var(--tx-3);
}
.mock__body {
  padding: clamp(20px, 2vw, 30px); flex: 1;
  display: flex; flex-direction: column; justify-content: space-evenly; gap: 16px;
}
.mock__row { display: grid; gap: 10px; }
.mock__ln { height: 9px; border-radius: 5px; background: rgba(255,255,255,.09); }
.mock__ln--w { background: var(--grad); opacity: .85; height: 17px; border-radius: 6px; }
.mock__ln--s { height: 7px; opacity: .6; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__card {
  flex: 1; min-height: 62px; border-radius: 10px;
  background: rgba(255,255,255,.055); border: 1px solid var(--line);
}
.mock__card:nth-child(2) { background: rgba(167,139,250,.16); border-color: rgba(167,139,250,.3); }
.mock__cards--tall { flex: 1; }
.mock__cards--tall .mock__card { min-height: 0; }
.mock__btns { display: flex; gap: 10px; }
.mock__btn { height: 34px; width: 108px; border-radius: 99px; background: var(--grad); opacity: .9; }
.mock__btn--g { background: rgba(255,255,255,.07); border: 1px solid var(--line-2); width: 92px; }
.mock__card:nth-child(2) { background: rgba(167,139,250,.16); border-color: rgba(167,139,250,.3); }
.mock__scan {
  position: absolute; left: 0; right: 0; height: 130px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(110,231,249,.10), transparent);
  animation: scan 5.5s var(--ease) infinite;
}
@keyframes scan { 0% { top: -130px; } 100% { top: 100%; } }
.stat {
  border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 22px 24px; background: var(--surface);
}
.stat b {
  display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 9px; font-size: 14px; color: var(--tx-2); }

/* ---------- бегущая строка ---------- */

.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__t { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.marquee__t span {
  font: 600 14px/1 "JetBrains Mono", monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-3); white-space: nowrap;
}
.marquee__t span::after { content: "◆"; margin-left: 44px; color: var(--violet); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- работы ---------- */

.work {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); padding: clamp(22px, 2.6vw, 30px);
  min-height: 230px; height: 100%;
  transition: transform .5s var(--ease-out), border-color .35s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-2); }
.work__glow {
  position: absolute; width: 260px; height: 260px; right: -80px; top: -100px;
  border-radius: 50%; filter: blur(70px); opacity: .3; transition: opacity .45s, transform .6s var(--ease-out);
}
.work:hover .work__glow { opacity: .55; transform: scale(1.25); }
.work__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.work__tag {
  font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .13em; text-transform: uppercase;
  color: var(--tx-3); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.work__title { margin: 18px 0 10px; position: relative; }
.work__sum { color: var(--tx-2); font-size: 15.5px; position: relative; margin: 0 0 auto; }
.work__go {
  position: relative; align-self: flex-end; margin-top: 20px;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; flex: none;
  transition: background .3s, transform .35s var(--ease-out), border-color .3s;
}
.work:hover .work__go { background: var(--grad); border-color: transparent; transform: translateX(4px); color: #08090e; }
.work--flag { border-color: rgba(167,139,250,.4); }
.work--flag .work__tag { color: var(--violet); border-color: rgba(167,139,250,.4); }

/* ---------- услуги ---------- */

.svc { display: flex; flex-direction: column; height: 100%; }
.svc__price {
  font: 700 15px/1 "JetBrains Mono", monospace; color: var(--cyan);
  margin-top: auto; padding-top: 22px;
}
.svc__term { color: var(--tx-3); font-size: 14px; margin-top: 8px; }
.svc__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.svc__list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--tx-2); }
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--grad); opacity: .8;
}

/* ---------- процесс ---------- */

.step { position: relative; padding-left: 66px; }
.step__n {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; border: 1px solid var(--line);
  font: 700 17px/1 "JetBrains Mono", monospace; color: var(--violet); background: var(--surface);
}

/* ---------- форма ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--tx-2); }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--r-m);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--tx); font: inherit; font-size: 16px; transition: border-color .25s, background .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); background: rgba(255,255,255,.06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--tx-3); }
.form__note { font-size: 13px; color: var(--tx-3); }
.form__ok {
  padding: 18px 22px; border-radius: var(--r-m);
  border: 1px solid rgba(185,241,141,.4); background: rgba(185,241,141,.08); color: var(--lime);
}
.form__err { color: #ff8f8f; font-size: 14px; }
.hpot { position: absolute; left: -9999px; }

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

.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line); padding: clamp(34px, 5vw, 68px);
  background: linear-gradient(140deg, rgba(110,231,249,.08), rgba(167,139,250,.09));
}
.cta::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -140px; bottom: -220px;
  background: radial-gradient(circle, var(--violet), transparent 66%); filter: blur(80px); opacity: .34;
}
.cta__in {
  position: relative; display: grid; align-items: start;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
}
.cta__txt { max-width: 46ch; }
.cta__form {
  background: rgba(9,10,15,.55); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 32px);
  backdrop-filter: blur(8px);
}
.cta--solo .cta__in { grid-template-columns: 1fr; max-width: 720px; }

.cta__pts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.cta__pts li { position: relative; padding-left: 28px; color: var(--tx-2); font-size: 15.5px; }
.cta__pts li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 9px;
  border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}
.cta__alt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.cta__lnk { color: var(--tx-2); font-size: 15px; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.cta__lnk:hover { color: var(--cyan); border-bottom-color: currentColor; }

@media (max-width: 900px) {
  .cta__in { grid-template-columns: 1fr; }
}

/* ---------- статья ---------- */

.article { max-width: 760px; }
.article h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 16px; letter-spacing: -.02em; }
.article h3 { font-size: 21px; margin: 32px 0 12px; }
.article p { margin: 0 0 18px; color: #dfe4ee; }
.article ul, .article ol { color: #dfe4ee; padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 9px; }
.article a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article img { border-radius: var(--r-m); margin: 26px 0; }
.article blockquote {
  margin: 26px 0; padding: 18px 24px; border-left: 2px solid var(--violet);
  background: var(--surface); border-radius: 0 var(--r-m) var(--r-m) 0; color: var(--tx-2);
}

/* ---------- подвал ---------- */

.ftr {
  border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px);
  padding-top: 52px; position: relative; overflow: hidden;
}
.ftr::before {
  content: ""; position: absolute; left: 50%; top: -320px; width: 640px; height: 460px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(167,139,250,.18), transparent 68%); filter: blur(60px);
}
.ftr__in {
  position: relative; display: grid; gap: 36px; padding-bottom: 40px;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
.ftr__logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ftr__logo b { font-weight: 800; font-size: 22px; letter-spacing: .07em; line-height: 1; }
.ftr__logo em {
  display: block; font: 500 9.5px/1 "JetBrains Mono", monospace;
  letter-spacing: .17em; color: var(--tx-3); margin-top: 5px; text-transform: uppercase;
}
.ftr__brand p { color: var(--tx-2); font-size: 15px; margin: 0 0 18px; max-width: 34ch; }
.ftr h4 {
  font: 600 11.5px/1 "JetBrains Mono", monospace; letter-spacing: .15em;
  text-transform: uppercase; color: var(--tx-3); margin: 0 0 16px;
}
.ftr__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.ftr__col a { color: var(--tx-2); transition: color .25s; width: fit-content; }
.ftr__col a:hover { color: var(--tx); }
.ftr__mail { font-size: 16px; font-weight: 600; }
.ftr__soc { display: flex; gap: 9px; margin-top: 6px; }
.ftr__soc a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--tx-2);
  transition: border-color .25s, color .25s, transform .25s var(--ease-out);
}
.ftr__soc a:hover { color: var(--tx); border-color: var(--line-2); transform: translateY(-2px); }
.ftr__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ftr__badge {
  font: 500 11.5px/1 "JetBrains Mono", monospace; letter-spacing: .07em;
  color: var(--tx-3); border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px;
}
.ftr__btm {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--tx-3);
}

/* ---------- обложка работы ---------- */

.work__cover {
  display: block; position: relative; margin: -1px -1px 20px; height: 178px;
  border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden;
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-bottom: 1px solid var(--line);
}
.work__cover picture { display: block; height: 100%; }
.work__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .7s var(--ease-out); }
.work:hover .work__cover img { transform: scale(1.045); }
.work--cover { padding-top: 0; }
.work__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 clamp(26px, 4vw, 42px)/1 Manrope, sans-serif; letter-spacing: -.03em;
  color: rgba(255,255,255,.14);
}

/* ---------- сравнение ---------- */

.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.cmp__col {
  border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 24px;
  background: var(--surface); display: grid; align-content: start; gap: 16px;
}
.cmp__col--me { border-color: rgba(167,139,250,.45); background: linear-gradient(160deg, rgba(167,139,250,.09), rgba(110,231,249,.04)); }
.cmp__ttl { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cmp__col--me .cmp__ttl::after {
  content: "это я"; font: 600 10.5px/1 "JetBrains Mono", monospace; letter-spacing: .1em;
  text-transform: uppercase; color: #08090e; background: var(--grad);
  padding: 5px 9px; border-radius: 99px;
}
.cmp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; color: var(--tx-2); }
.cmp__list li { display: flex; gap: 10px; align-items: flex-start; }
.cmp__list li::before { content: "—"; color: var(--tx-3); flex: none; }
.cmp__col--me .cmp__list li::before { content: "✦"; color: var(--violet); }
.cmp__price { font: 700 15px/1 "JetBrains Mono", monospace; color: var(--tx-2); padding-top: 6px; border-top: 1px solid var(--line); }
.cmp__col--me .cmp__price { color: var(--cyan); }

/* ---------- вопросы ---------- */

.faq { display: grid; gap: 10px; }
.faq__i { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.faq__i[open] { border-color: var(--line-2); }
.faq__q {
  list-style: none; cursor: pointer; padding: 19px 56px 19px 24px; position: relative;
  font-weight: 600; font-size: 16.5px; transition: color .25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--cyan); }
.faq__q::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--tx-3); border-bottom: 2px solid var(--tx-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq__i[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 24px 22px; color: var(--tx-2); font-size: 15.5px; line-height: 1.62; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin: 0; }

/* ---------- фото ---------- */

.photo {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.photo img { width: 100%; display: block; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7,8,12,.7));
}
.photo__cap {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1;
  font-size: 14px; color: var(--tx-2);
}
.photo__cap b { display: block; color: var(--tx); font-size: 17px; margin-bottom: 4px; }

/* ---------- контакты ---------- */

.cnt {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 3.6vw, 56px); align-items: center;
}
.cnt__left { align-self: center; }
.cnt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.cnt__i { display: grid; gap: 12px; align-content: start; padding: 20px 22px; }
.cnt__i .work__tag { width: fit-content; }
.cnt__v { font-weight: 600; font-size: 16px; word-break: break-word; }
.cnt__form { align-self: center; padding: clamp(24px, 2.8vw, 38px); }

.cnt__brief {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 26px; padding: 22px 24px;
  border: 1px solid rgba(167,139,250,.35); border-radius: var(--r-l);
  background: linear-gradient(120deg, rgba(167,139,250,.10), rgba(110,231,249,.05));
}
.cnt__brief b { display: block; font-size: 17px; margin-bottom: 6px; }
.cnt__brief span { display: block; color: var(--tx-2); font-size: 15px; max-width: 46ch; }
.cnt__brief .btn { flex: none; }

@media (max-width: 900px) {
  .cnt { grid-template-columns: 1fr; }
  .cnt__grid { grid-template-columns: 1fr; }
}

/* ---------- подробный бриф ---------- */

.brief { display: grid; gap: clamp(20px, 2.4vw, 30px); max-width: 860px; }
.brief__grp {
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); padding: clamp(20px, 2.4vw, 30px);
}
.brief__grp > h3 { margin: 0 0 6px; }
.brief__grp > p { margin: 0 0 20px; color: var(--tx-2); font-size: 15px; }
.brief__fields { display: grid; gap: 16px; }
.brief__prog {
  position: sticky; top: 88px; z-index: 20; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 99px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); padding: 11px 20px;
  display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--tx-2);
}
.brief__bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.brief__bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s var(--ease-out); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 15px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font-size: 14.5px; color: var(--tx-2);
  transition: border-color .2s, color .2s, background .2s;
}
.chips input { accent-color: var(--violet); width: 16px; height: 16px; }
.chips label:has(input:checked) { border-color: var(--violet); color: var(--tx); background: rgba(167,139,250,.12); }

/* ---------- 404 ---------- */
.e404 { text-align: center; padding-block: clamp(80px, 14vw, 180px); }
.e404 b { display: block; font-size: clamp(90px, 18vw, 200px); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ftr__in { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero__in { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 520px; }
  .cmp { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hdr__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease-out), opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__i { padding: 15px 0; font-size: 18px; border-radius: 0; }
  .nav__i.is-active::after { left: 0; right: auto; width: 26px; bottom: 8px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr; gap: 28px; }
  .brief__prog { top: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
