:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: rgba(0, 0, 0, .08);
  --blue: #0071e3;
  --blue-h: #0077ed;
  --green: #248a3d;
  --purple: #8944ab;
  --orange: #c93400;
  --glass: rgba(245, 245, 247, .76);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .05);
  --grad: linear-gradient(95deg, #0071e3 0%, #8944ab 55%, #e0457b 100%);
  --glow-1: rgba(0, 113, 227, .22);
  --glow-2: rgba(137, 68, 171, .18);
  --glow-3: rgba(224, 69, 123, .14);
  --glow-cursor: rgba(0, 113, 227, .14);
  --grain-o: .05;
  --thumb: #ffffff;
  --r: 28px;
  --r-sm: 16px;
  --max: 1160px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #0b0b0c;
    --card: #1c1c1e;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .16);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --line: rgba(255, 255, 255, .1);
    --blue: #2997ff;
    --blue-h: #47a6ff;
    --green: #30d158;
    --purple: #bf5af2;
    --orange: #ff9f0a;
    --glass: rgba(18, 18, 20, .74);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
    --grad: linear-gradient(95deg, #2997ff 0%, #bf5af2 55%, #ff6482 100%);
    --glow-1: rgba(41, 151, 255, .30);
    --glow-2: rgba(191, 90, 242, .24);
    --glow-3: rgba(255, 100, 130, .18);
    --glow-cursor: rgba(120, 170, 255, .16);
    --grain-o: .07;
    --thumb: #636366;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Зерно поверх всей страницы ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: var(--grain-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3%, 2%, 0); }
  40% { transform: translate3d(2%, -4%, 0); }
  60% { transform: translate3d(-4%, -1%, 0); }
  80% { transform: translate3d(3%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- Шапка ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--text); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }
.nav.is-sheet::before { opacity: 0; }
.nav__in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 84px; display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; line-height: 1; color: #fff; padding-bottom: 4px;
  background: var(--grad); background-size: 200% 200%; animation: shimmer 8s ease-in-out infinite alternate;
  box-shadow: 0 8px 26px -6px var(--glow-1), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-size: 26px; font-weight: 800; letter-spacing: -.045em; }
.logo__name i { font-style: normal; color: var(--blue); }
.logo__sub { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

.menu { margin-left: auto; }
.menu__list { display: flex; align-items: center; gap: 2px; }
.menu__link {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border: 0; border-radius: 999px;
  background: none; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text); transition: background .2s;
}
.menu__link:hover, .menu__item.open > .menu__link { background: var(--fill-2); }
.menu__link:not(.menu__link--plain)::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid var(--text-3); border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg); transition: transform .35s var(--ease), margin .35s var(--ease);
}
.menu__item.open > .menu__link::after { transform: rotate(-135deg); margin-top: 3px; }
.nav__cta { flex: none; min-height: 44px; padding: 0 22px; font-size: 16px; box-shadow: 0 10px 28px -10px var(--blue); }
/* на ноутбучных ширинах пункты меню ужимаются, чтобы шесть разделов помещались в одну строку */
@media (min-width: 1181px) and (max-width: 1360px) {
  .nav__in { gap: 12px; }
  .menu__link { gap: 6px; padding: 0 10px; font-size: 15px; }
  .nav__cta { padding: 0 16px; font-size: 15px; }
}

