/* ==========================================================================
   WAIMA — тёмная тема. Палитра снята с прототипа на vnz-slovakia.ru.
   ========================================================================== */

:root {
  --bg:        #0e0f11;
  --bg-alt:    #121316;
  --card:      #16171b;
  --card-2:    #1b1c21;
  --line:      #26282f;
  --line-soft: #1e2026;

  --tx:        #f2f3f5;
  --tx-dim:    #a2a8b3;
  --tx-faint:  #767c87;

  --accent:      #533ff5;
  --accent-hi:   #6857f6;
  --accent-soft: rgba(83, 63, 245, .14);
  --gold:        #e8b13a;
  --star:        #ffbb00;

  --r:    14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --pad:  24px;

  --f: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

/* Собственные display у .pcard / .empty / .filters__reset перебивают UA-правило [hidden]. */
[hidden] { display: none !important; }

/* Видимую подпись убрали, но для скринридеров она должна остаться. */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.65 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(32px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* --- eyebrow / служебные ---------------------------------------------- */
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link:hover { color: #f6c65c; }
.link:hover svg { transform: translateX(3px); }

/* --- кнопки ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 600 15px/1 var(--f); text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--tx); }
.btn--ghost:hover { background: var(--card); border-color: #34373f; }

/* --- шапка ------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 17, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.logo__mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-hi), var(--gold));
}
.logo__txt { font-size: 18px; }

.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a {
  color: var(--tx-dim); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav a:hover { color: var(--tx); }
.nav a[aria-current="page"] { color: var(--tx); border-bottom-color: var(--gold); }

.burger { display: none; }

.hdr__msg { display: flex; gap: 8px; }
.hdr__msg-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--tx-dim); transition: color .16s ease, border-color .16s ease;
}
.hdr__msg-link:hover { color: var(--gold); border-color: var(--gold); }
.hdr__msg-link svg { width: 19px; height: 19px; }

/* --- секции ------------------------------------------------------------ */
.sec { padding: 84px 0; }
.sec--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.sec--top { padding-top: 40px; }

.sechead { max-width: 760px; margin-bottom: 44px; }
.sechead p { margin-top: 16px; color: var(--tx-dim); font-size: 18px; }
.sechead--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: none;
}

/* --- меню услуг -------------------------------------------------------- */
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit;
}
.nav__toggle.is-active, .nav a[aria-current="page"] { color: var(--tx); }
.mega__chev {
  width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
[aria-expanded="true"] > .mega__chev { transform: rotate(-135deg) translate(-2px, -2px); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-alt); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  z-index: 40;
  max-height: calc(100vh - 68px); overflow-y: auto;
}
/* Слева направления, справа их разрезы. Сетка держит колонку табов узкой:
   на панель с семью группами нужно всё оставшееся место. */
.mega__in {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: 0 38px; padding-block: 22px 24px;
}
.mega__tabs { display: contents; }
.mega__tab {
  grid-column: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 12px 14px; margin-bottom: 4px;
  border: 0; border-radius: 10px; background: none;
  font: 600 15px/1.3 var(--f); color: var(--tx-dim); text-align: left; cursor: pointer;
}
.mega__tab:hover { color: var(--tx); background: var(--card); }
.mega__tab.is-active { color: var(--tx); background: var(--card-2); }
.mega__tab .mega__chev { transform: rotate(-45deg); opacity: .5; }

.mega__panel { display: none; grid-column: 2; grid-row: 1 / span 99; }
.mega__panel.is-active { display: block; }
.mega__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 22px 26px;
}
 /* Не заголовок, а подпись колонки: заголовочные теги в меню шли перед h1
    страницы и ломали иерархию документа. */
.mega__group .mega__label {
  margin: 0 0 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--tx-faint);
}
.mega__group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.mega__group a { color: var(--tx-dim); text-decoration: none; font-size: 14.5px; }
.mega__group a:hover { color: var(--tx); }
.mega__all {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  color: var(--gold); text-decoration: none; font-size: 14.5px;
}
.mega__all svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  /* В бургер-меню табы становятся аккордеоном: панель раскрывается прямо
     под своим направлением. */
  .mega {
    position: static; max-height: none; overflow: visible;
    background: transparent; border: 0; box-shadow: none;
  }
  .mega__in { grid-template-columns: 1fr; gap: 0; padding-block: 4px 12px; }
  .mega__tab {
    padding: 13px 0; margin: 0; border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .mega__tab:hover, .mega__tab.is-active { background: none; }
  .mega__tab .mega__chev { transform: rotate(45deg); }
  .mega__tab.is-active .mega__chev { transform: rotate(-135deg); }
  .mega__panel { grid-column: 1; grid-row: auto; padding: 4px 0 16px; }
  .mega__cols { grid-template-columns: 1fr; gap: 18px; }
}

