/* North NextGen — шаблон сайта.
   Все цвета и размеры — в токенах ниже. Конструктор меняет именно их. */
:root {
  --bg: #070708;          /* фон страницы */
  --ink: #f4f4f2;         /* основной текст */
  --soft: #9b9b98;        /* второстепенный текст */
  --accent: #e3121b;      /* красный из логотипа */
  --paper: #f4f4f2;       /* светлый фон (контакты) */
  --paper-ink: #070708;
  --font: "Exo 2", "Arial Narrow", system-ui, sans-serif;

  --t-mono: clamp(84px, 17.5cqi, 320px);   /* монумент */
  --t-xl: clamp(52px, 8.4vw, 136px);      /* крупные заголовки */
  --t-l: clamp(22px, 2.4vw, 36px);        /* утверждения */
  --t-m: 18px;                            /* текст */
  --t-s: 14px;                            /* мелкий текст */

  --m: clamp(16px, 2.2vw, 32px);          /* поля страницы */
  --gap: clamp(120px, 14vw, 220px);       /* между секциями */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-m); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.soft { color: var(--soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; padding-inline: var(--m);
}

/* Знак акулы, вырезанный из логотипа (без надписи) */
.mark { display: block; overflow: hidden; aspect-ratio: 1080 / 335; }
.mark img { width: 154.8%; max-width: none; margin-left: -28.6%; margin-top: -21.6%; mix-blend-mode: screen; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--m); isolation: isolate; container-type: inline-size;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  filter: grayscale(1) contrast(1.15) brightness(.5); z-index: -2;
  animation: drift 24s var(--ease) both;
}
.hero::after { /* нейтральная подложка под текстом в двух углах */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 0% 0%, rgb(0 0 0 / .55), transparent 70%),
              radial-gradient(60% 50% at 100% 100%, rgb(0 0 0 / .6), transparent 70%);
}
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }

