/* ===== Токены ===== */
:root {
  --ink: #0c0d12;
  --paper: #edeef2;
  --white: #ffffff;
  --electric: #2438ff;
  --lilac: #c9cdff;
  --signal: #ff5a36;
  --ok: #12b76a;
  --line: rgba(12, 13, 18, .12);
  --line-w: rgba(255, 255, 255, .14);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: 24px;
  --display: clamp(52px, 10.8vw, 200px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--electric); color: #fff; }

/* ===== Типографика ===== */
/* Строки стремятся к прямоугольнику: без одиноких слов в последней строке.
   До 6 строк браузер выравнивает длины, длинные абзацы просто не оставляют сирот. */
h1, h2, h3, h4, p, li, q, blockquote, figcaption { text-wrap: balance; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.display {
  font-size: var(--display);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.06em;
}
.h-big {
  font-size: clamp(48px, 6.4vw, 120px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.055em;
}
.muted { color: rgba(12, 13, 18, .6); }
.dark .muted { color: rgba(255, 255, 255, .55); }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.bullet { width: 6px; height: 6px; border-radius: 2px; background: var(--electric); display: inline-block; }
.bullet--w { background: #fff; }

/* построчное появление */
/* запас справа и снизу: при отрицательном трекинге последняя буква («ю», «и») вылезает за блок,
   а хвосты «у», «р», «д» уходят ниже строки — без запаса маска их обрезала */
.rl { display: block; overflow: hidden; padding: 0 .12em .2em 0; margin: 0 -.12em -.2em 0; }
.rl > span { display: block; transform: translateY(135%); transition: transform 1.2s var(--ease); }
.rl:nth-child(2) > span { transition-delay: .08s; }
.rl:nth-child(3) > span { transition-delay: .16s; }
.is-in .rl > span, .rl.is-in > span { transform: none; }

.fu {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s, transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.is-in .fu, .fu.is-in { opacity: 1; transform: none; }

/* ===== Кнопки ===== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 6px 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .5s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--fill, var(--electric));
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(102%);
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  transition: transform .7s var(--ease);
}
.btn:hover .btn-ico { transform: rotate(-45deg); }
.btn-sm { height: 44px; padding-left: 20px; font-size: 14px; gap: 12px; }
.btn-sm .btn-ico { width: 34px; height: 34px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .btn-ico { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); --fill: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-light .btn-ico { background: var(--ink); color: #fff; }
.btn-blue { background: var(--electric); color: #fff; --fill: #fff; }
.btn-blue:hover { color: var(--ink); }
.btn-blue .btn-ico { background: #fff; color: var(--electric); }
.btn-wide { width: 100%; justify-content: space-between; height: 58px; }
.btn-wide .btn-ico { width: 46px; height: 46px; }

.roll { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .6s var(--ease); }
.roll > span::after { content: attr(data-t); display: block; }
.btn:hover .roll > span, .menu-btn:hover .roll > span, .roll:hover > span { transform: translateY(-50%); }

.ulink {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ===== Прелоадер ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 28px var(--gut);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 1.1s var(--ease);
}
/* уехавший прелоадер прячем совсем: огромные цифры «220V» свисали из-под него и перекрывали логотип */
.preloader.is-done { transform: translateY(-100%); visibility: hidden; pointer-events: none; transition: transform 1.1s var(--ease), visibility 0s 1.1s; }
.preloader__top { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .55); }
.preloader__count {
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}
.preloader__v { color: var(--electric); margin-left: .02em; }
.preloader__mono { position: absolute; right: var(--gut); bottom: 48px; color: rgba(255, 255, 255, .55); }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--electric); }

/* ===== Шапка ===== */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--gut);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  letter-spacing: -.05em;
  font-weight: 400;
  transition: color .4s;
}
.logo b { font-weight: 600; }
.logo__t { white-space: nowrap; }
.logo i {
  width: 9px; height: 20px;
  margin-left: 3px;
  background: var(--electric);
  border-radius: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.logo { position: relative; }
.logo__pill {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  color: #fff;
  background: var(--electric);
  padding: 6px 11px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.hdr.on-dark .logo__pill { background: #fff; color: var(--electric); }
.hdr__status { display: flex; align-items: center; gap: 10px; color: rgba(12, 13, 18, .7); transition: color .4s, opacity .4s; }
.hdr__status .sep { width: 18px; text-align: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18, 183, 106, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .45); } 70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }
.hdr__actions { justify-self: end; display: flex; gap: 8px; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}
.menu-btn { width: 126px; gap: 10px; justify-content: space-between; padding: 0 14px 0 20px; box-shadow: 0 1px 2px rgba(12, 13, 18, .08); }
.dots { position: relative; display: inline-block; width: 18px; height: 18px; }
.dots i {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .6s cubic-bezier(.68, -.6, .32, 1.6), width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.dots i:first-child { transform: translateX(-4.5px); }
.dots i:nth-child(2) { transform: translateX(4.5px); }
.dots.is-open i { width: 16px; height: 2px; margin: -1px 0 0 -8px; }
.dots.is-open i:first-child { transform: rotate(45deg); }
.dots.is-open i:nth-child(2) { transform: rotate(-45deg); }
.hdr.on-dark .logo { color: #fff; }
.hdr.on-dark .hdr__status { color: rgba(255, 255, 255, .7); }
.hdr.on-dark .btn-dark { background: #fff; color: var(--ink); }
.hdr.on-dark .btn-dark .btn-ico { background: var(--ink); color: #fff; }
/* на тёмных блоках кнопка белая, а при наведении заливается синим — текст белый */
.hdr.on-dark .btn-dark:hover { color: #fff; }
.hdr.on-blue .btn-dark { --fill: var(--ink); }
.hdr.on-blue .btn-dark:hover .btn-ico { background: #fff; color: var(--ink); }
.hdr.is-scrolled .hdr__status { opacity: 0; pointer-events: none; }
.logo { transition: color .4s, opacity .5s, transform .7s var(--ease); }
/* логотип прячется при скролле и под открытым меню — панель на него не наезжает */
.hdr.is-scrolled .logo, .hdr.menu-open .logo { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* ===== Меню: панель-«желе» из кнопки (форма считается в main.js через clip-path) ===== */
.jelly-wrap {
  position: fixed;
  z-index: 55;
  pointer-events: none;
  filter: drop-shadow(0 24px 48px rgba(12, 13, 18, .16)) drop-shadow(0 2px 6px rgba(12, 13, 18, .06));
}
.jelly-shell {
  position: absolute;
  top: 0; right: 0;
  visibility: hidden;
  pointer-events: auto;
  background: #fff;
  will-change: clip-path;
}
.jelly-shell { transition: opacity .24s ease, transform .26s var(--ease); transform-origin: 100% 0; }
.jelly-shell.is-closing { opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; }
/* затемнение под открытым меню */
.menu-dim {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(12, 13, 18, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  touch-action: none;
  transition: opacity .35s ease, visibility 0s .35s;
}
.menu-dim.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
html.menu-lock, html.menu-lock body { overflow: hidden; overscroll-behavior: none; }
.jelly-shell { overscroll-behavior: contain; }
.jelly-in { position: absolute; left: 90px; top: 90px; width: 440px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y; }
.jelly-in::-webkit-scrollbar { display: none; }
.jelly-pad { padding: 24px 28px 28px; }

.menu-item {
  opacity: 0;
  transform: translateY(28px) rotate(3deg);
  transform-origin: 0 100%;
  transition: opacity .25s, transform .5s var(--ease);
}
.jelly-in.is-shown .menu-item {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.menu-head { display: flex; justify-content: space-between; align-items: center; color: rgba(12, 13, 18, .5); }
.menu-nav { margin-top: 12px; }
.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.menu-label {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
  transition: transform .6s var(--ease);
}
.menu-link .mono { color: rgba(12, 13, 18, .5); transition: color .3s; }
.menu-arrow {
  position: absolute;
  left: 0; top: 50%;
  margin-top: -15px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--electric);
  color: #fff;
  opacity: 0;
  transform: translateX(-14px) scale(.4);
  transition: transform .6s var(--ease), opacity .3s;
}
.menu-link:hover .menu-arrow { opacity: 1; transform: none; }
.menu-link:hover .menu-label { transform: translateX(42px); }
.menu-link:hover .mono { color: var(--electric); }

.menu-form { margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--paper); }
.menu-form__t { font-size: 15px; line-height: 1.35; color: rgba(12, 13, 18, .7); }
.menu-form__t b { font-weight: 500; color: var(--ink); }
.menu-form__row { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 16px; border-radius: 999px; background: #fff; transition: box-shadow .3s; }
.menu-form__row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.menu-form__row input::placeholder { color: rgba(12, 13, 18, .4); }
.menu-form__row button { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; transition: background .3s; }
.menu-form__row button:hover { background: var(--electric); }
.menu-form.is-err .menu-form__row { box-shadow: 0 0 0 2px var(--signal); }
.menu-form__legal { margin-top: 10px; font-size: 11px; line-height: 1.4; color: rgba(12, 13, 18, .5); }
.menu-form__legal a { text-decoration: underline; text-decoration-color: rgba(12, 13, 18, .3); text-underline-offset: 2px; }
.menu-form__legal a:hover { color: var(--electric); }
.menu-form__done { display: none; margin-top: 12px; color: var(--electric); }
.menu-form.is-sent .menu-form__row, .menu-form.is-sent .menu-form__legal { display: none; }
.menu-form.is-sent .menu-form__done { display: block; }

.menu-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.menu-foot__soc { display: flex; gap: 16px; }
.menu-foot__soc a { text-underline-offset: 4px; }
.menu-foot__soc a:hover { text-decoration: underline; }
.menu-foot .mono { color: rgba(12, 13, 18, .5); transition: color .3s; }
.menu-foot .mono:hover { color: var(--ink); }

/* ===== Курсор-подсказка ===== */
.cur {
  position: fixed;
  left: 0; top: 0;
  z-index: 80;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
}
.cur span {
  display: block;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--electric);
  color: #fff;
  padding: 7px 12px;
  border-radius: 4px 14px 14px 14px;
  transform: translate(14px, 16px) scale(0);
  transform-origin: 0 0;
  transition: transform .45s var(--ease);
}
.cur.is-on span { transform: translate(14px, 16px) scale(1); }
.cur.on-blue span { background: var(--ink); }

/* ===== Герой ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__cursors { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.pcur { position: absolute; left: 0; top: 0; will-change: transform; opacity: 0; transition: opacity .8s; }
.pcur.is-on { opacity: 1; }
.pcur svg { position: absolute; left: -3px; top: -2px; }
.pcur span {
  position: absolute;
  left: 16px; top: 19px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  color: #fff;
  background: var(--signal);
  padding: 3px 8px;
  border-radius: 4px 10px 10px 10px;
}
.hero__ui {
  position: relative;
  z-index: 20;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 104px var(--gut) 34px;
  pointer-events: none;
}
.hero__notes { display: flex; justify-content: space-between; gap: 24px; color: rgba(12, 13, 18, .6); }
.hero__notes p { max-width: 280px; }
.hero__hint { text-align: right; }
.hero__bottom { position: relative; }
.hero__title { position: relative; }
.tagpill {
  position: relative;
  top: -.55em;
  display: inline-block;
  margin-left: .12em;
  font-style: normal;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
  background: var(--electric);
  padding: 9px 16px 10px;
  border-radius: 999px;
  transform: rotate(-7deg);
  vertical-align: top;
}
.hero__aside {
  position: absolute;
  right: 0;
  bottom: calc(var(--display) * 1.04);
  width: 370px;
  pointer-events: auto;
}
.hero__aside p { font-size: 17px; line-height: 1.5; color: rgba(12, 13, 18, .8); }
.hero__cta { margin-top: 22px; display: flex; align-items: center; gap: 22px; }
.hero__scroll {
  position: absolute;
  right: 0;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: rgba(12, 13, 18, .5);
}
.hero__scroll i { width: 1px; height: 42px; background: rgba(12, 13, 18, .2); position: relative; overflow: hidden; margin-right: 18px; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ===== Обо мне ===== */
.about {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 40px;
  padding: 170px var(--gut) 160px;
}
.stats li { border-top: 1px solid var(--line); padding: 16px 0 22px; }
.stats li:last-child { border-bottom: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(40px, 3.7vw, 64px); font-weight: 500; letter-spacing: -.06em; line-height: .95; white-space: nowrap; }
.stats span { display: block; margin-top: 10px; }
.stats span { font-size: 14px; line-height: 1.35; color: rgba(12, 13, 18, .62); }
.about__main { padding-top: 34px; }
.lead {
  font-size: clamp(32px, 3.45vw, 60px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 500;
  max-width: 1040px;
}
.lead .w { display: inline-block; opacity: .14; transition: opacity .6s; }
.lead .w.on { opacity: 1; }
.hl { color: var(--electric); }
.about__foot { display: flex; align-items: center; gap: 28px; margin-top: 56px; }

/* ===== Шапки секций ===== */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 90px;
}
.sec-head__note { max-width: 360px; font-size: 15px; color: rgba(12, 13, 18, .6); padding-bottom: 14px; }
.dark .sec-head__note { color: rgba(255, 255, 255, .55); }
.display sup {
  font-size: .2em;
  letter-spacing: -.02em;
  color: var(--electric);
  vertical-align: top;
  position: relative;
  top: .25em;
  margin-left: .1em;
}

/* ===== Работы ===== */
.works { padding: 20px var(--gut) 260px; }
.works__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 90px;
}
.case:nth-child(even) { transform: translateY(220px); }
.works__more { display: none; }
/* разный текст для компьютера и телефона */
.m-only { display: none; }
.case:nth-child(even).fu { transform: translateY(246px); }
.case:nth-child(even).fu.is-in { transform: translateY(220px); }
.case { cursor: none; }
.case__img {
  position: relative;
  aspect-ratio: 4 / 3.3;
  border-radius: 22px;
  overflow: hidden;
  background: #dfe1e8;
}
.case__img svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform 1.4s var(--ease); }
.case:hover .case__img svg { transform: scale(1.035); }
/* своё фото работы вместо схемы */
.case__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.case:hover .case__img > img { transform: scale(1.035); }
.case__cap {
  position: absolute;
  left: 20px; bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
}
.case__img[data-theme="white"] .case__cap, .case__img[data-theme="lilac"] .case__cap { background: var(--ink); color: #fff; }
.case__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.case__meta h3 { font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.case__meta .mono { color: rgba(12, 13, 18, .45); }
.case > p { margin-top: 8px; max-width: 520px; font-size: 15px; color: rgba(12, 13, 18, .65); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; }

/* линии тока */
.case svg .wire { stroke-dasharray: 1 0; }
.case svg .flow { stroke-dasharray: 10 22; stroke-dashoffset: 0; opacity: 0; transition: opacity .5s; }
.case:hover svg .flow { opacity: 1; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.case svg .lamp { transition: opacity .6s; }
.case:hover svg .lamp { opacity: 1 !important; }

/* ===== Процесс ===== */
.process { position: relative; height: 440vh; }
.process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  padding: 110px var(--gut) 40px;
}
.process__left { display: flex; flex-direction: column; }
.process__left .h-big { margin-bottom: auto; }
.steps { margin-top: 40px; }
.step { position: relative; border-top: 1px solid var(--line); padding: 14px 0; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 10px; }
.step__row .mono { color: rgba(12, 13, 18, .45); }
.step h3 { font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: rgba(12, 13, 18, .3); transition: color .5s; }
.step p { max-width: 430px; margin-left: 50px; font-size: 15px; color: rgba(12, 13, 18, .65); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .5s, margin .6s var(--ease); }
.step.is-active h3 { color: var(--ink); }
.step.is-active p { max-height: 120px; opacity: 1; margin-top: 8px; }
/* прогресс лежит ровно на серой линии под шагом: 2px по центру линии 1px */
.step__bar { position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px; pointer-events: none; }
.step__bar b { display: block; height: 100%; width: 0; background: var(--electric); }

.process__right { position: relative; display: grid; place-items: center; }
.process__right::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(12, 13, 18, .14) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #e4e6ee;
}
.phone {
  position: relative;
  width: 340px;
  height: 690px;
  max-height: calc(100vh - 190px);
  border-radius: 48px;
  background: #fff;
  box-shadow: 0 0 0 10px var(--ink), 0 40px 80px -20px rgba(12, 13, 18, .35);
  overflow: hidden;
}
.phone-shadow { display: none; }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 98px; height: 28px; border-radius: 20px; background: var(--ink); z-index: 3; }
.phone__bar { position: absolute; top: 18px; left: 30px; right: 26px; display: flex; justify-content: space-between; z-index: 2; font-size: 11px; }
.scr {
  position: absolute;
  inset: 0;
  padding: 64px 18px 22px;
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .6s, transform .9s var(--ease);
  display: flex;
  flex-direction: column;
}
.scr.is-active { opacity: 1; transform: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 4px 16px; border-bottom: 1px solid var(--line); }
.ava { width: 40px; height: 40px; border-radius: 50%; background: var(--electric); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.chat__head b { display: block; font-weight: 600; font-size: 15px; }
.chat__head small { font-size: 12px; color: var(--ok); }
.chat { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.msg { max-width: 82%; font-size: 14px; line-height: 1.38; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--paper); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .7s var(--ease); }
.msg--me { align-self: flex-end; background: var(--electric); color: #fff; border-radius: 16px 16px 4px 16px; }
.scr.is-active .msg { opacity: 1; transform: none; }
.scr.is-active .msg:nth-child(2) { transition-delay: .35s; }
.scr.is-active .msg:nth-child(3) { transition-delay: .7s; }
.scr.is-active .msg:nth-child(4) { transition-delay: 1.05s; }
.scr.is-active .msg:nth-child(5) { transition-delay: 1.4s; }
.msg--typing { display: flex; gap: 4px; width: 58px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(12, 13, 18, .4); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.map { position: absolute; inset: 0; }
.map svg { width: 100%; height: 100%; display: block; }
.map .route { stroke-dasharray: 520; stroke-dashoffset: 520; }
.scr.is-active .map .route { transition: stroke-dashoffset 2.4s var(--ease) .2s; stroke-dashoffset: 0; }
.eta {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 40px -18px rgba(12, 13, 18, .35);
}
.eta__t { font-size: 40px; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; margin: 4px 0 10px; }
.eta__row { display: flex; justify-content: space-between; color: rgba(12, 13, 18, .55); font-size: 10px; }
.eta__line { height: 4px; border-radius: 4px; background: var(--paper); margin: 10px 0 14px; overflow: hidden; }
.eta__line i { display: block; height: 100%; width: 0; background: var(--electric); border-radius: 4px; }
.scr.is-active .eta__line i { width: 62%; transition: width 2.4s var(--ease) .2s; }
.eta__note { font-size: 13px; color: rgba(12, 13, 18, .6); }

.est, .done { display: flex; flex-direction: column; height: 100%; padding-top: 8px; }
.est h4, .done h4 { font-size: 26px; font-weight: 500; letter-spacing: -.04em; margin: 6px 0 16px; }
.checks li { position: relative; font-size: 14px; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .7s var(--ease); }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(12, 13, 18, .3); }
.checks li.ok::before { background: var(--electric) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--electric); }
.scr.is-active .checks li { opacity: 1; transform: none; }
.scr.is-active .checks li:nth-child(2) { transition-delay: .25s; }
.scr.is-active .checks li:nth-child(3) { transition-delay: .5s; }
.scr.is-active .checks li:nth-child(4) { transition-delay: .75s; }
.est__tbl { margin-top: auto; background: var(--paper); border-radius: 18px; padding: 8px 14px; font-size: 13px; }
.est__tbl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(12, 13, 18, .15); }
.est__tbl div:last-child { border: 0; }
.est__tbl .disc { color: var(--electric); }
.est__tbl .tot { font-size: 16px; font-weight: 600; }
.est__note { margin-top: 10px; text-align: center; color: rgba(12, 13, 18, .5); font-size: 10px; }
.done { align-items: center; text-align: center; padding-top: 40px; }
.done__ok { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 0 0 12px rgba(18, 183, 106, .12); }
.done h4 { font-size: 34px; margin-bottom: 6px; }
.done > p { font-size: 14px; max-width: 220px; }
.warranty { margin-top: auto; width: 100%; border-radius: 22px; background: var(--ink); color: #fff; padding: 16px 18px; text-align: left; }
.warranty .mono { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .5); font-size: 10px; }
.warranty b { display: block; font-size: 46px; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; margin: 6px 0 8px; }
.stars { margin-top: 14px; color: #ffb21a; letter-spacing: 4px; font-size: 18px; }
.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 30px -16px rgba(12, 13, 18, .3);
  animation: floaty 6s ease-in-out infinite;
}
.fc1 { left: 9%; top: 26%; }
.fc2 { right: 10%; bottom: 22%; background: var(--electric); color: #fff; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ===== Тёмные / цветные листы ===== */
.sheet { position: relative; z-index: 1; margin-top: -44px; border-radius: 44px 44px 0 0; }
.dark { background: var(--ink); color: #fff; }
.blue { background: var(--electric); color: #fff; }

/* ===== Услуги ===== */
.services { padding: 110px var(--gut) 100px; }
.acc__item { border-top: 1px solid var(--line-w); }
.acc__item:last-child { border-bottom: 1px solid var(--line-w); }
.acc__row {
  width: 100%;
  display: grid;
  grid-template-columns: 60px minmax(300px, 1.3fr) 1fr 140px 190px 44px;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  text-align: left;
}
.acc__row .n { color: rgba(255, 255, 255, .4); }
.acc__row .t { font-size: 38px; font-weight: 500; letter-spacing: -.045em; line-height: 1.05; transition: transform .6s var(--ease); }
.acc__row:hover .t { transform: translateX(10px); }
.acc__row .d { font-size: 14px; color: rgba(255, 255, 255, .55); }
.acc__row .time { color: rgba(255, 255, 255, .5); }
.acc__row .p { font-size: 18px; font-weight: 500; text-align: right; white-space: nowrap; }
.pm {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background .4s, transform .6s var(--ease), border-color .4s;
}
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .6s var(--ease); }
.pm::after { transform: rotate(90deg); }
.acc__item.is-open .pm { transform: rotate(45deg); background: #fff; color: var(--ink); border-color: #fff; }
/* высота анимируется из main.js (от точной высоты к точной) — плавно и на телефонах */
.acc__body { height: 0; overflow: hidden; transition: height .6s cubic-bezier(.22, 1, .36, 1); }
.acc__item.is-open .acc__body { height: auto; }
.acc__in { opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .4s var(--ease); }
.acc__item.is-open .acc__in { opacity: 1; transform: none; transition: opacity .45s ease .12s, transform .7s var(--ease) .08s; }
.acc__in { display: grid; grid-template-columns: 60px 1.3fr 1fr; gap: 16px; }
.acc__in > p { grid-column: 2; max-width: 520px; font-size: 16px; color: rgba(255, 255, 255, .7); padding-bottom: 36px; }
.acc__in > div { padding-bottom: 36px; }
.acc__in .mono { margin-bottom: 12px; }
.list li { position: relative; padding-left: 18px; font-size: 15px; margin-bottom: 8px; }
.list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--electric); }
.acc__in .btn { margin-top: 18px; }

/* наведение как на референсе: синяя полоса раскрывается от центра строки по вертикали */
.services .acc__row { position: relative; overflow: hidden; }
.services .acc__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--electric);
  transform: scaleY(0);
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.services .acc__row > * { position: relative; }
.services .acc__row .n { padding-left: 4px; transition: color .5s; }
.services .acc__row .d, .services .acc__row .time { transition: color .5s; }
.services .acc__row .t { transition: transform .5s var(--ease); }
@media (hover: hover) {
  .services .acc__row:hover::before { transform: scaleY(1); }
  .services .acc__row:hover .n { color: rgba(255, 255, 255, .85); }
  .services .acc__row:hover .d, .services .acc__row:hover .time { color: rgba(255, 255, 255, .9); }
  .services .acc__row:hover .t { transform: translateX(8px); }
  .services .acc__row:hover .pm { border-color: rgba(255, 255, 255, .7); }
}

/* ===== Правила ===== */
.rules { padding: 80px var(--gut) 180px; }
.rules__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.rules__head .muted { max-width: 340px; margin-top: 30px; font-size: 15px; }
.rtable li {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 140px;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line-w);
  padding: 24px 0;
  transition: padding .6s var(--ease);
}
.rtable li:last-child { border-bottom: 1px solid var(--line-w); }
.rtable li:hover { padding-left: 14px; }
.rtable .t { font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.rtable .d { color: rgba(255, 255, 255, .5); }
.rtable .v { justify-self: end; font-size: 0; }
/* галочка рисуется векторной иконкой: символ ✓ на телефонах берётся из системного шрифта и выглядит криво */
.rtable .v::before {
  content: "";
  display: block;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(143, 154, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.4 12.5 5' fill='none' stroke='%238f9aff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: background-color .4s;
}
.rtable li:hover .v::before { background-color: rgba(143, 154, 255, .26); }
.bignums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 150px; }
.bignums > div { border-left: 1px solid var(--line-w); padding-left: 22px; }
.bignums b { display: block; font-size: clamp(64px, 6.6vw, 124px); font-weight: 500; letter-spacing: -.06em; line-height: .95; white-space: nowrap; }
.bignums p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .55); max-width: 220px; }

/* ===== Скидки ===== */
.promo { background: var(--paper); padding: 120px var(--gut) 60px; }
.coupons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coupon {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 210px;
  min-height: 380px;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  cursor: none;
}
.coupon__l { padding: 30px 34px 32px; display: flex; flex-direction: column; }
.coupon__l .mono { color: rgba(12, 13, 18, .5); }
.coupon__v { font-size: clamp(110px, 10vw, 190px); font-weight: 500; letter-spacing: -.07em; line-height: .9; margin: auto 0 16px; transition: transform 1s var(--ease); transform-origin: 0 100%; }
.coupon:hover .coupon__v { transform: scale(1.04) rotate(-2deg); }
.coupon__l p:last-child { font-size: 16px; max-width: 300px; color: rgba(12, 13, 18, .7); }
.coupon__r {
  position: relative;
  border-left: 2px dashed rgba(12, 13, 18, .18);
  padding: 30px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.coupon__r::before, .coupon__r::after { content: ""; position: absolute; left: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); }
.coupon__r::before { top: -16px; }
.coupon__r::after { bottom: -16px; }
.coupon__r .mono { color: rgba(12, 13, 18, .5); writing-mode: vertical-rl; transform: rotate(180deg); }
.coupon--blue { background: var(--electric); color: #fff; }
.coupon--blue .mono, .coupon--blue .coupon__l p:last-child { color: rgba(255, 255, 255, .75); }
.coupon--blue .coupon__r { border-color: rgba(255, 255, 255, .35); }

/* ===== Отзывы ===== */
.reviews { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; padding: 150px var(--gut) 150px; }
.reviews__side { display: flex; flex-direction: column; justify-content: space-between; }
.reviews__nav { display: flex; align-items: center; gap: 8px; }
.reviews__nav .mono { margin-left: 12px; color: rgba(12, 13, 18, .5); }
.rnav { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: background .4s, color .4s; }
.rnav:hover { background: var(--ink); color: #fff; }
.rslides { position: relative; min-height: 360px; }
.rslide { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.rslide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.rslide blockquote { font-size: clamp(32px, 3.3vw, 58px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; max-width: 1060px; }
.rslide blockquote .w { display: inline-block; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .9s var(--ease); }
.rslide.is-active blockquote .w { opacity: 1; transform: none; }
.q { color: var(--electric); }
.rslide figcaption { display: flex; align-items: center; gap: 14px; margin-top: 40px; opacity: 0; transition: opacity .8s .4s; }
.rslide.is-active figcaption { opacity: 1; }
.rslide figcaption b { display: block; font-weight: 600; }
.rslide figcaption span:not(.ava) { font-size: 13px; color: rgba(12, 13, 18, .55); }
.rprog { height: 2px; background: var(--line); margin-top: 50px; }
.rprog i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 40px var(--gut) 220px; }
.faq__side .muted { max-width: 320px; margin: 30px 0 14px; font-size: 15px; }
.faq__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; font-size: 16px; font-weight: 500; }
.acc--light .acc__item { border-color: var(--line); }
.acc--light .acc__row { grid-template-columns: 1fr 40px; padding: 22px 0; }
.acc--light .acc__row .t { font-size: 24px; letter-spacing: -.03em; }
.acc--light .pm { width: 36px; height: 36px; border-color: var(--line); }
.acc--light .acc__item.is-open .pm { background: var(--ink); color: #fff; border-color: var(--ink); }
.acc--light .acc__in.one { display: block; }
.acc--light .acc__in.one p { max-width: 640px; font-size: 16px; color: rgba(12, 13, 18, .65); padding: 0 0 26px; }

/* ===== Контакт ===== */
.contact { padding: 110px var(--gut) 24px; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; }
.contact .label { color: rgba(255, 255, 255, .7); }
.contact .display { font-size: clamp(52px, 8.6vw, 160px); white-space: nowrap; }
.contact__l { display: flex; flex-direction: column; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: auto; padding-top: 80px; }
.contact__info .mono { color: rgba(255, 255, 255, .65); }
.contact__info .dim { color: rgba(255, 255, 255, .5); margin-top: 10px; }
.big-link { display: inline-block; font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; margin-top: 10px; border-bottom: 1px solid rgba(255, 255, 255, .4); }
/* мессенджеры — тем же кеглем, что и телефон, чтобы всё стояло на одной линии */
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.links a { border-bottom: 1px solid rgba(255, 255, 255, .4); transition: border-color .3s; }
.links a:hover, .big-link:hover { border-color: #fff; }

.form {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form__lbl { color: rgba(12, 13, 18, .45); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* ставка для калькулятора: на сайте скрыта, видна и правится в режиме правки */
.chip__rate { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; }
.field .mono { color: rgba(12, 13, 18, .45); }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  font-size: 17px;
  padding: 10px 0 8px;
  outline: none;
  resize: none;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--electric); }
.field.is-err input { border-color: var(--signal); }
.form__note { font-size: 12px; color: rgba(12, 13, 18, .5); margin-top: -8px; }
.form__note a { color: rgba(12, 13, 18, .75); text-decoration: underline; text-decoration-color: rgba(12, 13, 18, .3); text-underline-offset: 2px; transition: color .3s, text-decoration-color .3s; }
.form__note a:hover { color: var(--electric); text-decoration-color: var(--electric); }
.form__done {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s;
}
.form__done h4 { font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.form__done p { color: rgba(12, 13, 18, .6); max-width: 260px; }
.form.is-sent .form__done { opacity: 1; pointer-events: auto; }

/* ===== Подвал ===== */
.foot { margin-top: 120px; }
/* логотип как в шапке — только на телефоне, вместо больших букв */
.foot__logo { display: none; }
.foot__mark {
  font-size: 10.4vw;
  font-weight: 500;
  overflow: hidden;
  user-select: none;
  letter-spacing: -.075em;
  line-height: .8;
  white-space: nowrap;
  text-align: center;
  margin: 0 -.02em;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .8);
}
.foot__links { display: flex; gap: 22px; }
.foot__dev { color: rgba(255, 255, 255, .5); transition: color .3s; }
.foot__dev:hover { color: #fff; }
.foot .dim { color: rgba(255, 255, 255, .5); }
.foot__mark span { font-variation-settings: "wght" 300; }
/* у последней буквы без отрицательного трекинга — иначе её край вылезает за рамку и обрезается */
.foot__mark span:last-child { letter-spacing: 0; }

/* ===== Шторка для дальних переходов по якорям ===== */
.wipe {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 95;
  pointer-events: none;
  background: var(--electric);
  transform: translateY(100%);
  /* в покое шторка невидима: на телефоне, когда прячется адресная строка, её край выглядывал снизу голубой полосой */
  visibility: hidden;
}
.wipe.is-in, .wipe.is-out { visibility: visible; }
.wipe.is-in { transform: translateY(0); transition: transform .42s cubic-bezier(.7, 0, .3, 1); }
.wipe.is-out { transform: translateY(-100%); transition: transform .65s cubic-bezier(.7, 0, .3, 1); }
/* форма подмигивает, когда к ней пришли по кнопке */
.form.is-ping { animation: formPing 1.2s var(--ease); }
@keyframes formPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); }
  100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
}

/* ===== Баннер cookie ===== */
.cookie {
  position: fixed;
  right: var(--gut);
  bottom: var(--gut);
  z-index: 90;
  width: min(360px, calc(100vw - var(--gut) * 2));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(12, 13, 18, .3), 0 0 0 1px rgba(12, 13, 18, .06);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .9s var(--ease);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie__t { font-size: 11.5px; line-height: 1.4; color: rgba(12, 13, 18, .65); text-wrap: pretty; }
.cookie__t a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(12, 13, 18, .3); text-underline-offset: 2px; }
.cookie__t a:hover { color: var(--electric); }
.cookie__ok {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background .3s;
}
.cookie__ok:hover { background: var(--electric); }
@media (max-width: 600px) {
  .cookie { left: var(--gut); width: auto; }
}


/* ===== Галочка согласия ===== */
.agree { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12px; line-height: 1.4; color: rgba(12, 13, 18, .6); }
.agree input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.agree__box {
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: -1px;
  border-radius: 6px;
  border: 1.5px solid rgba(12, 13, 18, .22);
  background: #fff;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.agree__box::after {
  content: "";
  width: 10px; height: 8px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.7 6.8 9 1.2' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.7 6.8 9 1.2' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .15s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.agree input:checked + .agree__box { background: var(--electric); border-color: var(--electric); }
.agree input:checked + .agree__box::after { opacity: 1; transform: none; }
.agree:active .agree__box { transform: scale(.92); }
.agree input:focus-visible + .agree__box { box-shadow: 0 0 0 3px rgba(36, 56, 255, .3); }
.agree:hover .agree__box { border-color: var(--electric); }
.agree__t a { color: rgba(12, 13, 18, .8); text-decoration: underline; text-decoration-color: rgba(12, 13, 18, .3); text-underline-offset: 2px; }
.agree__t a:hover { color: var(--electric); }
.agree.is-err .agree__box { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 90, 54, .2); }
.agree.is-err .agree__t { color: var(--signal); }
.agree.shake .agree__box { animation: agreeShake .45s; }
@keyframes agreeShake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
/* на синем купоне */
.agree--light { color: rgba(255, 255, 255, .7); }
.agree--light .agree__box { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.agree--light .agree__box::after { background: var(--electric); }
.agree--light input:checked + .agree__box { background: #fff; border-color: #fff; }
.agree--light:hover .agree__box { border-color: #fff; }
.agree--light .agree__t a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.agree--light .agree__t a:hover { color: #fff; text-decoration-color: #fff; }
.agree--light.is-err .agree__box { border-color: #ffd2c7; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.agree--light.is-err .agree__t { color: #ffd2c7; }
.form__agree { margin-top: -6px; }
.form__note { margin-top: -12px; }

/* ===== Кнопка в момент отправки ===== */
.is-loading { pointer-events: none; }
.btn.is-loading .btn-ico svg { opacity: 0; }
.btn.is-loading .btn-ico { position: relative; }
.btn.is-loading .btn-ico::after,
.menu-form__row button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.menu-form__row button { position: relative; }
.menu-form__row button.is-loading svg { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Окно «Заявка у Руслана» ===== */
html.sent-open { overflow: hidden; }
.sent {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: var(--gut);
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s .6s;
}
.sent.is-in { pointer-events: auto; visibility: visible; transition: none; }
.sent__bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 18, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .5s;
}
.sent.is-in .sent__bg { opacity: 1; }
.sent__card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - var(--gut) * 2);
  overflow: auto;
  padding: 34px 32px 28px;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(12, 13, 18, .45);
  opacity: 0;
  transform: translateY(30px) scale(.96);
  transition: opacity .45s, transform .8s var(--ease);
}
.sent.is-in .sent__card { opacity: 1; transform: none; }
.sent__x {
  position: absolute;
  right: 16px; top: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  transition: background .3s, transform .5s var(--ease);
}
.sent__x i { position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.sent__x i + i { transform: rotate(-45deg); }
.sent__x:hover { background: #e2e4ea; transform: rotate(90deg); }

/* лампочка: при появлении «загорается» синим, вокруг расходится свечение */
.sent__lamp { position: relative; width: 76px; height: 76px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); }
.sent__lamp svg { position: relative; width: 44px; height: 44px; }
.sent__bulb { fill: transparent; stroke: rgba(12, 13, 18, .35); stroke-width: 2; transition: fill .4s .45s, stroke .4s .45s; }
.sent__base { stroke: rgba(12, 13, 18, .35); stroke-width: 2; transition: stroke .4s .45s; }
.sent__fil { stroke: rgba(12, 13, 18, .35); stroke-width: 1.6; transition: stroke .3s .45s; }
.sent__glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(36, 56, 255, .35), rgba(36, 56, 255, 0) 70%); opacity: 0; transform: scale(.6); }
.sent.is-in .sent__bulb { fill: var(--electric); stroke: var(--electric); }
.sent.is-in .sent__base { stroke: var(--ink); }
.sent.is-in .sent__fil { stroke: #fff; }
.sent.is-in .sent__glow { animation: glow 1.6s .5s var(--ease) both; }
@keyframes glow { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
.sent.is-in .sent__lamp { animation: lampOn .9s .4s both; }
@keyframes lampOn { 0%, 30% { background: var(--paper); } 12%, 40% { background: #e6e9ff; } 100% { background: #e6e9ff; } }

.sent__lbl { color: var(--ok); }
.sent__t { margin-top: 8px; font-size: 38px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.sent__txt { margin-top: 14px; font-size: 16px; line-height: 1.5; color: rgba(12, 13, 18, .7); }
.sent__txt b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.sent__disc { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: #e6e9ff; font-size: 14px; color: var(--electric); }
.sent__disc b { font-weight: 600; }
.sent__steps { margin-top: 22px; border-top: 1px solid var(--line); }
.sent__steps li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sent__steps .mono { color: var(--electric); }
.sent__cta { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sent__ok { width: 100%; justify-content: center; padding: 0 28px; }
.sent__callbtn { display: none; width: 100%; justify-content: space-between; }
.sent__call { font-size: 14px; color: rgba(12, 13, 18, .6); text-decoration: underline; text-decoration-color: rgba(12, 13, 18, .25); text-underline-offset: 3px; }
.sent__call:hover { color: var(--electric); }
/* появление содержимого по очереди */
.sent__card > *:not(.sent__x) { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .8s var(--ease); }
.sent.is-in .sent__card > *:not(.sent__x) { opacity: 1; transform: none; }
.sent.is-in .sent__lbl { transition-delay: .25s; }
.sent.is-in .sent__t { transition-delay: .3s; }
.sent.is-in .sent__txt { transition-delay: .36s; }
.sent.is-in .sent__disc { transition-delay: .42s; }
.sent.is-in .sent__steps { transition-delay: .48s; }
.sent.is-in .sent__cta { transition-delay: .54s; }

/* вариант «не ушла» */
.sent.is-error .sent__lbl { color: var(--signal); }
.sent.is-error .sent__steps, .sent.is-error .sent__ok, .sent.is-error .sent__call { display: none; }
.sent.is-error .sent__callbtn { display: inline-flex; }
.sent.is-error .sent__bulb { fill: transparent; stroke: rgba(12, 13, 18, .35); }
.sent.is-error .sent__fil, .sent.is-error .sent__base { stroke: rgba(12, 13, 18, .35); }
.sent.is-error .sent__glow, .sent.is-error .sent__lamp { animation: none; }

@media (max-width: 600px) {
  .sent { place-items: end center; padding: 10px; }
  .sent__card { padding: 28px 22px 22px; border-radius: 24px; }
  .sent__t { font-size: 32px; }
}

/* ===== Переход на электромонтаж ===== */
.montazh {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: end;
  margin-top: 70px;
  padding: 40px 40px 38px;
  border-radius: 28px;
  background: var(--electric);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform .8s var(--ease);
}
.montazh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 45%);
  opacity: .6;
  transition: opacity .6s;
}
.montazh:hover::before { opacity: 1; }
.montazh__lbl { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); }
.montazh__t { margin-top: 18px; font-size: clamp(44px, 5vw, 86px); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.montazh__d { margin-top: 18px; max-width: 520px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.montazh__r { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.montazh__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.montazh__tags li { font-size: 13px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); }
.montazh .btn-light { color: var(--ink); }
/* при наведении кнопка заливается чёрным — текст белый, иначе он пропадает */
.montazh .btn-light:hover { color: #fff; }
.montazh:hover .btn-ico { transform: rotate(-45deg); }
.montazh__art { position: absolute; right: -20px; top: -10px; width: 46%; z-index: -1; pointer-events: none; }
.montazh__flow { stroke-dasharray: 10 22; animation: flow 1.4s linear infinite; opacity: .55; }

.menu-extra {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: var(--electric);
  color: #fff;
  transition: background .3s;
}
.menu-extra b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.menu-extra .mono { display: block; margin-top: 3px; font-size: 10px; color: rgba(255, 255, 255, .7); }
.menu-extra__ico { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--electric); transition: transform .5s var(--ease); }
.menu-extra:hover { background: #1b2de0; }
.menu-extra:hover .menu-extra__ico { transform: rotate(-45deg); }

.form__hint { display: inline-block; margin-top: 10px; font-size: 13px; color: rgba(12, 13, 18, .55); }
.form__hint span { color: var(--electric); border-bottom: 1px solid rgba(36, 56, 255, .3); transition: border-color .3s; }
.form__hint:hover span { border-color: var(--electric); }

/* меню выросло на строку электромонтажа — на невысоких экранах ужимаем пункты, чтобы панель помещалась */
@media (max-height: 1000px) {
  .menu-label { font-size: 30px; }
  .menu-link { padding: 7px 0; }
  .menu-nav { margin-top: 8px; }
  .menu-extra { margin-top: 12px; padding-top: 10px; padding-bottom: 10px; }
  .menu-form { margin-top: 12px; padding: 14px; }
  .menu-foot { margin-top: 14px; }
}
@media (max-height: 840px) {
  .menu-label { font-size: 25px; }
  .menu-link { padding: 5px 0; }
  .menu-form__t { font-size: 13px; }
  .menu-form__legal { margin-top: 8px; }
}

/* «Позвоню с этого номера» — чтобы клиент взял трубку с незнакомого номера */
.sent__from { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.sent__fromlbl { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); }
.sent__fromnum { display: inline-block; margin-top: 8px; font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.sent__fromtxt { margin-top: 8px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.sent__save {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background .3s, color .3s;
}
.sent__save:hover { background: var(--electric); color: #fff; }
.sent.is-in .sent__from { transition-delay: .45s; }
.sent.is-error .sent__from { display: none; }
.sent__steps li { padding: 9px 0; font-size: 14px; }
.form__note b { font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) {
  .sent__lamp { width: 60px; height: 60px; margin-bottom: 14px; }
  .sent__lamp svg { width: 36px; height: 36px; }
  .sent__steps { margin-top: 16px; }
  .sent__fromnum { font-size: 24px; }
}
