/* Основа оформления. Величины сняты с живого сайта на Wix (design/design.json):
   чёрный фон, бирюзовый акцент, кегли 13–55, скругление кнопок 3px. */

:root {
  /* Цвет */
  --bg: #000;
  --bg-panel: #0d0d0d;
  --bg-field: #141416;
  --line: #2a2a2e;
  --text: #fff;
  --muted: #8a8a93;
  /* бирюзовый из фирменного стиля JAM (jamdigital.io); на светлом фоне — тёмный тон того же цвета */
  --accent: #00ffe0;
  --accent-bright: #66ffec;
  --accent-dim: rgba(0, 255, 224, 0.12);
  --accent-ink: #007a6b;
  --text-soft: rgba(255, 255, 255, 0.76);
  --line-soft: rgba(255, 255, 255, 0.18);

  /* Шрифт фирменного стиля — Montserrat, как на jamdigital.io (assets/fonts/montserrat.css) */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Кегли: от исходных значений, но текучие — на Wix они были жёстко
     зафиксированы и на узких экранах ломались */
  --t-hero: clamp(34px, 3.8vw, 55px);
  --t-h2: clamp(26px, 2.6vw, 38px);
  --t-h3: clamp(18px, 1.5vw, 25px);
  --t-lead: clamp(16px, 1.25vw, 18px);
  --t-body: clamp(15px, 1.1vw, 16px);
  --t-small: clamp(13px, 1vw, 14px);

  /* Сетка */
  --gutter: clamp(20px, 4.2vw, 60px);
  --wrap: 1320px;
  --radius: 3px;
  --radius-lg: 10px;
  --section: clamp(64px, 7vw, 120px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { margin: 0; }

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Доступность: убирать обводку фокуса нельзя — по сайту ходят с клавиатуры */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* Ссылка для тех, кто листает табом: позволяет перескочить меню */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: #000;
}
.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent-bright);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- шапка ---------- */

/* Всё в одну строку и по центру по вертикали: на Wix телефон занимал
   отдельную строку сверху и сбивал выравнивание (см. CHANGES.md) */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo__text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  margin-inline-start: auto;
  font-size: var(--t-small);
}

.nav a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.langs a {
  padding: 5px 9px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, background 0.18s ease;
}

.langs a:hover { color: var(--text); }

.langs a[aria-current="true"] {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-bright);
  font-size: var(--t-small);
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: var(--accent);
  color: #000;
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn--solid:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.btn--plain {
  border-color: var(--line);
  color: var(--text);
}

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

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

/* Первый экран как в оригинале: многоугольная подложка во всю ширину,
   высокий блок, текст слева и колонка услуг справа врастяжку по высоте. */
.hero {
  position: relative;
  min-height: min(86vh, 860px);
  display: grid;
  align-items: center;
  --hero-top: 1;
  padding-block: clamp(48px, 7vw, 96px);
  overflow: hidden;
  /* постер виден сразу и остаётся фоном там, где видео не играет */
  background: #000 url("/assets/img/hero-poster.jpg") center / cover no-repeat;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* На телефоне видео не грузим вовсе: три мегабайта ради фоновой текстуры —
   это дороже, чем вся остальная страница. Остаётся постер. */
@media (max-width: 860px) {
  .hero__bg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { display: none; }
}

/* затемнение, чтобы текст читался поверх светлых граней подложки */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: stretch;
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__title {
  max-width: 12ch;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 300;
}

/* большой межстрочный интервал, как в оригинале */
.hero__lead {
  margin-top: auto;
  padding-top: clamp(24px, 4vw, 56px);
  max-width: 46ch;
  font-size: var(--t-lead);
  line-height: 1.95;
  color: #d4d7da;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 64px);
}

/* четыре кнопки распределены по всей высоте блока, а не собраны кучкой */
.hero__services {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 28px);
  align-content: stretch;
}

.hero__services .btn {
  justify-content: center;
  font-size: var(--t-body);
  font-weight: 400;
  padding-block: 16px;
}

.hero__services .btn span { display: none; }

/* ---------- сетка работ ---------- */

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.section__lead {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--muted);
}

/* Сетка работ во всю ширину окна и встык, без зазоров и скруглений —
   так она и была на Wix, и в этом вся её сила: сплошное полотно работ. */
.grid-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}


/* Карточка целиком — ссылка на кейс. По наведению поверх обложки
   появляется название и кнопка: на Wix карточки вообще никуда не вели,
   и все able кейсы были недостижимы (см. SEO-FINDINGS.md). */
.case {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-panel);
  isolation: isolate;
}

.case__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* логотип на прозрачном фоне вписываем целиком, а не обрезаем */
.case--fit .case__img {
  object-fit: contain;
  padding: 14%;
}

/* тёмный логотип на чёрном не виден — такой карточке светлая подложка */
.case--light {
  background: #f4f6f7;
}

.case__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(16px, 1.6vw, 26px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.case__name {
  font-size: var(--t-h3);
  line-height: 1.2;
}

.case__tag {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--t-small);
}

.case__go {
  align-self: flex-start;
  pointer-events: none;
}

.case:hover .case__veil,
.case:focus-visible .case__veil {
  opacity: 1;
}

.case:hover .case__img {
  transform: scale(1.04);
}

/* На сенсорных экранах наведения нет — подпись видна всегда, иначе
   карточка выглядит нерабочей картинкой */
@media (hover: none) {
  .case__veil {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  }
  .case__go { display: none; }
}

/* ---------- логотипы клиентов ---------- */

/* Отдельная плашка чуть светлее страницы, как в оригинале: так ряд
   логотипов читается блоком, а не висит в черноте. */
.clients-band {
  background: #141414;
  padding-block: clamp(36px, 4.5vw, 64px);
}

.clients-band h2 {
  margin-bottom: clamp(26px, 3.4vw, 52px);
  font-size: var(--t-lead);
  font-weight: 500;
}

.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(28px, 3.8vw, 64px) clamp(16px, 2.4vw, 40px);
}

/* Одинаковая по высоте ячейка, картинка вписывается внутрь: иначе логотипы
   с разными исходными размерами выходят кто с ноготь, кто во всю строку. */
