/* Красные кеды · разделы «Услуги» (#services) и «Команда» (#why).
   Карточка услуги — этикетка обувной коробки: артикул и штрихкод сверху, фото в вырубном окне,
   внизу бирки материалов и капсула-наконечник «Заказать замер». Образцы материалов — чистые CSS-текстуры.
   Цвета только из токенов. */

/* ═════════════ УСЛУГИ ═════════════ */
/* «Девять направлений.» на 2,5 % длиннее колонки .section-head при --fs-h2: чуть меньше кегль,
   чтобы заголовок шёл в две строки на 1100–1920 */
.services__heading { font-size: calc(var(--fs-h2) * .95); }
.services__rail { position: relative; }

/* Сетка: 4 колонки (два ряда по 4 + ряд из двух широких карточек «Моушн» и «ИИ»),
   3 колонки на малом десктопе, 2 на планшете, лента на телефоне.
   Коробки на полке стоят «вразбежку»: чётные колонки ниже на --services-step.
   Сдвиг сделан полями (не top), чтобы ряды не наезжали друг на друга. */
.services__grid {
  --services-step: 56px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.services__item { position: relative; min-width: 0; display: flex; }
.services__item:nth-child(4n + 1),
.services__item:nth-child(4n + 3) { margin-bottom: var(--services-step); }
.services__item:nth-child(4n + 2),
.services__item:nth-child(4n + 4) { margin-top: var(--services-step); }

/* Карточка */
.services__card {
  --rx: 0deg; --ry: 0deg; --tx: 0; --ty: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--s-line);
  border-radius: var(--r-m);
  background: var(--s-bg);
  color: var(--s-fg);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease-out), border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.services__card.is-tilting { transition: transform .14s linear, border-color .25s; }
.services__card:hover,
.services__card:focus-within { border-color: var(--s-fg); }

/* Этикетка: артикул, перфорация, штрихкод */
.services__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.services__code {
  flex: none;
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--s-fg);
  color: var(--s-bg);
  transition: background-color .25s, color .25s;
}
.services__card:hover .services__code,
.services__card:focus-within .services__code { background: var(--red); color: var(--ink); }
.services__perf {
  flex: 1;
  min-width: 12px;
  height: 0;
  border-top: 1.5px dashed var(--s-line);
}
.services__barcode {
  flex: none;
  width: 52px;
  height: 18px;
  background: repeating-linear-gradient(90deg,
    currentColor 0 1.5px, transparent 1.5px 3px, currentColor 3px 4px, transparent 4px 6.5px,
    currentColor 6.5px 9px, transparent 9px 10px, currentColor 10px 11px, transparent 11px 13.5px);
  opacity: .85;
}
.services__new {
  flex: none;
  padding: 6px 9px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: var(--ink);
}

/* Вырубное окно коробки с фото. Без своего контекста наложения: ярлык «Смотреть работы»
   и кнопка ролика (z-index 3) лежат поверх растянутой ссылки карточки (z-index 1). */
.services__window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-s);
  background: var(--soft);
}
.services__window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent);
  pointer-events: none;
}
.services__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(calc(var(--tx) * -9px), calc(var(--ty) * -9px), 0) scale(1.05);
  transition: transform .9s var(--ease-out);
}
.services__card:hover .services__img { transform: translate3d(calc(var(--tx) * -9px), calc(var(--ty) * -9px), 0) scale(1.11); }
.services__card.is-tilting .services__img { transition: transform .2s linear; }
.services__img--sign { object-position: 50% 30%; }
.services__img--facade { object-position: 42% 50%; }
.services__img--showcase { object-position: 30% 50%; } /* «DASS» целиком: в узком окне длинная вывеска не помещается, обрезаем по «HOME», а не по «D» */
.services__img--outdoor { object-position: 10% 50%; } /* «RK-2» с начала: длинная надпись режется по концу, а не с двух сторон */
.services__img--print { object-position: 86% 62%; }
.services__img--branding { object-position: 46% 50%; }
.services__img--custom { object-position: 78% 50%; } /* вывеска Edelweiss справа: видна и в вытянутом окне */

/* блик на плёнке окна, едет за курсором */
.services__glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(112deg, transparent 38%, color-mix(in srgb, var(--paper) 26%, transparent) 47%, transparent 56%) no-repeat;
  background-size: 260% 100%;
  background-position: calc(50% - var(--tx) * 40%) 0;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.services__card.is-tilting .services__glass { opacity: 1; }