/* выпадающая панель */
.panel {
  position: absolute; left: 0; right: 0; top: 84px; padding: 40px 0 48px; overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 1px 0 var(--line), 0 40px 60px -40px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .3s;
}
.panel::before {
  content: ""; position: absolute; width: 50vmax; height: 50vmax; left: -10vmax; top: -30vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
}
.menu__item.open > .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel__in { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 460px 1fr; gap: 48px; min-height: 276px; }
.panel__num { font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.panel__big {
  margin: 6px 0 14px; font-size: 76px; font-weight: 800; white-space: nowrap; letter-spacing: -.06em; line-height: .95;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px var(--glow-2));
}
.panel__lead { color: var(--text-2); font-size: 17px; margin-bottom: 18px; max-width: 34ch; }
.panel__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; align-content: start; }
.panel__links a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; transition: background .25s; }
.panel__links a:hover, .panel__links a:focus-visible { background: var(--fill-2); }
.panel__links b { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.panel__links b::after { content: "→"; color: var(--blue); opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); }
.panel__links a:hover b::after { opacity: 1; transform: none; }
.panel__links span { font-size: 14px; color: var(--text-2); }
.menu__item.open .panel__links li { animation: rise .5s var(--ease) both; }
.menu__item.open .panel__links li:nth-child(2) { animation-delay: .04s; }
.menu__item.open .panel__links li:nth-child(3) { animation-delay: .08s; }
.menu__item.open .panel__links li:nth-child(4) { animation-delay: .12s; }
.menu__item.open .panel__links li:nth-child(5) { animation-delay: .16s; }
.menu__item.open .panel__links li:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.nav-dim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.nav-dim.on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* бургер и мобильное меню */
.burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--fill-2); cursor: pointer; flex: none; }
.burger span { position: absolute; left: 14px; right: 14px; top: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.sheet.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet__glow {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 100% 0%, var(--glow-1), transparent 70%), radial-gradient(60% 40% at 0% 100%, var(--glow-2), transparent 70%);
}
.sheet__in { position: relative; max-width: 640px; margin: 0 auto; padding: 100px 20px 40px; display: grid; }
.sheet__group, .sheet__plain { border-bottom: 1px solid var(--line); }
.sheet__group summary, .sheet__plain {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 36px; font-weight: 700; letter-spacing: -.045em; line-height: 1.1;
}
.sheet__group summary::-webkit-details-marker { display: none; }
.sheet__plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); }
.sheet__plus::before, .sheet__plus::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease); }
.sheet__plus::after { transform: rotate(90deg); }
.sheet__group[open] .sheet__plus::after { transform: rotate(0); }
.sheet__group ul { display: grid; padding: 0 0 14px; }
.sheet__group a { display: grid; gap: 2px; padding: 10px 0; }
.sheet__group b { font-size: 18px; font-weight: 600; }
.sheet__group a span { font-size: 14px; color: var(--text-2); }
.sheet__cta { margin-top: 28px; width: 100%; }
.sheet.is-open .sheet__in > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-h); }
.btn--ghost { background: var(--fill); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--tg { background: #229ed9; color: #fff; box-shadow: 0 10px 28px -12px #229ed9; }
.btn--tg:hover { background: #1c8fc6; }
.btn--vk { background: #0077ff; color: #fff; box-shadow: 0 10px 28px -12px #0077ff; }
.btn--vk:hover { background: #006ae3; }
.btn--ghost:hover { background: var(--fill-2); }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 19px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(4px); }

/* ---------- Типографика секций ---------- */
section { position: relative; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-sub { margin-top: 16px; font-size: clamp(19px, 2vw, 21px); color: var(--text-2); line-height: 1.45; text-wrap: pretty; }
.section-sub a { color: var(--blue); }
.section-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lead { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.4; letter-spacing: -.02em; font-weight: 500; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* запас по краям, чтобы фон с обрезкой по тексту не срезал хвосты букв */
.grad, .panel__big, .contact__handle, .footer__big-text, .footer__word span, .process__counter span:first-child {
  display: inline-block; padding: .04em .1em .1em .02em; margin: -.04em -.1em -.1em -.02em;
}
.panel__big { display: block; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- Свечение ---------- */
[data-glow] { isolation: isolate; }
.glow {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.glow span { position: absolute; border-radius: 50%; will-change: transform; }
.glow__a, .glow__b, .glow__c { width: 64vmax; height: 64vmax; }
.glow__a { left: -18vmax; top: -26vmax; background: radial-gradient(closest-side, var(--glow-1), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.glow__b { right: -22vmax; top: -8vmax; background: radial-gradient(closest-side, var(--glow-2), transparent); animation: drift-b 26s ease-in-out infinite alternate; }
.glow__c { left: 20vmax; bottom: -40vmax; background: radial-gradient(closest-side, var(--glow-3), transparent); animation: drift-c 30s ease-in-out infinite alternate; }
.glow__cursor {
  width: 46vmax; height: 46vmax; left: 0; top: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(closest-side, var(--glow-cursor), transparent);
  transform: translate3d(calc(var(--mx, 50vw) - 23vmax), calc(var(--my, 50vh) - 23vmax), 0);
}
[data-glow].is-pointer .glow__cursor { opacity: 1; }
.glow--soft { -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, 14vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-16vmax, -12vmax, 0) scale(1.2); } }
@keyframes shimmer { to { background-position: 100% 0; } }

/* ---------- Первый экран ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 80px; overflow: hidden; }
.hero__in { position: relative; z-index: 1; will-change: transform, opacity; }
.hero__title { font-size: clamp(44px, 8.6vw, 112px); line-height: 1; letter-spacing: -.05em; font-weight: 700; max-width: 12.5em; }
.hero .grad { filter: drop-shadow(0 0 34px var(--glow-2)); }
.rotator { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.rotator__list { display: flex; flex-direction: column; animation: rotate 12s var(--ease) infinite; }
.rotator__list span { display: block; height: 1.1em; line-height: 1.1; margin-bottom: .5em; color: var(--blue); }
/* шесть строк, последняя повторяет первую; шаг = высота строки 1.1em + промежуток .5em */
@keyframes rotate {
  0%, 15% { transform: translateY(0); }
  20%, 35% { transform: translateY(-1.6em); }
  40%, 55% { transform: translateY(-3.2em); }
  60%, 75% { transform: translateY(-4.8em); }
  80%, 95% { transform: translateY(-6.4em); }
  100% { transform: translateY(-8em); }
}
.hero__lead { margin-top: 32px; max-width: 640px; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.hero__tags li { font-size: 13px; font-weight: 500; color: var(--text-2); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- Манифест ---------- */
.statement { padding: 60px 24px 140px; }
.statement__text { font-size: clamp(32px, 5.4vw, 68px); line-height: 1.1; letter-spacing: -.04em; font-weight: 700; max-width: 1000px; }
.statement__text .w { color: var(--text-3); transition: color .35s; }
.statement__text .w.on { color: var(--text); }

/* ---------- Обо мне ---------- */
.about { padding-bottom: 140px; }
.about__grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.card--contact { padding: 36px 32px; text-align: center; position: sticky; top: 110px; }
.monogram {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 36px; font-weight: 600; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(180deg, #a1a1a6, #6e6e73);
}
.card__name { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.card__role { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.facts { margin-top: 26px; text-align: left; background: var(--fill-2); border-radius: var(--r-sm); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 15px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--text-2); }
.facts dd { text-align: right; font-weight: 500; }
.facts dd { white-space: nowrap; }
.socials { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.socials__name { font-weight: 500; }

/* значки соцсетей */
.social { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; transition: transform .3s var(--ease), filter .3s; }
.social svg { width: 100%; height: 100%; display: block; }
.social--tg { color: #26a5e4; }
.social--vk { color: #0077ff; border-radius: 7px; }
.social:hover { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 4px 10px currentColor); }
.social--lg {
  width: auto; height: auto; display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px 12px 12px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font-size: 18px; font-weight: 600;
}
.social--lg svg { width: 34px; height: 34px; }
.social--lg.social--tg svg { color: #26a5e4; }
.social--lg.social--vk svg { color: #0077ff; }
.social--lg:hover { filter: none; box-shadow: var(--shadow), 0 10px 30px -10px var(--glow-1); }
.contact__socials { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.about__text { display: grid; gap: 22px; padding-top: 8px; font-size: 19px; color: var(--text-2); }
.about__text .lead { color: var(--text); }

/* ---------- Услуги ---------- */
.services { padding-bottom: 140px; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.service { padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s; }
.service:hover { transform: translateY(-4px); }
.service__num { font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.service > p { color: var(--text-2); }
.checks { display: grid; gap: 8px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue);
}
.service--cta { grid-column: 1 / -1; background: var(--text); color: var(--bg); display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px 28px; }
.service--cta h3 { font-size: 26px; }
.service--cta > p { color: var(--text-3); }
.service--cta .link-arrow { color: var(--bg); white-space: nowrap; }
.service--cta .service__num { color: var(--text-2); }

/* ---------- SEO GEO AEO ---------- */
.search { padding: 140px 0; background: var(--bg-alt); }
.search__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.acronym { padding: 32px; background: var(--bg); box-shadow: none; overflow: hidden; }
.acronym__big {
  font-size: clamp(72px, 9vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .9; margin-bottom: 26px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 300% 100%; background-position: var(--gp, 0%) 0;
  filter: drop-shadow(0 0 24px var(--glow-2));
}
.acronym:nth-child(2) .acronym__big { --gp: 50%; }
.acronym:nth-child(3) .acronym__big { --gp: 100%; }
.acronym h3 { font-size: 17px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; }
.acronym p { font-size: 17px; }
.acronym { display: flex; flex-direction: column; }
.acronym__more { margin-top: auto; padding-top: 16px; }

/* ---------- Работы ---------- */
.works { padding: 140px 24px; }
.segmented {
  position: relative; display: flex; max-width: 100%; width: max-content;
  padding: 3px; margin-bottom: 32px; border-radius: 11px; background: var(--fill);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.segmented button {
  position: relative; z-index: 1; flex: none; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 7px 18px; font-size: 14px; font-weight: 500; border-radius: 8px;
}
.segmented button[aria-pressed="true"] { font-weight: 600; }
.segmented__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 8px; background: var(--thumb);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  transition: transform .35s var(--ease), width .35s var(--ease);
}
.works__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work { padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), opacity .3s; }
.work:hover { transform: translateY(-4px); }
.work.is-hidden, [data-kind].is-hidden { display: none; }
.work__top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill-2); }
.badge--service { color: var(--blue); }
.badge--ai { color: var(--purple); }
.badge--game { color: var(--orange); }
.work__name { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.04em; font-weight: 700; }
.work > p { color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--fill-2); color: var(--text-2); }
.work__links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.work__ext { font-size: 14px; color: var(--text-2); transition: color .2s; }
.work__ext:hover { color: var(--blue); }

/* ---------- Процесс ---------- */
.process { padding: 140px 0; background: var(--bg-alt); }
.process__in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.process__aside { position: sticky; top: 120px; align-self: start; }
.process__counter { margin-top: 40px; font-size: clamp(64px, 9vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.process__counter span:first-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px var(--glow-1)); }
.process__counter span:last-child { color: var(--text-3); font-size: .35em; letter-spacing: -.02em; }
.steps { position: relative; display: grid; gap: 8px; }
.steps::before { content: ""; position: absolute; z-index: 0; left: 23px; top: 52px; bottom: 52px; width: 2px; background: var(--line); }
.steps::after {
  content: ""; position: absolute; z-index: 0; left: 23px; top: 52px; width: 2px; height: calc((100% - 104px) * var(--p, 0));
  background: var(--grad); box-shadow: 0 0 12px var(--glow-1);
}
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 28px 0; }
.step > div { opacity: .35; transition: opacity .5s var(--ease); }
.step.on > div { opacity: 1; }
.step__num {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--text-3); background: var(--bg-alt); border: 2px solid var(--line);
  box-shadow: 0 0 0 6px var(--bg-alt); transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.step.on .step__num { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px var(--bg-alt), 0 0 26px 2px var(--glow-1); }
.step h3 { font-size: 26px; margin: 8px 0 10px; }
.step p { color: var(--text-2); }

/* ---------- Навыки ---------- */
.skills { padding: 140px 0; overflow: hidden; }
.skills .section-head { margin-bottom: 40px; }
.marquee { display: grid; }
/* запас снизу, чтобы тень у плашек не обрезалась краем строки */
.marquee__row { padding: 8px 0 32px; margin-bottom: -28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.chip {
  flex: none; padding: 14px 22px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  font-size: clamp(16px, 1.7vw, 20px); font-weight: 500; white-space: nowrap;
}
.marquee__row:nth-child(2) .chip { background: var(--fill-2); box-shadow: none; }

/* ---------- Блог ---------- */
.blog { padding-bottom: 140px; }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.post__status { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill-2); color: var(--text-2); margin-bottom: 8px; }
.post p { color: var(--text-2); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 140px; }
.faq__list { padding: 8px 32px; max-width: 900px; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-size: 19px; font-weight: 600; }
.faq__icon { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--fill-2); transition: transform .35s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--text-2); }
.faq__icon::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding: 0 48px 24px 0; color: var(--text-2); }
.faq__item[open] .faq__answer { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Контакт ---------- */
.contact { padding: 160px 0; background: var(--bg-alt); text-align: center; overflow: hidden; }
.contact--404 { min-height: 100svh; display: flex; align-items: center; background: none; }
.contact__in { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -.05em; line-height: 1; }
.contact__handle {
  margin-top: 18px; font-size: clamp(34px, 6vw, 80px); font-weight: 700; letter-spacing: -.05em; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 30px var(--glow-2));
}
.contact__note { margin-top: 36px; max-width: 560px; font-size: 19px; color: var(--text-2); }
.contact__list { margin: 22px 0 36px; display: grid; gap: 8px; counter-reset: c; text-align: left; }
.contact__list li { counter-increment: c; display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.contact__list li::before { content: counter(c); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--fill); }

/* ---------- Подвал ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; padding: 140px 0 32px; border-top: 1px solid var(--line); }
.footer__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at var(--fx, 50%) var(--fy, 90%), var(--glow-cursor), transparent 70%),
    radial-gradient(70% 50% at 50% 105%, var(--glow-2), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, var(--glow-1), transparent 70%),
    radial-gradient(35% 30% at 100% 0%, var(--glow-3), transparent 70%);
}
.footer__cta { text-align: center; }
.footer__kicker { font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); }
.footer__big {
  display: inline-flex; align-items: center; gap: .16em; margin-top: 14px;
  font-size: clamp(48px, 10vw, 150px); font-weight: 800; letter-spacing: -.06em; line-height: 1.05;
}
.footer__big-text {
  background-image: linear-gradient(90deg, var(--text), var(--text)), var(--grad);
  background-size: 100% 100%, 100% 100%; background-position: 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-size .8s var(--ease);
}
.footer__big:hover .footer__big-text, .footer__big:focus-visible .footer__big-text { background-size: 0% 100%, 100% 100%; filter: drop-shadow(0 0 30px var(--glow-2)); }
.footer__arrow {
  display: grid; place-items: center; flex: none; width: .6em; height: .6em; border-radius: 50%; color: #fff;
  align-self: center; margin-top: .04em;
  background: var(--blue); box-shadow: 0 0 60px -4px var(--glow-1); transition: transform .6s var(--ease);
}
.footer__arrow svg { width: 52%; height: 52%; display: block; }
.footer__big:hover .footer__arrow { transform: rotate(-45deg) scale(1.08); }
.footer__meta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer__meta > span { padding: 8px 16px; border-radius: 999px; background: var(--fill-2); font-size: 15px; color: var(--text-2); }
.footer__meta .footer__handle { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; color: var(--text); font-weight: 600; }
.footer__handle .social { width: 22px; height: 22px; }
.footer__handle .social--vk { border-radius: 6px; }
.footer__clock time, .footer__status time { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.footer__meta > .footer__status { display: inline-flex; align-items: center; gap: 8px; }
.footer__meta > .footer__status[hidden] { display: none; }
.footer__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.footer__status--work { box-shadow: inset 0 0 0 1px rgba(48, 209, 88, .35); }
.footer__status--work .footer__dot { background: #30d158; animation: pulse 2s infinite; }
.footer__status--sleep .footer__dot { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); } }

.footer__cols { margin-top: 120px; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 36px 24px; }
.footer__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.footer__h span { font-size: 12px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { position: relative; font-size: 15px; color: var(--text-2); transition: color .2s; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__word { margin: 100px 0 16px; text-align: center; user-select: none; pointer-events: none; }
.footer__word span {
  display: inline-block; padding: 0 .04em .08em; font-size: clamp(64px, 18.5vw, 290px); font-weight: 800; letter-spacing: -.075em; line-height: .85; white-space: nowrap;
  background-image: radial-gradient(circle at var(--wx, 50%) var(--wy, 50%), rgba(255, 255, 255, .9) 0, transparent 22%), var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 50px var(--glow-2));
}

.footer__bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.footer__top { padding: 8px 16px; border-radius: 999px; background: var(--fill-2); color: var(--text); font-weight: 500; transition: background .2s; }
.footer__top:hover { background: var(--fill); }
.footer__top span { display: inline-block; transition: transform .4s var(--ease); }
.footer__top:hover span { transform: translateY(-3px); }

/* ---------- Внутренние страницы: язык iOS ---------- */
/* Правила: без градиентных цифр, цветных полос и лишних рамок.
   Иерархия — размером и весом шрифта, группировка — фоном и тонкими разделителями. */
.sect { padding: 0 24px 120px; }

.phero { position: relative; overflow: hidden; padding: 140px 0 96px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; font-size: 15px; color: var(--text-3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--blue); }
.phero__title { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.03; letter-spacing: -.045em; font-weight: 700; max-width: 15em; text-wrap: balance; }
.phero__lead { margin-top: 24px; max-width: 680px; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }

/* ключевые цифры — как характеристики на apple.com */
.kpis { display: flex; flex-wrap: wrap; margin-top: 64px; }
.kpis div { display: flex; flex-direction: column-reverse; gap: 4px; padding-right: 36px; margin-right: 36px; border-right: 1px solid var(--line); }
.kpis div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.kpis dt { font-size: 14px; color: var(--text-2); }
.kpis dd { font-size: 28px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }

/* короткий ответ — крупный абзац без карточки */
.answer-wrap { padding-bottom: 120px; }
.answer { max-width: 920px; }
.answer__label { font-size: 15px; font-weight: 600; color: var(--text-2); }
.answer__q { margin-top: 8px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.03em; }
.answer__a { margin-top: 18px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--text-2); }

.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; max-width: none; }
.section-count { font-size: 20px; font-weight: 600; color: var(--text-3); }
.section-head--row .link-arrow { flex: none; white-space: nowrap; }

/* цены — три колонки, как сравнение моделей */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; padding: 30px 28px 32px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.price--hit { box-shadow: var(--shadow), 0 0 0 1.5px var(--blue); }
.price__badge { min-height: 20px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.price h3 { font-size: 21px; min-height: 2.4em; }
.price__sum { margin-top: 10px; font-size: clamp(30px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.price__term { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.price__desc { margin-top: 16px; font-size: 16px; color: var(--text-2); }
.price__list { margin-top: auto; padding-top: 20px; }
.price__list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
/* один пакет: широкая карточка — цена и описание слева, состав справа */
.prices.prices--one { grid-template-columns: minmax(0, 1fr); }
.prices--one .price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
.prices--one .price > :not(.price__list) { grid-column: 1; }
.prices--one .price__badge:empty, .prices--one .price:not(.price--hit) .price__badge { display: none; }
.prices--one .price h3 { min-height: 0; }
.prices--one .price__list { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; padding-top: 0; }
.prices--one .price__list li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 760px) {
  .prices--one .price { grid-template-columns: minmax(0, 1fr); }
  .prices--one .price__list { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .prices--one .price__list li:first-child { border-top: 1px solid var(--line); padding-top: 11px; }
}

.terms-line { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.terms-line li + li::before { content: "·"; margin: 0 10px; color: var(--text-3); }

/* сгруппированный список, как в «Настройках» */
.ios-list { border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.ios-list > li { position: relative; }
.ios-list > li + li::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--line); }
.ios-list > li > a, .ios-list > li:not(:has(> a)) { display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 15px 20px; }
.ios-list > li > a { transition: background .2s; }
.ios-list > li > a:hover { background: var(--fill-2); }
.ios-list > li > a::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: -4px; border: solid var(--text-3); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ios-list__main { flex: 1; min-width: 0; font-size: 17px; }
.ios-list__main h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.ios-list__main p { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.ios-list__detail { flex: none; font-size: 16px; color: var(--text-2); white-space: nowrap; }
.ios-list__detail--link { color: var(--blue); }
.ios-list__detail--up { color: var(--orange); }
.ios-list__detail--down { color: var(--green); }
.ios-list--2 { display: grid; grid-template-columns: 1fr 1fr; }
.ios-list--2 > li:nth-child(2)::before { display: none; }
.ios-list--2 > li:nth-child(n+3)::before { display: block; }
.ios-list--2 > li + li::before { left: 0; } /* в две колонки линия идёт от края до края */
.ios-list--2 > li:nth-child(even) { box-shadow: -1px 0 0 var(--line); }
.ios-list--check > li:not(:has(> a))::after {
  content: ""; flex: none; width: 7px; height: 13px; margin-right: 4px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px);
}

.ios-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.ios-groups__head { padding: 0 20px 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }

/* плитки */
.bento { display: grid; gap: 16px; }
.bento--4 { grid-template-columns: repeat(2, 1fr); }
.bento--6 { grid-template-columns: repeat(3, 1fr); }
.tile { padding: 28px 30px 30px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.tile h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.tile p { font-size: 16px; color: var(--text-2); }
.bento--4 .tile:first-child { background: var(--text); color: var(--bg); }
.bento--4 .tile:first-child p { color: var(--text-3); }

/* шаги — в одну строку */
.flow { display: grid; gap: 16px; }
.flow--4 { grid-template-columns: repeat(4, 1fr); }
.flow--5 { grid-template-columns: repeat(5, 1fr); }
.flow--6 { grid-template-columns: repeat(3, 1fr); }
.flow li { padding-top: 18px; border-top: 2px solid var(--line); }
.flow li:first-child { border-top-color: var(--blue); }
.flow__n { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.flow h3 { font-size: 19px; margin-bottom: 8px; }
.flow p { font-size: 15px; color: var(--text-2); }

/* сравнение */
.cmp { border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.cmp__scroll { overflow-x: auto; }
.cmp table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 14px; font-weight: 600; color: var(--text-2); }
.cmp tbody th { font-weight: 600; white-space: nowrap; }
.cmp td:last-child, .cmp thead th:last-child { background: color-mix(in srgb, var(--blue) 6%, transparent); }
.cmp thead th:last-child { color: var(--blue); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp__note { padding: 16px 22px 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }

/* примеры работ */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.showcase__item { display: flex; flex-direction: column; }
.showcase__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px; background: var(--fill-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 16px 40px -20px rgba(0, 0, 0, .25); }
.showcase__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .8s var(--ease); }
.showcase__item:hover .showcase__img img { transform: scale(1.025); }
.showcase__name { margin-top: 16px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.showcase__type { margin-top: 2px; font-size: 15px; color: var(--text-2); }

/* услуги на обзорной странице */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 26px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.svc:hover { transform: translateY(-3px); }
.svc h3 { font-size: 21px; }
.svc > p { color: var(--text-2); font-size: 16px; }
.svc__price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 600; }
.svc__price span { font-size: 15px; font-weight: 400; color: var(--text-2); }
.svc--ask { background: var(--fill-2); box-shadow: none; }
.svc--ask .svc__price { color: var(--blue); }

.related { padding-bottom: 120px; }
.related__title { margin-bottom: 14px; padding-left: 20px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }

.process + .faq, .process + .sect { padding-top: 120px; }

@media (max-width: 1000px) {
  .prices, .svc-grid, .bento--6, .ios-groups { grid-template-columns: 1fr 1fr; }
  .flow--5, .flow--4, .flow--6 { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
@media (max-width: 760px) {
  .sect { padding: 0 16px 90px; }
  .phero { padding: 110px 0 70px; }
  .answer-wrap, .related { padding-bottom: 90px; }
  /* Ключевые цифры: на телефоне — ровная сетка 2×2 с тонкими разделителями.
     Длинные значения переносятся по словам, а не выстраиваются в рваную строку. */
  .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
  .kpis div { padding: 13px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .kpis div:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
  .kpis div:nth-child(even) { padding-left: 18px; }
  .kpis div:last-child:nth-child(odd) { border-right: 0; }
  .kpis dd { font-size: 20px; line-height: 1.25; white-space: normal; text-wrap: balance; }
  .kpis dt { font-size: 13px; }
  .prices, .svc-grid, .bento--4, .bento--6, .ios-groups, .flow--4, .flow--5, .flow--6, .showcase { grid-template-columns: 1fr; }
  .ios-list--2 { grid-template-columns: 1fr; }
  .ios-list--2 > li:nth-child(2)::before { display: block; }
  .ios-list--2 > li + li::before { left: 20px; }
  .ios-list--2 > li:nth-child(even) { box-shadow: none; }
  .price h3 { min-height: 0; }
  .section-head--row { flex-wrap: wrap; gap: 8px 20px; }
  .tile { padding: 24px 22px; }
  .showcase { gap: 32px; }
  .process + .faq, .process + .sect { padding-top: 90px; }
}

/* ---------- Цены: калькулятор сметы ---------- */
.calc-sect { padding-bottom: 130px; }
.calc-sect .segmented { margin-bottom: 30px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; }
.calc__groups { display: grid; gap: 34px; min-width: 0; }

.cgroup { min-width: 0; }
.cgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 0 4px 12px; }
.cgroup__head h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.cgroup__head .link-arrow { font-size: 15px; }
/* без overflow: hidden — иначе раскрытый список обрезается у нижней услуги */
.cgroup__items { border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }

.citem { position: relative; transition: background .3s; }
.citem:first-child, .citem:first-child .citem__top { border-radius: 22px 22px 0 0; }
.citem:last-child, .citem:last-child .citem__body { border-radius: 0 0 22px 22px; }
.citem:only-child, .citem:only-child .citem__top { border-radius: 22px; }
.citem + .citem::before { content: ""; position: absolute; top: 0; left: 24px; right: 0; height: 1px; background: var(--line); }
.citem.is-on { background: color-mix(in srgb, var(--blue) 5%, transparent); }
.citem.is-on + .citem::before, .citem.is-on::before { opacity: 0; }

.citem__top { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; cursor: pointer; transition: background .2s; }
.citem__top:hover { background: var(--fill-2); }
.citem__box { position: absolute; width: 1px; height: 1px; opacity: 0; }
.citem__mark {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px;
  border: 2px solid var(--text-3); border-radius: 50%; color: #fff;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.citem__mark svg { display: block; }
.citem__mark path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.citem__box:checked + .citem__mark { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 20px -8px var(--blue); }
.citem__box:checked + .citem__mark path { animation: check .4s var(--ease) forwards; }
.citem__top:active .citem__mark { transform: scale(.88); }
.citem__box:focus-visible + .citem__mark { outline: 3px solid var(--blue); outline-offset: 3px; }
@keyframes check { to { stroke-dashoffset: 0; } }

.citem__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.citem__name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.citem__desc { font-size: 15px; line-height: 1.4; color: var(--text-2); }
.citem__price { flex: none; font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--text-2); transition: color .25s; }
.citem.is-on .citem__price { color: var(--blue); }

.citem__body { display: grid; gap: 14px; padding: 0 24px 22px 68px; animation: body-in .4s var(--ease); }
.citem__body[hidden] { display: none; }
@keyframes body-in { from { opacity: 0; transform: translateY(-8px); } }
.citem__foot { font-size: 15px; color: var(--text-2); }

/* строки выбранных вариантов: плюсом добавляется ещё одна */
/* Вся цепочка обязана уметь сжиматься: иначе длинное название варианта
   в кнопке растягивает карточку и страница уезжает вбок на телефоне. */
.picks, .pick, .pick__row, .sel, .sel__btn, .citem__body { min-width: 0; }
.picks { display: grid; gap: 16px; }
.pick { display: grid; gap: 8px; }
.pick + .pick { padding-top: 16px; border-top: 1px solid var(--line); animation: body-in .35s var(--ease); }
.pick__row { display: flex; align-items: center; gap: 10px; max-width: 620px; }
.pick__row .sel { flex: 1; min-width: 0; max-width: none; }
.pick__btns { display: flex; flex: none; gap: 6px; }
.pick__btn {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--fill-2); color: var(--text-2); cursor: pointer;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.pick__btn:hover { background: var(--fill); color: var(--text); }
.pick__btn:active { transform: scale(.9); }
.pick__btn[hidden] { display: none; }
.pick__btn--add { color: var(--blue); }
.pick__btn--add:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.pick__hint { font-size: 15px; line-height: 1.45; color: var(--text-2); }
.pick__term { font-size: 15px; color: var(--text-2); }
.pick__term b { font-weight: 600; color: var(--text); }

/* выпадающий список вариантов */
.sel { position: relative; max-width: 540px; }
.sel__btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 18px;
  border: 0; border-radius: 14px; background: var(--fill-2); cursor: pointer; text-align: left; transition: background .2s;
}
.sel__btn:hover { background: var(--fill); }
.sel__btn::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: -3px;
  border: solid var(--text-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease);
}
.sel.is-open .sel__btn { background: var(--fill); }
.sel.is-open .sel__btn::after { transform: rotate(-135deg); margin-top: 3px; }
.sel__cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 500; }
.sel__sum { flex: none; font-weight: 600; white-space: nowrap; }
.sel__menu {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); max-height: 62vh; overflow: auto;
  padding: 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 28px 60px -20px rgba(0, 0, 0, .5);
  animation: sel-in .26s var(--ease);
}
/* если снизу не хватает места — список раскрывается вверх */
.sel--up .sel__menu { top: auto; bottom: calc(100% + 8px); animation-name: sel-in-up; }
@keyframes sel-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes sel-in-up { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sel__opt.is-taken { opacity: .45; cursor: default; }
.sel__opt.is-taken:hover { background: none; }
.sel__opt.is-taken .sel__opt-name::after { content: " · уже добавлен"; margin-left: 0; font-size: 13px; font-weight: 500; color: var(--text-3); }
.sel__opt { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.sel__opt:hover, .sel__opt.is-cursor { background: var(--fill-2); }
.sel__opt[aria-selected="true"] { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.sel__opt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sel__opt-name { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.sel__opt[aria-selected="true"] .sel__opt-name::after { content: "✓"; margin-left: 8px; color: var(--blue); }
.sel__opt-sum { flex: none; font-weight: 600; white-space: nowrap; }
.sel__opt-desc { font-size: 15px; line-height: 1.4; color: var(--text-2); }
.sel__opt-term { font-size: 13px; color: var(--text-3); }

/* смета */
.csum { position: sticky; top: 104px; }
.csum__card { position: relative; overflow: hidden; padding: 28px 26px 26px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.csum__glowline { position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); opacity: 0; transition: opacity .5s; }
.csum__card.is-on .csum__glowline { opacity: 1; }
.csum__card.is-on { box-shadow: var(--shadow), 0 30px 60px -40px var(--glow-2); }
.csum__label { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.csum__total { margin-top: 10px; font-size: clamp(40px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.csum__cur, .csum__pre { font-size: .56em; font-weight: 600; color: var(--text-2); }
.csum__pre { margin-right: .18em; }
.csum__cap { margin-top: 2px; font-size: 15px; color: var(--text-2); }
.csum__hourly { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.csum__flash { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); font-size: 14px; line-height: 1.4; animation: rise .3s var(--ease) both; }
.csum__monthly { margin-top: 8px; font-size: 17px; color: var(--text-2); }
.csum__monthly b { font-weight: 600; color: var(--text); }
.csum__empty { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.csum__list { margin-top: 18px; }
.csum__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; animation: rise .35s var(--ease) both; }
.csum__list span { min-width: 0; }
.csum__list i { display: block; font-style: normal; margin-top: 2px; font-size: 13px; color: var(--text-3); }
.csum__list b { flex: none; font-weight: 600; white-space: nowrap; }
.csum__meta { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.csum__meta div { flex: 1; display: grid; gap: 2px; }
.csum__meta dt { font-size: 13px; color: var(--text-2); }
.csum__meta dd { font-size: 17px; font-weight: 600; }
.csum__cta { display: grid; gap: 8px; margin-top: 20px; }
.csum__cta .btn { width: 100%; }
.csum__cta .btn[hidden] { display: none; }
/* мессенджеры отделены от служебных кнопок */
.csum__last-msg { margin-bottom: 16px; }
.csum__copy.is-done { color: var(--green); }
.csum__note { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* итог на мобильном — панель снизу */
.cbar {
  position: fixed; z-index: 45; inset: auto 0 0; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 -1px 0 var(--line); transform: translateY(120%); transition: transform .45s var(--ease);
}
.cbar.is-on { transform: none; }
.cbar__in { display: flex; align-items: center; gap: 14px; max-width: var(--max); margin: 0 auto; }
.cbar__sum { flex: 1; min-width: 0; display: grid; }
.cbar__label { font-size: 13px; color: var(--text-2); }
.cbar__total { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cbar__btn { flex: none; min-height: 44px; padding: 0 20px; font-size: 16px; }

@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr; }
  .csum { position: static; }
  .cbar { display: block; }
  body.has-bar { padding-bottom: 76px; }
}
@media (max-width: 760px) {
  .calc-sect { padding-bottom: 100px; }
  .citem__top { padding: 18px 16px; gap: 13px; }
  .citem__name { font-size: 17px; }
  .citem__price { font-size: 16px; }
  .citem__body { padding: 0 16px 20px 16px; }
  .citem + .citem::before { left: 16px; }
  .csum__card { padding: 24px 20px; }
  .sel__cur { font-size: 16px; }

  /* На телефоне название варианта занимает свою строку, а цена и стрелка уходят под него:
     так ничего не сжимается в многоточие и строка помещается по ширине экрана. */
  .sel__btn { flex-wrap: wrap; align-items: center; padding: 10px 14px; row-gap: 2px; column-gap: 10px; }
  .sel__cur {
    flex: 1 1 auto; order: 1; white-space: normal; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .sel__btn::after { order: 2; margin-left: auto; }
  .sel__sum { order: 3; flex: 1 0 100%; }
  /* В раскрытом списке — тот же порядок: сначала название, под ним цена */
  .sel__opt-row { flex-wrap: wrap; row-gap: 2px; }
  .sel__opt-name { flex: 1 0 100%; }
  .sel__opt-sum { font-size: 16px; }
  .pick__row { gap: 8px; }
  .pick__btns { gap: 4px; }
  .pick__btn { width: 40px; height: 40px; }
}

/* ---------- Портфолио: список ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding-bottom: 130px; }
.gcard {
  --accent: var(--blue);
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 32px;
  background: var(--card); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 40px 80px -40px var(--accent); }
.gcard--wide { grid-column: 1 / -1; }
.gcard__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fill-2); }
.gcard--wide .gcard__img { aspect-ratio: 16 / 8; }
.gcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 35%, transparent)); opacity: 0; transition: opacity .5s; }
.gcard:hover .gcard__img::after { opacity: 1; }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 1s var(--ease); }
.gcard:hover .gcard__img img { transform: scale(1.04); }
.gcard__body { display: grid; gap: 6px; padding: 26px 30px 30px; }
.gcard__type { font-size: 14px; color: var(--text-2); }
.gcard__name { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.gcard__tag { font-size: 17px; color: var(--text-2); }
.gcard__go {
  position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: var(--accent); box-shadow: 0 10px 30px -8px var(--accent);
  transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.gcard:hover .gcard__go { transform: none; opacity: 1; }

/* ---------- Портфолио: сцена проекта ---------- */
.stage { --p: 0; position: relative; background: #000; }
.js .stage { height: 240vh; }
.stage__sticky { position: relative; height: 100svh; overflow: hidden; }
.js .stage__sticky { position: sticky; top: 0; }
.stage__ambient {
  position: absolute; inset: -15%; background-size: cover; background-position: center top;
  filter: blur(70px) saturate(1.8); transform: scale(1.1); opacity: calc(.25 + var(--p) * .6);
}
.stage__glow {
  position: absolute; inset: 0; opacity: var(--p);
  background: radial-gradient(60% 55% at 50% 60%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
}
.stage__shot {
  --s: calc(1 - var(--p) * .3);
  position: absolute; left: 50%; top: 50%; width: 100vw; height: 100svh; margin: 0; overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--s));
  border-radius: calc(var(--p) * 34px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, calc(var(--p) * .8)), 0 0 0 1px rgba(255, 255, 255, calc(var(--p) * .15));
  will-change: transform;
}
.stage__shot picture, .stage__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* затемнение для читаемости заголовка поверх скриншота */
.stage__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--p) * 1.5);
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 55%), linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 20%);
}
.stage__bar {
  position: absolute; z-index: 2; inset: 0 0 auto; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  background: rgba(30, 30, 32, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: var(--p); transform: translateY(calc((var(--p) - 1) * 44px));
}
.stage__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.stage__bar i:nth-child(2) { background: #febc2e; }
.stage__bar i:nth-child(3) { background: #28c840; }
.stage__bar span { margin: 0 auto; padding: 4px 18px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); font-size: 13px; }
.stage__phone {
  position: absolute; right: max(4vw, calc(50% - 640px)); bottom: 6vh; z-index: 3; width: clamp(150px, 15vw, 230px);
  aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; border: 7px solid #111; background: #111;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
  opacity: calc(var(--p) * 3 - .45); transform: translateY(calc((1 - var(--p)) * 60%)) rotate(calc((1 - var(--p)) * 6deg));
}
.stage__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.stage__title {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 18vh max(24px, calc(50% - 580px)) 9vh; color: #fff;
  opacity: calc(1 - var(--p) * 2); transform: translateY(calc(var(--p) * -60px));
}
/* матовая полоса под заголовком: скриншот виден, текст читается */
.stage__title::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .5) 55%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  -webkit-mask-image: linear-gradient(0deg, #000 62%, transparent); mask-image: linear-gradient(0deg, #000 62%, transparent);
}
/* такая же полоса сверху, под шапкой сайта */
.stage__sticky::before {
  content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 130px; pointer-events: none; opacity: calc(1 - var(--p) * 2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent);
  background: rgba(0, 0, 0, .35);
}
.stage__title .crumbs ol { color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.stage__title .crumbs a { color: rgba(255, 255, 255, .8); }
.stage__type { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.stage__title h1 {
  margin-top: 6px; font-size: clamp(56px, 11vw, 168px); line-height: .92; letter-spacing: -.06em; font-weight: 800;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .45);
}
.stage__tagline { margin-top: 16px; max-width: 640px; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.35; color: rgba(255, 255, 255, .88); }
.stage__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn--light { background: #fff; color: #111; }
.btn--light:hover { background: #f0f0f2; }
.btn--glass { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.stage__hint {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); opacity: calc(1 - var(--p) * 4); animation: hint 2s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 6px); } }
.no-js .stage__hint, html:not(.js) .stage__hint { display: none; }

/* шапка поверх тёмной сцены — светлая, пока страница не прокручена */
.is-case .nav:not(.is-scrolled):not(.is-open) { --text: #fff; --text-3: rgba(255, 255, 255, .6); --fill-2: rgba(255, 255, 255, .14); }

/* ---------- Портфолио: описание проекта ---------- */
.case { --accent: var(--blue); padding-top: 120px; padding-bottom: 100px; }
.case__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.case__lead { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; text-wrap: pretty; }
.case__h { margin-top: 36px; font-size: 17px; font-weight: 600; color: var(--text); }
.case__task { margin-top: 10px; font-size: 19px; color: var(--text-2); max-width: 62ch; }
.case__facts { position: sticky; top: 110px; padding: 26px 28px; box-shadow: var(--shadow), 0 30px 60px -40px var(--accent); }
.case__facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px; }
.case__facts dl div + div { border-top: 1px solid var(--line); }
.case__facts dt { color: var(--text-2); }
.case__facts dd { text-align: right; font-weight: 600; }
.case__facts dd a { color: var(--blue); }
.case__facts .tags { margin-top: 16px; }
.case__title { margin-top: 110px; margin-bottom: 30px; }
.done { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.done li { display: flex; gap: 14px; padding: 18px 22px; box-shadow: 0 -1px 0 var(--line), -1px 0 0 var(--line); }
.done span { flex: none; min-width: 24px; font-size: 15px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.done p { font-size: 17px; }
.case__lead { margin-top: 14px; font-weight: 500; }
.case__label { font-size: 17px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }

/* витрина: ПК и телефон */
.duo { --accent: var(--blue); position: relative; overflow: hidden; padding: 120px 0; background: var(--bg-alt); isolation: isolate; }
.duo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 50% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.duo__in { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.duo__desk { position: relative; width: min(860px, 88%); margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.duo__desk .stage__bar { position: relative; opacity: 1; transform: none; height: 38px; }
.duo__desk img { display: block; width: 100%; height: auto; }
.duo__phone { position: absolute; right: max(0px, calc(50% - 520px)); bottom: -30px; width: clamp(130px, 17vw, 230px); margin: 0; aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; border: 7px solid #111; background: #111; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); }
.duo__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* следующий проект */
.nextcase { display: grid; grid-template-columns: 1fr 2fr 1fr; min-height: 260px; border-top: 1px solid var(--line); }
.nextcase > a { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 40px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; transition: background .3s; }
.nextcase > a:hover { background: var(--fill-2); }
.nextcase__prev span, .nextcase__label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.nextcase__all { align-items: flex-end; text-align: right; color: var(--blue); }
.nextcase__next { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #111; }
.nextcase__next:hover { background: #111 !important; }
.nextcase__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: top; opacity: .45; transition: opacity .5s, transform 1s var(--ease); }
.nextcase__next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .75), color-mix(in srgb, var(--accent) 35%, transparent)); }
.nextcase__next:hover .nextcase__bg { opacity: .7; transform: scale(1.05); }
.nextcase__next .nextcase__label { color: rgba(255, 255, 255, .7); }
.nextcase__name { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }

@media (max-width: 1000px) {
  .case__grid { grid-template-columns: 1fr; gap: 32px; }
  .case__facts { position: static; }
  .done { grid-template-columns: 1fr 1fr; }
  .nextcase { grid-template-columns: 1fr 1fr; }
  .nextcase__next { grid-column: 1 / -1; grid-row: 1; min-height: 220px; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; gap: 20px; padding-bottom: 100px; }
  .gcard--wide .gcard__img { aspect-ratio: 16 / 10; }
  .gcard__body { padding: 22px 22px 26px; }
  .gcard__go { opacity: 1; transform: none; width: 44px; height: 44px; }
  .js .stage { height: 190vh; }
  .stage__shot { --s: calc(1 - var(--p) * .22); }
  .stage__phone { display: none; }
  .stage__title { padding-bottom: 12vh; }
  .stage__cta .btn { flex: 1 1 auto; }
  .case { padding-top: 80px; padding-bottom: 70px; }
  .case__title { margin-top: 70px; }
  .done { grid-template-columns: 1fr; }
  .duo { padding: 80px 0 100px; }
  .duo__desk { width: 100%; }
  .duo__phone { right: 8px; bottom: -50px; width: 32%; border-width: 5px; border-radius: 22px; }
  .nextcase > a { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stage { height: auto; }
  .js .stage__sticky { position: relative; }
}

/* ---------- Блог ---------- */
/* типографская обложка вместо картинки: цвет рубрики и крупное слово */
.bcover {
  --c: var(--blue);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  aspect-ratio: 16 / 10; padding: 22px 24px; border-radius: 22px;
  background: color-mix(in srgb, var(--c) 11%, var(--card));
}
.bcover__cat { font-size: 13px; font-weight: 600; color: var(--c); }
.bcover__word {
  font-size: clamp(44px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.055em; line-height: .95; color: var(--c);
  transition: transform .8s var(--ease);
}
.bcover--lg { aspect-ratio: auto; min-height: 100%; padding: 30px 34px; }
.bcover--lg .bcover__word { font-size: clamp(64px, 9vw, 140px); }
.bcover--wide { aspect-ratio: 3 / 1; margin-top: 44px; padding: 28px 34px; border-radius: 28px; }
.bcover--wide .bcover__word { font-size: clamp(64px, 11vw, 170px); }

.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.bgrid--2 { grid-template-columns: repeat(2, 1fr); }
.bcard__link { display: flex; flex-direction: column; height: 100%; }
.bcard__link:hover .bcover__word { transform: translateY(-4px); }
.bcard__body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.bcard__meta { font-size: 14px; color: var(--text-2); }
.bcard__meta span { font-weight: 600; }
.bcard__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.bcard__lead { font-size: 16px; color: var(--text-2); }
.bcard__read { font-size: 14px; color: var(--text-3); }
.bcard__link:hover .bcard__title { color: var(--blue); }

/* главная статья — во всю ширину, обложка слева */
.bcard--lead { grid-column: 1 / -1; }
.bcard--lead .bcard__link { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.bcard--lead .bcard__body { padding-top: 0; gap: 12px; }
.bcard--lead .bcard__title { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.1; }
.bcard--lead .bcard__lead { font-size: 19px; }
.bcard--lead .bcover { aspect-ratio: 4 / 3; }

.blog__all { margin-top: 28px; }
.phero--blog .phero__title { font-size: clamp(56px, 9vw, 120px); }

/* статья */
.post__head { padding-top: 140px; }
.post__cat { font-size: 15px; font-weight: 600; }
.post__title { margin-top: 10px; max-width: 16em; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.post__lead { margin-top: 20px; max-width: 680px; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--text-2); }
.post__meta { margin-top: 18px; font-size: 15px; color: var(--text-3); }

.post__layout { display: grid; grid-template-columns: 240px minmax(0, 700px); justify-content: space-between; gap: 64px; padding-top: 64px; padding-bottom: 110px; }
.post__toc { position: sticky; top: 110px; align-self: start; }
.post__toc p { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.post__toc ol { display: grid; gap: 2px; counter-reset: toc; }
.post__toc li { counter-increment: toc; }
.post__toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.35; color: var(--text-2); transition: color .2s; }
.post__toc a::before { content: counter(toc); flex: none; width: 16px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.post__toc a:hover { color: var(--blue); }

.post__body { font-size: 19px; line-height: 1.65; }
/* текст и картинка на обычной странице — той же ширины, что в статье */
.sect--text .post__body, .sect--text .post__figure { max-width: 760px; }
.sect--text .post__body > :last-child { margin-bottom: 0; }
.post__body > h2 { margin: 56px 0 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.03em; scroll-margin-top: 100px; }
.post__body > p { margin: 0 0 18px; }
.post__body > ul, .post__body > ol { margin: 0 0 22px; padding-left: 0; display: grid; gap: 10px; }
.post__body > ul li { position: relative; padding-left: 22px; }
.post__body > ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.post__body > ol { counter-reset: li; }
.post__body > ol li { counter-increment: li; position: relative; padding-left: 36px; }
.post__body > ol li::before { content: counter(li); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--fill); }
.post__summary { margin-bottom: 8px; padding: 26px 28px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.post__summary h2 { margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.post__summary p { font-size: 19px; line-height: 1.55; }
.post__note { margin: 28px 0 !important; padding: 22px 26px; border-radius: 20px; background: var(--fill-2); font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -.015em; }
.post__table { margin: 8px 0 26px; font-size: 16px; line-height: 1.45; }
.post__faq { margin-top: 56px; }
.post__faq h2 { margin-bottom: 20px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; scroll-margin-top: 100px; }
.post__faq .faq__list { padding: 4px 26px; }
.post__faq .faq__item h3 { font-size: 18px; }
.post__service {
  display: flex; flex-direction: column; gap: 4px; margin-top: 32px; padding: 22px 26px; border-radius: 22px;
  background: var(--card); box-shadow: var(--shadow); transition: transform .35s var(--ease);
}
.post__service:hover { transform: translateY(-3px); }
.post__service span { font-size: 14px; color: var(--text-2); }
.post__service strong { font-size: 20px; letter-spacing: -.02em; color: var(--blue); }
.post__service strong::after { content: " →"; }
.post__more { padding-top: 0; }

@media (max-width: 1000px) {
  .bgrid { grid-template-columns: 1fr 1fr; }
  .bcard--lead .bcard__link { grid-template-columns: 1fr; gap: 20px; }
  .post__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post__toc { position: static; margin-bottom: 36px; padding: 20px 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
}
@media (max-width: 760px) {
  .bgrid, .bgrid--2 { grid-template-columns: 1fr; }
  .post__head { padding-top: 110px; }
  .post__layout { padding-top: 40px; padding-bottom: 80px; }
  .post__body { font-size: 17px; }
  .post__note { font-size: 19px; }
  .bcover--wide { aspect-ratio: 16 / 9; margin-top: 30px; }
}

/* ---------- Блоки статьи из редактора ---------- */
.post__table { margin: 8px 0 26px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); overflow-x: auto; }
.post__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.post__table th, .post__table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post__table thead th { font-size: 14px; font-weight: 600; color: var(--text-2); }
.post__table tbody th { font-weight: 600; }
.post__table tbody tr:last-child th, .post__table tbody tr:last-child td { border-bottom: 0; }

/* прямой ответ — блок, который цитируют нейросети */
.post__answer { margin: 32px 0; padding: 24px 28px; border-radius: 22px; background: var(--fill-2); border-left: 3px solid var(--blue); }
.post__answer-q { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.post__answer-a { margin-top: 10px; font-size: 18px; line-height: 1.55; color: var(--text-2); }

.post__body > ol.post__steps { margin: 26px 0; display: grid; gap: 14px; }
.post__body > ol.post__steps li { padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.post__body > ol.post__steps li::before { content: none; }
.post__step-n { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.post__steps b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.post__steps span:last-child { display: block; margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--text-2); }

.post__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 28px 0; }
.post__facts div { padding: 18px 20px; border-radius: 18px; background: var(--fill-2); }
.post__facts dt { font-size: 14px; color: var(--text-2); }
.post__facts dd { margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }

.post__quote { margin: 32px 0; padding: 0 0 0 24px; border-left: 3px solid var(--text-3); }
.post__quote p { font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: -.015em; }
.post__quote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; color: var(--text-3); }

.post__code { margin: 24px 0; padding: 20px 22px; border-radius: 18px; background: var(--fill-2); overflow-x: auto; }
.post__code code { font: 15px/1.6 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

.post__figure { margin: 32px 0; }
.post__figure img { width: 100%; height: auto; display: block; border-radius: 20px; }
.post__figure figcaption { margin-top: 10px; font-size: 15px; color: var(--text-3); }

.post__tile {
  display: grid; gap: 8px; place-items: center; margin: 32px 0; padding: 48px 32px; border-radius: 24px;
  color: #fff; text-align: center; background: linear-gradient(135deg, #0071e3, #8944ab);
}
.post__tile--purple { background: linear-gradient(135deg, #8944ab, #e0457b); }
.post__tile--dark { background: linear-gradient(135deg, #1d1d1f, #3a3a3c); }
.post__tile-big { font-size: clamp(34px, 6vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.post__tile-sub { font-size: 18px; opacity: .85; }

.post__body h3 { margin: 32px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.post__body .faq__item h3 { margin: 0; font-size: 18px; letter-spacing: 0; } /* вопросы в статье — не подзаголовки текста */
.post__body a { color: var(--blue); }
.post__body a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .post__answer, .post__tile { padding: 22px 20px; }
  .post__answer-q { font-size: 19px; }
  .post__tile { padding: 34px 20px; }
  .post__quote p { font-size: 19px; }
}

/* ---------- Появление при скролле ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .menu { display: none; }
  .burger { display: block; }
  .nav__cta { margin-left: auto; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1181px) {
  .sheet { display: none; }
}
@media (max-width: 1000px) {
  .search__grid, .blog__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .card--contact { position: static; max-width: 440px; }
  .process__in { grid-template-columns: 1fr; gap: 24px; }
  .process__aside { position: static; }
  .process__counter { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .wrap, .nav__in { padding-left: 16px; padding-right: 16px; }
  .nav__in { height: 72px; }
  .logo__mark { width: 40px; height: 40px; font-size: 26px; border-radius: 12px; }
  .logo__name { font-size: 22px; }
  .hero { padding: 110px 0 60px; }
  .hero__cta .btn { width: 100%; }
  .works { padding: 100px 16px; }
  .works__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .service, .work, .post, .acronym { padding: 26px 22px; }
  .service--cta { grid-template-columns: 1fr; }
  .search, .process, .skills { padding: 100px 0; }
  .services, .about, .blog, .faq { padding-bottom: 100px; }
  .statement { padding: 20px 16px 100px; }
  .segmented { max-width: calc(100% + 16px); margin-right: -16px; border-radius: 11px 0 0 11px; }
  .segmented button { padding: 7px 14px; }
  .faq__list { padding: 4px 20px; }
  .faq__answer { padding-right: 0; }
  .contact { padding: 110px 0; }
  .step { gap: 16px; }
  .step h3 { font-size: 22px; }
  .footer { padding-top: 100px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); margin-top: 80px; }
  .footer__word { margin-top: 70px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .sheet__in { padding-top: 88px; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .burger { margin-left: auto; }
  .logo__sub { display: none; }
  .sheet__group summary, .sheet__plain { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rotator__list span:not(:first-child) { display: none; }
  .grain { display: none; }
}

/* обзор направления: если карточка-вопрос оказалась одна в ряду — растягиваем её */
@media (min-width: 1001px) {
  .svc--ask:nth-child(3n + 2) { grid-column: span 2; }
}
