/* Opus Site — стили сайта. Цвета и шрифты меняются в переменных ниже. */
:root {
  --bg: #07060d;
  --bg-2: #0c0b16;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eeecfb;
  --muted: #a19dbd;
  --dim: #6f6b8c;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #a78bfa 0%, #818cf8 40%, #22d3ee 100%);
  --grad-btn: linear-gradient(120deg, #7c3aed 0%, #6366f1 50%, #0ea5e9 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, .45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 48px); }
.muted { color: var(--muted); }
.icon { flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* фон: «северное сияние» */
.bg-aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-aurora i { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .32; animation: drift 26s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(1) { width: 640px; height: 640px; background: #6d28d9; top: -260px; right: -120px; }
.bg-aurora i:nth-child(2) { width: 520px; height: 520px; background: #0e7490; top: 40%; left: -260px; animation-delay: -9s; opacity: .22; }
.bg-aurora i:nth-child(3) { width: 460px; height: 460px; background: #4338ca; bottom: -220px; right: 18%; animation-delay: -17s; opacity: .2; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.12); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* кнопки */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h);
  padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px;
  cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--grad { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--grad:hover { box-shadow: 0 16px 40px -10px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(167, 139, 250, .6); background: var(--surface-2); }
.btn--light { background: #fff; color: #120f24; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #c4b5fd; transition: gap .2s, color .2s; }
.link-arrow:hover { gap: 12px; color: var(--cyan); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a5b4fc; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); color: #cbc7e6; }

/* шапка */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(7, 6, 13, .72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo { width: 38px; height: 38px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand__logo { transform: rotate(-35deg); }
.brand__name { font: 600 22px/1 var(--font-display); letter-spacing: -.02em; }
.brand__name span { margin-left: 5px; font: 500 12px/1 var(--font); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); vertical-align: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 15.5px; color: #d6d3ec; transition: color .2s, background .2s; }
.nav__link:hover, .nav__link.is-active { color: #fff; background: var(--surface-2); }
.nav__group { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: rgba(16, 14, 30, .96); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav__group:hover .nav__dropdown, .nav__group:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 15px; color: #d6d3ec; }
.nav__dropdown a:hover { background: var(--surface-2); color: #fff; }
.nav__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(139, 92, 246, .14); color: #c4b5fd; }
.nav__mobile-extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; flex-direction: column; text-align: right; line-height: 1.25; font-weight: 600; font-size: 15px; }
.header__phone small { font-weight: 400; font-size: 12px; color: var(--dim); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; place-items: center; }

/* hero */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); opacity: .6;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; min-height: 600px; }
.hero__title { margin: 26px 0 24px; font: 600 clamp(34px, 4.3vw, 60px)/1.08 var(--font-display); letter-spacing: -.035em; }
.hero__title .grad-text { white-space: nowrap; }
.hero__title .grad-text { display: inline-block; transition: opacity .35s, transform .35s; }
.hero__title .grad-text.is-out { opacity: 0; transform: translateY(14px); }
.hero__lead { max-width: 580px; font-size: 19px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: #34d399; }
.hero__visual { position: relative; height: 560px; }
.hero__browser { position: absolute; top: 40px; right: -40px; width: 600px; transform: rotate(-2deg); }
.hero__phone { position: absolute; left: 10px; bottom: 0; width: 215px; transform: rotate(4deg); z-index: 2; }
.hero__chat { position: absolute; right: 0; bottom: 30px; z-index: 3; animation: float 6s ease-in-out infinite; }
.hero__badge { position: absolute; top: 0; left: 70px; z-index: 3; animation: float 7s ease-in-out -2s infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* макеты устройств */
.browser { border-radius: 16px; overflow: hidden; background: #15132a; border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.4); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b1934; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3858; }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__url { margin: 0 auto; padding: 3px 16px; border-radius: 8px; background: rgba(0,0,0,.25); font-size: 12px; color: var(--muted); transform: translateX(-24px); }
.browser__screen { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone { padding: 9px; border-radius: 38px; background: linear-gradient(145deg, #2c2a45, #121022); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone__screen { position: relative; aspect-ratio: 390 / 844; border-radius: 30px; overflow: hidden; background: #000; }
.phone__screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 20px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 1; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.chat { width: 270px; padding: 14px; border-radius: 20px; background: rgba(20, 18, 38, .9); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(16px); font-size: 13.5px; }
.chat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chat__head small { margin-left: auto; color: #34d399; font-size: 12px; }
.chat__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-btn); color: #fff; }
.chat__msg { max-width: 88%; margin-top: 6px; padding: 8px 12px; border-radius: 14px; line-height: 1.4; }
.chat__msg--in { background: #26233f; border-bottom-left-radius: 4px; }
.chat__msg--out { margin-left: auto; background: #4f46e5; border-bottom-right-radius: 4px; }
.chat__buttons { display: flex; gap: 6px; margin-top: 8px; }
.chat__buttons span { flex: 1; padding: 6px; border-radius: 10px; text-align: center; background: rgba(139, 92, 246, .2); border: 1px solid rgba(139, 92, 246, .4); color: #ddd6fe; }
.badge-float { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(20, 18, 38, .9); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(16px); line-height: 1.25; }
.badge-float small { display: block; color: var(--muted); font-size: 12px; }
.badge-float__ring {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; color: #34d399;
  background: radial-gradient(closest-side, #141226 79%, transparent 80% 100%), conic-gradient(#34d399 calc(var(--p) * 1%), #2a2745 0);
}

.marquee { position: relative; margin-top: 70px; padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: marquee 70s linear infinite; }
.marquee__track span { font: 500 17px/1 var(--font-display); color: var(--dim); white-space: nowrap; }
.marquee__track span:nth-child(3n+1) { color: #8f8bb0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* секции */
.section { position: relative; padding: 110px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 12%, rgba(255,255,255,.018) 88%, transparent); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { margin-top: 14px; font: 600 clamp(30px, 3.6vw, 48px)/1.12 var(--font-display); letter-spacing: -.03em; }
.section__lead { margin-top: 20px; font-size: 18px; color: var(--muted); }

/* услуги */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 16px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; padding: 28px; min-height: 290px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s, background .3s;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, .16), transparent 45%);
}
.svc-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .4); }
.svc-card:hover::before { opacity: 1; }
.svc-card--wide { grid-column: span 2; background: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(14, 165, 233, .06)); }
.svc-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: var(--grad-btn); box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .9); }
.svc-card__title { margin: 22px 0 10px; font: 600 20px/1.25 var(--font-display); letter-spacing: -.02em; }
.svc-card__text { color: var(--muted); font-size: 15.5px; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; }
.svc-card__price { font-weight: 600; color: #ddd6fe; }
.svc-card__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: .3s; }
.svc-card:hover .svc-card__go { background: #fff; color: #120f24; transform: rotate(45deg); }

.svc-list { display: grid; gap: 12px; }
.svc-row {
  display: grid; grid-template-columns: 44px 64px 1fr 220px 44px; align-items: center; gap: 22px; padding: 26px 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: .3s;
}
.svc-row:hover { border-color: rgba(167, 139, 250, .45); background: var(--surface-2); }
.svc-row__num { font: 500 15px var(--font-display); color: var(--dim); }
.svc-row__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(139, 92, 246, .14); color: #c4b5fd; }
.svc-row__main { display: grid; gap: 2px; }
.svc-row__title { font: 600 22px/1.25 var(--font-display); letter-spacing: -.02em; }
.svc-row__sub { font-size: 14px; color: #a5b4fc; }
.svc-row__text { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.svc-row__meta { display: grid; gap: 4px; text-align: right; }
.svc-row__meta b { font-size: 18px; }
.svc-row__meta small { display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; color: var(--dim); font-size: 13.5px; }
.svc-row__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: .3s; }
.svc-row:hover .svc-row__go { background: #fff; color: #120f24; transform: rotate(45deg); }

/* витрина кейсов */
.showcase { display: grid; gap: 110px; }
.showcase__item { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.showcase__item--rev .showcase__visual { order: 2; }
.showcase__visual { position: relative; display: block; padding: 20px 60px 50px 0; }
.showcase__glow { position: absolute; inset: 10% 15%; border-radius: 50%; background: var(--case); filter: blur(90px); opacity: .35; z-index: -1; }
.showcase__browser { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.showcase__phone { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 200px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.showcase__visual:hover .showcase__browser { transform: translateY(-6px); }
.showcase__visual:hover .showcase__phone { transform: translateY(-14px) rotate(2deg); }
.showcase__title { margin: 18px 0 6px; font: 600 clamp(26px, 2.6vw, 34px)/1.15 var(--font-display); letter-spacing: -.03em; }
.showcase__client { color: #a5b4fc; font-size: 15px; }
.showcase__text { margin-top: 16px; color: var(--muted); }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 0; }
.metrics div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.metrics dt { font: 600 22px/1.1 var(--font-display); letter-spacing: -.02em; }
.metrics dd { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.metrics--big { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; }
.metrics--big div { padding: 26px; border-radius: var(--radius); }
.metrics--big dt { font-size: clamp(30px, 3vw, 42px); }
.metrics--big dd { font-size: 15px; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-grid--big { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; }
.case-card:hover { border-color: color-mix(in srgb, var(--case) 60%, transparent); transform: translateY(-4px); }
.case-card.is-hidden { display: none; }
.case-card__visual { position: relative; display: block; padding: 28px 28px 0; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--case) 35%, transparent), transparent 70%); overflow: hidden; height: 300px; }
.case-grid--big .case-card__visual { height: 380px; }
.case-card__browser { width: 88%; transition: transform .5s; }
.case-card__phone { position: absolute; right: 22px; top: 60px; width: 30%; max-width: 160px; transition: transform .5s; }
.case-card:hover .case-card__browser { transform: translateY(-6px); }
.case-card:hover .case-card__phone { transform: translateY(-12px); }
.case-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; border-top: 1px solid var(--line); }
.case-card__title { margin: 14px 0 10px; font: 600 21px/1.25 var(--font-display); letter-spacing: -.02em; }
.case-card__text { flex: 1; margin-bottom: 18px; color: var(--muted); font-size: 15.5px; }

/* веер телефонов для приложений */
.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.fan__phone { position: relative; width: 31%; max-width: 230px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fan__phone:nth-child(1) { transform: rotate(-8deg) translate(22%, 6%); z-index: 1; }
.fan__phone:nth-child(2) { z-index: 2; transform: translateY(-4%); }
.fan__phone:nth-child(3) { transform: rotate(8deg) translate(-22%, 6%); z-index: 1; }
a:hover > .fan .fan__phone:nth-child(1), .fan:hover .fan__phone:nth-child(1) { transform: rotate(-12deg) translate(12%, 4%); }
a:hover > .fan .fan__phone:nth-child(3), .fan:hover .fan__phone:nth-child(3) { transform: rotate(12deg) translate(-12%, 4%); }
.showcase__fan { padding-top: 10px; }
.case-card__fan { margin-top: 6px; }
.case-card__fan .fan__phone { width: 34%; }
.case-stage__fan { max-width: 820px; margin: 0 auto; }
.case-stage__fan .fan__phone { max-width: 270px; }

/* преимущества */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.adv__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(34, 211, 238, .1); color: var(--cyan); border: 1px solid rgba(34, 211, 238, .25); }
.adv__title { margin: 20px 0 10px; font-size: 19px; font-weight: 600; }
.adv__text { color: var(--muted); font-size: 15.5px; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(14, 165, 233, .06)); }
.promise { padding: 30px; display: grid; gap: 6px; }
.promise + .promise { border-left: 1px solid var(--line); }
.promise b { font: 600 clamp(28px, 3vw, 40px)/1 var(--font-display); letter-spacing: -.03em; }
.promise span { color: var(--muted); font-size: 15px; }

/* процесс */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.process__step { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.process__num { font: 600 54px/1 var(--font-display); letter-spacing: -.04em; background: linear-gradient(180deg, rgba(167, 139, 250, .7), rgba(167, 139, 250, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process__title { margin: 14px 0 10px; font-size: 20px; }
.process__text { color: var(--muted); font-size: 15.5px; }
.process__time { display: inline-block; margin-top: 18px; padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); }

/* тарифы */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pkg--hit { background: linear-gradient(160deg, rgba(124, 58, 237, .2), rgba(14, 165, 233, .07) 70%); border-color: rgba(167, 139, 250, .5); box-shadow: 0 30px 70px -40px rgba(124, 58, 237, .9); }
.pkg__badge { position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--grad-btn); color: #fff; }
.pkg__service { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #a5b4fc; font-weight: 600; }
.pkg__title { margin: 6px 0 8px; font: 600 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.pkg__desc { min-height: 50px; color: var(--muted); font-size: 15px; }
.pkg__price { margin-top: 20px; font: 600 34px/1.1 var(--font-display); letter-spacing: -.03em; }
.pkg__price small { font: 500 16px var(--font); color: var(--muted); letter-spacing: 0; }
.pkg__time { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.pkg .checklist { flex: 1; margin: 22px 0 26px; }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: 4px; color: #34d399; }
.checklist--big { font-size: 17px; }

/* технологии */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tech__title { margin-bottom: 18px; font-size: 18px; }
.tech__items { display: flex; flex-wrap: wrap; gap: 8px; }
.tech__items span { padding: 6px 12px; border-radius: 10px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); color: #d6d3ec; }

/* статьи */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-grid__cell.is-hidden { display: none; }
.post-grid__cell .post-card { height: 100%; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .4); }
.post-card__cover { position: relative; display: grid; place-items: center; height: 170px; overflow: hidden; background: radial-gradient(80% 120% at 20% 0%, rgba(124, 58, 237, .45), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(14, 165, 233, .35), transparent 60%), #100e1f; }
.post-card__cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.post-card__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: transform .4s; }
.post-card:hover .post-card__icon { transform: scale(1.08) rotate(-6deg); }
.post-card__meta { display: flex; align-items: center; gap: 10px; padding: 22px 24px 0; font-size: 13.5px; color: var(--dim); }
.post-card__title { padding: 12px 24px 0; font-size: 19px; font-weight: 600; line-height: 1.35; }
.post-card__text { padding: 10px 24px 26px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: rgba(167, 139, 250, .4); background: var(--surface-2); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17.5px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s, background .3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--grad-btn); border-color: transparent; }
.faq__a { padding: 0 26px 24px; color: var(--muted); }

/* внутренние страницы */
.page-hero { position: relative; padding: calc(var(--header-h) + 60px) 0 50px; }
.page-hero__split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.page-hero__title { margin: 18px 0 20px; font: 600 clamp(34px, 4.6vw, 62px)/1.08 var(--font-display); letter-spacing: -.035em; max-width: 960px; }
.page-hero__title--article { font-size: clamp(30px, 3.8vw, 48px); }
.page-hero__lead { max-width: 760px; font-size: 19px; color: var(--muted); }
.page-hero__lead + .page-hero__lead { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.page-hero .eyebrow { margin-top: 22px; }
.page-hero--service .page-hero__title { margin-top: 10px; }

.svc-facts { padding: 30px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(124, 58, 237, .18), rgba(14, 165, 233, .06)); border: 1px solid rgba(167, 139, 250, .35); }
.svc-facts__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--grad-btn); color: #fff; }
.svc-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.svc-facts dt { font-size: 13px; color: var(--muted); }
.svc-facts dd { margin: 4px 0 0; font: 600 19px/1.25 var(--font-display); letter-spacing: -.02em; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.article-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-card--grad { background: var(--grad-btn); border: 0; }
.side-card--grad p { margin: 10px 0 20px; color: rgba(255,255,255,.85); font-size: 15px; }
.side-card__title { margin-bottom: 14px; font-size: 17px; }
.side-card--grad .side-card__title { margin: 0; }
.side-links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #d6d3ec; }
.side-links a:hover { background: var(--surface-2); }

.rich { font-size: 17.5px; }
.rich > * + * { margin-top: 18px; }
.rich h2 { margin-top: 46px; font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--font-display); letter-spacing: -.02em; }
.rich h2:first-child { margin-top: 0; }
.rich h3 { margin-top: 30px; font-size: 21px; }
.rich p { color: #cfcbe6; }
.rich b { color: #fff; font-weight: 600; }
.rich a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.rich-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rich-list li { position: relative; padding-left: 30px; color: #cfcbe6; }
.rich-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.rich-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.rich-steps li { position: relative; padding: 18px 20px 18px 70px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); counter-increment: s; color: #cfcbe6; }
.rich-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-btn); font: 600 15px var(--font-display); color: #fff; }
.rich--article { font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 15px; color: #d6d3ec; transition: .2s; cursor: pointer; }
.chip:hover { border-color: rgba(167, 139, 250, .6); color: #fff; }
.chips--toggle .chip { padding: 0; }
.chips--toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chips--toggle .chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; }
.chips--toggle input:checked + span { background: var(--grad-btn); color: #fff; }
.chips--toggle input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15px; transition: .2s; }
.filter sup { color: var(--muted); }
.filter.is-active { background: #fff; color: #120f24; border-color: #fff; }
.filter.is-active sup { color: #6b6890; }

.note-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 40px; padding: 28px 32px; border-radius: var(--radius); border: 1px dashed rgba(167, 139, 250, .45); background: rgba(124, 58, 237, .07); }
.note-card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--grad-btn); color: #fff; }
.note-card h3 { font-size: 19px; }
.note-card p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.note-card .chips { margin-top: 14px; }
.note-card .chip { padding: 6px 12px; font-size: 14px; }

/* кейс */
.page-hero--case { overflow: hidden; }
.case-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: end; margin-top: 18px; }
.case-head__logo { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; }
.case-head .page-hero__title { font-size: clamp(32px, 4vw, 54px); }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.case-meta div { padding: 18px 20px; background: var(--bg-2); }
.case-meta dt { font-size: 13px; color: var(--dim); }
.case-meta dd { margin: 4px 0 0; font-weight: 600; }
.case-meta a { color: #c4b5fd; display: inline-flex; align-items: center; gap: 4px; }
.case-stage { position: relative; margin-top: 56px; padding: 0 12% 0 0; }
.case-stage__browser { width: 100%; }
.case-stage__phone { position: absolute; right: 0; bottom: -40px; width: 22%; max-width: 250px; }
.screens { display: flex; gap: 28px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #3b3858 transparent; }
.screens__item { flex: none; margin: 0; scroll-snap-align: start; }
.screens__item--phone { width: 250px; }
.screens__item--browser { width: 640px; }
.screens__item a { display: block; transition: transform .3s; }
.screens__item a:hover { transform: translateY(-6px); }
.screens figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); text-align: center; }

/* о студии */
.about-mark { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 420px; margin-left: auto; }
.about-mark img { position: relative; width: 52%; filter: drop-shadow(0 0 50px rgba(99, 102, 241, .6)); animation: spin 40s linear infinite; }
.about-mark__orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(167, 139, 250, .35); animation: spin 60s linear infinite reverse; }
.about-mark__orbit::after { content: ""; position: absolute; top: 12%; left: 14%; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 20px var(--pink); }
.about-mark__orbit--2 { inset: 14%; border-style: solid; border-color: var(--line-2); animation-duration: 30s; animation-direction: normal; }
.about-mark__orbit--2::after { top: auto; bottom: 6%; left: auto; right: 18%; width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
.manifest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.manifest > div { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.manifest__num { font: 600 15px var(--font-display); color: #a5b4fc; }
.manifest h3 { margin: 14px 0 10px; font: 600 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.manifest p { color: var(--muted); }

/* калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.calc__form { padding: 40px; display: grid; gap: 34px; }
.calc__label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 18px; }
.calc__label > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 14px var(--font-display); color: #c4b5fd; }
.calc__label b { color: var(--cyan); }
.calc__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.calc__types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.calc__type { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; text-align: left; cursor: pointer; transition: .2s; }
.calc__type small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.calc__type:hover { border-color: rgba(167, 139, 250, .6); }
.calc__type.is-active { background: linear-gradient(135deg, rgba(124, 58, 237, .35), rgba(14, 165, 233, .15)); border-color: rgba(167, 139, 250, .8); }
.calc__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 15px; transition: .2s; }
.check:hover { border-color: var(--line-2); }
.check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; }
.check small { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; }
.seg button.is-active { background: #fff; color: #120f24; border-color: #fff; }
.range { width: 100%; height: 6px; border-radius: 6px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--violet) var(--fill, 20%), #2a2745 var(--fill, 20%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); cursor: pointer; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15.5px; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { position: relative; width: 46px; height: 26px; border-radius: 26px; background: #2a2745; transition: .2s; flex: none; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .switch__ui { background: var(--violet); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--cyan); outline-offset: 2px; }
.calc__result { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 40px 32px; background: linear-gradient(165deg, #4c1d95 0%, #312e81 45%, #0c4a6e 100%); }
.calc__result-label { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.calc__total { font: 600 clamp(30px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: -.03em; }
.calc__weeks { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); }
.calc__summary { flex: 1; display: grid; align-content: start; gap: 8px; margin: 10px 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.15); font-size: 14.5px; color: rgba(255,255,255,.85); }
.calc__summary li { display: flex; justify-content: space-between; gap: 12px; }
.calc__summary li span:last-child { white-space: nowrap; color: #fff; }
.calc__result .btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.calc__note { font-size: 12.5px; color: rgba(255,255,255,.6); }

.price-table { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.price-table__row { display: grid; grid-template-columns: 1fr 240px 220px; gap: 20px; align-items: center; padding: 18px 26px; transition: background .2s; }
.price-table__row + .price-table__row { border-top: 1px solid var(--line); }
.price-table__row:hover { background: var(--surface-2); }
.price-table__name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.price-table__name .icon { color: #a5b4fc; }
.price-table__time { color: var(--muted); font-size: 15px; }
.price-table__row b { text-align: right; }

/* контакты */
.contact-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: .25s; }
.contact-card:not(.contact-card--static):hover { border-color: rgba(167, 139, 250, .5); transform: translateX(4px); }
.contact-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad-btn); color: #fff; flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: 13.5px; }
.contact-card b { font-size: 18px; word-break: break-word; }
.contact-cards .side-card { margin-top: 8px; }
.contact-cards .side-card .muted { margin-top: 14px; font-size: 14.5px; }
.brief { padding: 38px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); }
.brief__title { font: 600 28px/1.2 var(--font-display); letter-spacing: -.02em; }
.brief__lead { margin: 10px 0 8px; color: var(--muted); }
.brief__group { display: block; margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.brief__group legend, .brief__legend { display: block; margin-bottom: 12px; font-weight: 600; }
.brief textarea { width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
.brief textarea:focus { outline: none; border-color: var(--violet); }
.brief__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.brief__note { margin-top: 16px; font-size: 13.5px; color: var(--dim); }

/* подвал */
.footer { position: relative; margin-top: 40px; padding: 0 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(124, 58, 237, .06), transparent 280px); }
.footer__cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin: -1px 0 0; padding: 70px 0 64px; border-bottom: 1px solid var(--line); }
.footer__cta-title { font: 600 clamp(30px, 3.8vw, 52px)/1.1 var(--font-display); letter-spacing: -.035em; }
.footer__cta p { max-width: 620px; margin-top: 16px; color: var(--muted); font-size: 18px; }
.footer__cta-actions { display: flex; flex-direction: column; gap: 12px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 44px; }
.footer__about p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 340px; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: .2s; }
.footer__social a:hover { background: var(--grad-btn); border-color: transparent; }
.footer__title { margin-bottom: 18px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.footer__list, .footer__contacts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer__list a { color: #cbc7e6; transition: color .2s; }
.footer__list a:hover { color: #fff; }
.footer__contacts li { display: flex; align-items: center; gap: 10px; color: #cbc7e6; }
.footer__contacts .icon { color: #a5b4fc; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px 80px; background: rgba(5, 4, 10, .92); backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-height: 100%; display: grid; gap: 14px; justify-items: center; }
.lightbox__img { max-height: calc(100vh - 110px); max-width: 100%; border-radius: 14px; }
.lightbox__caption { color: var(--muted); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); cursor: pointer; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 20px; transform: scaleX(-1); }
.lightbox__nav--next { right: 20px; }

/* cookie */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(440px, calc(100% - 40px)); padding: 20px 22px; border-radius: 20px; background: rgba(18, 16, 34, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(16px); font-size: 14px; color: var(--muted); }
.cookie a { color: #c4b5fd; text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 404 */
.page-404 { min-height: 70vh; display: grid; align-items: center; text-align: center; }
.page-404 .page-hero__title, .page-404 .page-hero__lead { margin-inline: auto; }
.page-404 .hero__actions { justify-content: center; }
.page-404__code { font: 700 clamp(100px, 18vw, 220px)/1 var(--font-display); letter-spacing: -.06em; }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* адаптив */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__browser { width: 520px; right: -60px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .burger { display: grid; }
  .header .btn--sm { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 20px 24px 40px;
    background: rgba(7, 6, 13, .98); backdrop-filter: blur(20px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 6px; font-size: 20px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__link:hover, .nav__link.is-active { background: none; }
  .nav__dropdown { position: static; width: auto; grid-template-columns: 1fr; padding: 6px 0 10px; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
  .nav__mobile-extra a { display: flex; align-items: center; gap: 10px; color: #cbc7e6; }
  .hero__inner, .page-hero__split, .case-head { grid-template-columns: 1fr; }
  .hero__inner { min-height: 0; }
  .hero__visual { height: 480px; max-width: 640px; width: 100%; margin-inline: auto; }
  .hero__browser { right: 0; width: 88%; }
  .showcase__item, .showcase__item--rev { grid-template-columns: 1fr; gap: 40px; }
  .showcase__item--rev .showcase__visual { order: 0; }
  .article-layout, .contact-layout, .calc { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .case-grid, .post-grid, .adv-grid, .process, .tech-grid, .manifest { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .promise:nth-child(3) { border-left: 0; }
  .promise:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-row { grid-template-columns: 56px 1fr 44px; }
  .svc-row__num { display: none; }
  .svc-row__icon { width: 56px; height: 56px; }
  .svc-row__meta { grid-column: 2; text-align: left; }
  .svc-row__meta small { justify-content: flex-start; }
  .svc-row__go { grid-row: 1; grid-column: 3; }
  .about-mark { max-width: 320px; margin: 0 auto; }
  .footer__cta { grid-template-columns: 1fr; }
  .footer__cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .section { padding: 76px 0; }
  .section--tight { padding: 40px 0; }
  .section__head { margin-bottom: 36px; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__lead, .page-hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { height: 400px; }
  .hero__browser { width: 100%; top: 50px; transform: rotate(-2deg); }
  .hero__phone { width: 140px; left: 0; }
  .hero__chat { width: 220px; font-size: 12px; bottom: 0; }
  .hero__badge { left: auto; right: 0; top: 0; }
  .marquee { margin-top: 50px; }
  .svc-grid, .case-grid, .case-grid--big, .post-grid, .adv-grid, .process, .tech-grid, .manifest, .calc__options { grid-template-columns: 1fr; }
  .svc-card--wide { grid-column: auto; }
  .svc-card { min-height: 0; padding: 24px; }
  .svc-row { grid-template-columns: 1fr 44px; padding: 22px; }
  .svc-row__icon { display: none; }
  .svc-row__main, .svc-row__meta { grid-column: 1; }
  .svc-row__go { grid-column: 2; }
  .case-card__visual, .case-grid--big .case-card__visual { height: 240px; padding: 20px 20px 0; }
  .showcase { gap: 80px; }
  .showcase__visual { padding: 0 30px 30px 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .promise { padding: 22px; }
  .calc__form, .brief { padding: 24px 20px; }
  .calc__result { padding: 30px 22px; }
  .price-table__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .price-table__row b { text-align: left; }
  .note-card { grid-template-columns: 1fr; padding: 24px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-stage { padding-right: 18%; margin-top: 40px; }
  .case-stage__phone { width: 30%; bottom: -24px; }
  .screens__item--phone { width: 200px; }
  .screens__item--browser { width: 86vw; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .lightbox { padding: 70px 12px; }
  .lightbox__nav { top: auto; bottom: 14px; }
  .faq__q { padding: 18px 20px; font-size: 16px; }
  .faq__a { padding: 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
