/* ============================================================
   BINDUS·DIGITAL — портфолио
   Тёмная тема, акцент: фиолетово-голубой градиент
   ============================================================ */

/* ---------- Шрифты ----------
   Свои файлы вместо fonts.googleapis.com: у внешнего сервиса браузер сначала
   тянет CSS с одного домена, потом сам шрифт с другого — два лишних соединения
   и рендер стоит всё это время. Здесь оба шрифта переменные (один файл на все
   начертания), лежат рядом с сайтом и предзагружаются прямо из <head>.
   Unbounded нужен только заголовкам, поэтому урезан до нужных символов.
   unicode-range оставлен: латиница и кириллица качаются независимо. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  /* Диапазон сужен ровно до того, что осталось в файле: из всей латиницы-ext
     на сайте встречается только знак рубля, а ради него тянуть полный набор
     ни к чему. Лишние символы браузер просто не станет здесь искать. */
  unicode-range: U+0100-017F, U+2020-2021, U+20A0-20C0, U+2113;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201F, U+2026, U+2030, U+2039-203A, U+20AC, U+20BD, U+2192, U+2212;
}

:root {
  --bg: #07090f;
  --bg-2: #0b0f1a;
  --card: #101624;
  --card-2: #131b2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --txt: #eaf0ff;
  --muted: #93a0bc;
  --ac-1: #7c6cff;
  --ac-2: #38d4ff;
  --grad: linear-gradient(120deg, #7c6cff, #38d4ff);
  --ok: #3ddc97;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 100% - 40px); }

::selection { background: rgba(124, 108, 255, 0.4); }

/* ---------- Клавиатурная навигация ---------- */
/* :focus-visible, а не :focus — рамка появляется при Tab и не мешает мыши */
:focus-visible {
  outline: 2px solid var(--ac-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .filter:focus-visible, .fab:focus-visible { outline-offset: 4px; }

/* ссылка «к содержимому» — первая по Tab, видна только при фокусе */
.skip {
  position: fixed;
  top: 12px; left: 50%;
  transform: translate(-50%, -200%);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #060810;
  font-weight: 800; font-size: 14px;
  transition: transform 0.2s ease;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- Типографика ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ac-2);
  margin-bottom: 14px;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__sub { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #060810;
  box-shadow: 0 10px 30px -10px rgba(124, 108, 255, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(56, 212, 255, 0.5); }
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--txt);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--ac-1); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Промо-полоса ---------- */
/* Высота меняется от переносов текста, поэтому её измеряет скрипт и кладёт
   в --promo-h: от неё пляшут отступ шапки, hero и якорный скролл. */
.promo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 101;
  background: linear-gradient(120deg, rgba(124, 108, 255, 0.22), rgba(56, 212, 255, 0.18)), var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.promo[hidden] { display: none; }
.promo__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 8px 0;
}
.promo__text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--txt);
}
.promo__text b { font-weight: 700; }
.promo__more { color: var(--muted); }
.promo__cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #07090f;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(124, 108, 255, 0.9); }
.promo__close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.promo__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--txt); }

html.has-promo { scroll-padding-top: calc(96px + var(--promo-h, 46px)); }
html.has-promo .hdr { top: var(--promo-h, 46px); }
html.has-promo .hero { padding-top: calc(clamp(140px, 18vw, 200px) + var(--promo-h, 46px)); }

@media (max-width: 860px) {
  .promo__more { display: none; }
}
@media (max-width: 560px) {
  .promo__text { font-size: 12.5px; }
  .promo__cta { padding: 7px 13px; font-size: 12px; }
}

/* ---------- Шапка ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(124, 108, 255, 0.8);
}
.logo__text { letter-spacing: 0.06em; font-size: 15px; }
.logo__dot { color: var(--ac-2); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--txt); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span {
  width: 22px; height: 2px; background: var(--txt); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 7vw, 90px);
  overflow: hidden;
}
/* Свечение за первым экраном. Раньше здесь был filter: blur(90px) — на слабых
   телефонах это самый дорогой пиксель на странице, а рисуется он ровно там, где
   браузер меряет LCP. Размытие убрано, мягкость набрана самим градиентом:
   картинка та же, работы для GPU почти нет. */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}
