/* =========================================================
   borshchenko.ru — лендинг частного веб-разработчика
   ========================================================= */

:root {
  --blue: #2f5bea;
  --blue-hover: #2149cf;
  --blue-deep: #1a2f86;
  --blue-50: #f3f6ff;
  --blue-100: #e3eaff;
  --blue-200: #c9d6ff;
  --sky: #6ea8ff;

  --ink: #0d1733;
  --ink-2: #44506e;
  --muted: #7a85a1;
  --line: #e5eaf5;
  --bg: #ffffff;
  --tint: #f6f8fe;

  --ok: #16a36a;
  --err: #e5484d;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(13, 23, 51, .06);
  --shadow: 0 10px 30px -12px rgba(26, 47, 134, .18);
  --shadow-lg: 0 30px 60px -20px rgba(26, 47, 134, .28);

  --container: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.ti { line-height: 1; }

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

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

.accent { color: var(--blue); }

/* ---------- Картинки с запасным вариантом ----------
   [data-art-wrap] получает .is-loaded, когда картинка загрузилась.
   Пока картинки нет — видно .art-fallback (иконка, макет, инициалы),
   а блоки .art-optional скрыты целиком. */

[data-art-wrap] > img[data-art] { display: none; }
[data-art-wrap].is-loaded > img[data-art] { display: block; }
[data-art-wrap].is-loaded > .art-fallback { display: none !important; }
.art-optional:not(.is-loaded) { display: none !important; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn .ti { font-size: 20px; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(47, 91, 234, .6);
}
.btn--primary:hover { background: var(--blue-hover); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue-200); color: var(--blue); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .88);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo__mark {
  display: block;
  flex-shrink: 0;
}
.logo__dot { color: var(--blue); }
.logo--sm { font-size: 17px; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a { position: relative; transition: color .2s; }
.nav a:hover { color: var(--blue); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, top .25s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(110, 168, 255, .28), transparent 70%),
    radial-gradient(500px 360px at 60% 90%, rgba(47, 91, 234, .12), transparent 70%),
    linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 91, 234, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 91, 234, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22, 163, 106, .15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 106, .15); }
  50% { box-shadow: 0 0 0 7px rgba(22, 163, 106, .05); }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero__lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 19px;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__facts {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hero__facts span { font-size: 14px; color: var(--muted); }

.hero__visual {
  position: relative;
  padding: 24px 24px 40px;
}
.hero__art {
  width: 112%;
  max-width: 600px;
  height: auto;
  margin: -4% -6% -2%;
  animation: float-art 7s ease-in-out infinite;
}
@keyframes float-art {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Макет браузера (пока нет картинки hero.png) */
.mock {
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(-10px); }
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
}
.mock__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e1e6f2; }
.mock__url {
  margin-left: 12px;
  flex: 1;
  height: 24px;
  border-radius: 8px;
  background: #eef1f9;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.mock__body { padding: 18px; display: grid; gap: 12px; }
.mock__hero {
  border-radius: 12px;
  padding: 26px 20px;
  background: linear-gradient(135deg, var(--blue) 0%, #6b93ff 100%);
  display: grid;
  gap: 10px;
}
.mock__line { height: 10px; border-radius: 6px; background: var(--blue-100); }
.mock__hero .mock__line { background: rgba(255, 255, 255, .85); }
.mock__line--lg { width: 78%; height: 14px; }
.mock__line--md { width: 55%; background: rgba(255, 255, 255, .5) !important; }
.mock__line--sm { width: 70%; }
.mock__line--xs { width: 45%; background: var(--line); }
.mock__btn { width: 96px; height: 26px; margin-top: 6px; border-radius: 8px; background: #fff; }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__card {
  height: 74px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip b { color: var(--ink); font-weight: 700; }
.chip__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 17px;
}
.chip__icon--ok { background: rgba(22, 163, 106, .1); color: var(--ok); }
.chip--1 { top: 0; right: -6px; animation: float-chip 6s ease-in-out infinite; }
.chip--2 { bottom: 64px; left: -18px; animation: float-chip 6s ease-in-out 1.5s infinite; }
.chip--3 { bottom: 0; right: 24px; animation: float-chip 6s ease-in-out 3s infinite; }
/* Когда стоит 3D-картинка, плашки переезжают, чтобы не закрывать её детали */
.hero__visual.is-loaded .chip--1 { top: 6%; left: 0; right: auto; }
.hero__visual.is-loaded .chip--2 { display: none; }
.hero__visual.is-loaded .chip--3 { bottom: 2%; right: auto; left: 34%; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Секции ---------- */

.section { padding: 112px 0; }
.section--tint { background: var(--tint); }

.section__head { margin-bottom: 56px; max-width: 720px; }
.section__head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.section__head--row .section__sub { max-width: 420px; margin: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.section--tint .eyebrow { background: #fff; }
.eyebrow--light { background: rgba(255, 255, 255, .12) !important; color: #fff; }

.section__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.03em;
}
.section__title--light { color: #fff; }
.section__sub { margin-top: 16px; color: var(--ink-2); font-size: 17px; }

/* ---------- Опыт (bento) ---------- */


.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento__card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.bento__card--path,
.bento__card--stack { grid-column: span 2; }

.bento__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}
.bento__label .ti { font-size: 18px; color: var(--blue); }

/* Путь */
.bento__card--path {
  background:
    radial-gradient(420px 220px at 100% 0%, var(--blue-50), transparent 70%),
    #fff;
}
.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 48px;
  right: 30%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue-200));
}
.path__step { position: relative; }
.path__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--blue-100);
  color: var(--blue);
  font-size: 22px;
}
.path__step--now .path__icon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(47, 91, 234, .8);
}
.path__step b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.path__step p { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.path__now {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 106, .12);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}

