/* =========================================================
   silentcode.org — главная. Стиль «Redesign · Brutal»
   Брейкпоинты:  < 768 — мобильный (макет 375)
                 768–1199 — планшет
                 ≥ 1200 — десктоп (макет 1920, масштаб через --u)
   ========================================================= */

:root {
  --bg: #F4F2EA;
  --surface: #FFFFFF;
  --ink: #111111;
  --yellow: #FFE000;
  --orange: #FF5A1F;
  --muted: #666666;

  --f-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-text: "Golos Text", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "Courier New", monospace;

  --pad: 20px;          /* боковые поля контейнера */
  --header-h: 75px;
  --bw: 2px;            /* толщина обводки карточек/кнопок */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container { width: 100%; max-width: 1920px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section[id], footer[id] { scroll-margin-top: var(--header-h); }

/* ---------- типографика ---------- */
.label {
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.label--yellow { color: var(--yellow); }
.subtitle {
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.h2 {
  font: 900 42px/.88 var(--f-display);
  text-transform: uppercase;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn__label {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  font-family: var(--f-display); font-weight: 900; line-height: 1;
}
.btn__arrow {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  background: var(--ink); color: var(--surface);
  font-family: var(--f-mono); font-weight: 700; line-height: 1;
}
.btn--l .btn__label { height: 52px; font-size: 18px; }
.btn--l .btn__arrow { width: 52px; height: 52px; font-size: 18px; }
.btn--m .btn__label { height: 44px; font-size: 14px; }
.btn--m .btn__arrow { width: 44px; height: 44px; font-size: 14px; }
.btn--white { background: var(--surface); }
.btn--block { display: flex; width: 100%; }
.btn--block .btn__label { flex: 1; }
.btn--on-dark { border-color: var(--surface); }
.btn--on-dark .btn__arrow { background: var(--orange); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.icon-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.icon-btn--yellow { background: var(--yellow); }
.icon-btn--orange { background: var(--orange); }

/* ---------- полоса «hazard» ---------- */
.stripes {
  height: 28px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--ink) 0 28px, var(--yellow) 28px 39.6px);
  background-position: -12px 0;
}

/* ---------- заголовок секции + декор ---------- */
.section-title { display: flex; align-items: flex-end; overflow-x: clip; }
.section-title__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.section-title__row { display: flex; align-items: flex-end; gap: 12px; }
.deco { display: flex; align-items: center; gap: 8px; flex: none; margin-bottom: -7px; }
.deco__dots { width: 36px; height: 36px; }
.deco__square { width: 32px; height: 32px; background: var(--orange); border: 2px solid var(--ink); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: calc(var(--header-h) - 3px);
}
.logo img { width: 140px; height: auto; }
.nav { display: none; }
.header__cta { display: none; }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mmenu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mmenu[hidden] { display: none; }
.mmenu__header {
  display: flex; align-items: center; justify-content: space-between;
  flex: none;
  padding: 14px var(--pad);
  border-bottom: 3px solid var(--ink);
}
.mmenu__body {
  flex: 1 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  padding: 16px var(--pad) 28px;
  width: 100%; max-width: 640px; margin: 0 auto;
}
.section-title--menu .section-title__text { gap: 8px; }
.mmenu__nav { display: flex; flex-direction: column; gap: 12px; }
.mitem {
  display: flex; align-items: center; gap: 14px;
  height: 80px; padding-right: 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  transition: box-shadow .12s ease, transform .12s ease;
}
.mitem__tile {
  display: flex; align-items: center; justify-content: center;
  flex: none; align-self: stretch; width: 72px;
  border-right: 2px solid var(--ink);
  font: 900 28px/1 var(--f-display);
}
.mitem__tile--yellow { background: var(--yellow); }
.mitem__tile--orange { background: var(--orange); }
.mitem__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mitem__title { font: 900 30px/.95 var(--f-display); text-transform: uppercase; }
.mitem__sub { font: 400 12px/1.2 var(--f-text); color: var(--muted); }
.mitem__arrow { font: 700 18px/1 var(--f-mono); }
/* State=Active */
.mitem.is-active { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.mitem.is-active .mitem__tile { background: var(--ink); color: var(--yellow); }
.mitem.is-active .mitem__sub { color: var(--ink); }
.mmenu__spacer { flex: 1 0 24px; }
.mmenu__contacts { display: flex; gap: 16px; }
.mmenu__contacts > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mmenu__clabel { font: 700 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--orange); text-transform: uppercase; }
.mmenu__cvalue { font: 400 12px/1.2 var(--f-text); overflow-wrap: anywhere; }
.mmenu > .stripes { flex: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { overflow: clip; }
.hero__inner {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding-top: 28px; padding-bottom: 48px;
}
.hero__content { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero__caption {
  display: flex; flex-direction: column; gap: 3px;
  font: 700 11px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase;
}
.hero__caption-bar { display: block; width: 40px; height: 3px; background: var(--ink); margin-top: 0; }
.h1 {
  display: flex; flex-direction: column; align-items: flex-start;
  font: 900 min(46px, 12.2vw)/.88 var(--f-display);
  text-transform: uppercase;
  white-space: nowrap;
}
.h1__hl { display: inline-block; background: var(--yellow); padding: 0 .174em; }
.alliance { display: flex; align-items: center; gap: 12px; }
.alliance__text { font: 700 14px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; }
.alliance__badge {
  padding: 2px 10px;
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font: 900 22px/1.2 var(--f-display);
}
.lead { font-size: 16px; line-height: 1.5; max-width: 760px; }
.hero__cta { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.hero__cta .btn { display: flex; width: 100%; }
.hero__cta .btn__label { flex: 1; }

/* ---- арт: сцена 680×820, масштаб --k выставляет JS ---- */
.art { position: relative; width: min(333px, 100%); aspect-ratio: 680 / 820; flex: none; --k: .49; }
.art__stage {
  position: absolute; left: 0; top: 0;
  width: 680px; height: 820px;
  transform: scale(var(--k)); transform-origin: 0 0;
}
.art__stage > * { position: absolute; }
.art__orange { left: 125.7px; top: 247.9px; width: 560px; height: 460px; background: var(--orange); transform: rotate(-10deg); }
.art__yellow { left: 208.9px; top: 252px; width: 440px; height: 380px; background: var(--yellow); border: 3px solid var(--ink); transform: rotate(6deg); }
.art__dots { left: 470px; top: 10px; width: 154px; height: 154px; }
.art__px { width: 28px; height: 28px; background: var(--ink); }
.art__code {
  left: 127.6px; top: 104px; width: 440px; height: 520px;
  background: var(--surface); border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-4deg); overflow: hidden;
}
.art__code > * { position: absolute; }
.art__bar { left: 0; top: 0; width: 100%; height: 48px; background: var(--bg); border-bottom: 4px solid var(--ink); }
.art__dot { top: 14px; width: 16px; height: 16px; border: 2px solid var(--ink); }
.art__file { left: 296px; top: 13px; font: 700 14px/1.2 var(--f-mono); }
.art__hl { left: 16px; top: 211px; width: 360px; height: 34px; background: var(--yellow); }
.art__line { height: 12px; background: var(--ink); }
.art__sticky {
  left: 361.2px; top: 539.7px; width: 300px; height: 250px;
  background: var(--ink); transform: rotate(8deg);
}
.art__sticky p {
  position: absolute; left: 28px; top: 26px;
  font: 900 50px/.92 var(--f-display); color: var(--surface);
  text-transform: uppercase; white-space: nowrap;
}
.art__sticky i { position: absolute; left: 28px; top: 214px; width: 150px; height: 8px; background: var(--yellow); }
.art__burst { width: 56px; height: 10px; background: var(--ink); }
.art__square { left: 590px; top: 200px; width: 72px; height: 72px; background: var(--orange); border: 3px solid var(--ink); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__inner { display: flex; flex-direction: column; gap: 14px; padding-top: 56px; padding-bottom: 8px; }
.statement { font: 500 22px/1.25 var(--f-text); }
.accent { color: var(--orange); }

/* =========================================================
   SERVICES
   ========================================================= */
.services > .container { display: flex; flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 56px; }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.service {
  display: flex; align-items: center;
  min-height: 68px;
  background: var(--surface);
  border: 2px solid var(--ink);
  transition: box-shadow .12s ease, transform .12s ease;
}
@media (hover: hover) { .service:hover { box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); } }
.service__tile {
  display: flex; align-items: center; justify-content: center;
  flex: none; align-self: stretch; width: 64px;
  border-right: 3px solid var(--ink);
  font: 900 28px/1 var(--f-display);
}
.service__tile--yellow { background: var(--yellow); }
.service__tile--orange { background: var(--orange); }
.service__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 8px 10px 14px; }
.service__title { font: 900 18px/1 var(--f-display); text-transform: uppercase; }
.service__desc { font: 400 12px/1.2 var(--f-text); color: var(--muted); }
.service__arrow { padding-right: 14px; font: 700 18px/1 var(--f-mono); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects > .container { display: flex; flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 56px; }
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.projects__btn { display: none; }
.cases { display: grid; grid-template-columns: 1fr; gap: 20px; }
.case {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  min-width: 0;
}
.case__media {
  position: relative; height: 196px; overflow: hidden;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .case:hover .case__media img { transform: scale(1.03); } }
.chip {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 8px;
  background: var(--yellow); border: 2px solid var(--ink);
  font: 700 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
}
.chip--orange { background: var(--orange); }
.case__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 20px; }
.case__title { font: 900 30px/.95 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.case__desc { font-size: 14px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 4px 7px;
  background: var(--bg); border: 2px solid var(--ink);
  font: 700 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}

/* =========================================================
   AWARDS
   ========================================================= */
.awards > .container { display: flex; flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 56px; }
.awards__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.award-total {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 18px 16px 20px 20px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.award-total__num { font: 900 96px/.85 var(--f-display); margin-top: 6px; }
.award-total__text { font: 900 18px/.95 var(--f-display); text-transform: uppercase; margin-top: 4px; }
.award {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  min-width: 0;
}
.award__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52.8px; height: 52.8px;
  background: var(--bg); border: 2px solid var(--ink);
}
.award__icon img { width: 30.8px; height: auto; }
.award__count { display: flex; align-items: baseline; gap: 2px; font-family: var(--f-display); font-weight: 900; }
.award__x { font-size: 32px; line-height: 1; color: var(--orange); }
.award__n { font-size: 64px; line-height: .85; }
.award__name { font: 700 11px/1.35 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--surface); }
.footer__inner { display: flex; flex-direction: column; gap: 40px; padding-top: 48px; padding-bottom: 28px; }
.footer__top { display: flex; flex-direction: column; gap: 24px; }
.footer__heading { display: flex; flex-direction: column; gap: 14px; }
.footer__title { font: 900 min(56px, 14.6vw)/.86 var(--f-display); text-transform: uppercase; }
.footer__title span { color: var(--yellow); }
.footer__top .btn { display: flex; width: 100%; box-shadow: none; }
.footer__top .btn .btn__label { flex: 1; }
.footer__top .btn:hover { transform: none; box-shadow: 4px 4px 0 var(--orange); }
.contacts {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 40px;
  border-top: 2px solid var(--surface);
}
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.contact__label { font: 700 11px/1 var(--f-mono); letter-spacing: .3em; color: var(--yellow); text-transform: uppercase; }
.contact__value { font: 500 16px/1.2 var(--f-text); overflow-wrap: anywhere; }
.contact__extra { font: 700 11px/1 var(--f-mono); letter-spacing: .1em; }
a.contact__value:hover, .contact__extra:hover { color: var(--yellow); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 4px;
  font: 700 10px/1.3 var(--f-mono); letter-spacing: .3em; text-transform: uppercase;
}

/* =========================================================
   ПЛАНШЕТ 768–1199
   ========================================================= */
@media (min-width: 768px) {
  :root { --pad: 40px; --header-h: 84px; --bw: 3px; }

  .label, .subtitle { font-size: 13px; }
  .h2 { font-size: 72px; }
  .section-title__text { gap: 12px; }
  .section-title__row { gap: 20px; }
  .deco { gap: 14px; margin-bottom: -4px; }
  .deco__dots { width: 60px; height: 60px; }
  .deco__square { width: 56px; height: 56px; border-width: 3px; }

  .logo img { width: 180px; }

  .btn { box-shadow: 6px 6px 0 var(--ink); }
  .btn--l .btn__label { height: 60px; padding: 0 24px; font-size: 22px; }
  .btn--l .btn__arrow { width: 60px; height: 60px; font-size: 22px; }

  .stripes { height: 34px; }

  .hero__inner { padding-top: 56px; padding-bottom: 72px; gap: 56px; }
  .hero__content { gap: 32px; }
  .hero__caption { font-size: 13px; gap: 5px; }
  .hero__caption-bar { width: 48px; height: 4px; }
  .h1 { font-size: 88px; }
  .alliance { gap: 16px; }
  .alliance__text { font-size: 18px; }
  .alliance__badge { font-size: 34px; padding: 2px 14px; border-width: 3px; }
  .lead { font-size: 20px; max-width: 640px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; gap: 24px; width: auto; }
  .hero__cta .btn { width: auto; }
  .art { width: min(480px, 100%); }

  .about__inner { padding-top: 96px; padding-bottom: 24px; gap: 20px; }
  .statement { font-size: 32px; }

  .services > .container,
  .projects > .container,
  .awards > .container { gap: 48px; padding-top: 96px; padding-bottom: 96px; }
  .projects > .container { padding-top: 40px; }
  .awards > .container { padding-top: 40px; }

  .services__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service { min-height: 96px; border-width: 3px; }
  .service__tile { width: 96px; font-size: 42px; }
  .service__text { padding: 14px 12px 14px 20px; gap: 5px; }
  .service__title { font-size: 24px; }
  .service__desc { font-size: 14px; }
  .service__arrow { padding-right: 20px; font-size: 22px; }

  .projects__btn { display: inline-flex; }
  .cases { grid-template-columns: 1fr 1fr; gap: 28px; }
  .case:last-child { grid-column: 1 / -1; }   /* 9 кейсов: последний на всю ширину */
  .case { border-width: 3px; box-shadow: 8px 8px 0 var(--ink); }
  .case__media { height: 280px; }
  .chip { left: 16px; top: 16px; padding: 5px 10px; font-size: 12px; }
  .case__body { gap: 14px; padding: 22px 22px 26px; }
  .case__title { font-size: 34px; }
  .case__desc { font-size: 16px; }
  .tags li { padding: 5px 9px; font-size: 11px; }

  .awards__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .award-total { border-width: 3px; box-shadow: 8px 8px 0 var(--ink); padding: 24px 28px 28px; }
  .award-total__num { font-size: 140px; }
  .award-total__text { font-size: 26px; }
  .award { border-width: 3px; padding: 20px; gap: 12px; }
  .award__icon { width: 72px; height: 72px; border-width: 3px; }
  .award__icon img { width: 42px; }
  .award__x { font-size: 44px; }
  .award__n { font-size: 96px; }
  .award__name { font-size: 12px; }

  .footer__inner { gap: 64px; padding-top: 88px; padding-bottom: 40px; }
  .footer__top { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .footer__title { font-size: 104px; }
  .label--yellow { font-size: 13px; }
  .footer__top .btn { width: auto; border-width: 3px; }
  .contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .contact { gap: 10px; }
  .contact__label { font-size: 13px; }
  .contact__value { font-size: 20px; }
  .contact__extra { font-size: 13px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; font-size: 12px; }
}

/* =========================================================
   ДЕСКТОП ≥ 1200 — размеры из макета 1920 × --u
   (--u = 1px на 1920+, пропорционально уменьшается до 1200)
   ========================================================= */
@media (min-width: 1200px) {
  :root {
    --u: min(1px, calc(100vw / 1920));
    --pad: calc(80 * var(--u));
    --header-h: calc(121 * var(--u));
  }
  .burger { display: none; }
  .mmenu { display: none !important; }

  /* общие */
  .label { font-size: max(12px, calc(15 * var(--u))); }
  .subtitle { font-size: max(12px, calc(16 * var(--u))); }
  .h2 { font-size: calc(120 * var(--u)); }
  .section-title__text { gap: calc(16 * var(--u)); }
  .section-title__row { gap: calc(32 * var(--u)); }
  .deco { gap: calc(20 * var(--u)); margin-bottom: calc(7 * var(--u)); }
  .deco__dots { width: calc(90 * var(--u)); height: calc(90 * var(--u)); }
  .deco__square { width: calc(80 * var(--u)); height: calc(80 * var(--u)); }

  .btn--l .btn__label { height: calc(72 * var(--u)); padding: 0 calc(32 * var(--u)); font-size: max(18px, calc(28 * var(--u))); }
  .btn--l .btn__arrow { width: calc(72 * var(--u)); height: calc(72 * var(--u)); font-size: max(18px, calc(28 * var(--u))); }
  .btn--m .btn__label { height: calc(56 * var(--u)); padding: 0 calc(32 * var(--u)); font-size: max(15px, calc(22 * var(--u))); }
  .btn--m .btn__arrow { width: calc(56 * var(--u)); height: calc(56 * var(--u)); font-size: max(15px, calc(22 * var(--u))); }

  .stripes { height: calc(40 * var(--u) + 6px); }

  /* header */
  .header__inner { height: calc(var(--header-h) - 3px); }
  .logo img { width: calc(250 * var(--u)); }
  .nav { display: flex; gap: calc(48 * var(--u)); }
  .nav__link {
    position: relative;
    font: 700 max(12px, calc(15 * var(--u)))/1 var(--f-mono);
    letter-spacing: .2em; text-transform: uppercase;
    padding: 6px 0;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: .2em; bottom: 0;
    height: 3px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .header__cta { display: inline-flex; }

  /* hero */
  .hero__inner {
    flex-direction: row; align-items: center; gap: calc(80 * var(--u));
    padding-top: calc(96 * var(--u)); padding-bottom: calc(120 * var(--u));
  }
  .hero__content { flex: 1; gap: calc(40 * var(--u)); }
  .hero__caption { font-size: max(12px, calc(15 * var(--u))); gap: calc(6 * var(--u)); }
  .hero__caption-bar { width: calc(56 * var(--u)); height: 4px; }
  .h1 { font-size: calc(144 * var(--u)); }
  .h1__hl { padding: 0 calc(20 * var(--u)); }
  .alliance { gap: calc(20 * var(--u)); }
  .alliance__text { font-size: max(15px, calc(22 * var(--u))); }
  .alliance__badge { font-size: calc(44 * var(--u)); padding: calc(4 * var(--u)) calc(18 * var(--u)); }
  .lead { font-size: max(18px, calc(24 * var(--u))); max-width: max(calc(760 * var(--u)), 480px); }
  .hero__cta { gap: calc(28 * var(--u)); }
  .art { width: calc(680 * var(--u)); }

  /* about */
  .about__inner {
    flex-direction: row; align-items: flex-start; gap: 0;
    padding-top: calc(140 * var(--u)); padding-bottom: calc(40 * var(--u));
  }
  .about__label { flex: 0 0 calc(440 * var(--u)); padding-top: .4em; }
  .statement { flex: 1; font-size: max(28px, calc(48 * var(--u))); }

  /* services */
  .services > .container { gap: calc(72 * var(--u)); padding-top: calc(140 * var(--u)); padding-bottom: calc(140 * var(--u)); }
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: calc(28 * var(--u)); }
  .service { min-height: calc(128 * var(--u)); }
  .service__tile { width: calc(128 * var(--u)); font-size: calc(56 * var(--u)); }
  .service__text { gap: calc(6 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)) calc(28 * var(--u)); }
  .service__title { font-size: calc(32 * var(--u)); }
  .service__desc { font-size: max(13px, calc(17 * var(--u))); }
  .service__arrow { padding-right: calc(28 * var(--u)); font-size: calc(28 * var(--u)); }

  /* projects */
  .projects > .container { gap: calc(72 * var(--u)); padding-top: calc(40 * var(--u)); padding-bottom: calc(140 * var(--u)); }
  .cases { grid-template-columns: repeat(6, 1fr); gap: calc(32 * var(--u)); }
  .case--half { grid-column: span 3; }
  .case--third { grid-column: span 2; }
  .case--wide, .case--wide:last-child { grid-column: span 4; }
  .case { box-shadow: calc(10 * var(--u)) calc(10 * var(--u)) 0 var(--ink); }
  .case__media { height: calc(440 * var(--u)); }
  .chip { left: calc(20 * var(--u)); top: calc(20 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); font-size: max(11px, calc(13 * var(--u))); }
  .case__body { gap: calc(18 * var(--u)); padding: calc(28 * var(--u)) calc(28 * var(--u)) calc(32 * var(--u)); }
  .case__title { font-size: calc(56 * var(--u)); }
  .case__desc { font-size: max(15px, calc(18 * var(--u))); }
  .tags { gap: calc(8 * var(--u)); }
  .tags li { padding: calc(6 * var(--u)) calc(10 * var(--u)); font-size: max(11px, calc(12 * var(--u))); }

  /* awards */
  .awards > .container { gap: calc(72 * var(--u)); padding-top: calc(40 * var(--u)); padding-bottom: calc(140 * var(--u)); }
  .awards__grid { grid-template-columns: repeat(5, 1fr); gap: calc(28 * var(--u)); }
  .award-total { grid-column: auto; justify-content: space-between; gap: 0; height: calc(380 * var(--u)); padding: calc(28 * var(--u)) calc(32 * var(--u)) calc(32 * var(--u)); box-shadow: calc(8 * var(--u)) calc(8 * var(--u)) 0 var(--ink); }
  .award-total__num { font-size: calc(200 * var(--u)); margin: 0; }
  .award-total__text { font-size: calc(34 * var(--u)); margin: 0; }
  .award { height: calc(380 * var(--u)); gap: 0; padding: calc(28 * var(--u)) calc(32 * var(--u)) calc(32 * var(--u)); }
  .award__icon { width: calc(96 * var(--u)); height: calc(96 * var(--u)); }
  .award__icon img { width: calc(56 * var(--u)); }
  .award__count { gap: calc(4 * var(--u)); }
  .award__x { font-size: calc(72 * var(--u)); }
  .award__n { font-size: calc(150 * var(--u)); }
  .award__name { font-size: max(11px, calc(16 * var(--u))); }

  /* footer */
  .footer__inner { gap: calc(96 * var(--u)); padding-top: calc(120 * var(--u)); padding-bottom: calc(56 * var(--u)); }
  .footer__top { flex-wrap: nowrap; }
  .footer__heading { gap: calc(20 * var(--u)); }
  .label--yellow { font-size: max(12px, calc(15 * var(--u))); }
  .footer__title { font-size: calc(170 * var(--u)); }
  .contacts { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .contact { gap: calc(12 * var(--u)); }
  .contact__label { font-size: max(12px, calc(14 * var(--u))); }
  .contact__value { font-size: max(18px, calc(24 * var(--u))); }
  .contact__extra { font-size: max(12px, calc(14 * var(--u))); }
  .footer__bottom { font-size: max(11px, calc(13 * var(--u))); }
}

/* очень узкие экраны (< 360) — декор у заголовков не помещается */
@media (max-width: 359px) { .deco { display: none; } }

/* =========================================================
   АНИМАЦИЯ
   Включается классом .anim на <html> (ставится в <head>, если
   пользователь не просил уменьшить движение). Без JS или при
   prefers-reduced-motion всё видно сразу и стоит на месте.
   ========================================================= */

/* --- общие ключевые кадры --- */
@keyframes a-fade-up   { from { opacity: 0; translate: 0 .5em; } to { opacity: 1; translate: 0 0; } }
@keyframes a-fade      { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-grow-x    { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes a-wipe      { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes a-stamp     { 0% { opacity: 0; scale: 1.8; } 60% { opacity: 1; scale: .94; } 100% { scale: 1; } }
@keyframes a-pop       { 0% { opacity: 0; scale: 0; } 70% { opacity: 1; scale: 1.15; } 100% { scale: 1; } }
@keyframes a-drop      { 0% { opacity: 0; translate: 0 -60px; } 70% { opacity: 1; translate: 0 6px; } 100% { translate: 0 0; } }
@keyframes a-slide-in  { from { opacity: 0; translate: 120px 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes a-slap      { 0% { opacity: 0; translate: 80px 120px; scale: 1.25; } 70% { opacity: 1; translate: 0 0; scale: .97; } 100% { scale: 1; } }
@keyframes a-blink     { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes a-stripes   { from { background-position: -12px 0; } to { background-position: 44px 0; } }

/* --- hero: текст --- */
.anim .hero__caption > span,
.anim .h1__line,
.anim .alliance__text,
.anim .lead,
.anim .hero__cta .btn { animation: a-fade-up .6s cubic-bezier(.2,.7,.2,1) backwards; }
.anim .hero__caption > span:nth-child(1) { animation-delay: .05s; }
.anim .hero__caption > span:nth-child(2) { animation-delay: .12s; }
.anim .hero__caption > span:nth-child(3) { animation-delay: .19s; }
.anim .hero__caption > span:nth-child(4) { animation-delay: .26s; }
.anim .hero__caption-bar { transform-origin: left; animation: a-grow-x .4s .38s ease-out backwards; }
.anim .h1__line:nth-child(1) { animation-delay: .25s; }
.anim .h1__line:nth-child(2) { animation-delay: .35s; }
.anim .h1__line:nth-child(3) { animation-delay: .45s; }
/* жёлтая плашка «прорисовывается» маркером слева направо */
.h1__hl { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 0 / 100% 100%; }
.anim .h1__hl { animation: a-wipe .5s .8s cubic-bezier(.7,0,.3,1) backwards; }
.anim .alliance__text { animation-delay: 1s; }
.anim .alliance__badge { animation: a-stamp .45s 1.25s cubic-bezier(.3,.7,.4,1) backwards; }
.anim .lead { animation-delay: 1.1s; }
.anim .hero__cta .btn:nth-child(1) { animation-delay: 1.25s; }
.anim .hero__cta .btn:nth-child(2) { animation-delay: 1.35s; }

/* --- hero: иллюстрация собирается по частям --- */
/* части иллюстрации прячутся, пока она не попала в экран (на мобильном она ниже первого экрана);
   класс .anim-art ставит main.js — без JS иллюстрация просто видна */
.anim-art .art:not(.is-in) .art__stage { visibility: hidden; }

.anim-art .art.is-in .art__orange  { animation: a-slide-in .7s .2s cubic-bezier(.2,.7,.2,1) backwards; }
.anim-art .art.is-in .art__yellow  { animation: a-slide-in .7s .35s cubic-bezier(.2,.7,.2,1) backwards; }
.anim-art .art.is-in .art__dots    { animation: a-fade .8s .6s ease-out backwards; }
.anim-art .art.is-in .art__px      { animation: a-pop .35s ease-out backwards; }
.anim-art .art.is-in .art__px:nth-of-type(1) { animation-delay: 1.0s; }
.anim-art .art.is-in .art__px:nth-of-type(2) { animation-delay: 1.08s; }
.anim-art .art.is-in .art__px:nth-of-type(3) { animation-delay: 1.16s; }
.anim-art .art.is-in .art__code    { animation: a-drop .6s .5s cubic-bezier(.3,.7,.4,1) backwards; }
/* строки кода «печатаются» по очереди */
.anim-art .art.is-in .art__line    { transform-origin: left; animation: a-grow-x .35s ease-out backwards; }
.anim-art .art.is-in .art__line:nth-child(8) { animation-delay: 0.95s; }
.anim-art .art.is-in .art__line:nth-child(9) { animation-delay: 1.04s; }
.anim-art .art.is-in .art__line:nth-child(10) { animation-delay: 1.13s; }
.anim-art .art.is-in .art__line:nth-child(11) { animation-delay: 1.22s; }
.anim-art .art.is-in .art__line:nth-child(12) { animation-delay: 1.31s; }
.anim-art .art.is-in .art__line:nth-child(13) { animation-delay: 1.40s; }
.anim-art .art.is-in .art__line:nth-child(14) { animation-delay: 1.49s; }
.anim-art .art.is-in .art__line:nth-child(15) { animation-delay: 1.58s; }
.anim-art .art.is-in .art__line:nth-child(16) { animation-delay: 1.67s; }
.anim-art .art.is-in .art__hl      { transform-origin: left; animation: a-grow-x .4s 1.85s ease-out backwards; }
.anim-art .art.is-in .art__sticky  { animation: a-slap .5s 1.6s cubic-bezier(.3,.7,.4,1) backwards; }
.anim-art .art.is-in .art__square  { animation: a-pop .4s 1.9s ease-out backwards; }
.anim-art .art.is-in .art__burst   { animation: a-fade .2s 2s steps(2) backwards; }

/* мигающий курсор в «редакторе» — единственное, что движется постоянно */
.art__cursor { left: 402px; top: 205px; width: 6px; height: 26px; background: var(--ink); }
.anim-art .art.is-in .art__cursor { animation: a-fade .1s 2.2s backwards, a-blink 1.1s 2.3s steps(1) infinite; }

/* --- лёгкий параллакс иллюстрации за курсором (десктоп, JS ставит --mx/--my от -1 до 1) --- */
.anim .art { --mx: 0; --my: 0; }
.anim .art__stage > * { transition: translate .5s cubic-bezier(.2,.7,.2,1); }
.anim .art__orange  { translate: calc(var(--mx) * 8px)   calc(var(--my) * 8px); }
.anim .art__yellow  { translate: calc(var(--mx) * 14px)  calc(var(--my) * 14px); }
.anim .art__dots    { translate: calc(var(--mx) * -10px) calc(var(--my) * -10px); }
.anim .art__px      { translate: calc(var(--mx) * -14px) calc(var(--my) * -14px); }
.anim .art__code    { translate: calc(var(--mx) * 20px)  calc(var(--my) * 20px); }
.anim .art__sticky  { translate: calc(var(--mx) * 30px)  calc(var(--my) * 30px); }
.anim .art__square  { translate: calc(var(--mx) * -18px) calc(var(--my) * -18px); }
.anim .art__burst   { translate: calc(var(--mx) * 12px)  calc(var(--my) * 12px); }

/* --- полоса «hazard» медленно едет, как лента ограждения --- */
.anim .stripes { animation: a-stripes 2.6s linear infinite; }

/* --- появление блоков при прокрутке (классы .rv / .is-in ставит main.js) --- */
.anim .rv {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .6s ease-out, translate .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.anim .rv.is-in { opacity: 1; translate: 0 0; }
/* декоративный квадрат у заголовка раздела «падает» с небольшой задержкой */
.anim .section-title.rv .deco__square { scale: 0; rotate: -45deg; transition: scale .45s cubic-bezier(.3,1.6,.5,1), rotate .45s ease-out; transition-delay: calc(var(--d, 0s) + .35s); }
.anim .section-title.rv.is-in .deco__square { scale: 1; rotate: 0deg; }
.anim .section-title.rv .deco__dots { opacity: 0; transition: opacity .6s ease-out calc(var(--d, 0s) + .25s); }
.anim .section-title.rv.is-in .deco__dots { opacity: 1; }
/* «?» в подвале прыгает последним */
.anim .footer__heading.rv .footer__title span { display: inline-block; scale: 0; transition: scale .4s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .5s); }
.anim .footer__heading.rv.is-in .footer__title span { scale: 1; }

/* --- отклик на наведение (только для мыши, чтобы на тач-экранах ничего не «залипало») --- */
.service__arrow, .mitem__arrow { transition: translate .2s ease; }
.btn__arrow { transition: padding .2s ease; }
.service__tile, .chip { transition: background-color .2s ease, color .2s ease; }
.case, .award { transition: translate .2s ease, box-shadow .2s ease; }
.award__x { display: inline-block; transition: rotate .3s ease; }
@media (hover: hover) {
  .service:hover .service__arrow,
  .mitem:hover .mitem__arrow { translate: 5px 0; }
  .btn:hover .btn__arrow { padding-left: 10px; }
  .service:hover .service__tile { background: var(--ink); color: var(--yellow); }
  .case:hover { translate: -3px -3px; box-shadow: 8px 8px 0 var(--ink); }
  .case:hover .chip { background: var(--ink); color: var(--yellow); }
  .award:hover { translate: -3px -3px; box-shadow: 6px 6px 0 var(--ink); }
  .award:hover .award__x { rotate: 90deg; }
}
@media (hover: hover) and (min-width: 768px) {
  .case:hover { box-shadow: 11px 11px 0 var(--ink); }
}
@media (hover: hover) and (min-width: 1200px) {
  .case:hover { box-shadow: calc(13 * var(--u)) calc(13 * var(--u)) 0 var(--ink); }
}