.clients img {
  width: 100%;
  height: clamp(38px, 3.8vw, 58px);
  object-fit: contain;
  object-position: center;
  opacity: 0.62;
  transition: opacity 0.2s ease;
}

.clients img:hover { opacity: 1; }

@media (max-width: 900px) {
  .clients { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- блок о студии ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

/* в оригинале этот заголовок жирный и крупный — единственный такой на
   странице, он держит на себе весь блок */
.about__title {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.12;
}

.about__text {
  color: #e2e4e7;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  font-weight: 300;
}

/* три кнопки разнесены по ширине, а не собраны в кучку слева */
.about__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
  margin-top: clamp(40px, 5vw, 80px);
}

.about__actions .btn {
  justify-self: start;
}

@media (max-width: 560px) {
  .about__actions { grid-template-columns: minmax(0, 1fr); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--line);
}

.stat__value {
  font-size: clamp(30px, 3.4vw, 48px);
  color: var(--accent-bright);
  line-height: 1;
}

.stat__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--t-small);
}

/* ---------- видео ---------- */

.reel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  aspect-ratio: 16 / 9;
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- форма ---------- */

.lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--muted);
  font-size: var(--t-small);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-field);
  color: var(--text);
  font: inherit;
  font-size: var(--t-body);
  transition: border-color 0.18s ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: #ff6b6b;
}

.field__error {
  color: #ff6b6b;
  font-size: var(--t-small);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form__grid > .field--wide {
  grid-column: 1 / -1;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--t-small);
}

.consent a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__note {
  margin-top: 16px;
  font-size: var(--t-small);
}

.form__note--ok { color: var(--accent-bright); }
.form__note--bad { color: #ff6b6b; }

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 72px);
}

.footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
}

.footer h3 {
  margin-bottom: 14px;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer li + li { margin-top: 9px; }

.footer a {
  color: #cfd2d6;
  font-size: var(--t-small);
  transition: color 0.18s ease;
}

.footer a:hover { color: var(--accent-bright); }

.footer__legal {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- чат ---------- */

.chat-launcher {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.25s;
}

.chat-launcher:hover { background: var(--accent-bright); }
.chat-launcher:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.chat-launcher--lift { transform: translateY(calc(-1 * var(--lift, 104px))); }
.chat-open .chat-launcher { background: var(--bg-field); color: var(--text); }

.chat-launcher__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #ff5a5a;
}

.chat {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: calc(clamp(16px, 2vw, 28px) + 68px);
  z-index: 58;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 120px));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  overflow: hidden;
}

.chat[hidden] { display: none; }

.chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chat__head b { display: block; font-weight: 600; }
.chat__head span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.chat__close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chat__close:hover { color: var(--text); background: var(--bg-field); }

.chat__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat__msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  font-size: var(--t-small);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat__msg--agent { align-self: flex-start; background: var(--bg-field); border-bottom-left-radius: var(--radius); }
.chat__msg--me { align-self: flex-end; background: var(--accent-dim); border: 1px solid rgba(0, 255, 224, 0.35); border-bottom-right-radius: var(--radius); }

.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--line);
}

.chat__form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-field);
  color: var(--text);
  font: inherit;
  font-size: var(--t-small);
  line-height: 1.45;
  resize: none;
}

.chat__form textarea:focus { outline: none; border-color: var(--accent); }
.chat__form .btn { flex: none; min-height: 42px; padding-inline: 16px; }