/* Цифры */
.bento__card--stat {
  display: flex;
  flex-direction: column;
  border: 0;
  color: #fff;
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(139, 180, 255, .55), transparent 70%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 20px 40px -20px rgba(47, 91, 234, .7);
}
.stat__num {
  font-size: 88px;
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.05em;
}
.stat__text { margin-top: 8px; font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.stat__list {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.bento__card--stat .stat__list { margin-top: 28px; }
.stat__list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.stat__list b { color: #fff; font-weight: 600; }
.stat__list .ti { font-size: 19px; color: #fff; flex-shrink: 0; }

/* Ниши */
.niches { display: flex; flex-wrap: wrap; gap: 8px; }
.niches li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.niches .ti { font-size: 17px; color: var(--blue); }

/* Инструменты */
.tools {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.tools li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}
.tools .ti { font-size: 28px; color: var(--ink); transition: color .2s; }
.tools li:hover { background: #fff; border-color: var(--blue-200); color: var(--blue); transform: translateY(-2px); }
.tools li:hover .ti { color: var(--blue); }

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

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-200);
}
.service > :not(.service__art) { margin-left: 12px; margin-right: 12px; }

.service__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 60%, #fff 0%, transparent 65%),
    var(--blue-50);
  overflow: hidden;
}
.service__art img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  transition: transform .4s ease;
}
.service:hover .service__art img { transform: scale(1.05) translateY(-3px); }
.service__art .art-fallback {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  color: var(--blue);
  font-size: 36px;
  box-shadow: 0 14px 30px -14px rgba(47, 91, 234, .45);
  transition: transform .3s;
}
.service:hover .service__art .art-fallback { transform: translateY(-4px) rotate(-4deg); }

.tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.service__title { margin-top: 20px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.service__desc { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.service__list { margin-top: 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.service__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%232f5bea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.service__foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.service__price { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.service__time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.service__time .ti { font-size: 16px; }

.service--featured {
  background: linear-gradient(160deg, var(--blue) 0%, #2346c4 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 40px -20px rgba(47, 91, 234, .7);
}
.service--featured:hover { border-color: transparent; box-shadow: 0 26px 50px -20px rgba(47, 91, 234, .8); }
.service--featured .service__art {
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .28) 0%, transparent 65%),
    rgba(255, 255, 255, .1);
}
.service--featured .service__desc,
.service--featured .service__list li { color: rgba(255, 255, 255, .82); }
.service--featured .service__list li::before {
  background-color: rgba(255, 255, 255, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.service--featured .service__foot { border-top-color: rgba(255, 255, 255, .22); }
.service--featured .service__time { color: rgba(255, 255, 255, .7); }

/* Карточка «Не нашли свою задачу?» */
.service--cta {
  justify-content: center;
  align-items: flex-start;
  padding: 32px 28px;
  background:
    radial-gradient(320px 220px at 100% 0%, var(--blue-100), transparent 70%),
    #fff;
  border: 1.5px dashed var(--blue-200);
}
.service--cta > * { margin-left: 0 !important; margin-right: 0 !important; }
.service--cta:hover { border-color: var(--blue); }
.service-cta__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 24px -12px rgba(47, 91, 234, .7);
}
.service--cta .service__title { margin-top: 24px; font-size: 22px; }
.service--cta .btn { margin-top: 24px; }

/* В любой проект включено */
.included {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.included__head h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.included__head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.included__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.included__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}
.included__list .ti {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -4px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 17px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--blue-100);
  color: var(--blue);
  font-size: 26px;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.step:hover .step__num { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }
.step__body { margin-top: 20px; }
.step__label { font-size: 13px; font-weight: 600; color: var(--blue); }
.step h3 { margin-top: 4px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.55; padding-right: 8px; }

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

.faq-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-wrap__head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-bottom: 0;
}
.faq-wrap__head .btn { margin-top: 28px; }

.side-art { margin-bottom: 20px; }
.side-art img { width: 160px; height: auto; }

.faq { display: grid; gap: 10px; }
.faq__item {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--blue-200); box-shadow: var(--shadow); }
.faq__item summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 8px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%232f5bea' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s, background-color .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--blue-100); }
.faq__item summary:hover { color: var(--blue); }
.faq__answer { padding: 0 26px 24px; color: var(--ink-2); font-size: 16px; }
.faq__item[open] .faq__answer { animation: faq-in .3s ease; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

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

.section--contacts {
  position: relative;
  background:
    radial-gradient(700px 500px at 0% 0%, rgba(110, 168, 255, .35), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(91, 134, 255, .35), transparent 60%),
    linear-gradient(140deg, #1c35a3 0%, #2f5bea 100%);
  color: #fff;
  overflow: hidden;
}
.section--contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}

.contacts {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: start;
}
.contacts__lead { margin-top: 20px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 480px; }

.contact-list { margin-top: 40px; display: grid; gap: 12px; max-width: 420px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 17px;
  font-weight: 600;
  transition: background-color .2s, transform .2s;
}
.contact-list a:hover { background: rgba(255, 255, 255, .16); transform: translateX(4px); }
.contact-list small { display: block; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .65); line-height: 1.3; }
.contact-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  font-size: 23px;
}
.contact-list__go { margin-left: auto; font-size: 20px; opacity: .5; transition: opacity .2s; }
.contact-list a:hover .contact-list__go { opacity: 1; }

.contacts__art { margin-top: 32px; }
.contacts__art img { width: 260px; height: auto; animation: float-art 7s ease-in-out infinite; }

/* Форма */
.form {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(8, 20, 70, .55);
}
.form__body { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field__opt { font-weight: 400; color: var(--muted); margin-left: 4px; }

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--tint);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder { color: #a3acc4; }
.input:hover { border-color: var(--blue-200); }
.input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, .12);
}
.input--area { height: auto; padding: 14px 16px; resize: vertical; min-height: 110px; line-height: 1.5; }

.field__error { display: none; font-size: 13px; color: var(--err); }
.field.is-invalid .input { border-color: var(--err); background: #fff; }
.field.is-invalid .field__error { display: block; }

.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
}
.chips-select span:hover { border-color: var(--blue-200); color: var(--blue); }
.chips-select input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips-select input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid #c5cde0;
  background: #fff;
  transition: all .2s;
}
.check input:checked + .check__box {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--blue);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--err); }
.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.form__success { text-align: center; padding: 48px 12px; }
.form__success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(22, 163, 106, .12);
  color: var(--ok);
  font-size: 32px;
}
.form__success h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.form__success p { margin-top: 8px; color: var(--ink-2); }

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

