@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(../fonts/unbounded-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(../fonts/unbounded-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2700-27BF; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2700-27BF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2700-27BF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2700-27BF; }

:root {
  --ink: #121212;
  --ink-2: #1c1c1c;
  --paper: #f3f1ec;
  --white: #fff;
  --red: #e0311f;
  --red-dark: #c02615;
  --gray: #4a4a4a;
  --muted: #77736b;
  --line: rgba(18, 18, 18, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow { font: 500 13px/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; opacity: .85; }
.eyebrow--red { color: var(--red); opacity: 1; }
.h2 { font: 700 clamp(30px, 4.6vw, 64px)/1.08 var(--display); letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font: 500 15px/1 var(--text);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--light { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--ghost { border-color: currentColor; color: inherit; padding: 12px 20px; }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--red); }
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.link:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* шапка */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background .35s, color .35s, box-shadow .35s, transform .35s; }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.header__logo img { width: 150px; height: auto; border-radius: 3px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header.is-scrolled { background: rgba(243, 241, 236, .9); color: var(--ink); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.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: 40; background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--pad) 40px; }
.menu__nav { display: flex; flex-direction: column; gap: 10px; }
.menu__nav a { font: 700 clamp(32px, 9vw, 56px)/1.2 var(--display); text-decoration: none; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: rgba(255, 255, 255, .7); }
.menu__foot a { text-decoration: none; }
body.menu-open { overflow: hidden; }
body.menu-open .header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }

/* первый экран */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: -8% 0 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; transform: scale(1.06); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.75) 100%); }
.hero__content { position: relative; padding-top: var(--header-h); padding-bottom: 60px; }
.hero__title { font: 700 clamp(38px, 7.4vw, 108px)/1.02 var(--display); letter-spacing: -.03em; margin-bottom: 30px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .7); }
.hero__scroll i { width: 1px; height: 46px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--white); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* подход */
.ways { list-style: none; margin: clamp(48px, 7vw, 90px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.way { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 20px; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left .4s; }
.way::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7, 0, .2, 1); z-index: -1; }
.way:hover { color: var(--white); padding-left: 24px; }
.way:hover::before { transform: scaleY(1); }
.ways { position: relative; z-index: 0; }
.way__num { font: 500 15px/1 var(--display); color: var(--red); }
.way__text { font: 500 clamp(22px, 3.2vw, 44px)/1.15 var(--display); letter-spacing: -.02em; }

/* бегущая строка */
.marquee { overflow: hidden; background: var(--red); color: var(--white); padding: 22px 0; }
.marquee__track { display: flex; gap: 40px; padding-right: 40px; width: max-content; font: 700 clamp(22px, 3vw, 40px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.marquee__track b { font-weight: 400; opacity: .7; }

/* факты */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 90px); }
.fact { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .3s; }
.fact:hover { border-color: var(--red); transform: translateY(-4px); }
.fact p { color: rgba(255, 255, 255, .65); font-size: 16px; }
.fact__title { font: 500 clamp(19px, 1.7vw, 24px)/1.25 var(--display); }
.fact--big { grid-row: span 2; justify-content: flex-end; background: var(--red); border-color: var(--red); }
.fact--big:hover { border-color: var(--white); }
.fact--big p { color: rgba(255, 255, 255, .85); }
.fact__num { font: 700 clamp(110px, 16vw, 220px)/.85 var(--display); letter-spacing: -.05em; }

/* работы */
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); }
.works__hint { color: var(--muted); max-width: 260px; }
.works__grid { columns: 4 260px; column-gap: 14px; }
.work { margin: 0 0 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: #ddd8cf; }
.work__link { display: block; position: relative; cursor: zoom-in; }
.work__link img { width: 100%; background-size: cover; background-position: center; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.work__link::after { content: "+"; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font: 400 26px/1 var(--text); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.work__link:hover img { transform: scale(1.05); }
.work__link:hover::after, .work__link:focus-visible::after { transform: scale(1); }
.works__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }

/* контакты */
.contacts__lead { color: rgba(255, 255, 255, .7); margin-top: 22px; font-size: 19px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.person { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.person__role { color: var(--red); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.person__name { font-size: 18px; color: rgba(255, 255, 255, .85); }
.person__phone, .person__line { font: 500 clamp(20px, 2vw, 28px)/1.2 var(--display); text-decoration: none; transition: color .2s; }
.person__phone:hover, .person__line:hover { color: var(--red); }
.person--links .btn { margin-top: 8px; }

.footer { background: var(--ink); color: rgba(255, 255, 255, .6); border-top: 1px solid var(--line-dark); padding: 34px 0; font-size: 15px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { width: 140px; border-radius: 2px; }

/* просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 10, .94); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; touch-action: pan-y; }
.lightbox__stage { margin: 0; height: 100svh; display: grid; place-items: center; padding: 60px 0; }
.lightbox__stage img { max-height: calc(100svh - 120px); max-width: 100%; width: auto; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lightbox button { background: none; border: 0; color: var(--white); cursor: pointer; font: 400 30px/1 var(--text); width: 56px; height: 56px; border-radius: 50%; justify-self: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { position: absolute; top: 14px; right: 14px; font-size: 38px !important; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, .6); font-size: 14px; letter-spacing: .1em; }

/* стартовое состояние анимаций: только когда JS есть и пользователь не просил меньше движения */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim], .js .hero__title { visibility: hidden; }
}

@media (max-width: 1000px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact--big { grid-row: auto; grid-column: span 2; }
  .people { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__logo img { width: 120px; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .works__grid { columns: 2; column-gap: 10px; }
  .work { margin-bottom: 10px; border-radius: 8px; }
  .work__link::after { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 8px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .way { grid-template-columns: 54px 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .fact--big { grid-column: auto; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .works__more { flex-direction: column; align-items: stretch; text-align: center; }
  .works__more .btn { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}