/* «Смотреть работы ↗» — белая плашка в углу окна, ведёт в каталог по направлению */
.services__works {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  max-width: calc(100% - 20px);
  padding: 0 12px 0 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  transition: background-color .2s, color .2s;
}
.services__works:hover { background: var(--ink); color: var(--paper); }
.services__works:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: var(--r-pill); }
.services__works-arrow {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease-out);
}
.services__works:hover .services__works-arrow { transform: translate(2px, -2px); }
.services__works:hover .services__works-arrow--down { transform: translateY(2px); }
@media (hover: none) {
  .services__works { min-height: 40px; }
}

/* Текст карточки */
.services__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px 6px 6px;
  min-width: 0;
}
/* Карточки ряда одной высоты, но лишнюю высоту (длинное описание «Брендинга» с подписью к примеру)
   забирает окно с фото, а не пустая полоса над бирками: текст, бирки и капсула идут подряд.
   Лента на телефоне не меняется. Широкие карточки — сетка, на них flex не действует */
@media (min-width: 600px) {
  .services__window { flex: 1 0 auto; }
  .services__body { flex: none; }
}
.services__title {
  font-size: clamp(1.0625rem, 1.32vw, 1.375rem);
  line-height: 1.12;
  hyphens: manual;
  overflow-wrap: break-word;
}
.services__text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--s-muted);
}
/* подпись к примеру (свой стиль, свои ролики) */
.services__example {
  position: relative;
  padding-left: 18px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--s-fg);
}
.services__example::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--red);
}
.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1.5px dashed var(--s-line);
}
.services__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--s-line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--s-fg);
}

/* «Заказать замер →» — капсула-наконечник. Её ::after растянут на всю карточку:
   клик в любом месте карточки ведёт в заявку с выбранной услугой (lead.js, data-prefill-service) */
.services__order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin-top: 6px;
  padding: 5px 5px 5px 18px;
  border: 1.5px solid var(--s-fg);
  border-radius: var(--r-pill);
  color: var(--s-fg);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.services__order::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-m);
}
.services__order:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: var(--r-pill); }
.services__order-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--s-fg);
  color: var(--s-bg);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.services__order-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease-out);
}
.services__card:hover .services__order { background: var(--s-fg); color: var(--s-bg); }
.services__card:hover .services__order-arrow { background: var(--red); color: var(--ink); }
.services__card:hover .services__order-arrow svg { transform: translateX(2px); }
/* на ярлыке «Смотреть работы» капсула не заливается: понятно, куда ведёт клик */
.services__card:has(.services__works:hover) .services__order,
.services__card:has(.services__play:hover) .services__order { background: transparent; color: var(--s-fg); }
.services__card:has(.services__works:hover) .services__order-arrow,
.services__card:has(.services__play:hover) .services__order-arrow { background: var(--s-fg); color: var(--s-bg); }

/* ───── Брендинг: наш стиль на носителях, кадры сменяются, как сторис ───── */
.services__window--brand { background: var(--red); }
.services__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.04;
  transform: translate3d(calc(var(--tx) * -9px), calc(var(--ty) * -9px), 0);
  transition: opacity .9s var(--ease-out), scale 0s linear .9s, transform .9s var(--ease-out);
}
.services__slide.is-current {
  opacity: 1;
  scale: 1.1;
  transition: opacity .9s var(--ease-out), scale var(--services-slide-dur, 3.4s) linear, transform .9s var(--ease-out);
}
.services__card.is-tilting .services__slide { transition: opacity .9s var(--ease-out), scale var(--services-slide-dur, 3.4s) linear, transform .2s linear; }
.services__slide--van { object-position: 52% 50%; }
.services__window--brand:not(.is-playing) .services__slide.is-current { scale: 1.04; }