.hero__orb--1 {
  width: 660px; height: 660px;
  background: radial-gradient(circle closest-side, rgba(124, 108, 255, 0.24), rgba(124, 108, 255, 0.1) 48%, transparent 88%);
  top: -230px; right: -170px;
}
.hero__orb--2 {
  width: 580px; height: 580px;
  background: radial-gradient(circle closest-side, rgba(56, 212, 255, 0.17), rgba(56, 212, 255, 0.07) 48%, transparent 88%);
  bottom: -260px; left: -200px;
}

.hero__content { max-width: 760px; position: relative; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 26px;
}
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.6vw, 58px);
  letter-spacing: 0;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(48px, 6vw, 72px);
}
.stat {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: var(--r);
  padding: 22px 20px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  white-space: nowrap;
}
.stat__label { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Бегущая строка ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.marquee__track i { color: var(--ac-1); font-style: normal; font-size: 10px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Карточки услуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card), var(--bg-2));
  border-radius: var(--r);
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 108, 255, 0.45);
  box-shadow: var(--shadow);
}

.card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(124, 108, 255, 0.12);
  color: var(--ac-2);
}
.card__icon svg { width: 24px; height: 24px; }

.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(124, 108, 255, 0.4);
  color: #a99cff;
}
.tag--cyan { border-color: rgba(56, 212, 255, 0.4); color: #7ce0ff; }
.tag--violet { border-color: rgba(61, 220, 151, 0.4); color: #6fe7b3; }

.card h3 { font-size: 19px; margin-bottom: 14px; }

.card__list { flex: 1; display: grid; gap: 8px; margin-bottom: 20px; }
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.85;
}

.card__price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
}
.card__price b { font-size: 20px; font-weight: 800; }
.card__price span { font-size: 13px; color: var(--muted); }

.card__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.card__link {
  font-weight: 700; font-size: 14.5px; color: var(--ac-2);
  transition: gap 0.2s ease, color 0.2s ease;
}
.card__link:hover { color: #8fe8ff; }
.card__link--soft { color: var(--muted); font-weight: 600; }
.card__link--soft:hover { color: var(--txt); }

.card--hot { border-color: rgba(124, 108, 255, 0.5); }
.card--hot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  background: radial-gradient(420px 180px at 80% 0%, rgba(124, 108, 255, 0.16), transparent 70%);
}
.card__badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--grad);
  color: #060810;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  z-index: 1;
}

/* Широкая карточка-акцент на всю строку сетки */
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) auto;
  gap: 12px 40px;
  align-items: center;
  border-color: rgba(56, 212, 255, 0.35);
}
.card--wide::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  background: radial-gradient(520px 200px at 12% 0%, rgba(56, 212, 255, 0.12), transparent 70%);
}
.card__lead { font-size: 14px; color: var(--muted); margin-top: 12px; }
.card--wide h3 { margin-bottom: 0; }
.card--wide .card__list { margin-bottom: 0; }
.card--wide .card__price { border-top: 0; padding-top: 0; }
.card__wide-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- Пакеты ---------- */
.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pack {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pack:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pack--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-2), var(--card-2)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 70px -30px rgba(124, 108, 255, 0.45);
}
.pack__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #060810;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.pack__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 24px;
  margin-bottom: 8px;
}
.pack__for { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; min-height: 44px; }
.pack__list { flex: 1; display: grid; gap: 10px; margin-bottom: 24px; }
.pack__list li {
  position: relative; padding-left: 26px; font-size: 14.5px;
}
.pack__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.pack__price { margin-bottom: 20px; }
.pack__price b { display: block; font-size: 26px; font-weight: 800; }
.pack__price span { font-size: 13px; color: var(--muted); }

/* ---------- Калькулятор сметы ---------- */
.calc {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card), var(--bg-2));
  border-radius: 22px;
  overflow: hidden;
}
.calc__head {
  padding: 28px clamp(20px, 3vw, 32px) 22px;
  border-bottom: 1px solid var(--line);
}
.calc__head h3 { font-size: 21px; margin-bottom: 8px; }
.calc__head p { color: var(--muted); font-size: 14.5px; max-width: 62ch; }

