/* 2dev.pro — стили сайта
   Цвета: спокойный серо-зелёный нейтральный фон, графитовый текст, один акцент — тёмная ель.
   Все цвета задаются токенами ниже; тёмная тема переопределяет только токены. */

:root {
  --bg: #f4f6f5;
  --bg-tint: #eaeeec;
  --surface: #ffffff;
  --ink: #17201c;
  --ink-2: #4b5852;
  --ink-3: #75817b;
  --line: #d6ddd9;
  --line-strong: #b9c3be;
  --accent: #1d5a4a;
  --accent-hover: #164839;
  --accent-ink: #ffffff;
  --accent-soft: #dceae5;
  --signal: #a86a12;
  --signal-soft: #f5e9d3;
  --ok: #2c7a4f;
  --err: #b3261e;
  --err-soft: #fbe9e7;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --section: clamp(64px, 9vw, 120px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111614;
    --bg-tint: #161c19;
    --surface: #1a211e;
    --ink: #e3e9e6;
    --ink-2: #a4b0aa;
    --ink-3: #7c8883;
    --line: #29332f;
    --line-strong: #3a4641;
    --accent: #7cc2a9;
    --accent-hover: #95d2bc;
    --accent-ink: #0d1411;
    --accent-soft: #1d2e28;
    --signal: #e0a54a;
    --signal-soft: #33281a;
    --ok: #7cc2a9;
    --err: #f2867d;
    --err-soft: #3a1f1d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111614;
  --bg-tint: #161c19;
  --surface: #1a211e;
  --ink: #e3e9e6;
  --ink-2: #a4b0aa;
  --ink-3: #7c8883;
  --line: #29332f;
  --line-strong: #3a4641;
  --accent: #7cc2a9;
  --accent-hover: #95d2bc;
  --accent-ink: #0d1411;
  --accent-soft: #1d2e28;
  --signal: #e0a54a;
  --signal-soft: #33281a;
  --ok: #7cc2a9;
  --err: #f2867d;
  --err-soft: #3a1f1d;
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; letter-spacing: -0.022em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border-radius: var(--r-sm); border: 1px solid transparent;
  padding: 12px 18px; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 14px; font-size: .94rem; }
.btn--lg { padding: 15px 22px; font-size: 1.03rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 32px; height: 68px; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__svg { display: block; height: 42px; width: auto; }
.logo__ring { stroke: var(--accent); }
.logo__two { fill: var(--accent); }
.logo__dev { fill: var(--ink); }
.logo--small .logo__svg { height: 34px; }

.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .97rem; }
.nav a:hover { color: var(--ink); }

.theme-toggle, .menu-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