.services__bars {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.services__bars i {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: color-mix(in srgb, var(--paper) 42%, transparent);
}
.services__bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left center;
}
.services__bars i.is-done::after,
.services__window--brand:not(.is-playing) .services__bars i.is-current::after { transform: none; }
.services__window--brand.is-playing .services__bars i.is-current::after {
  animation: services-bar var(--services-slide-dur, 3.4s) linear forwards;
}
.services__window--brand.is-paused .services__bars i.is-current::after { animation-play-state: paused; }
@keyframes services-bar {
  from { transform: scaleX(0); }
  to { transform: none; }
}
.services__slide-label {
  position: absolute;
  left: 12px;
  top: 24px;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

/* ───── Моушн-дизайн: монтажный стол с сеткой, два «телефона» с роликами ───── */
/* окно — контейнер (ширина и высота): «телефоны» вписываются в окно любой пропорции,
   таймкод в узком окне уходит наверх */
.services__window--motion {
  container-type: size;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 10%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--soft);
}
.services__phone {
  position: absolute;
  aspect-ratio: 9 / 16;
  padding: 4px;
  border-radius: 18px;
  background: var(--ink);
  overflow: hidden;
  transition: transform .9s var(--ease-out);
}
.services__phone img,
.services__phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: var(--red);
}
/* размеры — от меньшей стороны окна (4:5, квадрат на телефоне, выше в широкой карточке), по вертикали — от центра */
.services__phone--back {
  left: 9%;
  top: 50%;
  width: min(42cqw, 33.6cqh);
  translate: 0 -46%;
  rotate: -8deg;
  transform: translate3d(calc(var(--tx) * -5px), calc(var(--ty) * -5px), 0);
}
.services__phone--back img { object-position: 50% 30%; filter: saturate(.9); }
.services__phone--front {
  left: 41%;
  top: 50%;
  width: min(52cqw, 41.6cqh);
  translate: 0 -54%;
  rotate: 3deg;
  transform: translate3d(calc(var(--tx) * -10px), calc(var(--ty) * -10px), 0);
}
.services__card.is-tilting .services__phone { transition: transform .2s linear; }
.services__card--motion:hover .services__phone--front { rotate: 1deg; }
.services__phone--front { transition: transform .9s var(--ease-out), rotate .9s var(--ease-out); }
/* полоса прогресса, как в Reels */
.services__reel-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: color-mix(in srgb, var(--paper) 40%, transparent);
}
.services__reel-bar i {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left center;
}
.services__motion-chip,
.services__timecode {
  position: absolute;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 5px;
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.services__motion-chip { left: 10px; top: 10px; background: var(--ink); color: var(--paper); }
.services__timecode {
  right: 10px;
  bottom: 18px;
  background: var(--paper);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line);
}
.services__timecode::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: 1px;
}
.services__window--motion.is-playing .services__timecode::before { background: var(--red); }
@container (max-width: 279px) {
  .services__timecode { right: auto; bottom: auto; left: 10px; top: 40px; }
}
/* кнопка «пауза / смотреть» (ролик крутится сам, а остановить его можно всегда) */
.services__play {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color .2s, color .2s, transform .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.services__play:hover { background: var(--red); color: var(--ink); }
.services__play:active { transform: scale(.94); }
.services__play:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 50%; }
.services__play-icon { width: 18px; height: 18px; fill: currentColor; }
.services__play-icon--pause { display: none; }
.services__window--motion.is-playing .services__play-icon--pause { display: block; }
.services__window--motion.is-playing .services__play-icon--play { display: none; }

/* ───── Автоматизация и ИИ: тёмная карточка, шнурок-провод через знак ───── */
.services__card--ai { border-color: var(--wall-line); }
.services__card--ai:hover,
.services__card--ai:focus-within { border-color: var(--red); }
.services__card--ai:hover .services__code,
.services__card--ai:focus-within .services__code { background: var(--paper); color: var(--ink); }
.services__window--ai {
  background:
    linear-gradient(color-mix(in srgb, var(--wall-line) 60%, transparent) 1px, transparent 1px) 0 0 / 100% 10%,
    linear-gradient(90deg, color-mix(in srgb, var(--wall-line) 60%, transparent) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--wall);
}
.services__window--ai::after { box-shadow: inset 0 0 0 1px var(--wall-line); }
.services__ai-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--tx) * -6px), calc(var(--ty) * -6px), 0);
  transition: transform .9s var(--ease-out);
}
.services__card.is-tilting .services__ai-art { transition: transform .2s linear; }
.services__ai-lace {
  fill: none;
  stroke: var(--red);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.services__ai-aglets path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 12;
  stroke-linecap: round;
}
.services__ai-pulse {
  fill: none;
  stroke: var(--paper);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 4 120;
  stroke-dashoffset: 4;
  animation: services-pulse 3.4s cubic-bezier(.45, .05, .55, .95) infinite;
}
.services__ai-pulse--b { animation-delay: 1.7s; }
.services__card--ai.is-paused .services__ai-pulse { animation-play-state: paused; }
@keyframes services-pulse {
  0% { stroke-dashoffset: 4; }
  80%, 100% { stroke-dashoffset: -104; }
}
.services__ai-chip {
  position: absolute;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid var(--wall-line);
  border-radius: 5px;
  background: var(--wall-2);
  color: var(--on-dark);
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.services__ai-chip--ig { left: 6%; top: 6%; }
.services__ai-chip--tg { right: 6%; top: 6%; }
.services__ai-chip--crm { right: 6%; top: 70%; }
.services__ai-chip--mgr { left: 6%; top: 70%; }
.services__card--ai .services__order:focus-visible { outline-color: var(--paper); }

/* Навигация ленты (только телефон) */
.services__nav { display: none; }

/* Подвал раздела */
.services__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  /* отступ — padding: .section > .wrap > * + * в base.css обнуляет margin-top */
  padding-top: clamp(32px, 4vw, 56px);
}
.services__catalog { white-space: nowrap; }
.services__catalog-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease-out);
}
.services__catalog:hover .services__catalog-arrow { transform: translateX(3px); }
.services__nobr { white-space: nowrap; }
.services__note {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-muted);
}