/* ступени скидки за пакет */
.calc__tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.calc__tiers li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.calc__tiers b { font-weight: 600; }
.calc__tiers span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc__tiers-note { margin-top: 12px; font-size: 12.5px; }

.calc__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
}
.calc__opts {
  display: grid;
  gap: 26px;
  padding: 26px clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--line);
}
.calc__group { border: 0; display: grid; gap: 8px; }
.calc__label {
  padding: 0;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ac-2);
  margin-bottom: 4px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.opt:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.opt input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  accent-color: var(--ac-1);
  cursor: pointer;
}
.opt b { display: block; font-size: 14.5px; font-weight: 700; }
.opt i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.opt:has(input:checked) {
  border-color: rgba(124, 108, 255, 0.55);
  background: rgba(124, 108, 255, 0.08);
}

.calc__out {
  padding: 26px clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc__sum, .calc__term {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.calc__sum span, .calc__term span { color: var(--muted); font-size: 13.5px; }
.calc__sum b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 27px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.calc__sum--month b { font-size: 19px; }
.calc__sum[hidden] { display: none; }

/* строка скидки и подсказка «до следующей ступени» */
.calc__disc {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: -6px;
  font-size: 13.5px;
  color: var(--ok);
}
.calc__disc[hidden] { display: none; }
.calc__disc i {
  font-style: normal;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.14);
}
.calc__disc b { font-weight: 700; white-space: nowrap; }
.calc__nudge {
  margin-top: -6px;
  font-size: 12.5px;
  color: var(--muted);
}
.calc__nudge[hidden] { display: none; }
.calc__term {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.calc__term b { font-size: 15px; white-space: nowrap; }

.calc__list {
  flex: 1;
  display: grid;
  gap: 7px;
  align-content: start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  min-height: 96px;
}
.calc__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.calc__list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad);
}
.calc__empty::before { display: none; }
.calc__empty { padding-left: 0 !important; opacity: 0.6; }
.calc__note { font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .calc__body { grid-template-columns: 1fr; }
  .calc__opts { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Работы ---------- */
.section__head--wide { max-width: 760px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter span {
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.filter:hover { color: var(--txt); border-color: var(--ac-1); }
.filter.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #060810;
}
.filter.is-active span { background: rgba(6, 8, 16, 0.22); color: #060810; }

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work.is-hidden { display: none; }
.work {
  display: block;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.work:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 212, 255, 0.45);
  box-shadow: var(--shadow);
}

.work__shot { position: relative; background: #0a0d16; }
.work__bar {
  display: flex; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.work__bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.work__bar i:first-child { background: rgba(255, 99, 99, 0.6); }
.work__bar i:nth-child(2) { background: rgba(255, 200, 90, 0.6); }
.work__bar i:nth-child(3) { background: rgba(90, 220, 130, 0.6); }

.work__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-2);
}
/* скелетон, пока сайт в iframe не загрузился */
.work__frame::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.06) 45%,
      rgba(255, 255, 255, 0) 70%)
    var(--card-2);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
  transition: opacity 0.4s ease;
}
.work__frame.is-loaded::before { opacity: 0; animation: none; }
@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.work__frame iframe {
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  /* масштаб выставляет js/main.js под ширину карточки */
  transform: scale(0.28);
  pointer-events: none;
  background: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.work__frame.is-loaded iframe { opacity: 1; }
.work__frame::after {
  content: "Открыть сайт ↗";
  position: absolute; inset: 0;
  z-index: 2; /* поверх скелетона */
  display: grid; place-items: center;
  background: rgba(7, 9, 15, 0);
  color: transparent;
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease;
}
.work:hover .work__frame::after {
  background: rgba(7, 9, 15, 0.55);
  color: var(--txt);
}

.work__meta { padding: 20px 22px 24px; }
.work__meta h3 { font-size: 18px; letter-spacing: 0.04em; margin-bottom: 6px; }
.work__meta p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.work__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.work__tags span {
  font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ---------- Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(124, 108, 255, 0.4); }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 10px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Условия работы ---------- */
.terms {
  margin-top: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card), var(--bg-2));
  border-radius: 22px;
  padding: clamp(26px, 3.5vw, 36px);
}
.terms__head { max-width: 640px; margin-bottom: 26px; }
.terms__head h3 { font-size: 21px; margin-bottom: 8px; }
.terms__head p { color: var(--muted); font-size: 14.5px; }