/* --- герой ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(83, 63, 245, .30), transparent 62%),
    radial-gradient(700px 380px at 92% 0%, rgba(232, 177, 58, .12), transparent 60%);
}
/* Фоновая графика верха страницы — волны с прототипа vnz-slovakia.ru.
   Лежит на уровне всей страницы, а не секции героя: шапка полупрозрачная,
   и рисунок должен продолжаться под ней, а не начинаться от её нижнего края.
   Высота с запасом — перекрывает шапку, хлебные крошки и сам герой. */
body::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1040px;
  background: url('/assets/hero/hero-bg.svg') center top / cover no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
body.page-case::before { display: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hdr, .crumbs, main, .ftr { position: relative; z-index: 1; }
.hdr { z-index: 50; }
.hero__in { max-width: 900px; }
.hero__lead { margin: 22px 0 0; max-width: 660px; color: var(--tx-dim); font-size: 19px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats, .stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin: 56px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.hero__stats b, .stats b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.hero__stats span, .stats span { color: var(--tx-dim); font-size: 15px; }

/* Логотипы клиентов. Экспорт из Figma уже белый на прозрачном, поэтому
   перекрашивать не нужно — только приглушаем, подсвечивая при наведении. */
.clients__logo img {
  height: 50px; width: auto; max-width: 230px; object-fit: contain;
  opacity: .72; transition: opacity .18s ease;
}
.clients__logo:hover img { opacity: 1; }
.pcard__logo { display: block; margin-bottom: 2px; }
.pcard__logo img {
  height: 24px; width: auto; max-width: 124px; object-fit: contain;
  opacity: .7;
}
@media (max-width: 560px) {
  .clients__logo img { height: 40px; max-width: 170px; }
  .clients__logo--key img { height: 54px; max-width: 220px; }
}

/* Колонки хаба услуг: у перенесённых разделов шесть групп, им нужна сетка
   пошире, чем у трёх осей посадочных. */
.uslugi__cols--wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- контакты и документы --------------------------------------------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 34px; }
.contacts__item { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.contacts__item h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-faint); }
.contacts__big { display: block; font-size: 21px; font-weight: 700; color: var(--tx); text-decoration: none; letter-spacing: -.01em; }
a.contacts__big:hover { color: var(--gold); }
.contacts__item p { margin: 10px 0 0; color: var(--tx-dim); font-size: 15px; }
.contacts__item p.contacts__req { margin: 0; color: var(--tx); font-size: 16px; line-height: 1.5; }
.contacts__msg { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.contacts__msg-link { font-size: 21px; font-weight: 700; color: var(--tx); text-decoration: none; letter-spacing: -.01em; }
.contacts__msg-link:hover { color: var(--gold); }
.ftr__msg { display: flex; gap: 14px; }
.ftr__msg-link { font-size: 15px; font-weight: 600; color: var(--tx-dim); text-decoration: none; }
.ftr__msg-link:hover { color: var(--gold); }
.doc { max-width: 76ch; }
.doc h2 { margin-top: 34px; font-size: 21px; }
.doc .ticks { margin: 12px 0 0; }

/* --- форма заявки ------------------------------------------------------ */
.lead__card {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 0; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(142deg, var(--accent) 0%, #7b5cf7 32%, #b85bb0 62%, #d9634a 88%, var(--gold) 100%);
}
.lead__aside { padding: 40px 38px; color: #fff; align-self: center; }
.lead__aside h2 { margin: 0 0 12px; color: #fff; }
.lead__aside p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; }
.lead__bullets { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.lead__bullets li {
  position: relative; padding-left: 26px; color: rgba(255, 255, 255, .92); font-size: 15px;
}
.lead__bullets li::before {
  content: ''; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .9);
}
.lead__direct { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; }
.lead__direct a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.lead__direct a:hover { border-bottom-color: #fff; }

/* Сама форма — светлая: на тёмных страницах это акцент, ради которого блок и задуман. */
.lead__form { background: #fbfbfc; padding: 34px 34px 30px; display: grid; gap: 14px; }
.lead__row { margin: 0; display: grid; gap: 6px; }
.lead__row label { font-size: 13.5px; font-weight: 600; color: #3d4350; }
.lead__row label b { color: #d9634a; }
.lead__opt { font-weight: 400; color: #8b90a0; }
.lead__form input[type="text"],
.lead__form input[type="email"],
.lead__form input[type="tel"],
.lead__form select,
.lead__form textarea {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; border: 1px solid #d7dae2; border-radius: 9px;
  background: #fff; color: #15171c; font: 400 15px/1.4 var(--f);
}
.lead__form textarea { resize: vertical; min-height: 78px; }
.lead__form :is(input, select, textarea):focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(83, 63, 245, .16);
}
.lead__form :is(input, textarea)::placeholder { color: #a5aab8; }
/* Селект узкий: в нём только флаг и код страны. Ширины хватает на самый
   длинный код (+375) вместе со стрелкой — иначе код уезжал под неё. */
.lead__phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.lead__phone select {
  padding-inline: 10px 22px; font-variant-emoji: emoji;
  text-overflow: clip;
}
.lead__err { font-size: 12.5px; color: #c23b22; }
.lead__form :is(input, select).is-bad { border-color: #c23b22; }

.lead__agree { margin: 2px 0 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.lead__agree input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.lead__agree label { font-size: 13px; line-height: 1.45; color: #5d6270; }
.lead__agree a { color: var(--accent); }
.lead__form .btn { margin-top: 4px; justify-content: center; }
.lead__status { margin: 0; font-size: 14px; color: #0f7a52; }
.lead__status.is-bad { color: #c23b22; }

.lead--compact .lead__aside { padding: 32px 30px; }
.lead--compact .lead__form { padding: 28px 28px 24px; }

@media (max-width: 900px) {
  .lead__card { grid-template-columns: minmax(0, 1fr); }
  .lead__aside { padding: 30px 26px 26px; }
  .lead__form { padding: 26px 26px 24px; }
}
@media (max-width: 560px) {
  .lead__phone { grid-template-columns: 108px minmax(0, 1fr); }
}

/* Список услуг колонками — повторяет раскладку меню. */
.linkcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px 28px; margin-top: 26px; }
.linkcols__col h3 {
  margin: 0 0 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--tx-faint);
}
.linkcols__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.linkcols__col a { color: var(--tx-dim); text-decoration: none; font-size: 15px; }
.linkcols__col a:hover { color: var(--gold); }

/* --- таблицы цен ------------------------------------------------------- */
.pricenav { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.pricenav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--tx-dim); text-decoration: none; font-size: 14.5px;
}
.pricenav a:hover { color: var(--tx); border-color: var(--line-strong, #3a3d47); background: var(--card); }
.pricenav svg { width: 13px; height: 13px; }

/* Таблицу шире экрана прокручиваем внутри контейнера, а не всей страницей. */
.pricetable { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.pricetable + .pricetable { margin-top: 26px; }
.pricetable h3 { margin: 0; padding: 18px 20px 0; font-size: 17px; }
.pricetable table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pricetable th, .pricetable td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.pricetable thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--tx-faint); border-bottom: 1px solid var(--line);
}
.pricetable tbody th { font-weight: 600; color: var(--tx); white-space: normal; min-width: 170px; }
.pricetable tbody th a { color: inherit; text-decoration: none; }
.pricetable tbody th a:hover { color: var(--gold); }
.pricetable td { color: var(--tx-dim); font-variant-numeric: tabular-nums; }
.pricetable tbody tr:last-child th, .pricetable tbody tr:last-child td { border-bottom: 0; }
.pricetable tbody tr:hover td, .pricetable tbody tr:hover th { background: var(--card-2); }
.pricetable .dash { color: var(--tx-faint); }
.pricetable .dim { color: var(--tx-faint); font-size: 14px; white-space: normal; }

/* --- сетки и карточки -------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--card);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--tx-dim); font-size: 15px; }
.card--num .card__num {
  display: block; margin-bottom: 14px;
  color: var(--accent-hi); font-size: 32px; font-weight: 800; letter-spacing: -.02em;
}
.card--price { display: flex; flex-direction: column; }
.card--price .price {
  margin: 12px 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -.02em;
}
.card--price .price span { color: var(--tx-faint); font-size: 14px; font-weight: 500; }
.card--price .link { margin-top: auto; padding-top: 18px; }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li {
  position: relative; padding-inline-start: 26px; margin-bottom: 9px;
  color: var(--tx-dim); font-size: 15px;
}
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi);
}
.ticks--lg li { color: var(--tx); font-size: 17px; margin-bottom: 12px; }
.ticks--lg li::before { background: var(--gold); }

/* О нас: история, направления, руководители */
.story { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.story__step { position: relative; padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); }
.story__mark { display: inline-block; margin-bottom: 16px; color: var(--gold); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.story__step h3 { margin-bottom: 10px; }
.story__step p { color: var(--tx-dim); font-size: 15px; }
.card--dir { display: flex; flex-direction: column; }
.card--dir .link { margin-top: auto; padding-top: 16px; }
.person { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); }
.person__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.person__body { padding: 24px 26px 28px; }
.person__body h3 { margin-bottom: 4px; }
.person__role { margin: 0 0 12px; color: var(--gold); font-size: 15px; font-weight: 600; }
.person__body p:last-child { color: var(--tx-dim); font-size: 15px; }
@media (max-width: 900px) { .story { grid-template-columns: minmax(0, 1fr); } }

.roles { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roles li { padding: 18px 22px; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--card); color: var(--tx-dim); font-size: 16px; }
.roles b { color: var(--tx); }

/* --- карточка проекта -------------------------------------------------- */
.pcard { display: flex; }
.pcard__link {
  display: flex; flex-direction: column; width: 100%;
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.pcard__link:hover { border-color: #3a3d47; transform: translateY(-3px); background: var(--card-2); }
.pcard__shot { display: block; background: #0a0b0d; border-bottom: 1px solid var(--line-soft); }
.pcard__shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; }
.pcard__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: #a99bfb;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.pcard__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pcard__result {
  color: var(--tx-dim); font-size: 14px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pcard__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--gold); font-size: 14px; font-weight: 600; }
.pcard__cta svg { width: 15px; height: 15px; transition: transform .18s ease; }
.pcard__link:hover .pcard__cta svg { transform: translateX(3px); }

/* --- фильтры ----------------------------------------------------------- */
.filters { display: grid; gap: 18px; margin-bottom: 18px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter__label { min-width: 92px; color: var(--tx-faint); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.filter__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--tx-dim);
  font: 500 14px/1 var(--f); cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.chip:hover { color: var(--tx); border-color: #3a3d47; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters__reset { background: none; border: 0; color: var(--gold); font: 600 14px var(--f); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.filters__reset svg { width: 15px; height: 15px; }
.filters__count { margin: 0 0 26px; color: var(--tx-faint); font-size: 14px; }
.empty { margin-top: 30px; color: var(--tx-dim); }

/* --- хлебные крошки ---------------------------------------------------- */
.crumbs { padding: 20px 0 0; font-size: 14px; color: var(--tx-faint); }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs a { color: var(--tx-faint); text-decoration: none; }
.crumbs a:hover { color: var(--tx-dim); }
.crumbs i { font-style: normal; color: #3a3d47; }

/* --- текстовые блоки перенесённых страниц и документов ----------------- */
/* Класса .legacy в стилях не было вовсе: текст со старого сайта и политика
   выводились браузерными умолчаниями и тянулись во всю ширину экрана.
   Держим строку в читаемых пределах. */
.legacy { max-width: 760px; }
.legacy h2 { margin: 36px 0 14px; font-size: clamp(21px, 2.4vw, 27px); }
.legacy h2:first-child { margin-top: 0; }
.legacy p { margin: 0 0 16px; color: var(--tx-dim); line-height: 1.7; }
.legacy .ticks { margin: 0 0 18px; }
.legacy .note { margin-top: 28px; font-size: 15px; }
/* Возвращённый со старого сайта текст — сплошной, без подзаголовков,
   поэтому абзацам нужно чуть больше воздуха. */
.legacy--article p { margin-bottom: 18px; }

/* --- кейс -------------------------------------------------------------- */
/* Шапка кейса стоит на фоновой картинке по типу услуги: график роста позиций
   у продвижения, код у разработки и редизайна. Картинка одна на все кейсы
   услуги — она не иллюстрирует проект, а сразу говорит, о чём работа.

   Полоса идёт во всю ширину окна и занимает ровно верх страницы: начинается
   на хлебных крошках (поэтому они лежат внутри шапки, а не над ней) и
   обрывается на линии перед списком характеристик — она вынесена наружу и
   своим border-top отбивает низ картинки. */
.case__head { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 30px; }
.case__head > * { position: relative; z-index: 1; }
.case__head h1 { max-width: 960px; }
.case__title { padding-top: 26px; }
.case__head::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  /* Полоса низкая, картинка обрезается по высоте: смещаем кадр так, чтобы
     подписи осей графика и номера строк кода ушли за край и не читались
     обрывками поверх заголовка. */
  background-position: center 34%; background-size: cover; background-repeat: no-repeat;
  opacity: .72;
}
.case__head::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Затемнение ровное по всей ширине: картинка должна читаться и слева, под
     заголовком, а не только в правой половине. Плотность подобрана так, чтобы
     белый текст держал контраст на самых светлых местах снимка. */
  background:
    linear-gradient(180deg, rgba(10, 11, 13, .64), rgba(10, 11, 13, .74)),
    radial-gradient(760px 340px at 4% 0%, rgba(83, 63, 245, .26), transparent 72%);
}
.case__head--seo::before { background-image: url('/assets/hero/case-seo-1000.webp'); }
.case__head--dev::before { background-image: url('/assets/hero/case-dev-1000.webp'); }
@media (min-width: 1001px) {
  .case__head { padding-bottom: 40px; }
  .case__title { padding-top: 34px; }
  .case__head--seo::before { background-image: url('/assets/hero/case-seo-1800.webp'); }
  .case__head--dev::before { background-image: url('/assets/hero/case-dev-1800.webp'); }
}
/* На узком экране полоса низкая, картинка обрезается сильно и уходит под
   текст целиком — держим её тише и тянем по левому краю, где меньше деталей. */
@media (max-width: 700px) {
  .case__head::before { opacity: .55; background-position: center left; }
  .case__head::after { background: linear-gradient(180deg, rgba(10, 11, 13, .5), rgba(10, 11, 13, .84)); }
}
/* Линия под заголовком — граница картинки, поэтому отступа над ней нет. */
.case__meta {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  margin: 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.case__meta dt { color: var(--tx-faint); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.case__meta dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; }

.case__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; padding-bottom: 80px; }
.case__main h2 { margin: 44px 0 16px; font-size: clamp(23px, 2.6vw, 29px); }
.case__main h2:first-of-type { margin-top: 40px; }
.case__main p { color: var(--tx-dim); }
.case__shot { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0a0b0d; }

.case__side { position: sticky; top: 92px; display: grid; gap: 20px; }
.side { padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); }
.side h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: 0; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side__result li { margin-bottom: 10px; color: var(--tx-dim); font-size: 15px; }
.side__links li { margin-bottom: 8px; color: var(--gold); font-size: 15px; }
.side__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.side__tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--tx-faint); font-size: 12px; }

/* --- отзыв ------------------------------------------------------------- */
.quote { margin: 0; padding: 26px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card-2); }
.side .quote { padding: 0; border: 0; background: none; }
.quote__stars { display: flex; gap: 3px; color: var(--star); margin-bottom: 14px; }
.quote__stars svg { width: 16px; height: 16px; }
.quote blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.quote blockquote::before { content: '«'; }
.quote blockquote::after  { content: '»'; }
.quote figcaption { padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--tx-faint); }

/* --- CTA --------------------------------------------------------------- */
.cta { padding: 0; }
/* Прежний тёмный блок со свечением сохраняем — в него встроена форма. */
.cta__in {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
  margin-block: 84px; padding: 40px 44px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(600px 300px at 8% 0%, rgba(83, 63, 245, .28), transparent 65%),
    var(--card);
}
.cta__in p { margin: 12px 0 0; max-width: 540px; color: var(--tx-dim); }
.cta__direct { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.cta__direct a { color: var(--tx); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong, #3a3d47); }
.cta__direct a:hover { color: var(--gold); border-bottom-color: currentColor; }
.lead__bullets--dark li { color: var(--tx-dim); font-size: 14.5px; }
.lead__bullets--dark li::before { background: var(--accent-hi); }
@media (max-width: 900px) {
  .cta__in { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 26px; margin-block: 56px; }
}

/* Тёмный вариант полей — для блока в конце страниц. */
.lead__form--dark { background: transparent; padding: 0; }
.lead__form--dark label { color: var(--tx-dim); }
.lead__form--dark .lead__opt { color: var(--tx-faint); }
.lead__form--dark :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  background: var(--bg-alt); border-color: var(--line); color: var(--tx);
}
.lead__form--dark :is(input, textarea)::placeholder { color: var(--tx-faint); }
.lead__form--dark .lead__agree label { color: var(--tx-faint); }
.lead__form--dark .lead__agree a { color: var(--gold); }
.lead__form--dark textarea { min-height: 62px; }

/* Ловушка для ботов: поле есть в разметке, но человек его не видит. */
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Компактная форма: подписей нет, поля идут плотнее. */
.lead__form--compact { gap: 10px; }
/* В тёмном блоке в конце страницы компактная форма стоит рядом с текстом, и
   без подписей она оказывалась заметно короче колонки — немного воздуха. */
.lead__form--dark.lead__form--compact { gap: 12px; }
.lead__form--compact .lead__row { gap: 0; }
.lead__form--compact .lead__agree { margin-top: 0; }
.lead__form--compact .lead__agree label { font-size: 12.5px; }
.lead__form--compact textarea { min-height: 62px; }

/* --- попап заявки ------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 9, 11, .72); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  border-radius: var(--r-lg); overflow-x: hidden;
  background: #fbfbfc; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
/* Шапка на фирменном градиенте — тот же переход, что в форме на контактах
   и в герое: попап читается как часть сайта, а не чужое окно. */
.modal__head {
  position: relative; padding: 20px 26px 18px; color: #fff;
  background: linear-gradient(142deg, var(--accent) 0%, #7b5cf7 34%, #b85bb0 66%, #d9634a 100%);
}
/* Лёгкое свечение поверх градиента, чтобы плоскость не казалась мёртвой. */
.modal__head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 180px at 82% -20%, rgba(255, 255, 255, .28), transparent 70%);
}
.modal__logo { height: 22px; width: auto; margin-bottom: 12px; position: relative; z-index: 1; }
.modal__head h2 { margin: 0 0 6px; color: #fff; font-size: 22px; position: relative; z-index: 1; }
.modal__head p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.5; position: relative; z-index: 1; }
.modal__bullets {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none;
  position: relative; z-index: 1;
}
.modal__bullets li {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, .18); color: #fff;
}
.modal__body { padding: 20px 26px 22px; }
.modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .22); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: rgba(255, 255, 255, .35); }
.modal .lead__form { background: transparent; padding: 0; }
@media (max-width: 560px) {
  .modal__head { padding: 18px 18px 16px; }
  .modal__body { padding: 18px 18px 18px; }
}


/* --- подвал ------------------------------------------------------------ */
.ftr { border-top: 1px solid var(--line-soft); background: var(--bg-alt); padding: 56px 0 32px; }
.ftr__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.ftr__mail { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.ftr__mail:hover { color: var(--gold); }
.ftr__tel { font-size: 18px; font-weight: 600; text-decoration: none; }
.ftr__hours { color: var(--tx-faint); font-size: 14px; margin-inline-start: auto; }

.ftr__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; padding: 34px 0; }
.fcol__title { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-faint); }
.fcol ul { margin: 0; padding: 0; list-style: none; }
.fcol li { margin-bottom: 9px; }
.fcol a { color: var(--tx-dim); text-decoration: none; font-size: 15px; }
.fcol a:hover { color: var(--tx); }
/* Заголовок столбца стал ссылкой — он не должен перенимать стиль пунктов списка. */
.fcol__title a { color: inherit; font-size: inherit; letter-spacing: inherit; }
.fcol__title a:hover { color: var(--tx); }
.fcol--brand p { margin-top: 14px; max-width: 300px; color: var(--tx-faint); font-size: 15px; }
.ftr__copy { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--tx-faint); font-size: 14px; }

/* --- адаптив ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .case__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; margin-inline-start: auto; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--tx); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hdr__in { flex-wrap: wrap; gap: 12px; }
  .hdr__msg { order: 1; margin-inline-start: auto; }
  .burger { order: 2; margin-inline-start: 0; }
  .nav {
    display: none; order: 3; flex-direction: column; gap: 0;
    width: 100%; margin: 0; padding-bottom: 12px; border-top: 1px solid var(--line-soft);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--gold); }
  .hdr__cta { display: none; }

  .sec { padding: 64px 0; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .sechead--row { flex-direction: column; align-items: flex-start; }
  .case__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case__side { position: static; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .cta__in { margin-block: 64px; padding: 32px; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .hero { padding: 62px 0 56px; }
  .hero__stats, .stats { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .ftr__cols { grid-template-columns: minmax(0, 1fr); }
  .filter { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filter__label { min-width: 0; }
  .case__meta { gap: 14px 28px; }
}

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

/* ==========================================================================
   Блоки посадочных страниц
   ========================================================================== */

.hero--landing { padding: 64px 0 56px; }
.hero__stats--sm b { font-size: 26px; }

/* Герой посадочной: текст слева ровно по краю контента, скриншот кейса справа.
   Раньше на этом блоке висели wrap + hero__in разом — от wrap оставался
   margin-inline:auto, а hero__in резал ширину до 900px, и колонка уезжала
   вправо от хлебных крошек. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 56px; align-items: center;
}
.hero__col { min-width: 0; }
.hero__col h1 { max-width: 15ch; }
.hero__col .hero__lead { max-width: 46ch; }
/* Композиция справа — геометрия снята с прототипа vnz-slovakia.ru при 1440px:
   подложка 530×633, снимки 292×433 со сдвигом; первый выходит за левый край
   подложки, второй за правый. Всё в процентах от подложки, поэтому пропорции
   держатся на любой ширине. */
.hero__media { position: relative; min-width: 0; aspect-ratio: 530 / 633; }
.hero__glow {
  position: absolute; inset: 0;
  border-radius: 5px;
  /* Декоративное пятно под снимками. Исходный JPEG весил 245 КБ и отдавался
     одинаково на телефон и десктоп — перевели в WebP и разделили по ширине. */
  background: url('/assets/hero/glow-620.webp') center / cover no-repeat;
}
@media (min-width: 701px) {
  .hero__glow { background-image: url('/assets/hero/glow-1030.webp'); }
}
.hero__shot {
  position: absolute; margin: 0;
  border-radius: 4px; overflow: hidden;
  background: #0a0b0d;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .5);
}
.hero__shot img { width: 100%; aspect-ratio: 292 / 433; object-fit: cover; }
.hero__shot--a { left: -10.9%; top: 8.8%;  width: 55.1%; }
.hero__shot--b { left: 55.7%;  top: 22.7%; width: 55.1%; }
.hero__shot--c { left: 22%;    top: 52%;   width: 46%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero__col h1, .hero__col .hero__lead { max-width: none; }
  /* Узкому экрану вертикальная подложка слишком высока — ужимаем и убираем
     вылет за левый край, иначе снимок упирается в край экрана. */
  .hero__media { aspect-ratio: 530 / 470; margin-inline: 2% 0; }
  .hero__shot--a { left: -4%; top: 10%; width: 52%; }
  .hero__shot--b { left: 54%; top: 24%; width: 52%; }
  .hero__shot--c { display: none; }
}
@media (max-width: 560px) {
  .hero__media { aspect-ratio: 530 / 520; }
  .hero__shot--a { left: -3%; width: 50%; }
  .hero__shot--b { left: 55%; width: 50%; }
}

/* --- тарифы ------------------------------------------------------------ */
.tariffs { align-items: stretch; }
.tariff {
  display: flex; flex-direction: column;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card);
}
.tariff h3 { margin-bottom: 10px; }
.tariff__for { color: var(--tx-faint); font-size: 14px; margin-bottom: 18px; }
.tariff__price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.tariff__price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tariff__price span { color: var(--tx-faint); font-size: 14px; }
.tariff .ticks { margin-bottom: 24px; }
.tariff .btn { margin-top: auto; }
.note { margin: 24px 0 0; color: var(--tx-faint); font-size: 14px; }

/* --- FAQ --------------------------------------------------------------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__a { padding: 0 0 22px; color: var(--tx-dim); max-width: 720px; }

/* --- сетка ссылок (перелинковка) --------------------------------------- */
.linkgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.linkgrid a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: var(--r);
  background: var(--card); text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.linkgrid a:hover { border-color: #3a3d47; background: var(--card-2); }
.linkgrid__t { font-size: 15px; font-weight: 600; line-height: 1.35; }
.linkgrid__n {
  flex: none; margin-inline-start: auto; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: #a99bfb; font-size: 12px;
}
.linkgrid svg { flex: none; width: 15px; height: 15px; color: var(--gold); }
.linkgrid__n + svg { margin-inline-start: 0; }
.linkgrid a > svg:last-child { margin-inline-start: auto; }
.linkgrid__n ~ svg { margin-inline-start: 4px; }

/* --- полоса клиентов --------------------------------------------------- */
.clients { padding: 56px 0; }
.clients__title {
  margin: 0 0 22px; text-align: center;
  color: var(--tx-faint); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
/* Лента едет сама и зациклена: список выведен дважды, анимация сдвигает
   дорожку ровно на одну копию и начинает заново — шва не видно. Ширина
   дорожки задаётся числом элементов через переменную --n. */
.clients__viewport {
  position: relative;
  overflow: hidden;
  /* Края растворяются, чтобы лента не обрывалась резко о границу экрана. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.clients__track {
  display: flex; align-items: center; gap: 64px;
  width: max-content; margin: 0; padding: 0; list-style: none;
  animation: clients-run calc(var(--n, 18) * 2.1s) linear infinite;
}
.clients__viewport:hover .clients__track { animation-play-state: paused; }
@keyframes clients-run {
  from { transform: translateX(0); }
  /* Половина дорожки — это ровно одна копия списка. */
  to   { transform: translateX(-50%); }
}
.clients__logo { flex: 0 0 auto; }
/* Логотипов мало — ряд стоит по центру и никуда не едет. */
.clients__viewport--still { mask-image: none; -webkit-mask-image: none; }
.clients__viewport--still .clients__track {
  animation: none; width: auto;
  flex-wrap: wrap; justify-content: center; gap: 30px 48px;
}
/* Крупнейшие клиенты — заметно больше остальных: ради них полосу и смотрят. */
.clients__logo--key img { height: 72px; max-width: 320px; opacity: .95; }

@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 30px 44px; }
  .clients__track li[aria-hidden="true"] { display: none; }
}

/* На телефоне ленту листают пальцем. Автопрокрутка там мешает вдвойне:
   идёт медленно и перехватывает жест, поэтому на узких экранах её нет —
   обычная горизонтальная прокрутка с примагничиванием. */
@media (max-width: 860px) {
  .clients__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-inline: var(--pad);
  }
  .clients__viewport::-webkit-scrollbar { display: none; }
  .clients__track { animation: none; gap: 40px; }
  .clients__logo { scroll-snap-align: center; }
  /* Вторая копия списка нужна только бегущей ленте. */
  .clients__track li[aria-hidden="true"] { display: none; }
}

/* --- хаб услуг --------------------------------------------------------- */
.uslugi { margin-bottom: 46px; padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); }
.uslugi__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.uslugi__head h2 { font-size: 26px; }
.uslugi__head p { margin: 10px 0 0; max-width: 620px; color: var(--tx-dim); font-size: 16px; }
.uslugi__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 24px; }
.uslugi__col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-faint); }
.uslugi__col ul { margin: 0; padding: 0; list-style: none; }
.uslugi__col li { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.uslugi__col a { color: var(--tx-dim); text-decoration: none; font-size: 15px; }
.uslugi__col a:hover { color: var(--tx); }
.uslugi__col i { flex: none; margin-inline-start: auto; font-style: normal; color: var(--tx-faint); font-size: 12px; }

/* --- логотип в шапке --------------------------------------------------- */
.logo__img { height: 26px; width: auto; }
.ftr .logo__img { height: 30px; }

@media (max-width: 900px) {
  .linkgrid { grid-template-columns: minmax(0, 1fr); }
  .uslugi { padding: 22px; }
  .uslugi__cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .uslugi__head { flex-direction: column; }
  .tariffs { gap: 16px; }
}

.grid--1 { grid-template-columns: minmax(0, 720px); }

/* Подвал с четырьмя колонками ссылок + брендом */
.ftr__cols--4 { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1080px) { .ftr__cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .ftr__cols--4 { grid-template-columns: minmax(0, 1fr); } }