/* ───── Широкие карточки: окно слева, текст справа ───── */
@media (min-width: 1100px) {
  .services__item--wide:nth-child(n) { grid-column: span 2; margin: 0; }
  .services__item--wide .services__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 16px;
  }
  .services__item--wide .services__head { grid-column: 1 / -1; }
  /* окно тянется на высоту текста, но не ниже своих 4:5 (распорка ::before, ширина — колонка) */
  .services__item--wide .services__window { align-self: stretch; aspect-ratio: auto; width: 100%; }
  .services__item--wide .services__window::before { content: ""; display: block; padding-top: 125%; }
  .services__item--wide .services__body { padding: 8px 8px 2px 4px; }
}

/* Малый десктоп: три колонки, средняя ниже; «ИИ» — широкая карточка на весь ряд */
@media (min-width: 900px) and (max-width: 1099px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); --services-step: 48px; gap: 24px 16px; }
  .services__item:nth-child(n) { margin: 0 0 var(--services-step); }
  .services__item:nth-child(3n + 2) { margin: var(--services-step) 0 0; }
  .services__item--ai:nth-child(n) { grid-column: 1 / -1; margin: 0; }
  .services__item--ai .services__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: 24px;
  }
  .services__item--ai .services__head { grid-column: 1 / -1; }
  .services__item--ai .services__window { align-self: stretch; aspect-ratio: auto; width: 100%; }
  .services__item--ai .services__window::before { content: ""; display: block; padding-top: 125%; }
  .services__item--ai .services__body { padding: 8px 8px 2px 0; max-width: 560px; }
  .services__title { font-size: clamp(1.125rem, 2vw, 1.375rem); }
}

/* Планшет: две колонки, чётная ниже */
@media (min-width: 600px) and (max-width: 899px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --services-step: 48px; gap: 24px 16px; }
  .services__item:nth-child(n) { margin: 0 0 var(--services-step); }
  .services__item:nth-child(2n) { margin: var(--services-step) 0 0; }
  .services__title { font-size: clamp(1.125rem, 2.4vw, 1.375rem); }
}

/* Телефон: лента со snap */
@media (max-width: 599px) {
  .services__grid {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    /* 10 px сверху и снизу: кольцо фокуса (3 px + отступ) не обрезается лентой */
    padding: 10px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .services__grid::-webkit-scrollbar { display: none; }
  /* квадратное окно: карточка целиком помещается между шапкой и нижней панелью */
  .services__window { aspect-ratio: 1 / 1; }
  .services__item:nth-child(n) {
    margin: 0;
    flex: 0 0 min(84%, 330px);
    scroll-snap-align: start;
  }
  /* в ленте карточки не «всплывают» по одной: снаружи экрана они бы висели сдвинутыми */
  .js .services__item[data-reveal]:not(.is-in) { transform: none; }

  .js .services__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }
  .services__arrow {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--s-fg);
    border-radius: 50%;
    background: transparent;
    color: var(--s-fg);
    transition: background-color .2s, color .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .services__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .services__arrow:active { background: var(--s-fg); color: var(--s-bg); }
  .services__arrow[aria-disabled="true"] { opacity: .32; }
  .services__progress {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--s-line);
    overflow: hidden;
  }
  .services__progress-bar {
    --p: 0;
    --thumb: .2;
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: calc(var(--thumb) * 100%);
    border-radius: inherit;
    background: var(--red);
    transform: translateX(calc(var(--p) * (100% / var(--thumb) - 100%)));
  }
  .services__count {
    flex: none;
    font-family: var(--f-mono);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    color: var(--s-fg);
    min-width: 7ch;
    text-align: right;
  }
  .services__count.is-new { text-transform: uppercase; }
  .services__foot { flex-direction: column; align-items: flex-start; }
  .services__foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .services__card { transform: none; }
  .services__ai-pulse { animation: none; stroke-dashoffset: -48; }
  .services__ai-pulse--b { stroke-dashoffset: -20; }
  .services__slide, .services__slide.is-current { scale: 1.04; }
  .services__phone { transform: none; }
}