.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--tint); }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
}
.footer__tagline { margin-top: 16px; max-width: 340px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.footer__nav { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.footer__nav a:hover { color: var(--blue); }

.footer__req {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.footer__req-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.footer__req-title { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.footer__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: border-color .2s, background-color .2s;
}
.footer__copy-btn:hover { border-color: var(--blue-200); background: var(--blue-50); }
.footer__copy-btn .ti { font-size: 16px; }

.footer__req-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 0;
}
.footer__req-list .req__row--wide { grid-column: 1 / -1; }
.footer__req-list dt { font-size: 12px; color: var(--muted); }
.footer__req-list dd {
  margin: 1px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--blue); }

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

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

@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .contacts { grid-template-columns: 1fr; gap: 48px; }
  .contacts__art { display: none !important; }
  .form { max-width: 640px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--path { grid-column: span 2; }
  .bento__card--stack { grid-column: span 2; }
}

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }

  :root { --header-h: 64px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 17px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .burger { display: block; }
  .header__cta { display: none; }

  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 0; }
  .section__head--row .section__sub { margin-top: 16px; }


      
  .included { grid-template-columns: 1fr; gap: 24px; padding: 28px; }

  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap__head { position: static; }
  .faq-wrap__head .side-art { display: none !important; }
}

@media (max-width: 680px) {
  .footer { padding-top: 48px; }
  .footer__req { padding: 20px; }
  .footer__req-list { grid-template-columns: 1fr; }

  body { font-size: 16px; }
  .container { padding: 0 16px; }

  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 20px; justify-content: space-between; }
  .hero__facts strong { font-size: 18px; }
  .hero__facts span { font-size: 13px; }
  .hero__visual { padding: 16px 8px 36px; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip--2 { left: -4px; }
  .chip--1 { right: 0; }

  .section { padding: 64px 0; }


  .bento { grid-template-columns: 1fr; }
  .bento__card--path,
  .bento__card--stack { grid-column: auto; }
  .bento__card { padding: 22px; }
  .path { grid-template-columns: 1fr; gap: 22px; }
  .path::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue-100), var(--blue-200)); }
  .path__step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .path__icon { grid-row: span 2; margin-bottom: 0; }
  .path__step p { margin-top: 4px; }
  .stat__num { font-size: 72px; }
  .tools { grid-template-columns: repeat(3, 1fr); }

  .services { grid-template-columns: 1fr; }
  .service__art { aspect-ratio: 16 / 10; }
  .service__art img { width: 70%; height: 82%; }
  .included__list { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
  .step__body { margin-top: 0; }

  .faq__item summary { padding: 18px 56px 18px 20px; font-size: 16px; }
  .faq__item summary::after { right: 16px; }
  .faq__answer { padding: 0 20px 20px; font-size: 15px; }


  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }

}

.badge__icon { font-size: 17px; color: var(--blue); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

[hidden] { display: none !important; }