.menu-toggle { display: none; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 1px; position: relative; transition: transform .2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__sub { margin-top: 24px; font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Задача → решение: главный визуальный элемент */
.brief { margin: 0; position: relative; }
.brief__caption { font-size: .95rem; color: var(--ink-2); margin-bottom: 12px; }
.brief__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.brief__tab {
  font: 500 .9rem/1 var(--font); color: var(--ink-2); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 13px;
}
.brief__tab:hover { color: var(--ink); border-color: var(--ink-3); }
.brief__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* все примеры лежат в одной ячейке — высота блока не прыгает при переключении */
.brief { display: grid; grid-template-columns: minmax(0, 1fr); }
.brief__panel { grid-row: 3; grid-column: 1; }
.brief__panel[hidden] { display: block; visibility: hidden; }
.brief__title { margin-top: 6px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.brief__ask {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px;
  padding: 22px 24px; max-width: 92%;
}
.brief__ask blockquote { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.brief__label { font-size: .85rem; color: var(--ink-3); }
.brief__answer {
  margin: 14px 0 0 auto; width: 92%;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg); padding: 22px 24px 24px;
}
.brief__answer .brief__label { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.brief__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.brief__list li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
.brief__dot {
  flex: none; width: 8px; height: 8px; border-radius: 2px; transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent-ink) 75%, transparent);
}
/* одна анимация при загрузке: пункты решения появляются по очереди */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.brief-seen) #brief-sales .brief__answer { animation: brief-in .5s .35s both cubic-bezier(.2,.7,.2,1); }
  .js:not(.brief-seen) #brief-sales .brief__list li { animation: brief-item .4s both cubic-bezier(.2,.7,.2,1); }
  .js:not(.brief-seen) #brief-sales .brief__list li:nth-child(1) { animation-delay: .65s; }
  .js:not(.brief-seen) #brief-sales .brief__list li:nth-child(2) { animation-delay: .8s; }
  .js:not(.brief-seen) #brief-sales .brief__list li:nth-child(3) { animation-delay: .95s; }
  .js:not(.brief-seen) #brief-sales .brief__list li:nth-child(4) { animation-delay: 1.1s; }
  .js:not(.brief-seen) #brief-sales .brief__list li:nth-child(5) { animation-delay: 1.25s; }
}
@keyframes brief-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes brief-item { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Что разрабатываем ---------- */
.services { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 80px); }
.service { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.service dt { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.service dd { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* ---------- Простота ---------- */
.ux { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ux__intro .lead { margin-top: 14px; }
.ux__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 48px); }
.ux__list > div { padding: 20px 0 22px; border-top: 1px solid var(--line-strong); }
.ux__list dt { font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }
.ux__list dd { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- Готовые решения ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter__btn {
  font: 500 .94rem/1 var(--font); color: var(--ink-2); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.filter__btn span { color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter__btn:hover { color: var(--ink); border-color: var(--ink-3); }
.filter__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter__btn[aria-pressed="true"] span { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.solutions--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sol[hidden] { display: none; }
.sol__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color .15s;
}
.sol__link:hover { color: inherit; border-color: var(--line-strong); }
.sol__link:hover .sol__title { color: var(--accent); }
.sol__cover { aspect-ratio: 16 / 9; background: var(--bg-tint); border-bottom: 1px solid var(--line); overflow: hidden; }
.sol__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sol__body { padding: 20px 22px 24px; }
.sol__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .88rem; color: var(--ink-3); }
.sol__title { font-size: 1.22rem; transition: color .15s; }
.sol__tagline { margin-top: 8px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.spheres {
  margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px);
  background: var(--bg-tint); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px);
}
.spheres h3 { font-size: 1.35rem; margin-bottom: 12px; }
.spheres__text p { color: var(--ink-2); max-width: 56ch; }
.spheres__text p + p { margin-top: 20px; }
.spheres__label { font-size: .92rem; color: var(--ink-3); margin-bottom: 12px; }
.spheres__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spheres__list li { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.empty { color: var(--ink-2); padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 500; padding: 4px 10px 4px 8px; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ready { background: var(--accent-soft); color: var(--accent); }
.badge--adapt { background: var(--bg-tint); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge--pilot { background: var(--signal-soft); color: var(--signal); }

/* Схематичные обложки вместо скриншотов */
.ph { width: 100%; height: 100%; display: flex; gap: 6%; padding: 7% 8% 0; }
.ph span, .ph i { display: block; }
.ph__app, .ph__win, .ph__doc, .ph__phone {
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.ph__app { flex: 1; display: flex; }
.ph__nav { width: 22%; border-right: 1px solid var(--line); padding: 10% 8%; display: grid; gap: 10px; align-content: start; }
.ph__nav span { height: 6px; border-radius: 3px; background: var(--line); }
.ph__nav span:first-child { background: var(--accent); width: 70%; }
.ph__main { flex: 1; padding: 6%; }
.ph__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.ph__col { background: var(--bg-tint); border-radius: 5px; padding: 6px; display: grid; gap: 6px; align-content: start; }
.ph__col i { height: 18px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); }
.ph__col i.ph__hl { border-color: var(--accent); background: var(--accent-soft); }
.ph__win { flex: 1; }
.ph__titlebar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ph__titlebar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ph__table { padding: 8px 10px; display: grid; gap: 6px; }
.ph__tr { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; padding: 5px 6px; border-radius: 3px; }
.ph__tr span { height: 6px; border-radius: 3px; background: var(--line); }
.ph__tr--mark { background: var(--signal-soft); }
.ph__tr--mark span:last-child { background: var(--signal); }
.ph__doc { flex: 0 1 62%; margin: 0 auto; padding: 8% 9%; display: grid; gap: 9px; align-content: start; }
.ph__line { height: 6px; border-radius: 3px; background: var(--line); }
.ph__line--strong { height: 9px; background: var(--ink-3); margin-bottom: 6px; }
.ph__signs { display: flex; gap: 10px; margin-top: 10px; }
.ph__sign { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.ph__sign--ok { border: 0; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ph__phone { flex: 0 0 34%; border-radius: 14px 14px 0 0; padding: 8% 6%; display: grid; gap: 8px; align-content: start; margin-left: 8%; }
.ph__bar { height: 6px; width: 40%; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }
.ph__scan { height: 46px; border-radius: 6px; border: 1.5px solid var(--accent); background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 5px, var(--ink-3) 5px 6px, transparent 6px 10px); opacity: .55; }
.ph__btn { height: 20px; border-radius: 5px; background: var(--accent); margin-top: 6px; }
.ph__side { flex: 1; padding-top: 14%; display: grid; gap: 10px; align-content: start; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }

/* ---------- Три способа ---------- */
.ways { overflow-x: auto; }
.ways__table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ways__table th, .ways__table td { text-align: left; vertical-align: top; padding: 18px 20px; border-top: 1px solid var(--line); }
.ways__table thead th { border-top: 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; padding-bottom: 14px; }
.ways__table thead td { border-top: 0; }
.ways__table tbody th { font-weight: 500; color: var(--ink-3); width: 18%; font-size: .95rem; padding-left: 0; }
.ways__table tbody td { color: var(--ink-2); width: 27.3%; }
.ways__table tbody td:nth-of-type(2), .ways__table thead th:nth-of-type(2) { background: var(--surface); }
.ways__table thead th:nth-of-type(2) { border-radius: var(--r-md) var(--r-md) 0 0; }
.ways__price { color: var(--ink) !important; background: transparent !important; }

/* ---------- Процесс ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: .95rem;
  background: var(--bg-tint); position: relative; z-index: 1; margin-bottom: 20px;
}
.step::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1.5px; background: var(--line-strong); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .98rem; }
.step .step__result { margin-top: 14px; color: var(--ink); font-weight: 500; font-size: .95rem; }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.team__intro .lead { margin-top: 14px; }
.team__people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.person__avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.person h3 { margin-bottom: 8px; }
.person p { color: var(--ink-2); font-size: .97rem; }
.promises { grid-column: 1 / -1; list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--ink-2); }
.promises strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Стек ---------- */
.stack { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.stack > div { padding: 18px 0; border-top: 1px solid var(--line); }
.stack dt { font-size: .92rem; color: var(--ink-3); margin-bottom: 4px; }
.stack dd { margin: 0; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 500; font-size: 1.08rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa summary:hover { color: var(--accent); }
.qa__answer { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 66ch; }
.qa__answer p + p { margin-top: 10px; }

/* ---------- Заявка ---------- */
.contact { background: var(--bg-tint); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); }
.contact__intro .lead { margin-top: 14px; }
.contact__note { margin-top: 14px; color: var(--ink); font-weight: 500; }
.contact__ways { margin: 36px 0 0; display: grid; gap: 14px; }
.contact__ways > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.contact__ways dt { color: var(--ink-3); }
.contact__ways dd { margin: 0; }
.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-weight: 500; font-size: .95rem; }
.optional { color: var(--ink-3); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field--error input { border-color: var(--err); }
.field__error { color: var(--err); font-size: .9rem; }

.field--choices { border: 0; padding: 0; margin: 0; }
.field--choices legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices > div { display: contents; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: .93rem;
  border: 1px solid var(--line-strong); color: var(--ink-2); transition: all .15s;
}
.choice:hover span { border-color: var(--ink-3); color: var(--ink); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field--check .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; }
.notice--ok { background: var(--accent-soft); color: var(--ink); }
.notice--ok svg { color: var(--ok); flex: none; margin-top: 2px; }
.notice--err { background: var(--err-soft); color: var(--err); margin: 0; }

/* ---------- Страница решения ---------- */
.detail__head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.crumbs { display: flex; gap: 8px; font-size: .93rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.detail__head h1 { max-width: 20ch; font-size: clamp(2rem, 4vw, 3rem); }
.detail__tagline { margin-top: 18px; font-size: 1.18rem; color: var(--ink-2); max-width: 58ch; }
.detail__meta { margin-top: 20px; }
.detail__head .hero__actions { margin-top: 28px; }
.detail__media { margin-bottom: clamp(40px, 6vw, 72px); }
.detail__cover { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-tint); }
.detail__cover--ph { aspect-ratio: 21 / 9; overflow: hidden; }
.detail__cover--ph .ph { padding-top: 5%; }
.shots { margin: 0; }
.shots__stage { position: relative; }
.shots__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-lg); }
.shots__open img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.shots__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transition: background .15s, color .15s, opacity .15s;
}
.shots__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shots__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.shots__nav--prev { left: 16px; }
.shots__nav--next { right: 16px; }
.shots__stage .shots__nav { opacity: 0; }
.shots__stage:hover .shots__nav, .shots__stage:focus-within .shots__nav { opacity: 1; }
@media (hover: none) { .shots__stage .shots__nav { opacity: 1; width: 40px; height: 40px; } }
.shots__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.shots__caption { color: var(--ink-2); font-size: .95rem; }
.shots__count { color: var(--ink-3); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shots__thumbs {
  display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; scrollbar-width: thin;
}
.shots__thumb {
  flex: 0 0 168px; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); background: none; cursor: pointer;
  overflow: hidden; opacity: .65; transition: opacity .15s, border-color .15s; scroll-snap-align: start;
}
.shots__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.shots__thumb:hover { opacity: 1; }
.shots__thumb[aria-selected="true"] { opacity: 1; border-color: var(--accent); }
.shots__thumb:focus-visible, .shots__nav:focus-visible, .shots__open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 16px 20px 20px; border: 0;
  background: rgba(10, 14, 12, .97); color: #fff; display: none; flex-direction: column;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; }
.lightbox__count { font-variant-numeric: tabular-nums; opacity: .8; }
.lightbox__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox .shots__nav { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.18); box-shadow: none; opacity: 1; }
.lightbox .shots__nav:hover { background: #fff; color: #111; }
.lightbox .shots__nav--prev { left: 8px; }
.lightbox .shots__nav--next { right: 8px; }
.lightbox__caption { text-align: center; margin: 12px 0 0; opacity: .85; min-height: 1.4em; }
@media (max-width: 640px) {
  .shots__thumb { flex-basis: 120px; }
  .lightbox { padding: 10px; }
  .lightbox__stage { padding: 0 0 64px; }
  .lightbox .shots__nav { top: auto; bottom: 0; transform: none; }
  .lightbox .shots__nav--prev { left: calc(50% - 56px); }
  .lightbox .shots__nav--next { right: calc(50% - 56px); }
}
.detail__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.detail__text > p { font-size: 1.08rem; max-width: 66ch; }
.detail__text > p + p { margin-top: 16px; }
.detail__text h2 { font-size: 1.5rem; margin: 44px 0 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.detail__aside { display: grid; gap: 28px; align-content: start; }
.aside-block { padding-top: 18px; border-top: 1px solid var(--line); }
.aside-block h2 { font-size: 1rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
.aside-block ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.aside-block p { color: var(--ink-2); }
.tags { list-style: none; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 6px !important; }
.tags li { font-size: .9rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.others__title { margin-bottom: 28px; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .95rem; }
.footer__row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer__brand p { margin-top: 12px; color: var(--ink-3); max-width: 40ch; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--ink-3); }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .brief { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .step:nth-child(2)::after { display: none; }
  .team { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .contact__grid { grid-template-columns: 1fr; }
  .solutions--compact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-grid; }
  .services { grid-template-columns: 1fr; }
  .ux { grid-template-columns: 1fr; gap: 28px; }
  .spheres { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr 1fr; }
  .detail__body { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; gap: 16px; }
  .footer__row { grid-template-columns: 1fr; gap: 20px; }

  /* таблица «Три способа» превращается в три блока */
  .ways__table { min-width: 0; }
  .ways__table thead { display: none; }
  .ways__table, .ways__table tbody, .ways__table tr { display: block; }
  .ways__table tr { display: grid; gap: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .ways__table tbody th { width: auto; padding: 0 0 10px; border: 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
  .ways__table tbody td { display: block; width: auto; border: 0; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); background: transparent !important; }
  .ways__table tbody td::before { content: attr(data-label); display: block; font-size: .85rem; color: var(--ink-3); margin-bottom: 2px; }
  .ways__table tbody td.ways__price { border-left-color: var(--accent); }
  .ways__table tbody td.ways__price::before { content: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header__cta { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .team__people { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { padding: 0 0 0 54px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step::after { display: block !important; top: 40px; bottom: -28px; left: 17px; right: auto; width: 1.5px; height: auto; }
  .step:last-child::after { display: none !important; }
  .stack { grid-template-columns: 1fr; }
  .ux__list { grid-template-columns: 1fr; }
  .solutions--compact { grid-template-columns: 1fr; }
  .brief__ask, .brief__answer { width: 100%; max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .contact__ways > div { grid-template-columns: 80px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s, color .15s;
}
.to-top[hidden] { display: grid; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .to-top { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
main:focus { outline: none; }