.terms__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}
.terms__list li {
  position: relative;
  padding-left: 32px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.terms__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(61, 220, 151, 0.14);
  color: var(--ok);
  font-size: 12px; font-weight: 800;
}
.terms__list b {
  display: block;
  color: var(--txt);
  font-size: 15.5px;
  margin-bottom: 5px;
}

@media (max-width: 1060px) { .terms__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .terms__list { grid-template-columns: 1fr; } }

/* ---------- Обо мне ---------- */
.about {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about__text h2 { margin-bottom: 22px; }
.about__text p { color: var(--muted); margin-bottom: 16px; max-width: 560px; }
.about__points { display: grid; gap: 12px; margin-top: 26px; }
.about__points li {
  position: relative; padding-left: 30px; font-weight: 600; font-size: 15px;
}
.about__points li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(61, 220, 151, 0.14);
  color: var(--ok);
  font-size: 12px; font-weight: 800;
}

.about__card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-2), var(--bg-2));
  border-radius: 22px;
  padding: 30px 26px;
  text-align: center;
  position: sticky;
  top: 100px;
}
.about__ava {
  width: 92px; height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #060810;
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700;
  box-shadow: 0 14px 34px -12px rgba(124, 108, 255, 0.7);
}
.about__name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.about__role { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.about__tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.about__tools span {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq details[open] { border-color: rgba(124, 108, 255, 0.45); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-weight: 700; font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  position: relative;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 2px;
  background: var(--ac-2);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details[open] .faq__icon { background: rgba(124, 108, 255, 0.14); }
.faq__body { padding: 0 22px 20px; }
.faq__body p { color: var(--muted); font-size: 15px; }

/* ---------- Контакты ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contact__text h2 { margin-bottom: 4px; }
.contact__links { display: grid; gap: 12px; margin-top: 28px; }
.clink {
  display: flex; align-items: center; gap: 15px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 15px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: left;
  width: 100%;
}
.clink:hover { transform: translateX(4px); border-color: rgba(56, 212, 255, 0.5); }
.clink__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(56, 212, 255, 0.1);
  color: var(--ac-2);
}
.clink__icon svg { width: 22px; height: 22px; }
.clink b { display: block; font-size: 15px; }
.clink i { font-style: normal; font-size: 13px; color: var(--muted); }

.form {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-2), var(--bg-2));
  border-radius: 22px;
  padding: 30px 28px;
}
.form__row { margin-bottom: 18px; }
.form label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form input:not([type="checkbox"]), .form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--txt);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(147, 160, 188, 0.6); }
.form input:not([type="checkbox"]):focus, .form textarea:focus {
  outline: none;
  border-color: var(--ac-1);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.18);
}
.form__note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.form__note a { color: var(--ac-2); text-decoration: underline; }
.form__note.is-error { color: #ffb4b4; }

/* поле-ловушка для ботов: убрано с экрана, но доступно для автозаполнения бота */
.form__trap {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form { position: relative; }

/* согласие на обработку данных — требование модерации Директа.
   Селектор с двумя классами, иначе выигрывает общее правило `.form label` */
.form .form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 20px;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--ac-1);
  cursor: pointer;
}
.form__check a { color: var(--ac-2); text-decoration: underline; }
.form__check.is-error { color: #ffb4b4; }

/* поле с ошибкой валидации */
.form input.is-error, .form textarea.is-error {
  border-color: rgba(255, 120, 120, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.12);
}

/* состояние отправки */
.form.is-sending { opacity: 0.6; pointer-events: none; }

/* экран «заявка отправлена» */
.form__done {
  border: 1px solid rgba(61, 220, 151, 0.4);
  background: linear-gradient(165deg, var(--card-2), var(--bg-2));
  border-radius: 22px;
  padding: 42px 28px;
  text-align: center;
}
.form__done[hidden] { display: none; }
.form__done-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.14);
  color: var(--ok);
}
.form__done-icon svg { width: 28px; height: 28px; }
.form__done h3 { font-size: 21px; margin-bottom: 10px; }
.form__done p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.form__done a { color: var(--ac-2); text-decoration: underline; }

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: 56px;
}
.footer__in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 40px;
}
.footer__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer__col b { font-size: 14px; margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--txt); }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 240px; }
.footer__brand .logo { margin-bottom: 6px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.footer__up { color: var(--muted); }
.footer__up:hover { color: var(--txt); }

/* ============================================================
   Страницы услуг (/uslugi/…)
   ============================================================ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { color: var(--muted); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--ac-2); }
.crumbs span[aria-current] { color: var(--txt); }
.crumbs i { font-style: normal; opacity: 0.45; }

.lead-hero { padding: clamp(120px, 15vw, 160px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.lead-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 4.6vw, 46px);
  letter-spacing: 0;
  margin-bottom: 20px;
  max-width: 15ch;
}
.lead-hero__sub { color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); max-width: 640px; margin-bottom: 30px; }
.lead-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* «что входит» — плотный список с галочками */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--muted);
}
.checks li b { color: var(--txt); font-weight: 700; }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(61, 220, 151, 0.14);
  color: var(--ok);
  font-size: 12px; font-weight: 800;
}