/* «Подробнее о нас →» в шапке раздела «Команда» */
.why__more { justify-self: start; }
.why__more-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease-out);
}
.why__more:hover .why__more-arrow { transform: translateX(3px); }


/* ═════════════ КОМАНДА ═════════════ */
.why__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: stretch;
}
.why__media { min-width: 0; }
.why__content { min-width: 0; }

/* Фото: большое (монтаж) и малое (буквы) внахлёст, колонка липнет на десктопе */
.why__stack {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.why__photo--main { grid-column: 1 / 11; grid-row: 1; }
.why__photo--small {
  grid-column: 7 / 13;
  grid-row: 2;
  z-index: 1;
  margin-top: -46%;
  translate: 0 var(--why-shift, 0px);
}
.why__frame {
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--line);
}
.why__frame img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.why__photo--small .why__frame {
  border: 8px solid var(--s-bg);
  border-radius: calc(var(--r-m) + 8px);
}
.why__caption {
  margin-top: 12px;
  max-width: 58%;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--s-muted);
}
.why__photo--small .why__caption { max-width: none; margin-top: 4px; padding-inline: 8px; }

/* Шесть фактов: спецификация с линиями */
.why__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.why__fact {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 8px 16px;
  padding: 24px 0 28px;
  border-top: 1.5px solid var(--s-fg);
  min-width: 0;
}
.why__icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--s-line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color .25s;
}
.why__icon svg { width: 38px; height: 38px; overflow: visible; }
.why__lace {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.why__aglet {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5.6;
  stroke-linecap: round;
}
.why__mark {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}
.why__fact:hover .why__icon { border-color: var(--s-fg); }
.why__fact:hover .why__lace { animation: why-draw 1s var(--ease-out); }
@keyframes why-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.why__fact-title {
  align-self: center;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.15;
}
.why__fact-text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--s-muted);
}

/* Образцы материалов */
.why__materials { margin-top: clamp(40px, 5vw, 64px); }
.why__materials-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  margin-bottom: 24px;
  border-top: 1.5px solid var(--s-fg);
}
.why__materials-note {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-muted);
}
.why__swatches {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 16px;
}
.why__swatch { --rx: 0deg; --ry: 0deg; --tx: 0; --ty: 0; --px: 50%; --py: 50%; min-width: 0; }
.why__sample {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease-out);
}
.why__swatch.is-tilting .why__sample { transition: transform .14s linear; }
/* отверстие под кольцо, как у веера образцов */
.why__sample::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 10px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--s-bg);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 22%, transparent);
}
.why__tex { position: absolute; inset: 0; display: block; overflow: hidden; }
.why__tex::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* блик: полоса проходит по ховеру + мягкое пятно за курсором */
.why__shine {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at var(--px) var(--py), color-mix(in srgb, var(--paper) 28%, transparent), transparent 70%),
    linear-gradient(105deg, transparent 32%, color-mix(in srgb, var(--paper) 62%, transparent) 47%, transparent 60%) no-repeat;
  background-size: 100% 100%, 300% 100%;
  background-position: 0 0, 120% 0;
  opacity: 0;
  transition: opacity .35s var(--ease-out), background-position 0s .35s;
}
.why__swatch:hover .why__shine {
  opacity: 1;
  background-position: 0 0, -20% 0;
  transition: opacity .2s var(--ease-out), background-position 1.1s var(--ease-out);
}

.why__sw-name {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-fg);
}
.why__sw-use {
  margin-top: 2px;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--s-muted);
}

