/* FastMotion Production — публичный сайт. Тёмная тема, красный акцент логотипа FM. */
:root {
  --bg: #0b0b0c;
  --surface: rgba(255, 255, 255, .04);
  --surface-hover: rgba(255, 255, 255, .07);
  --glass: rgba(28, 28, 30, .62);
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5f4;
  --muted: #8e8e93;
  --dim: #3a3a3d;
  --red: #ff0d35;
  --red-hover: #ff3a59;

  --font: 'Inter Tight', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --radius: 20px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3, p, dl, dd, ol, ul, figure, address { margin: 0; font-style: normal; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--red); color: #fff; padding: 8px 16px; border-radius: 99px; }

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

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.eyebrow--center { justify-content: center; }
.h2 { font-size: clamp(34px, 5.2vw, 76px); font-weight: 800; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }

/* ——— Кнопки и «стекло» ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 99px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn--glass:hover { background: rgba(60, 60, 64, .7); }
.btn__play { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -12px; border-radius: 50%; background: #fff; color: var(--bg); }
.btn__play svg { width: 12px; height: 12px; margin-left: 2px; }

.glass {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.glass svg { width: 16px; height: 16px; }
.glass:hover { background: rgba(60, 60, 64, .75); }
.glass--icon { width: 44px; padding: 0; justify-content: center; }
.glass--icon svg { width: 18px; height: 18px; }
.glass:disabled { opacity: .35; pointer-events: none; }

/*
 * Круглый значок внутри заглавных заголовков.
 * Без строк внутри базовая линия inline-block — его нижний край, поэтому сдвиг
 * (cap-height − размер) / 2 ставит центр круга ровно на середину заглавных букв.
 * Размер .8em не выходит за верх строки и не раздвигает межстрочный интервал.
 */
.chip-ico {
  --cap: .744em; /* высота заглавных у Inter Tight (замер в браузере) */
  --size: .8em;
  position: relative; display: inline-block; width: var(--size); height: var(--size); line-height: 0;
  vertical-align: calc((var(--cap) - var(--size)) / 2); margin: 0 .04em;
  border-radius: 50%; border: .045em solid currentColor; transition: color .3s, border-color .3s, background-color .3s;
}
.chip-ico svg { position: absolute; inset: 0; margin: auto; width: .46em; height: .46em; }
.chip-ico--red { background: var(--red); border-color: var(--red); color: #fff; }

/* ——— Шапка ——— */
.header { position: fixed; inset: 16px var(--gutter) auto; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; pointer-events: none; }
.header > * { pointer-events: auto; }
.header__nav { justify-self: start; gap: 4px; padding: 0 6px; }
.header__nav a { padding: 8px 14px; border-radius: 99px; color: #d4d4d8; transition: color .2s, background-color .2s; }
.header__nav a:hover, .header__nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.header__logo img { height: 44px; width: auto; }
.header__actions { justify-self: end; display: flex; gap: 8px; }
.burger { display: none; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding: 96px var(--gutter) 40px; background: rgba(11, 11, 12, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { padding: 8px 0; font-size: clamp(40px, 12vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; }
.menu__nav a:hover { color: var(--red); }

@media (max-width: 820px) {
  .header { grid-template-columns: auto 1fr; }
  .header__nav, .header__cta { display: none; }
  .header__logo { order: -1; }
  .burger { display: inline-flex; }
}

/* ——— Первый экран ——— */
.hero { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 120px var(--gutter) clamp(72px, 10vh, 120px); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #151517; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 24s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, .15) 35%, rgba(11, 11, 12, .55) 65%, var(--bg) 100%); }
/* Запасной фон — превью YouTube с надписями: приглушаем, чтобы не спорил с заголовком */
.hero--thumb .hero__media img { filter: blur(6px) brightness(.42) saturate(.8); }
.hero--thumb .hero__media { overflow: hidden; }
.hero__content { max-width: 1100px; text-align: center; }
.hero__title { font-size: clamp(28px, 8.4vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }
.hero__lead { max-width: 40em; margin: 28px auto 0; font-size: clamp(16px, 1.4vw, 19px); color: #d4d4d8; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 99px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 700px) { .hero__scroll { display: none; } }

/* ——— Нам доверяют: полоса логотипов клиентов ——— */
.clients {
  position: relative; padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(60% 140% at 38% 0%, rgba(150, 160, 190, .16), transparent 70%),
    radial-gradient(40% 120% at 62% 0%, rgba(255, 13, 53, .09), transparent 70%),
    var(--bg);
}
.clients__title { margin-bottom: clamp(20px, 2.4vw, 28px); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--muted); }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 24px clamp(32px, 5vw, 80px); }
.clients__item { display: flex; align-items: center; justify-content: center; min-width: 0; }
.clients__link { display: flex; align-items: center; justify-content: center; height: 40px; opacity: .72; transition: opacity .25s; }
.clients__link:hover, a.clients__link:focus-visible { opacity: 1; }
.clients__link img { height: 100%; width: auto; max-width: 150px; object-fit: contain; }
.clients__item.is-mono img { filter: brightness(0) invert(1); }
.clients__name { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap; color: var(--text); }
@media (max-width: 620px) {
  .clients__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .clients__link { height: 30px; }
  .clients__link img { max-width: 100px; }
  .clients__name { font-size: 18px; }
}

/* ——— Манифест: слова «загораются» при прокрутке ——— */
.manifesto { padding-block: var(--section); }
.manifesto__text { font-size: clamp(34px, 5.6vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
.manifesto__text [data-word] { color: var(--dim); transition: color .35s var(--ease); }
.manifesto__text [data-word].is-lit { color: var(--text); }
.manifesto__text .chip-ico.is-lit { color: #fff; background: var(--red); border-color: var(--red); }

/* ——— Секции ——— */
.section { padding-block: var(--section); }
.section--tight { padding-block: 24px var(--section); }
.section__intro { max-width: 860px; margin: 0 auto clamp(48px, 7vw, 96px); text-align: center; }
.section__lead { max-width: 36em; margin: 24px auto 0; font-size: 18px; color: var(--muted); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 700px) { .section__head { flex-direction: column; align-items: flex-start; } }

/* Услуги: стеклянные карточки, средняя колонка смещена вниз */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glass-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.service { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 340px; padding: 48px 32px; text-align: center; }
.service:hover { background: var(--surface-hover); border-color: rgba(255, 13, 53, .45); }
.service__num { position: absolute; top: 20px; left: 24px; font-size: 13px; font-weight: 600; color: var(--muted); }
.service__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--line); color: var(--red); transition: background-color .3s, color .3s, border-color .3s; }
.service__icon svg { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--red); border-color: var(--red); color: #fff; }
.service__title { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.service__desc { max-width: 28em; color: var(--muted); font-size: 15px; }
@media (min-width: 1001px) { .services__grid .service:nth-child(3n + 2) { margin-top: 64px; margin-bottom: -64px; } .services { padding-bottom: calc(var(--section) + 64px); } }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services__grid { grid-template-columns: 1fr; } .service { min-height: 0; padding: 48px 24px 40px; } }

/* Шапка канала (страница YouTube) */
.channel__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #1c1c1e; flex-shrink: 0; }
.channel__name { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.channel__handle { margin-top: 4px; font-size: 14px; color: var(--muted); }
.channel__handle b { color: var(--text); font-weight: 700; }
.channel__desc { margin-top: 10px; color: #c7c7cc; font-size: 15px; max-width: 46em; }

/* Бегущая строка, сдвигается прокруткой */
.marquee { overflow: hidden; padding-block: clamp(24px, 4vw, 48px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; will-change: transform; }
.marquee__track span { font-size: clamp(56px, 10vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.045em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.marquee__track span:nth-of-type(4n + 1) { color: var(--text); }
.marquee__track i { width: clamp(14px, 1.6vw, 26px); height: clamp(14px, 1.6vw, 26px); border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 40px 32px; border-top: 1px solid var(--line); }
.step__num { display: block; margin-bottom: 48px; font-size: clamp(64px, 7vw, 104px); font-weight: 800; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--dim); transition: -webkit-text-stroke-color .3s; }
.step:hover .step__num { -webkit-text-stroke-color: var(--red); }
.step__title { margin-bottom: 12px; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { padding: 32px 0; } .step__num { margin-bottom: 24px; } }

/* ——— Карточки роликов ——— */
.vcard { min-width: 0; }
.vcard__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #151517; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard__media:hover img { transform: scale(1.05); }
.vcard__play { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; transition: transform .25s var(--ease); }
.vcard__play svg { width: 18px; height: 18px; margin-left: 3px; }
.vcard__media:hover .vcard__play { transform: scale(1.1); }
.vcard__tag { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vcard__body { padding: 16px 2px 0; }
.vcard__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.vcard__date { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
/* Круглая стрелка, превращающаяся в кнопку YouTube */
.yt-arrow { margin-top: calc(((100cqw - var(--arrow) - 3 * var(--gap)) / 3) * 9 / 16 / 2 - var(--arrow) / 2); }
.yt-arrow {
  position: relative; display: grid; place-items: center; width: var(--arrow, 72px); height: var(--arrow, 72px); flex-shrink: 0; overflow: hidden; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line); color: var(--text);
  transition: background-color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.yt-arrow__icon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .35s var(--ease), opacity .25s; }
.yt-arrow__icon svg { width: 34%; height: 34%; }
.yt-arrow__icon--yt { opacity: 0; transform: translateX(-60%); }
.yt-arrow__icon--yt svg { width: 44%; height: 44%; }
.yt-arrow:hover, .yt-arrow:focus-visible { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.yt-arrow:hover .yt-arrow__icon--arrow, .yt-arrow:focus-visible .yt-arrow__icon--arrow { opacity: 0; transform: translateX(60%); }
.yt-arrow:hover .yt-arrow__icon--yt, .yt-arrow:focus-visible .yt-arrow__icon--yt { opacity: 1; transform: none; }
/* на сенсорных экранах наведения нет — сразу показываем кнопку YouTube */
@media (hover: none) {
  .yt-arrow { background: var(--red); border-color: var(--red); }
  .yt-arrow__icon--arrow { opacity: 0; }
  .yt-arrow__icon--yt { opacity: 1; transform: none; }
}
/* ——— Внутренние страницы ——— */
.page-head { padding-block: clamp(140px, 18vw, 220px) 40px; }
.page-head__title { font-size: clamp(56px, 11vw, 168px); font-weight: 800; line-height: .85; letter-spacing: -.05em; text-transform: uppercase; }
.page-head__lead { max-width: 36em; margin-top: 28px; font-size: 18px; color: var(--muted); }
.page-head--center { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.page-head--center .page-head__lead { margin-inline: auto; }
.page-head--center .page-head__title { font-size: clamp(44px, 8vw, 120px); }
.empty { padding: 64px 0; color: var(--muted); }

/* ——— Галерея ——— */
.masonry { columns: 3 320px; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin-bottom: 16px; }
.masonry__item button { display: block; width: 100%; overflow: hidden; border-radius: 16px; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item button:hover img { transform: scale(1.03); }
.masonry__item figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ——— Призыв и контакты ——— */
.cta { position: relative; overflow: hidden; padding-block: var(--section) calc(var(--section) + 80px); text-align: center; }
.cta__inner { position: relative; z-index: 1; }
.cta__title { font-size: clamp(48px, 9.5vw, 150px); font-weight: 800; line-height: .88; letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance; }
.cta__lead { max-width: 32em; margin: 32px auto 0; font-size: 18px; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta__arc { position: absolute; left: 50%; bottom: 0; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, 50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 13, 53, .22), rgba(255, 13, 53, .06) 60%, transparent); pointer-events: none; }

/* ——— Подвал ——— */
.footer { padding-block: 72px 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 40px; }
.footer__brand img { height: 72px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 22em; color: var(--muted); font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col a { color: #d4d4d8; align-self: flex-start; transition: color .2s; }
.footer__col a:hover { color: var(--red); }
.footer__label { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__up { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.footer__up svg { transform: rotate(-90deg); width: 14px; height: 14px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ——— Проекты: карточки. Сетка из 6 колонок: обычная карточка занимает 2, широкая — 3 ——— */
.project-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) clamp(16px, 2vw, 32px); list-style: none; margin: 0; padding: 0; }
.project-card { grid-column: span 2; }
.project-card--wide { grid-column: span 3; }
.project-card__link { display: block; }
.project-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(16px, 2vw, 28px); background: radial-gradient(120% 90% at 30% 0%, #26262a, #121214); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.project-card__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.project-card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.project-card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title kind" "meta kind"; align-items: start; gap: 8px 24px; margin-top: 20px; }
.project-card__title { grid-area: title; max-width: 22em; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.3; transition: color .3s; }
.project-card__meta { grid-area: meta; font-size: clamp(15px, 1.2vw, 18px); color: #636368; font-variant-numeric: tabular-nums; }
.project-card__kind { grid-area: kind; align-self: end; font-size: clamp(15px, 1.3vw, 19px); color: var(--muted); white-space: nowrap; }
.project-card__link:hover .project-card__media img { transform: scale(1.04); filter: brightness(.8); }
.project-card__link:hover .project-card__play, .project-card__link:focus-visible .project-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.project-card__link:hover .project-card__title { color: var(--red); }
@media (max-width: 900px) {
  .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card--wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .project-cards { grid-template-columns: 1fr; gap: 36px; }
  .project-card__info { margin-top: 14px; }
}

/* ——— YouTube: тизер на главной и плитки охвата ——— */
.yt-teaser {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 72px); overflow: hidden;
  background: radial-gradient(70% 110% at 100% 0%, rgba(255, 13, 53, .16), transparent 62%), var(--surface);
}
.yt-teaser .h2 { font-size: clamp(32px, 4.2vw, 64px); }
.yt-teaser .section__lead { margin: 20px 0 32px; }
@media (max-width: 900px) { .yt-teaser { grid-template-columns: 1fr; } }

.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 24px; }
.reach__title { margin: clamp(64px, 9vw, 128px) 0 28px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reach__item { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.reach dd { font-size: clamp(40px, 5vw, 72px); font-weight: 800; line-height: .9; letter-spacing: -.04em; white-space: nowrap; }
.reach dt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.reach-group + .reach-group { margin-top: clamp(40px, 5vw, 64px); }
.reach-group__name { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; font-weight: 700; }
.reach-group__name svg { width: 20px; height: 20px; color: var(--red); }
.reach-group__name a { margin-left: 6px; font-weight: 500; color: var(--muted); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.reach-group__name a:hover { color: var(--text); }
.reach--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .reach--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .reach--row dd { font-size: clamp(30px, 9vw, 40px); }
  .reach--row dt { font-size: 13px; }
}
.reach__item:first-child dd { color: var(--red); }
.reach--stack { grid-template-columns: 1fr; gap: 0; }
.reach--stack .reach__item { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 20px; }
.reach--stack dd { font-size: clamp(34px, 4vw, 56px); }
.reach--stack dt { text-align: right; }

/* ——— Страница YouTube ——— */
.manifesto--page { padding-block: 16px var(--section); }
.yt-channels { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
.yt-channel__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.yt-channel__head .yt-arrow { --arrow: 64px; }
.yt-channel__videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
@media (max-width: 900px) { .yt-channel__videos { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .yt-channel__head { align-items: start; gap: 14px; }
  .yt-channel__head .channel__avatar { width: 48px; height: 48px; }
  .yt-channel__head .yt-arrow { --arrow: 48px; }
  .channel__name { font-size: 20px; }
}

/* ——— Команда ——— */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 24px); }
.member__photo { position: relative; aspect-ratio: 4 / 5; margin-bottom: 18px; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 90% at 30% 0%, #26262a, #121214); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .8s var(--ease); }
.member:hover .member__photo img { filter: none; transform: scale(1.03); }
.member__initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(96px, 10vw, 160px); font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--dim); transition: -webkit-text-stroke-color .3s; }
.member:hover .member__initials { -webkit-text-stroke-color: var(--red); }
.member__name { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.member__role { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.member__bio { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .member__name { font-size: 18px; } .member__role { font-size: 11px; } }

/* ——— Страница проекта ——— */
.project-page__title { font-size: clamp(40px, 8vw, 120px); text-wrap: balance; }
.project-page__intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; align-items: end; }
.project-page__facts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px 40px; }
.project-page__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-page__facts dd { margin-top: 6px; font-size: 18px; font-weight: 700; }
@media (max-width: 820px) { .project-page__intro { grid-template-columns: 1fr; } .project-page__facts { justify-content: flex-start; } }
.project-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.project-video--main { grid-column: 1 / -1; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .project-videos { grid-template-columns: 1fr; } }
.project-page__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
/* Разделы кейса: заголовок слева, содержимое справа; широкие разделы — заголовок сверху */
.case { margin-top: clamp(64px, 9vw, 128px); }
.case-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.case-block--wide { grid-template-columns: 1fr; }
.case-block__label { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; color: var(--red); }
.case-text { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: #d4d4d8; }
.case-text p + p { margin-top: 1em; }
.case-text--lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.45; font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.case-text--muted { color: var(--muted); }
.case-client { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px clamp(24px, 4vw, 56px); }
.case-client__logo { display: grid; place-items: center; width: clamp(120px, 14vw, 200px); aspect-ratio: 16 / 9; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.case-client__logo img { max-height: 100%; width: 100%; object-fit: contain; }
.case-client__logo.is-mono img { filter: brightness(0) invert(1); }
.case-client__name { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.case-tasks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-tasks li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; }
.case-tasks__num { padding-top: .2em; font-size: 14px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.case-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.case-stage { padding: clamp(24px, 3vw, 36px); }
.case-stage__num { display: block; margin-bottom: 40px; font-size: 14px; font-weight: 700; color: var(--red); }
.case-stage__title { margin-bottom: 14px; font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.case-stage .case-text { font-size: 16px; }
@media (max-width: 820px) {
  .case-block { grid-template-columns: 1fr; }
  .case-client { grid-template-columns: 1fr; }
}
.project-photos { columns: 2 340px; column-gap: 16px; }
.project-photos__item { display: block; width: 100%; margin-bottom: 16px; overflow: hidden; border-radius: 16px; break-inside: avoid; }
.project-photos__item img { width: 100%; transition: transform .6s var(--ease); }
.project-photos__item:hover img { transform: scale(1.03); }
.project-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; margin-top: clamp(40px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.project-next .eyebrow { grid-column: 1 / -1; margin: 0; }
.project-next__title { font-size: clamp(30px, 6vw, 88px); font-weight: 800; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; transition: color .3s; }
.project-next__arrow { --arrow: clamp(56px, 7vw, 104px); }
.project-next:hover .project-next__title { color: var(--red); }
.project-next:hover .project-next__arrow { background: var(--red); border-color: var(--red); transform: translateX(6px); }

/* шоурил в плеере */
.player__frame video { display: block; width: 100%; height: 100%; background: #000; }
.btn--red .btn__play { color: var(--red); }

/* ——— Появление при прокрутке ——— */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .services__grid [data-reveal].is-in:nth-child(3n + 2) { transition-delay: .08s; }
.js .services__grid [data-reveal].is-in:nth-child(3n) { transition-delay: .16s; }

/* ——— Плеер и лайтбокс ——— */
.player, .lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: var(--gutter); border: 0; background: rgba(8, 8, 9, .95); color: var(--text); }
.player[open], .lightbox[open] { display: grid; place-items: center; }
.player::backdrop, .lightbox::backdrop { background: transparent; }
.player__box { position: relative; width: min(1200px, 100%); }
.player__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player__meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; }
.player__title { font-weight: 600; }
.player__link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-size: 14px; }
.player__link:hover { color: var(--red); }
.player__close { position: fixed; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); }
.player__close:hover { background: var(--red); border-color: var(--red); }
.player__close svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .player__meta { flex-direction: column; align-items: flex-start; gap: 8px; } }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { max-width: min(1400px, 100%); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 12px; }
.lightbox__figure figcaption { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto__text [data-word] { color: var(--text); }
}