/* прайс-строки: вариант работы — что внутри — цена */
.tiers { display: grid; gap: 14px; }
.tier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 28px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 24px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tier:hover { border-color: rgba(124, 108, 255, 0.4); transform: translateY(-3px); }
.tier h3 { font-size: 18px; margin-bottom: 8px; }
.tier p { color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.tier__price { text-align: right; white-space: nowrap; }
.tier__price b { display: block; font-size: 21px; font-weight: 800; }
.tier__price span { font-size: 13px; color: var(--muted); }

/* текстовые блоки страниц услуг */
.prose { max-width: 720px; }
.prose p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.prose p b, .prose p strong { color: var(--txt); }
.prose h3 { font-size: 19px; margin: 30px 0 12px; }
.prose ul { display: grid; gap: 10px; margin-bottom: 18px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15.5px; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--grad); opacity: 0.85;
}

/* перелинковка между услугами */
.xlinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xlink {
  display: block;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.xlink:hover { transform: translateY(-4px); border-color: rgba(56, 212, 255, 0.45); }
.xlink b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.xlink span { color: var(--muted); font-size: 14px; }
.xlink i { display: block; margin-top: 12px; color: var(--ac-2); font-style: normal; font-weight: 700; font-size: 14px; }

/* блок с формой в конце страницы услуги */
.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }

@media (max-width: 860px) {
  .checks { grid-template-columns: 1fr; }
  .xlinks { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; }
  .tier__price { text-align: left; }
}

/* ---------- Плавающая кнопка «Написать» ---------- */
.fab {
  display: none;
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #060810;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 14px 34px -10px rgba(124, 108, 255, 0.75);
}
.fab svg { width: 19px; height: 19px; }
.fab:active { transform: scale(0.96); }

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--card-2);
  border: 1px solid rgba(61, 220, 151, 0.5);
  color: var(--txt);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Появление при скролле ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .work__frame::before { animation: none; }
  .chip__dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .packs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pack__for { min-height: 0; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  /* Широкая карточка складывается в обычную колонку */
  .card--wide { display: flex; }
  .card--wide .card__list { margin-bottom: 4px; }
  .card--wide .card__price { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 0; }
  .card__lead { margin-bottom: 14px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 9, 15, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .hdr__cta { display: none; }
  .fab { display: inline-flex; } /* заменяет кнопку из шапки, которая скрыта */

  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; max-width: 420px; }
  .contact { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
  /* minmax(0,1fr) + min-width, иначе неразрывное «0 посредников»
     распирает колонку и текст уезжает за край экрана */
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px 12px; min-width: 0; }
  .stat__num { font-size: 15px; white-space: normal; line-height: 1.25; }
  .stat__label { font-size: 12.5px; }
}