/* 1. Композит: шлифованный алюминий, фальц кассеты и срез «сэндвича» */
.why__swatch--composite .why__tex {
  background:
    linear-gradient(90deg, transparent 0 79%, color-mix(in srgb, var(--ink) 22%, transparent) 79% 79.6%, color-mix(in srgb, var(--paper) 70%, transparent) 79.6% 80.4%, transparent 80.4%),
    linear-gradient(104deg, transparent 18%, color-mix(in srgb, var(--paper) 58%, transparent) 36%, transparent 50%, transparent 66%, color-mix(in srgb, var(--paper) 30%, transparent) 76%, transparent 86%),
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--ink) 7%, transparent) 0 1px, transparent 1px 2px, color-mix(in srgb, var(--paper) 30%, transparent) 2px 3px, transparent 3px 5px),
    linear-gradient(162deg, color-mix(in srgb, var(--paper) 84%, var(--muted)), color-mix(in srgb, var(--paper) 56%, var(--muted)) 58%, color-mix(in srgb, var(--paper) 70%, var(--muted)));
}
.why__swatch--composite .why__tex::after {
  background: var(--ink);
  opacity: .16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") 0 0 / 240px 240px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") 0 0 / 240px 240px;
}
/* срез панели внизу: алюминий / сердцевина / алюминий */
.why__swatch--composite .why__tex::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  z-index: 1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--paper) 62%, var(--muted)) 0 3px,
    var(--ink) 3px 9px,
    color-mix(in srgb, var(--paper) 52%, var(--muted)) 9px);
}

/* 2. Акрил: молочный, полупрозрачный, глянцевый; сквозь него видна буква */
.why__swatch--acrylic .why__tex { background: var(--paper); }
.why__acr-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 1;
  color: var(--red);
  transform: translate(8%, 6%);
  user-select: none;
}
.why__acr-sheet {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(128deg, transparent 0 24%, color-mix(in srgb, var(--paper) 70%, transparent) 34%, transparent 44%),
    linear-gradient(128deg, transparent 0 52%, color-mix(in srgb, var(--paper) 40%, transparent) 56%, transparent 60%),
    color-mix(in srgb, var(--paper) 52%, transparent);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  backdrop-filter: blur(7px) saturate(1.15);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--paper) 90%, transparent),
    inset 3px 3px 0 color-mix(in srgb, var(--paper) 75%, transparent),
    inset -3px -3px 0 color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: inherit;
}

/* 3. МДФ: волокнистая плита и фрезерованный паз */
.why__swatch--mdf .why__tex {
  background:
    radial-gradient(120% 90% at 25% 15%, color-mix(in srgb, var(--led-warm) 30%, transparent), transparent 62%),
    linear-gradient(168deg, color-mix(in srgb, var(--led-warm) 66%, var(--muted)), color-mix(in srgb, var(--led-warm) 50%, var(--muted)));
}
.why__swatch--mdf .why__tex::after {
  background: var(--ink);
  opacity: .3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.55' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 -1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") 0 0 / 200px 200px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.55' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 -1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E") 0 0 / 200px 200px;
}
.why__mdf-groove {
  position: absolute;
  z-index: 1;
  left: 20%;
  right: 20%;
  top: 40%;
  height: 22%;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, color-mix(in srgb, var(--led-warm) 30%, var(--ink)), color-mix(in srgb, var(--led-warm) 42%, var(--muted)));
  box-shadow:
    inset 0 3px 0 color-mix(in srgb, var(--ink) 30%, transparent),
    0 1px 0 color-mix(in srgb, var(--paper) 40%, transparent);
}

/* 4. Плёнка: глянцевая красная на подложке, уголок отходит */
@property --why-curl {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 66%;
}
.why__swatch--film .why__tex {
  --why-curl: 66%;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, var(--line) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, var(--line) 13px 14px),
    var(--paper);
  transition: --why-curl .7s var(--ease-out);
}
.why__swatch--film:hover .why__tex { --why-curl: 52%; }
.why__film {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(122deg, transparent 18%, color-mix(in srgb, var(--paper) 50%, transparent) 27%, transparent 36%),
    linear-gradient(122deg, transparent 44%, color-mix(in srgb, var(--paper) 20%, transparent) 48%, transparent 52%),
    linear-gradient(150deg, var(--red), var(--red-press));
  clip-path: polygon(0 0, 100% 0, 100% var(--why-curl), var(--why-curl) 100%, 0 100%);
}
.why__curl {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: polygon(var(--why-curl) var(--why-curl), 100% var(--why-curl), var(--why-curl) 100%);
  background: linear-gradient(to top left,
    transparent calc((100% - var(--why-curl)) / 2),
    color-mix(in srgb, var(--red) 55%, var(--ink)) calc((100% - var(--why-curl)) / 2),
    color-mix(in srgb, var(--red) 30%, var(--paper)) calc((100% - var(--why-curl)) / 2 + 6%),
    color-mix(in srgb, var(--red) 16%, var(--paper)) calc(100% - var(--why-curl)));
}