.nav {
  position: absolute; top: var(--m); right: var(--m); z-index: 2;
  display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500;
  mix-blend-mode: screen; /* чёрный фон логотипа растворяется в фото */
}
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav__mark { width: 108px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: var(--soft); font: inherit; font-weight: 700; padding: 4px 6px; cursor: pointer; transition: color .2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Слоган ---------- */
.slogan { container-type: inline-size; padding: clamp(96px, 12vw, 200px) var(--m); display: grid; }
.slogan__text { display: grid; gap: .08em; font-size: clamp(28px, 6.4cqi, 132px); font-weight: 900; font-style: italic; line-height: .98; letter-spacing: -0.035em; }
.slogan__line--1 { justify-self: start; }
.slogan__line--2 { justify-self: end; color: var(--accent); }

.hero__title {
  display: contents; font-weight: 900; font-style: italic; font-size: var(--t-mono);
  line-height: .86; letter-spacing: -0.045em; text-transform: none;
}
.hero__line { display: block; overflow: hidden; padding: 0 .06em .04em 0; font-weight: 900; font-style: italic; font-size: var(--t-mono); line-height: .86; letter-spacing: -0.045em; }
.hero__line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero__line--1 { grid-row: 1; margin-top: clamp(56px, 7vw, 72px); }
.hero__line--2 { grid-row: 3; justify-self: end; }
.hero__line--2 > span { animation-delay: .11s; }
.hero__title em { font-style: italic; color: var(--accent); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero__mid {
  grid-row: 2; align-self: center; margin-left: 30cqi; max-width: 46ch;
  display: grid; gap: 28px; justify-items: start;
  animation: fadeUp .8s var(--ease) .55s both;
}
.hero__lead { font-size: 20px; line-height: 1.45; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 700; padding: 16px 28px; border-radius: 0;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #ff2a33; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--explore { display: inline-flex; align-items: center; gap: 12px; }
.btn__arrow { display: inline-block; font-size: 20px; line-height: 1; animation: nudge 2.2s var(--ease) 1.6s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(5px); } }

/* «Дальше: …» — цепочка, по которой человек идёт через весь сайт */
.next { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: baseline; gap: 12px; margin-top: clamp(56px, 7vw, 96px);
  text-decoration: none; font-size: clamp(20px, 2vw, 28px); font-weight: 700; font-style: italic; letter-spacing: -0.01em; }
.next__k { font-size: 15px; font-weight: 500; font-style: normal; color: var(--soft); letter-spacing: 0; }
.next__a { color: var(--accent); display: inline-block; transition: transform .3s var(--ease); }
.next:hover .next__a, .next:focus-visible .next__a { transform: translateY(6px); }
.next:hover > span:nth-child(2) { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.slogan .next { margin-top: clamp(48px, 6vw, 80px); }
.news .next--pad { margin-inline: var(--m); justify-self: end; margin-top: 0; }
.work .next { display: flex; justify-content: flex-end; }
.stats .next { justify-self: end; }

/* ---------- News: медленная лента ---------- */
.news {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr; row-gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(96px, 10vw, 160px) clamp(64px, 7vw, 120px);
}
.news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-inline: var(--m); }
.news__h { font-size: var(--t-xl); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -0.04em; }
.news__sub { color: var(--soft); max-width: 34ch; font-size: 17px; }
.news__viewport { overflow-x: auto; scrollbar-width: none; align-self: center; }
.news__viewport::-webkit-scrollbar { display: none; }
.news__track { display: flex; gap: 24px; width: max-content; padding-inline: var(--m); }
/* Туда-обратно: доезжает до последней новости, замирает, едет назад. Края — целые карточки в полях страницы. */
.news__track.is-move { animation: newsSwing var(--news-speed, 60s) ease-in-out infinite alternate; }
.news__viewport:hover .news__track, .news__viewport:focus-within .news__track { animation-play-state: paused; }
.news__viewport.is-moving { overflow: hidden; }
@keyframes newsSwing { 0%, 6% { transform: translateX(0); } 94%, 100% { transform: translateX(var(--news-shift, 0px)); } }
/* Фото любого размера: высота общая, ширина — по пропорциям самого фото, текст подстраивается под ширину фото */
.news { --news-img-h: clamp(200px, 24vw, 330px); }
.news__item { width: auto; min-width: 240px; display: grid; align-content: start; justify-items: start; gap: 10px; }
.news__item img { height: var(--news-img-h); width: auto; max-width: min(900px, 82vw); object-fit: cover;
  filter: grayscale(1) contrast(1.08); margin-bottom: 8px; transition: filter .4s; }
.news__item > :not(img) { width: 0; min-width: 100%; }
.news__item--noimg { width: clamp(260px, 24vw, 360px); }
.news__item--noimg h3 { padding-top: calc(var(--news-img-h) - 6em); font-size: clamp(26px, 2.4vw, 34px); }
.news__item:hover img { filter: grayscale(0); }
.news__item time { font-size: var(--t-s); color: var(--accent); font-weight: 500; }
.news__item h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1.15; }
.news__item p { color: var(--soft); font-size: 16px; line-height: 1.45; }

.news__item { cursor: pointer; }
.news__item:hover h3, .news__item:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Окно статьи ---------- */
html.reader-open { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 1000; display: grid; justify-items: center; align-items: start; padding: 32px; }
.reader[hidden] { display: none; }
.reader__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .8); animation: fade .25s both; }
.reader__frame { position: relative; display: flex; gap: 16px; align-items: flex-start; width: min(1088px, 100%); }
.reader__panel { flex: 1; min-width: 0; max-height: calc(100svh - 64px); overflow-y: auto; background: #141416; outline: none;
  box-shadow: 0 30px 90px rgb(0 0 0 / .6); animation: readerIn .35s var(--ease) both; overscroll-behavior: contain; }