.chat__err { padding: 0 14px; color: #ff6b6b; font-size: 12px; }
.chat__note { padding: 2px 14px 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.chat__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.chat__note a:hover { color: var(--accent-bright); }

/* на телефоне чат на весь экран, кнопка прячется под ним */
@media (max-width: 560px) {
  .chat {
    inset: 0;
    width: auto;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .chat-open .chat-launcher { display: none; }
  .chat-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher { transition: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .hero__in,
  .about,
  .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__in { grid-template-columns: minmax(0, 1fr); }
  .hero__services { grid-template-columns: minmax(0, 1fr); }
  .grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case__go { display: none; }
  .case__name { font-size: var(--t-body); }
}

/* Внутренние страницы: услуги, кейсы, студия, контакты, документы.
   Держим тот же язык, что и на главной: чёрный фон, бирюзовый контур,
   тонкие разделители, без теней и скруглений сверх 3px у кнопок. */

/* ---------- шапка: мобильное меню ---------- */

.header__in { gap: clamp(14px, 2vw, 32px); }
.langs { margin-inline-start: 4px; }
.nav__cta { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: 72px 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 16px var(--gutter) 32px;
    background: #000;
    font-size: var(--t-h3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav a {
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .nav .nav__cta {
    display: inline-flex;
    margin-top: 24px;
    border-bottom: 0;
    font-size: var(--t-body);
    color: #000;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-open { overflow: hidden; }
}

/* ---------- заголовок внутренней страницы ---------- */

.page-head,
.case-head {
  padding-block: clamp(48px, 7vw, 110px) clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
}

.eyebrow a {
  color: var(--accent-bright);
}

.page-head__title {
  max-width: 22ch;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 300;
}

.page-head__lead {
  max-width: 62ch;
  margin-top: 22px;
  color: #cfd2d6;
  font-size: var(--t-lead);
  line-height: 1.75;
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
}

/* ---------- общие разделы ---------- */

.section__title {
  margin-bottom: clamp(24px, 3vw, 44px);
  font-size: var(--t-h2);
}

.section__text {
  max-width: 68ch;
  margin-top: 18px;
  color: #cfd2d6;
  line-height: 1.75;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section--flush {
  padding-top: 0;
}

.link {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- нумерованные шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step {
  padding: clamp(20px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step__n {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-bright);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.step__title {
  font-size: var(--t-h3);
  line-height: 1.3;
}

.step__text {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.card {
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--accent); }

.card__title {
  font-size: var(--t-h3);
  line-height: 1.3;
}

.card__text {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- тарифы ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.price {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price__name {
  font-size: var(--t-h3);
  line-height: 1.3;
}

.price__value {
  color: var(--accent-bright);
  font-size: var(--t-lead);
}

.price .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- предложения внутри хаба ---------- */

.offers {
  border-top: 1px solid var(--line);
}

.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-h3);
  transition: color 0.2s ease, padding 0.2s ease;
}

.offer:hover {
  color: var(--accent-bright);
  padding-inline-start: 10px;
}

.offer__arrow { color: var(--accent-bright); }

/* ---------- обзор услуг ---------- */

.hubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.hub {
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hub__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--text);
}

.hub__head span { color: var(--accent-bright); }
.hub__head:hover h2 { color: var(--accent-bright); }

.hub__text {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.hub__kids {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hub__kids li + li { margin-top: 8px; }

.hub__kids a {
  color: var(--accent-bright);
  font-size: var(--t-small);
}

/* ---------- кейс ---------- */

.case-cover {
  max-width: var(--wrap);
  margin: clamp(28px, 3vw, 44px) auto 0;
  padding-inline: var(--gutter);
}

.case-cover img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  aspect-ratio: 16 / 8;
}

.case-cover--fit img {
  object-fit: contain;
  background: var(--bg-panel);
  padding: 8%;
}

.case-cover--light img { background: #f4f6f7; }

.quote {
  margin: 0;
  padding: clamp(26px, 3vw, 44px);
  border-left: 2px solid var(--accent);
  background: var(--bg-panel);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
  font-weight: 300;
}

.quote figcaption {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  font-size: var(--t-small);
}

.quote figcaption span { color: var(--muted); }

.case-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
}

.case-block__n {
  color: var(--accent-bright);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1;
  font-weight: 200;
}

.case-block h2 {
  margin-bottom: 22px;
  font-size: var(--t-h2);
}

.steps--case {
  margin-top: 8px;
}

.story {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.story__item {
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story__item h3 {
  margin-bottom: 12px;
  font-size: var(--t-h3);
}

.story__item p {
  color: #cfd2d6;
  line-height: 1.7;
}

/* цифры кейса: сроки, итерации, команда */
dl.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

dl.stats .stat { display: flex; flex-direction: column-reverse; gap: 8px; }
dl.stats dt { color: var(--muted); font-size: var(--t-small); }
dl.stats dd { margin: 0; color: var(--accent-bright); font-size: clamp(26px, 3vw, 42px); line-height: 1; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 0;
  margin-top: var(--section);
}

.gallery__item {
  margin: 0;
  background: var(--bg-panel);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- текст и документы ---------- */

.prose p {
  max-width: 70ch;
  color: #cfd2d6;
  line-height: 1.78;
}

.prose p + p { margin-top: 16px; }

.prose--legal h2 {
  margin: clamp(32px, 4vw, 52px) 0 14px;
  font-size: var(--t-h3);
  font-weight: 500;
}

.prose--legal h3 {
  margin: 22px 0 8px;
  font-size: var(--t-body);
  font-weight: 600;
}

/* ---------- контакты ---------- */

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.way {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--t-h3);
  transition: border-color 0.2s ease;
}

.way:hover { border-color: var(--accent); }
.way > span:last-child { color: var(--accent-bright); }
.way__note { font-size: var(--t-small); }

/* ---------- форма: ловушка для ботов и ошибки ---------- */

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent--invalid { color: #ff6b6b; }

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.linklike:hover { color: var(--accent-bright); }

.footer__mail {
  margin-top: 16px;
  font-size: var(--t-small);
}

/* ---------- калькулятор ---------- */

/* Белый виджет uCalc заменён своим, в цветах сайта. Плотно: варианты группы —
   один список строк с общими границами, доплата за слайд — столбцом справа,
   итог — полоса под вариантами, прилипающая к низу экрана, пока калькулятор
   виден не целиком. Группы стоят по две в ряд, в узком месте — в один столбец. */
.calc {
  display: grid;
  gap: 20px;
  container-type: inline-size;
}

.calc__head .section__title { margin-bottom: 8px; }

.calc__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}

@container (max-width: 600px) {
  .calc__body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.calc__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.calc__group legend {
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc__group legend[data-per]::after {
  content: attr(data-per);
  float: right;
  letter-spacing: 0;
  text-transform: none;
}

.calc__opt {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.calc__opt + .calc__opt { margin-top: -1px; }
.calc__opt:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.calc__opt:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.calc__opt:only-of-type { border-radius: var(--radius); }
.calc__opt:hover { z-index: 1; border-color: #3a3a40; }

/* выбранная строка поверх соседних, чтобы бирюзовая рамка не пряталась под их границей */
.calc__opt:has(input:checked) {
  z-index: 2;
  border-color: var(--accent);
  background: var(--accent-dim);
}

.calc__opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.calc__hint { color: var(--accent-bright); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.calc__count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc__count input {
  width: 72px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  text-align: center;
}

.calc__count input:focus { border-color: var(--accent); outline: none; }

.calc__step {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.calc__step:hover { border-color: var(--accent); color: var(--accent-bright); }
.calc__unit { margin-left: 4px; color: var(--muted); font-size: 14px; }

.calc__total {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.calc__amount { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.calc__total-label { color: var(--muted); font-size: 13px; }

.calc__sum {
  color: var(--accent-bright);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.calc__note { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.calc__total .btn { margin-left: auto; white-space: nowrap; }

@media (max-width: 760px) {
  .calc__total {
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    border-radius: 0;
    border-inline: 0;
  }
  /* подпись над суммой — тогда сумма и кнопка помещаются в одну строку */
  .calc__amount { flex-direction: column; align-items: flex-start; gap: 0; }
  .calc__total-label { font-size: 11px; }
  .calc__sum { font-size: 22px; }
  .calc__total .btn { padding-inline: 16px; }
  .calc__note { flex-basis: 100%; order: 3; }
}

/* ---------- согласие на cookie ---------- */

.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(10px);
  font-size: var(--t-small);
  line-height: 1.55;
}

.cookies p { flex: 1 1 320px; color: #cfd2d6; }
.cookies a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.cookies__actions { display: flex; gap: 10px; }
.cookies .btn { font-weight: 600; }

/* ---------- 404 ---------- */

.nf-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.nf { display: grid; gap: 16px; justify-items: start; }

/* ---------- адаптив ---------- */

@media (max-width: 760px) {
  .case-block { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .case-cover img { aspect-ratio: 4 / 3; }
}

/* Вёрстка по снимку Wix (src/wix.js). Положение элементов приходит переменными:
   --ml/--mlh — отступ слева в % родителя, --w — ширина в %, --g/--t — отступ
   сверху в пикселях макета 1440. --u переводит пиксели макета в экранные:
   на 1440 и шире это 1px, уже — пропорционально. */

:root {
  --u: min(1px, calc(100vw / 1440));
  --gmax: 100000px;
  --ink: #2f2e2e;
}

/* фирменный бирюзовый */
.wcol, .wheader, .wfooter { --tl: var(--accent); }

/* container-type: от ширины секции считаются края сетки (cqw в src/wix.js) */
.wsec {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.wcol {
  position: relative;
  flex: 0 0 var(--cw);
  width: var(--cw);
  min-height: calc(var(--minh) * var(--u));
  color: #fff;
}

.wbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wbg__img,
.wbg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wbg__ov { position: absolute; inset: 0; }

.wroot {
  position: relative;
  z-index: 1;
  margin-left: var(--ml);
  width: var(--w);
  padding-top: calc(var(--t, 0) * var(--u));
  padding-bottom: calc(var(--pb, 0) * var(--u));
}

.wv { display: flex; flex-direction: column; align-items: flex-start; }
.wv > * { margin-left: var(--ml); width: var(--w); margin-top: min(calc(var(--g) * var(--u)), var(--gmax)); }
.wroot.wv,
.wroot.wh { margin-top: 0; }

.wh { display: flex; align-items: flex-start; }
.wh > * { flex: 0 0 auto; width: var(--w); margin-left: var(--mlh); margin-top: min(calc(var(--t) * var(--u)), var(--gmax)); }
/* подпись слева, цена справа: в одну строку при любой длине перевода */
.wh--row { justify-content: space-between; align-items: baseline; gap: 24px; }
.wh--row > * { width: auto; margin: 0; }
.wh--row > :first-child { flex: 0 1 auto; min-width: 0; }
.wh--row > :last-child { white-space: nowrap; }

/* ---------- текст ---------- */

/* Кегли крупнее, чем на Wix: сетка стала шире, а мелкий текст на большом экране читался тяжело.
   Слова не рвём посередине — длинное слово лучше выйдет за край блока */
.wt {
  margin: 0;
  font-size: calc(var(--fs) * 1.05px);
  line-height: 1.4;
  overflow-wrap: normal;
  letter-spacing: -0.005em;
}
.wt--big { font-size: clamp(calc(var(--fs) * 0.62px), calc(var(--fs) * 115vw / 1440), calc(var(--fs) * 1.15px)); font-weight: 300 !important; line-height: 1.14 !important; letter-spacing: -0.012em; }
.wt--mid { font-size: clamp(calc(var(--fs) * 0.82px), calc(var(--fs) * 100vw / 1440), calc(var(--fs) * 1px)); }
/* номера разделов */
.wt--num { color: var(--tl) !important; font-weight: 500; }
.wt .acc { color: var(--tl); }
.wt a { color: inherit; text-decoration: none; transition: color 0.2s; }
.wt a:hover { color: var(--tl); }
.wt .acc a,
.wt a .acc { color: inherit; }
.wpara { display: block; }
.wpara + .wpara { margin-top: 0.9em; }

/* ---------- кнопки, картинки, значки ---------- */

.wbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(var(--h) * 1px);
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.wbtn:hover { border-color: var(--accent); color: var(--accent); }
.wbtn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
/* Montserrat шире шрифта Wix: подпись кнопки не переносим, кнопка становится чуть шире */
.wbtn { white-space: nowrap; }
.wl--btn { min-width: max-content; }
/* страница из одной секции (заявка) — на всю высоту окна, без пустой полосы снизу */
main > .wsec:only-child { min-height: 100svh; }
.wbtn--filled { background: var(--accent); border-color: var(--accent); color: #000; }
.wbtn--filled:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #000; }
.wbtn--dark { background: #fff; border-color: #fff; color: #000; }
.wbtn--dark:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #000; }

.wimg { display: block; }
.wimg img { display: block; width: 100%; height: auto; object-fit: cover; }
a.wimg { transition: opacity 0.2s; }
a.wimg:hover { opacity: 0.85; }

.warrow { display: block; color: inherit; opacity: 0.75; transition: opacity 0.2s, transform 0.2s; }
.warrow:hover { opacity: 1; transform: translateX(4px); }
.warrow svg { display: block; width: 100%; height: auto; }

.wvideo { display: block; width: 100%; height: auto; background: #000; }

.wicons { display: flex; flex-direction: column; gap: calc(var(--ig) * var(--u)); }

/* блок контактов: подпись, ниже почта и значки в одну строку */
.wcontact { display: flex; flex-direction: column; gap: 12px; }
.wcontact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.wcontact__icons { display: flex; gap: 10px; }
.wcontact__icons .wimg { width: 39px; }

/* ---------- сетка работ (как галерея Wix) ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile { position: relative; display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; background: #000; color: #fff; text-decoration: none; }
.tile__img { display: block; width: 100%; height: 100%; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
/* Плитка бесшовная, поэтому подпись лежит на самой обложке и видна всегда: клиент и что сделали.
   Затемнение снизу: там, где текст, не слабее 0.62 (белый читается и на белой обложке, контраст выше 5:1),
   выше быстро сходит на нет, чтобы не гасить логотип */
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; max-height: 200px; background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0, rgba(0, 0, 0, 0.62) 96px, rgba(0, 0, 0, 0.24) 140px, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.tile__cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: block; padding: 0 clamp(14px, 1.7vw, 24px) clamp(12px, 1.5vw, 22px); }
.tile__cap b { display: block; margin-bottom: 2px; overflow: hidden; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.tile__cap span { display: block; color: rgba(255, 255, 255, 0.9); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.35; }
.tile:hover img,
.tile:focus-visible img { transform: scale(1.03); }
.tile:hover .tile__cap b,
.tile:focus-visible .tile__cap b { color: var(--accent); }
.tile:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }

/* ---------- телефон ---------- */

@media (max-width: 760px) {
  :root { --u: 0.6px; --gmax: 36px; }
  .wsec { display: block; }
  .wcol { width: 100%; min-height: 0; }
  .wcol--media { min-height: calc(var(--minh) * 0.5px); }
  .wroot { margin-left: 0; width: auto; padding-left: var(--gutter); padding-right: var(--gutter); padding-top: min(calc(var(--t, 0) * var(--u)), 40px); padding-bottom: min(calc(var(--pb, 0) * var(--u)), 40px); }
  /* колонки с одинаковым фоном встают друг под друга как один блок: без двойного отступа на стыке */
  .wcol--cont .wroot { padding-top: 20px; }
  .wcol:has(+ .wcol--cont) .wroot { padding-bottom: 0; }
  .wv > * { margin-left: 0; width: 100%; }
  .wh { flex-direction: column; }
  .wh > * { width: 100%; margin-left: 0; margin-top: 16px; }
  .wh > :first-child { margin-top: 0; }
  .wh--row { gap: 4px; }
  .wh--row > :last-child { white-space: normal; margin-top: 0; }
  .wh--row .wt { text-align: left !important; }
  .wh--icons { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
  .wh--icons > * { width: auto; max-width: 42%; margin: 0; }
  .wh--icons > .wl--img { width: calc(var(--iw) * 1px); }
  .wh--grid { flex-direction: row; flex-wrap: wrap; gap: 24px 16px; }
  .wh--grid > * { width: calc(50% - 8px); margin: 0; }
  .wl--img .wimg { max-width: min(100%, calc(var(--iw, 9999) * 1px)); }
  /* кнопки — на всю ширину, с ровным шагом */
  .wl--btn { min-width: 0; }
  .wl--btn + .wl--btn { margin-top: 12px; }
  .wh--btns > * { margin-top: 12px; }
  .wroot.wl--video { padding: 0; }
  .wicons { flex-direction: row; gap: 12px; }
  .wicons .wimg { width: 39px; }
  /* значки с подписью (форматы): ровная сетка, значки одной высоты, подпись точно под значком */
  .wv:has(> .wh--figs) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; align-items: start; }
  .wv:has(> .wh--figs) > .wh--figs { display: contents; }
  .wh--figs > .wfig { align-items: center; margin: 0; }
  .wfig > .wl--img { width: auto; margin: 0; }
  .wfig .wimg img { width: 56px; height: 56px; aspect-ratio: auto !important; object-fit: contain; }
  .wfig > .wl--text { margin-top: 8px; }
  /* кегль: подпись остаётся читаемой, абзац в кейсе не разрастается; межстрочный из макета на узкой колонке слишком редкий */
  .wt { font-size: clamp(15px, calc(10px + var(--fs) * 0.34px), 20px); line-height: 1.5 !important; }
  .wt--big { font-size: max(30px, calc(var(--fs) * 0.66px)); line-height: 1.16 !important; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile::after { height: 100px; background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0, rgba(0, 0, 0, 0.64) 66px, rgba(0, 0, 0, 0.22) 84px, rgba(0, 0, 0, 0) 100%); }
  .tile__cap { padding: 0 10px 10px; }
  .tile__cap b { font-size: 14px; }
  .tile__cap span { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* ---------- шапка (как на Wix) ---------- */

:root { --hh: 96px; }

.wheader { position: relative; z-index: 50; background: #000; }
.wheader--over { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.wheader--over + main > .wsec:first-child .wcol { padding-top: var(--hh); }

/* края шапки — по сетке 1200 px, как у содержимого секций; когда пункты
   в эту ширину не влезают, шапка берёт сколько нужно */
.wheader__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  width: calc(1200 * var(--u));
  min-width: max-content;
  height: var(--hh);
  margin: 0 auto;
}
/* у картинки логотипа прозрачное поле слева — на Wix она стоит на 5 px левее сетки */
.wlogo { flex: none; display: block; width: clamp(150px, 14.7vw, 211px); margin-left: calc(-5 * var(--u)); }
.wlogo img { display: block; width: 100%; height: auto; }

.wlang { position: relative; flex: none; color: #fff; font-size: 16px; }
.wlang summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; list-style: none; cursor: pointer; }
.wlang summary::-webkit-details-marker { display: none; }
.wlang summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.wlang[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.wlang ul { position: absolute; top: 100%; left: 0; min-width: 100%; margin: 0; padding: 6px 0; list-style: none; background: #0d0d0d; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.wlang a { display: block; padding: 6px 14px; color: #fff; text-decoration: none; }
.wlang a:hover,
.wlang a[aria-current] { color: var(--accent-bright); }

.wnav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 27px); margin-left: auto; font-size: 16px; }
.wnav a { color: #fff; text-decoration: none; transition: color 0.2s; }
.wnav a:hover,
.wnav a[aria-current="page"] { color: var(--accent); }
.wnav__item { position: relative; }
.wnav__sub { position: absolute; top: 100%; left: -16px; min-width: 200px; margin: 0; padding: 14px 0 10px; list-style: none; background: #000; border: 1px solid var(--line); border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.wnav__sub a { display: block; padding: 7px 16px; }
.wnav__item:hover .wnav__sub,
.wnav__item:focus-within .wnav__sub { opacity: 1; visibility: visible; transform: none; }
.wheader .nav__cta { display: none; }
.wheader__cta { flex: none; width: auto; padding: 0 22px; font-size: 13px; }

@media (max-width: 900px) {
  :root { --hh: 68px; }
  .wheader__in { width: auto; min-width: 0; padding: 0 var(--gutter); }
  .wlogo { margin-left: 0; }
  .wheader__cta { display: none; }
  .wnav { margin-left: 0; }
  .wnav__item { display: contents; }
  .wnav__sub { display: none; }
  .wheader .nav { inset: var(--hh) 0 0; }
  .wheader .nav .nav__cta { display: inline-flex; width: auto; min-width: 220px; margin-top: 24px; border-bottom: 1px solid var(--accent); color: var(--accent-bright); font-size: 15px; }
  .wheader .burger { border-color: rgba(255, 255, 255, 0.3); }
}

/* ---------- подвал (как на Wix) ---------- */

.wfooter { background: #000; color: #fff; }
.wfooter__in {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr);
  width: calc(1200 * var(--u));
  margin: 0 auto;
  padding: 40px 0 44px;
  font-size: 16px;
}
.wfooter__logo img { display: block; width: 145px; height: auto; }
.wfooter__col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wfooter__col b { margin-bottom: 12px; font-weight: 700; line-height: 1.4; }
.wfooter__col a { color: #fff; text-decoration: none; transition: color 0.2s; }
.wfooter__col a:hover { color: var(--accent-bright); }
.wsocial { display: flex; gap: 10px; margin-top: 10px; }
.wsocial a { display: block; width: 39px; height: 39px; transition: opacity 0.2s; }
.wsocial a:hover { opacity: 0.75; }
.wsocial img,
.wsocial svg { display: block; width: 39px; height: 39px; }
.wfooter__mail { margin-top: 14px; font-size: 14px; }
.wfooter__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  width: calc(1200 * var(--u));
  margin: 0 auto;
  padding: 14px 0 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 300;
}
.wfooter__bottom .linklike { font-weight: 300; }

@media (max-width: 900px) {
  .wfooter__in,
  .wfooter__bottom { width: auto; margin: 0 var(--gutter); }
  .wfooter__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .wfooter__logo { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wfooter__in { grid-template-columns: 1fr; }
  .wfooter__bottom { grid-template-columns: 1fr; }
}

/* ---------- форма заявки (как на Wix) ---------- */

.wform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  width: 100%;
}
.wf { display: flex; flex-direction: column; gap: 6px; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.wf--wide { grid-column: 1 / -1; }
.wf input,
.wf select,
.wf textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s;
}
.wf textarea { min-height: 96px; resize: vertical; }
.wf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.wf select option { color: #000; }
.wf input::placeholder,
.wf textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.wf input:hover,
.wf select:hover,
.wf textarea:hover { border-color: rgba(255, 255, 255, 0.4); }
.wf input:focus,
.wf select:focus,
.wf textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wform__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.wform .consent { color: var(--text-soft); font-size: 14px; font-weight: 400; }
.wform .consent a { color: inherit; }
.wform .wbtn { width: auto; flex: none; padding: 0 28px; font-size: 15px; }
.wform .form__note { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .wform { grid-template-columns: 1fr; }
  .wform__foot { flex-direction: column; align-items: stretch; }
  .wform .wbtn { width: 100%; }
}

/* фоновое видео на телефоне и при «уменьшить движение» не крутим — остаётся заставка */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .wbg__video { display: none; }
}

/* линии-разделители Wix */
.wline { display: block; width: 100%; border-top: var(--lw) solid var(--lc); }
.wline--v { width: 0; border-top: 0; border-left: var(--lw) solid var(--lc); }
@media (max-width: 760px) { .wline--v { display: none; } }

/* подвал: у .footer__legal из старых стилей свои отступы и линия — здесь не нужны */
.wfooter .footer__legal { margin: 0; padding: 0; border: 0; color: inherit; font-size: inherit; }

/* калькулятор на месте окна uCalc; заголовок у секции свой, из снимка Wix */
.wcol .calc__head { display: none; }
.wcol .section.wrap { margin: 0; padding: 0; max-width: none; }

.wclose { position: relative; z-index: 2; display: block; color: #fff; }
.wclose svg { display: block; width: 100%; height: auto; }

/* на телефоне стрелки у пунктов не нужны — ссылкой служит сам заголовок */
@media (max-width: 760px) {
  .wl--arrow { display: none; }
  .wl--close { position: absolute; top: 16px; right: 16px; width: 32px !important; margin: 0 !important; z-index: 3; }
  /* крестик в углу колонки с формой — форма начинается под ним */
  .wclose-pos ~ .wroot { padding-top: 64px; }
}
.wclose-pos { position: absolute; z-index: 3; left: var(--cx); top: calc(var(--cy) * var(--u)); }
@media (max-width: 760px) { .wclose-pos { left: auto; right: 16px; top: 16px; } }

/* ---------- политика конфиденциальности (как страница соглашения на Wix) ---------- */

.wlegal { position: relative; max-width: 1200px; margin: 0 auto; padding: calc(70 * var(--u)) var(--gutter) calc(110 * var(--u)); box-sizing: content-box; }
.wlegal__body { max-width: 760px; margin-top: 36px; color: #f5f5f5; font-size: 16px; font-weight: 300; line-height: 1.65; }
.wlegal__body h2 { margin: 2.2em 0 0.7em; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.3; }
.wlegal__body h3 { margin: 1.6em 0 0.5em; color: #fff; font-size: 17px; font-weight: 600; }
.wlegal__body p { margin: 0 0 1em; }
@media (max-width: 760px) { .wlegal { padding-top: 32px; padding-bottom: 56px; } }

/* ---------- 404 ---------- */

.wsec--404 .nf-wrap { position: relative; z-index: 1; display: grid; align-items: center; min-height: calc(760 * var(--u)); max-width: 1200px; margin: 0 auto; padding: var(--hh) var(--gutter) 60px; box-sizing: content-box; }
.wsec--404 .nf { gap: 22px; max-width: 620px; }
@media (max-width: 760px) { .wsec--404 .nf-wrap { min-height: 100svh; } }

/* бывшие светлые блоки: на тёмном фоне весь текст белый, бирюза остаётся акцентом */
.wsec--dark .wcol { color: #fff; --tl: var(--accent); }
.wsec--dark .wt { color: #fff !important; }
.wsec--dark .wt .acc,
.wsec--dark .wt--num { color: var(--accent) !important; }
.wsec--dark .wline { --lc: var(--line-soft) !important; }
/* блок с калькулятором: высоту секции на Wix задавало окно uCalc (1575 px), наш калькулятор вдвое короче */
.wsec--calc .wcol { min-height: 0; background: #000 !important; }
/* hidden у .wsec делает секцию прокручиваемой, и полоса итога не прилипает к низу экрана; clip обрезает так же, но не мешает */
.wsec--calc { overflow: clip; scroll-margin-top: 24px; }
.wsec--calc .wroot { padding-bottom: calc(96 * var(--u)); }
.nf[hidden] { display: none; }

/* Блоки, собранные заново по итогам аудита (AUDIT.md): первый экран, факты, заявка, кейс.
   Все стоят на одной сетке 1200 px макета, как и секции из снимка Wix. */

.grid { width: calc(1200 * var(--u)); margin: 0 auto; }
/* собранные блоки идут потоком, а не столбцами, как секции из снимка */
.hero2, .why, .lead, .case2, .case2-text, .frames, .wsec--tiles { display: block; }
.service-hero .hero2__lead { max-width: 44em; }
.service-hero .hero2__lead .acc { color: var(--accent); }

/* Фирменный фон: зерно и бирюзовое свечение. Основа та же, что у обложки LinkedIn и логотипа
   (jam-smm/profiles/src/build.js): пятна rgba(0,92,108), поверх зерно в режиме overlay.
   Шум растянут по контрасту и считается в sRGB, иначе на тёмном фоне его почти не видно.
   Зернится свечение, чёрное остаётся чёрным. */
.glow { position: relative; isolation: isolate; background-color: #050507; }
.glow::before,
.glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.glow::before {
  z-index: -2;
  background:
    radial-gradient(ellipse 34% 95% at 16% 4%, rgba(0, 92, 108, 0.62), rgba(0, 92, 108, 0) 100%),
    radial-gradient(ellipse 30% 85% at 44% 104%, rgba(0, 92, 108, 0.48), rgba(0, 92, 108, 0) 100%),
    radial-gradient(ellipse 26% 70% at 92% 30%, rgba(0, 92, 108, 0.3), rgba(0, 92, 108, 0) 100%);
}
.glow::after {
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.6' intercept='-0.72'/%3E%3CfeFuncG type='linear' slope='2.6' intercept='-0.72'/%3E%3CfeFuncB type='linear' slope='2.6' intercept='-0.72'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.9;
  mix-blend-mode: overlay;
}
/* на чётких экранах плитка шума мельче, иначе зерно крупнеет вместе с пикселем и выглядит как рельеф */
@media (min-resolution: 2dppx) { .glow::after { background-size: 200px; } }
@media (min-resolution: 3dppx) { .glow::after { background-size: 140px; } }

/* ---------- заголовки разделов ---------- */

.sec-title { margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 300; line-height: 1.14; letter-spacing: -0.012em; }
.sec-title .acc,
.hero2__title .acc,
.case2__title .acc { color: var(--accent); }
.sec-text { margin: 20px 0 0; color: var(--text-soft); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }

/* ---------- первый экран главной ---------- */

.hero2 { padding: calc(var(--hh) + 48 * var(--u)) 0 calc(40 * var(--u)); }
.hero2__in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); column-gap: calc(56 * var(--u)); align-items: center; }
.hero2__title { margin: 0; font-size: clamp(34px, 4.5vw, 65px); font-weight: 300; line-height: 1.08; letter-spacing: -0.016em; }
.hero2__lead { max-width: 34em; margin: 24px 0 0; color: var(--text-soft); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.hero2__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero2__cta .wbtn { width: auto; padding: 0 28px; font-size: 15px; }
.hero2__reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #0a1417; }
.hero2__services { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: calc(56 * var(--u)) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.hero2__services a { display: block; height: 100%; padding: 20px 28px 12px 0; color: #fff; text-decoration: none; }
.hero2__services b { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 600; transition: color 0.2s; }
.hero2__services span { display: block; color: var(--text-soft); font-size: 15px; line-height: 1.45; }
.hero2__services a:hover b,
.hero2__services a:focus-visible b { color: var(--accent); }

/* ---------- факты: почему JAM ---------- */

.why { background: #000; padding: calc(104 * var(--u)) 0; }
.why__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(72 * var(--u)); align-items: start; }
.why__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.why__btns .wbtn { width: auto; padding: 0 24px; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.figs dd { margin: 0; color: var(--accent); font-size: clamp(34px, 3.6vw, 52px); font-weight: 300; line-height: 1.05; letter-spacing: -0.015em; }
.figs dt { color: var(--text-soft); font-size: 15px; line-height: 1.35; }
.figs--small dd { font-size: clamp(26px, 2.4vw, 34px); }
.why__label { margin: 44px 0 4px; color: var(--text-soft); font-size: 15px; }
.proofs { margin: 0; padding: 0; list-style: none; }
.proofs a { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-soft); color: #fff; text-decoration: none; }
.proofs b { font-size: 22px; font-weight: 500; transition: color 0.2s; }
.proofs i { font-style: normal; font-weight: 600; }
.proofs span { font-size: 16px; line-height: 1.45; }
.proofs a:hover b,
.proofs a:focus-visible b { color: var(--accent); }

/* ---------- блок заявки ---------- */

.lead { padding: calc(104 * var(--u)) 0; scroll-margin-top: 0; }
.lead__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(72 * var(--u)); align-items: start; }
.lead__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; font-size: 16px; }
.lead__contact > span { flex: 0 0 100%; color: var(--text-soft); }
.lead__contact > a:not(.wbtn) { color: #fff; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.lead__contact > a:not(.wbtn):hover { color: var(--accent); }
.lead__contact .wsocial { margin: 0; }
.lead__contact .wsocial a,
.lead__contact .wsocial img,
.lead__contact .wsocial svg { width: 32px; height: 32px; }
.wbtn--wa { display: inline-flex; width: auto; padding: 0 16px; }
.lead__form { --tl: var(--accent); scroll-margin-top: 24px; }
.wreach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 16px; }
.wreach > a:not(.wbtn) { color: #fff; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.wreach > a:not(.wbtn):hover { color: var(--accent); }

/* ---------- кейс ---------- */

.case2 { padding: calc(var(--hh) + 32 * var(--u)) 0 calc(64 * var(--u)); }
.case2__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: calc(64 * var(--u)); align-items: center; }
.case2__eyebrow { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 20px; color: var(--text-soft); font-size: 15px; }
.case2__eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.case2__eyebrow a:hover { color: var(--accent); }
.case2__eyebrow span { color: #fff; font-weight: 600; }
.case2__title { margin: 0; font-size: clamp(30px, 3.6vw, 52px); font-weight: 300; line-height: 1.14; letter-spacing: -0.014em; }
.case2__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.case2-text { background: #000; padding: calc(72 * var(--u)) 0; }
.case2-text__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: calc(48 * var(--u)) calc(40 * var(--u)); }
.sec-label { margin: 0; color: var(--accent); font-size: clamp(20px, 1.6vw, 23px); font-weight: 500; line-height: 1.3; }
.prose2 { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.prose2 p { margin: 0 0 0.8em; }
.prose2 p:last-child { margin-bottom: 0; }
.prose2__item + .prose2__item { margin-top: 28px; }
.prose2 h3 { margin: 0 0 8px; font-size: clamp(16px, 1.25vw, 18px); font-weight: 600; }

/* Кадры кейса: всё на сетке, в рядах одной высоты. Высота выравнивается долей ширины: flex-grow равен пропорции кадра */
.frames { --fg: calc(16 * var(--u)); display: block !important; padding: calc(64 * var(--u)) 0; background: var(--bg-panel); }
.frames__in { display: flex; flex-direction: column; gap: var(--fg); }
.frames__row { display: flex; gap: var(--fg); }
.frame { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.frame img { display: block; width: 100%; height: auto; border-radius: 8px; }
/* единственный кадр стоит в той же колонке, что и текст над ним */
.frames__row--solo .frame { flex: 0 0 calc((100% - 40 * var(--u)) * 8 / 12); margin-left: auto; }
/* три слайда: большой и два поменьше, столбцы подобраны так, чтобы нижние края совпали */
.frames__trio { display: grid; grid-template-columns: calc((100% - var(--fg) * (1 + var(--a))) * 2 / 3 + var(--fg) * var(--a)) minmax(0, 1fr); gap: var(--fg); align-items: start; }
.frames__trio .frame:first-child { grid-row: span 2; }

.outcome .figs { max-width: 680px; }
.quote2 { margin: 40px 0 0; padding-left: 20px; border-left: 2px solid var(--accent); }
.quote2 blockquote { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.quote2 figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; font-size: 15px; }
.quote2 figcaption span { color: var(--text-soft); }
.outcome__note { margin: 32px 0 0; color: var(--text-soft); font-size: 15px; }
.outcome__note a { color: #fff; text-underline-offset: 3px; transition: color 0.2s; }
.outcome__note a:hover { color: var(--accent); }

/* ---------- этапы работы ---------- */

.steps2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px calc(40 * var(--u)); margin: 0; padding: 0; list-style: none; }
.steps2 li { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.steps2__n { display: block; margin-bottom: 12px; color: var(--accent); font-size: 15px; font-weight: 500; }
.steps2 h2 { margin: 0 0 10px; font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; line-height: 1.3; }
.steps2 p { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.55; }

/* ---------- логотипы клиентов ---------- */

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 40%), 1fr)); gap: 28px 32px; align-items: center; margin: 0; padding: 0; list-style: none; }
.wall li { display: flex; align-items: center; justify-content: flex-start; height: 56px; }
.wall img { display: block; max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.2s; }
.wall img:hover { opacity: 1; }
.wall__gray { filter: grayscale(1) brightness(2.4); }
.wall__white { filter: brightness(0) invert(1); opacity: 0.55; }

/* ---------- фильтр портфолио ---------- */

.filter { display: flex; flex-wrap: wrap; gap: 8px; width: calc(1200 * var(--u)); margin: 0 auto; padding: 8px 0 32px; }
.filter[hidden] { display: none; }
.filter__b { min-height: 40px; padding: 0 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.filter__b:hover { border-color: var(--accent); color: var(--accent); }
.filter__b[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #000; }
.filter__b:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.tile[hidden] { display: none; }
.tiles__title { padding: calc(56 * var(--u)) 0 24px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; }

/* ---------- живые детали ---------- */

.wsec { transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .wsec { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- телефон ---------- */

@media (max-width: 760px) {
  /* на узком экране пятна шире: иначе свечение ложится вертикальными полосами */
  .glow::before {
    background:
      radial-gradient(ellipse 120% 340px at 8% 0, rgba(0, 92, 108, 0.62), rgba(0, 92, 108, 0) 100%),
      radial-gradient(ellipse 110% 300px at 90% 100%, rgba(0, 92, 108, 0.42), rgba(0, 92, 108, 0) 100%);
  }
  /* последняя плитка в нечётном ряду — на всю ширину, без дыры рядом */
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .grid,
  .filter { width: auto; margin: 0 var(--gutter); }
  .hero2 { padding: calc(var(--hh) + 24px) 0 12px; }
  .hero2__in,
  .why__in,
  .lead__in,
  .case2__in,
  .case2-text__in { display: block; }
  .hero2__reel { display: none; }
  .hero2__cta .wbtn { flex: 1 1 100%; }
  .hero2__services { display: block; margin-top: 40px; }
  .hero2__services li + li { border-top: 1px solid var(--line-soft); }
  .hero2__services a { padding: 16px 0; }
  .why,
  .lead { padding: 56px 0; }
  .why__facts { margin-top: 40px; }
  .figs dd { font-size: 34px; }
  .figs dt { font-size: 13px; }
  .figs--small dd { font-size: 24px; }
  .proofs a { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .proofs b { font-size: 18px; }
  .lead__form { margin-top: 36px; }
  .case2 { padding: calc(var(--hh) + 16px) 0 32px; }
  .case2__cover { margin-top: 28px; }
  .case2__cover img { max-width: 240px; }
  .case2-text { padding: 40px 0; }
  .case2-text__in .sec-label { margin-bottom: 12px; }
  .case2-text__in .prose2 + .sec-label { margin-top: 36px; }
  .steps2 { grid-template-columns: 1fr; gap: 28px; }
  .frames { --fg: 12px; padding: 32px 0; }
  .frames__row { flex-direction: column; }
  .frame,
  .frames__row--solo .frame { flex: none; width: 100%; margin: 0; }
  .frames__trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames__trio .frame:first-child { grid-row: auto; grid-column: 1 / -1; }
  .filter { padding: 0 0 20px; }
  .tiles__title { padding: 32px 0 16px; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .wall li { height: 40px; }
  .wall img { max-height: 36px; }
}