/* 5. UV-печать: растровые точки разного размера, две краски и шкала цветов */
.why__swatch--uv .why__tex { background: var(--paper); isolation: isolate; }
.why__ht {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.why__ht i {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--ink) 52%, var(--paper)), var(--paper)) 0 0 / 9px 9px,
    linear-gradient(var(--why-ht-dir), color-mix(in srgb, var(--ink) 58%, var(--paper)), var(--paper) 78%);
  background-blend-mode: multiply;
  filter: contrast(20);
  transform: rotate(var(--why-ht-angle));
}
.why__ht::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--why-ht-color);
  mix-blend-mode: lighten;
}
.why__ht--m { --why-ht-color: var(--red); --why-ht-angle: 15deg; --why-ht-dir: 150deg; }
.why__ht--k { --why-ht-color: var(--ink); --why-ht-angle: 45deg; --why-ht-dir: 330deg; }
.why__ht-bar {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  width: 64px;
  height: 10px;
  border: 1px solid var(--paper);
  background: linear-gradient(90deg, var(--red) 0 25%, var(--ink) 25% 50%, var(--led-warm) 50% 75%, var(--muted) 75%);
}

/* 6. LED: модули с диодами на тёмной подложке */
.why__swatch--led .why__tex {
  background:
    repeating-linear-gradient(180deg, transparent 0 11px, var(--wall-line) 11px 13px, transparent 13px 24px),
    linear-gradient(160deg, var(--wall-2), var(--wall));
}
.why__led-dots {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, var(--paper) 0 1.6px, var(--led-warm) 2.6px, color-mix(in srgb, var(--led-warm) 42%, transparent) 4.2px, transparent 10px) 0 0 / 24px 24px;
  transition: filter .4s var(--ease-out);
}
.why__swatch--led:hover .why__led-dots { animation: why-led-on .9s var(--ease-out) forwards; }
@keyframes why-led-on {
  0% { filter: brightness(1); }
  14% { filter: brightness(.45); }
  26% { filter: brightness(1.35); }
  38% { filter: brightness(.7); }
  100% { filter: brightness(1.3); }
}

/* Адаптив раздела «Команда» */
@media (max-width: 1199px) {
  .why__facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px) {
  .why__layout { grid-template-columns: minmax(0, 1fr); }
  .why__stack { position: relative; top: auto; column-gap: 16px; }
  .why__photo--main { grid-column: 1 / 8; grid-row: 1; }
  .why__photo--main .why__frame img { aspect-ratio: 4 / 5; }
  .why__photo--small { grid-column: 8 / 13; grid-row: 1; margin-top: 22%; translate: none; }
  .why__photo--small .why__frame { border: 0; border-radius: var(--r-m); }
  .why__caption { max-width: none; }
  .why__photo--small .why__caption { margin-top: 12px; padding-inline: 0; }
  .why__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .why__facts { grid-template-columns: minmax(0, 1fr); }
  .why__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .why__fact { grid-template-columns: 48px minmax(0, 1fr); padding: 20px 0 22px; }
  .why__icon { width: 48px; height: 48px; }
  .why__icon svg { width: 34px; height: 34px; }
  .why__stack { column-gap: 0; }
  .why__caption { max-width: 54%; }
  .why__photo--main { grid-column: 1 / 11; }
  .why__photo--main .why__frame img { aspect-ratio: 4 / 4.4; }
  .why__photo--small { grid-column: 8 / 13; grid-row: 2; margin-top: -60%; }
  .why__photo--small .why__frame { border: 6px solid var(--s-bg); border-radius: calc(var(--r-m) + 6px); }
  .why__photo--small .why__caption { max-width: none; margin-top: 4px; padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .why__sample { transform: none; }
  .why__photo--small { translate: none; }
}
.why__nobr { white-space: nowrap; }