.reader__head { padding: 26px 40px 22px; background: #1c1c20; }
.reader__meta { font-size: 14px; color: var(--soft); }
.reader__cat { color: var(--accent); font-weight: 700; }
.reader__title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.12; margin-top: 6px; }
.reader__body { padding: 32px 40px 56px; }
.reader__cover { width: 100%; height: auto; display: block; margin-bottom: 24px; }
.reader__lead { font-size: 18px; line-height: 1.6; }
.reader__ctrl { display: flex; flex-direction: column; gap: 10px; align-items: center; position: sticky; top: 0; animation: fade .35s both; }
.reader__btn { width: 52px; height: 40px; border: 0; background: #2a2a30; color: var(--ink); cursor: pointer; font-size: 14px; display: grid; place-items: center; transition: background-color .15s, transform .15s; }
.reader__btn:hover { background: #3a3a42; }
.reader__btn:active { transform: scale(.95); }
.reader__btn--close { width: 52px; height: 52px; border-radius: 50%; font-size: 20px; margin-bottom: 6px; }
.reader__mark { width: 52px; margin-top: 6px; }
@keyframes readerIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
  .reader { padding: 0; }
  .reader__frame { display: block; width: 100%; }
  .reader__panel { max-height: 100svh; height: 100svh; }
  .reader__head { padding: 70px 18px 18px; }
  .reader__body { padding: 20px 18px 40px; }
  .reader__ctrl { position: fixed; top: 10px; right: 10px; flex-direction: row; z-index: 3; }
  .reader__btn--close { width: 44px; height: 44px; margin: 0; order: 3; }
  .reader__mark { display: none; }
}

/* ---------- Окно связи ---------- */
.cdlg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.cdlg[hidden] { display: none; }
.cdlg__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .8); animation: fade .25s both; }
.cdlg__panel { position: relative; width: min(560px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; background: #141416; padding: 40px;
  box-shadow: 0 30px 90px rgb(0 0 0 / .6); animation: readerIn .35s var(--ease) both; outline: none; display: grid; gap: 18px; }
.cdlg__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #2a2a30; color: var(--ink); font-size: 16px; cursor: pointer; }
.cdlg__x:hover { background: #3a3a42; }
.cdlg__h { font-size: clamp(30px, 4vw, 44px); font-weight: 900; font-style: italic; letter-spacing: -0.03em; line-height: 1; }
.cdlg__sub { color: var(--soft); }
.cdlg__channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cdlg__channels a { background: #222226; text-decoration: none; text-align: center; padding: 14px 6px; font-weight: 700; font-size: 15px; transition: background-color .15s, color .15s; }
.cdlg__channels a:hover { background: var(--accent); color: #fff; }
.cdlg__form { display: grid; gap: 14px; }
.cdlg__form label { display: grid; gap: 6px; font-size: 14px; color: #cfcfd4; }
.cdlg__form input, .cdlg__form textarea { font: inherit; font-size: 16px; color: var(--ink); background: #1f1f23; border: 0; border-bottom: 2px solid #3a3a42; padding: 12px; resize: vertical; }
.cdlg__form input:focus, .cdlg__form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.cdlg__form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.cdlg__form .btn:disabled { opacity: .6; }
.cdlg__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cdlg__status { font-size: 15px; min-height: 1.4em; }
.cdlg__status.is-ok { color: #4fd18b; }
.cdlg__status.is-err { color: #ff7a7f; }
@media (max-width: 700px) {
  .cdlg { padding: 0; place-items: end stretch; }
  .cdlg__panel { width: 100%; padding: 28px 18px; max-height: 92svh; }
  .cdlg__channels { grid-template-columns: 1fr 1fr; }
}

/* ---------- Направления ---------- */
.dirs { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dirs__h { grid-column: 1 / -1; font-size: var(--t-xl); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -0.04em; margin-bottom: 32px; }
.dir { position: relative; display: grid; align-content: end; gap: 10px; min-height: clamp(340px, 44vw, 620px); padding: clamp(20px, 3vw, 40px);
  overflow: hidden; text-decoration: none; isolation: isolate; background: #111; }
.dir__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.1) brightness(.62);
  transition: transform 1.2s var(--ease), filter .6s; }
.dir::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / 0) 60%); }
.dir:hover .dir__img, .dir:focus-visible .dir__img { transform: scale(1.04); filter: grayscale(0) contrast(1.05) brightness(.7); }
.dir__name { font-size: clamp(44px, 6.6vw, 112px); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -0.04em; }
.dir__line { font-size: 18px; max-width: 30ch; padding-right: 72px; }
.dir__go { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 24px; transition: transform .3s var(--ease); }
.dir:hover .dir__go, .dir:focus-visible .dir__go { transform: translateX(6px); }
.dirs .next { margin-top: clamp(56px, 7vw, 96px); }

/* Окно направления */
.dirdlg__hero { position: relative; display: grid; align-items: end; min-height: clamp(220px, 34vw, 380px); padding: 32px 40px; isolation: isolate; overflow: hidden; }
.dirdlg__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.6); }
.dirdlg__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(20 20 22 / .95), rgb(20 20 22 / 0) 70%); }
.dirdlg__hero h2 { font-size: clamp(44px, 6vw, 88px); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -0.04em; }
.dirdlg__body { display: grid; gap: 24px; }
.dirdlg__lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; max-width: 46ch; }
.dirdlg__body h3 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.dirdlg__body .next { justify-self: start; margin-top: 8px; }
.proj { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; background: #1c1c20; }
.proj img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.proj > div { padding: 24px 24px 24px 0; display: grid; gap: 10px; }
.proj__status { color: var(--accent); font-size: var(--t-s); font-weight: 700; }
.proj h4 { margin: 0; font-size: 26px; font-weight: 800; font-style: italic; }
.proj p { color: var(--soft); }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.models figure { display: grid; gap: 8px; }
.models img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.models figure:hover img { filter: none; }
.models figcaption { font-size: var(--t-s); }
@media (max-width: 700px) {
  .dirs { grid-template-columns: 1fr; }
  .dir { min-height: 300px; }
  .dirdlg__hero { padding: 70px 18px 20px; }
  .proj { grid-template-columns: 1fr; }
  .proj > div { padding: 0 18px 20px; }
  .models { grid-template-columns: 1fr 1fr; }
}

/* ---------- About ---------- */
.about { padding-block: var(--gap); align-items: start; }
.about__facts { grid-column: 1 / 3; display: grid; gap: 22px; font-size: var(--t-s); padding-top: .5em; }
.about__facts b { display: block; font-weight: 700; }
.about__facts span { color: var(--soft); }
.about__text { grid-column: 3 / 13; font-size: var(--t-l); line-height: 1.22; display: grid; gap: 1.2em; }
.about__text p { color: var(--soft); }
.about__text p:first-child { color: var(--ink); }
.about__cap { float: left; width: 3.6em; height: 3.6em; object-fit: cover; margin: .2em .5em 0 0; filter: grayscale(1) contrast(1.1); }
.about__text strong { font-weight: 700; }
.about__text .about__sign { color: var(--accent); font-weight: 800; font-style: italic; letter-spacing: -0.01em; }

/* ---------- Services ---------- */
.services { padding-block: calc(var(--gap) * .6) var(--gap); row-gap: 72px; }
.services__h { grid-column: 1 / -1; font-size: 28px; font-weight: 700; }
.services__col { grid-column: span 3; font-size: 17px; line-height: 1.3; }
.services__col:nth-of-type(1) { grid-column: 1 / 4; }
.services__col:nth-of-type(2) { grid-column: 4 / 7; }
.services__col:nth-of-type(3) { grid-column: 7 / 10; }
.services__col h3 { font-size: 17px; font-weight: 700; margin-bottom: 1.3em; }
.services__col li { color: var(--soft); cursor: default; padding: 2px 0; transition: color .15s; }
.services__col li:hover, .services__col li.is-on { color: var(--ink); }
.services__sum { display: none; margin-top: 16px; }
.services__desc { grid-column: 10 / 13; grid-row: 2; font-size: 17px; line-height: 1.35; color: var(--ink); }
.services__desc.is-idle { color: var(--soft); }

/* ---------- Work ---------- */
.work { background: #121214; padding: var(--gap) var(--m); }
.work__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.work__h { font-size: var(--t-xl); font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -0.04em; }
.link { font-size: 15px; text-underline-offset: 4px; transition: color .2s; }
.link:hover { color: var(--accent); }
.wall { --r1: 360px; --r2: 300px; --r3: 240px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile { flex: 1 1 auto; height: calc(var(--h) + 30px); display: flex; flex-direction: column; min-width: 160px; }
.tile img { flex: 1; width: 100%; min-height: 0; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: opacity .3s, filter .4s; }
.tile:nth-child(1) { flex-basis: 34%; } .tile:nth-child(2) { flex-basis: 52%; }
.tile:nth-child(3) { flex-basis: 24%; } .tile:nth-child(4) { flex-basis: 40%; }
.tile:nth-child(5) { flex-basis: 30%; } .tile:nth-child(6) { flex-basis: 40%; }
.wall:hover .tile img { opacity: .55; }
.wall .tile:hover img { opacity: 1; filter: grayscale(0); }
.tile figcaption { display: flex; justify-content: space-between; font-size: var(--t-s); padding-top: 8px; height: 30px; }

/* ---------- Stats ---------- */
.stats { padding-block: var(--gap); align-items: start; }
.stats__body { grid-column: 2 / 8; }
.stats__h { font-size: 28px; font-weight: 700; margin: 0 0 56px 156px; }
.stats__list { display: grid; gap: 28px; }
.stats__list > div { display: grid; grid-template-columns: 132px 1fr; column-gap: 24px; align-items: baseline; }
.stats__list dt { text-align: right; font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stats__list dd { color: var(--soft); font-size: 17px; max-width: 40ch; }
.stats__img { grid-column: 9 / 12; margin-top: 80px; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.1); }

/* ---------- Contact ---------- */
.contact {
  background: var(--paper); color: var(--paper-ink); min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto; padding: var(--m); container-type: inline-size;
}
.contact__lead { font-size: 22px; font-weight: 500; max-width: 24ch; line-height: 1.3; }
.contact__mail {
  grid-row: 3; align-self: end; margin-bottom: 12vh; text-decoration: none;
  font-size: 7.6cqi; font-weight: 800; font-style: italic; letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
  transition: color .25s;
}
.contact__mail:hover { color: var(--accent); }
.br-phone { display: none; }
.contact__foot { grid-row: 4; display: flex; justify-content: space-between; gap: 24px; font-size: var(--t-s); }
.contact__foot a { text-decoration: none; }
.contact__foot a:hover { color: var(--accent); }
.contact__social { display: flex; gap: 20px; align-items: end; }

/* ---------- Footer ---------- */
.footer {
  background: var(--accent); color: #070708; min-height: 100svh; padding: 40px var(--m) 20px;
  display: grid; grid-template-rows: auto 1fr auto auto; grid-template-columns: minmax(0, 1fr); gap: 0 24px;
}
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 15px; }
.footer__cols div { display: grid; gap: 4px; align-content: start; }
.footer__cols b { font-weight: 700; }
.footer__cols a, .footer__cols span { text-decoration: none; color: rgb(7 7 8 / .72); }
.footer__cols a:hover { color: #070708; text-decoration: underline; }
.footer__mark { align-self: center; justify-self: end; width: min(46vw, 640px); }
.footer__mark img { mix-blend-mode: multiply; filter: invert(1); }
.footer__word { width: 100%; height: auto; display: block; margin-bottom: 20px; }
.footer__word text { font-family: var(--font); font-weight: 900; font-style: italic; font-size: 132px; fill: #070708; }
.footer__legal { font-size: 13px; color: rgb(7 7 8 / .72); max-width: 110ch; }

/* ---------- Появление ---------- */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- Планшет ---------- */
@media (max-width: 1000px) {
  .services__col:nth-of-type(n) { grid-column: span 4; }
  .services__desc { grid-column: 1 / -1; grid-row: auto; }
  .stats__body { grid-column: 1 / 9; }
  .stats__img { grid-column: 9 / 13; }
}

/* ---------- Телефон ---------- */
@media (max-width: 700px) {
  :root { --t-mono: 19cqi; --t-l: 22px; --gap: 104px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav a[href="#news"] { display: none; }
  .slogan__text { font-size: 7.4cqi; } /* русская строка — самая длинная, влезает в одну строку */
  .nav__mark { display: none; }
  .hero__line--1 { margin-top: 72px; }
  .hero__mid { margin-left: 0; }
  .hero__lead { font-size: 17px; }
  .about__facts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, 1fr); font-size: 13px; padding-top: 40px; }
  .about__text { grid-column: 1 / -1; line-height: 1.25; }
  .about__cap { width: 4.6em; height: 4.6em; }
  .services { row-gap: 40px; }
  .services__h { font-size: 24px; }
  .services__col:nth-of-type(n) { grid-column: 1 / -1; font-size: 18px; line-height: 1.4; }
  .services__desc { display: none; }
  .services__sum { display: block; }
  .wall { --r1: 220px; --r2: 150px; --r3: 220px; gap: 6px; }
  .tile:nth-child(1) { flex-basis: 100%; }
  .tile:nth-child(2) { flex-basis: 58%; } .tile:nth-child(3) { flex-basis: 38%; }
  .tile:nth-child(4) { flex-basis: 100%; }
  .tile:nth-child(5) { flex-basis: 38%; } .tile:nth-child(6) { flex-basis: 58%; }
  .tile { min-width: 0; }
  .stats__body, .stats__img { grid-column: 1 / -1; }
  .stats__h { font-size: 22px; margin-left: 112px; }
  .stats__list > div { grid-template-columns: 88px 1fr; }
  .stats__list dt { font-size: 24px; }
  .stats__img { width: 56%; justify-self: end; margin-top: 56px; }
  .contact { min-height: 86svh; }
  .contact__lead { font-size: 18px; }
  .contact__mail { font-size: 11.5cqi; white-space: normal; margin-bottom: 8vh; }
  .br-phone { display: inline; }
  .contact__foot { flex-direction: column; font-size: 15px; gap: 12px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__mark { width: 80vw; justify-self: center; }
}
