/* =========================================================
   Manex — создание сайтов. Основные стили.
   Палитра меняется в :root — цвет бренда правится в одном месте.
   ========================================================= */

:root {
  --bg: #0a0c10;
  --bg-2: #0e1116;
  --surface: #14181f;
  --surface-2: #1a1f28;
  --line: #242a35;
  --line-soft: #1c222b;

  --text: #eef1f6;
  --muted: #9aa5b4;
  --muted-2: #6e7889;

  --accent: #c8f751;
  --accent-ink: #10140a;
  --accent-soft: rgba(200, 247, 81, 0.12);
  --accent-2: #4da3ff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --container: 1200px;
  --header-h: 76px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

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

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Раскладка ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: .7;
}
.section-head--center .eyebrow::before { display: none; }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #d5ff6b; }

.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--light { background: rgba(255, 255, 255, .07); border-color: var(--line); }
.btn--light:hover { background: rgba(255, 255, 255, .12); }

.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.header.is-stuck { border-bottom-color: var(--line-soft); background: rgba(10, 12, 16, .95); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.04em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 700; letter-spacing: .02em; font-size: 1.02rem; }
.logo__tag { font-size: .68rem; color: var(--muted-2); letter-spacing: .09em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.nav a {
  font-size: .96rem;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .18s ease;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone { font-weight: 600; white-space: nowrap; font-size: .98rem; }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: var(--bg);
  padding: 32px 24px 48px;
  display: none;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 15px 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu__contacts { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.mobile-menu__contacts a { font-size: 1rem; padding: 4px 0; border: 0; font-weight: 500; }

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

.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 247, 81, .16), transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__note { font-size: .9rem; color: var(--muted-2); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  margin-top: 34px;
}
.hero__stats b { display: block; font-size: 1.9rem; letter-spacing: -.03em; }
.hero__stats span { font-size: .86rem; color: var(--muted-2); line-height: 1.4; display: block; }

/* Карточка-виджет справа */
.hero__panel {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero__panel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--muted-2);
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.metric-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.metric-row b { font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.metric-row i { font-style: normal; color: var(--accent); font-weight: 600; font-size: .95rem; }

.spark { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-bottom: 24px; }
.spark span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(200, 247, 81, .25));
  border-radius: 5px 5px 3px 3px;
  min-height: 10px;
  transform-origin: bottom;
  animation: grow .8s cubic-bezier(.22, 1, .36, 1) backwards;
}
.spark span:nth-child(n+1) { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes grow { from { transform: scaleY(.05); opacity: .2; } }

.hero__panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero__panel-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; color: var(--muted); }
.hero__panel-list b { color: var(--text); font-weight: 600; }

/* ---------- Лента логотипов / доверие ---------- */

.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: 1rem; font-weight: 600; letter-spacing: .05em;
  color: var(--muted-2); white-space: nowrap; text-transform: uppercase;
}
@keyframes slide { to { transform: translateX(-50%); } }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .22s ease, transform .22s ease, background-color .22s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-4px); background: var(--surface-2); }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }

.card__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.card__list li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--muted); }
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .8;
}
.card__price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .93rem; color: var(--muted-2); }
.card__price b { color: var(--text); font-size: 1.15rem; }

/* Услуга с крупным номером */
.svc { position: relative; overflow: hidden; }
.svc__num {
  position: absolute; top: 16px; right: 22px;
  font-size: 3.4rem; font-weight: 800;
  color: rgba(255, 255, 255, .04);
  letter-spacing: -.05em;
  pointer-events: none;
}

/* ---------- Оффер «сайт + реклама» ---------- */

.offer {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(200, 247, 81, .13), transparent 70%),
    linear-gradient(150deg, var(--surface), var(--bg-2));
  padding: 52px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
}
.offer h2 { margin-bottom: 16px; }
.offer p { color: var(--muted); }
.offer__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.offer__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.offer__list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.offer__box {
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.offer__box .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; display: block; }
.offer__box .price small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted-2); letter-spacing: 0; margin-bottom: 4px; }
.offer__box .term { color: var(--muted); font-size: .92rem; margin: 12px 0 22px; }

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

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step__num {
  counter-increment: step;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.step__num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; max-width: 760px; font-size: .97rem; }
.step__meta { display: inline-block; margin-top: 10px; font-size: .84rem; color: var(--muted-2); }

/* ---------- Портфолио ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}
.filter:hover { color: var(--text); border-color: var(--muted-2); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.filter span { opacity: .55; font-size: .85em; margin-left: 4px; }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.works--wide { grid-template-columns: repeat(2, 1fr); }

.work {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.work:hover { transform: translateY(-6px); border-color: var(--line); }
.work.is-hidden { display: none; }

.work__media { position: relative; aspect-ratio: 10 / 7; overflow: hidden; background: var(--bg-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.work:hover .work__media img { transform: scale(1.045); }
.work__tags { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.work__tag {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: rgba(6, 8, 11, .72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}
.work__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.work__desc { color: var(--muted); font-size: .93rem; margin: 0 0 18px; flex: 1; }
.work__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: .88rem; color: var(--muted-2);
}
.work__foot b { color: var(--accent); font-weight: 600; }
.work__link { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: .9rem; }
.work__link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.work:hover .work__link svg { transform: translateX(4px); }

.works-empty { display: none; padding: 48px 0; text-align: center; color: var(--muted); }
.works-empty.is-shown { display: block; }

/* ---------- Результаты кейса ---------- */

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.result b { display: block; font-size: 2.1rem; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.result span { font-size: .92rem; color: var(--muted); }

.case-hero { padding: 56px 0 40px; }
.case-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted-2); font-size: .92rem; margin-top: 18px; }
.case-hero__meta b { color: var(--text); font-weight: 600; }
.case-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }

.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 20px; }
.prose strong { color: var(--text); }

/* ---------- Отзывы ---------- */

.quote {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.quote__stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; font-size: .95rem; }
.quote p { font-size: 1rem; flex: 1; }
.quote__author { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.quote__ava {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.quote__author b { display: block; font-size: .95rem; }
.quote__author span { font-size: .84rem; color: var(--muted-2); }

/* ---------- FAQ ---------- */

.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  background: none; border: 0;
  text-align: left;
  font-size: 1.08rem; font-weight: 600;
  cursor: pointer;
}
.faq__q:hover { color: var(--accent); }
.faq__q i {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease;
}
.faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__q i { transform: rotate(180deg); border-color: var(--accent); }
.faq__item.is-open .faq__q i::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 760px; }

/* ---------- Формы ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; color: var(--muted); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font-family: inherit;
  font-size: .98rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; background: rgba(0, 0, 0, .45); }
.field.has-error input, .field.has-error textarea { border-color: #ff6b6b; }
.field__error { display: none; font-size: .82rem; color: #ff8585; }
.field.has-error .field__error { display: block; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__stack { display: grid; gap: 16px; }
.form__note { font-size: .82rem; color: var(--muted-2); }
.form__note a { text-decoration: underline; }
.form__status { display: none; font-size: .93rem; padding: 12px 16px; border-radius: var(--radius-sm); }
.form__status.is-shown { display: block; }
.form__status--ok { background: var(--accent-soft); color: var(--accent); }
.form__status--err { background: rgba(255, 107, 107, .12); color: #ff8585; }

/* Секция с формой */
.cta-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 260px at 85% 10%, rgba(77, 163, 255, .12), transparent 70%),
    radial-gradient(600px 260px at 10% 90%, rgba(200, 247, 81, .12), transparent 70%),
    var(--surface);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.cta-block h2 { margin-bottom: 14px; }
.cta-block p { color: var(--muted); }
.cta-block__contacts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.cta-block__contacts li { display: flex; align-items: center; gap: 13px; font-size: 1rem; }
.cta-block__contacts svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

/* ---------- Модальное окно ---------- */

.modal {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 9, .78);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow);
  animation: pop .25s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pop { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal h3 { margin-bottom: 6px; }
.modal__sub { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }

/* ---------- Цены ---------- */

.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tariff {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.tariff--hot { border-color: var(--accent); background: var(--surface-2); }
.tariff__badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px;
}
.tariff h3 { margin-bottom: 4px; }
.tariff__sub { color: var(--muted-2); font-size: .9rem; margin-bottom: 22px; }
.tariff__price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.tariff__price small { font-size: .95rem; font-weight: 500; color: var(--muted-2); }
.tariff__term { font-size: .88rem; color: var(--muted-2); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.tariff ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; }
.tariff li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--muted); }
.tariff li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 15px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tariff li.is-off { color: var(--muted-2); opacity: .55; }
.tariff li.is-off::before { border-color: var(--muted-2); }

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

.footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__about { color: var(--muted); font-size: .94rem; max-width: 320px; margin: 18px 0 0; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--muted); font-size: .95rem; }
.footer a:hover { color: var(--accent); }
.footer__soc { display: flex; gap: 10px; margin-top: 18px; }
.footer__soc a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.footer__soc a:hover { border-color: var(--accent); }
.footer__soc svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: .86rem; color: var(--muted-2);
}

/* ---------- Плавающая кнопка ---------- */

.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .95rem;
  border: 0; cursor: pointer;
  box-shadow: 0 14px 34px -10px rgba(200, 247, 81, .5);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.fab.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Анимация появления ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Хлебные крошки и служебное ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .87rem; color: var(--muted-2); padding: 24px 0 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

.page-head { padding: 48px 0 8px; }
.page-head h1 { margin-bottom: 18px; }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }

.thanks { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks__icon {
  width: 84px; height: 84px; margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.thanks__icon svg { width: 40px; height: 40px; }
.thanks p { color: var(--muted); max-width: 520px; margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   Адаптив
   ========================================================= */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { max-width: 520px; }
  .offer { grid-template-columns: 1fr; padding: 40px; }
  .cta-block { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .works, .grid--3, .grid--4, .tariffs, .results { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 68px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header__inner { padding: 0 18px; }
  .works, .works--wide, .grid--2, .grid--3, .grid--4, .tariffs, .results { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .offer, .cta-block, .modal__box { padding: 28px 22px; }
  .card { padding: 24px; }
  .section-head { margin-bottom: 32px; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero__cta .btn { width: 100%; }
  .fab { right: 14px; bottom: 14px; padding: 12px 18px; }
  .footer__top { grid-template-columns: 1fr; }
  .filters { gap: 8px; }
  .filter { padding: 8px 15px; font-size: .87rem; }
}
