:root {
  --bg: #0D0D0D;
  --surface: #131313;
  --line: #2E2E2B;
  --ink: #F5F5F0;
  --ink-2: #D6D6CF;
  --muted: #A6A6A0;
  --accent: #FFD400;
  --accent-ink: #0D0D0D;
  --display: 'Unbounded', system-ui, sans-serif;
  --text: 'Onest', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #3A3A36 var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--accent); }
.muted { color: var(--muted); font-size: 15px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 460px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 16px; }

.placeholder {
  border: 1px dashed #55554F;
  background: repeating-linear-gradient(135deg, #141414 0 18px, #191919 18px 36px);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  transition: transform .3s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { min-height: 48px; padding: 0 22px; font-size: 15px; background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #FFE04D; }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.btn--outline { border: 2px solid var(--accent-ink); color: var(--accent-ink); }
.btn--arrow { padding: 0 8px 0 26px; gap: 14px; }
.btn__arr {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .3s var(--ease);
}
.btn:hover .btn__arr { transform: rotate(45deg); }

/* Шапка */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 700 16px var(--display); letter-spacing: .02em; }
.logo__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav__links a, .footer__links a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.nav__links a:hover, .footer__links a:hover { color: var(--accent); }

/* Первый экран */
.hero { padding-bottom: clamp(48px, 7vw, 96px); }
.hero__stage { --u: min(1vw, 14.4px); position: relative; text-align: center; padding: calc(var(--u) * 4) 0 calc(var(--u) * 5); }
.hero__disc {
  position: absolute; left: 50%; top: calc(var(--u) * 2); z-index: 0;
  width: calc(var(--u) * var(--disc, 36)); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.hero__back, .hero__front {
  position: relative; font-family: var(--display); font-weight: 900;
  letter-spacing: -.02em; white-space: nowrap;
}
.hero__back {z-index: 1;font-size: calc(var(--u) * 25);line-height: .86;}
.hero__front { z-index: 3; margin-top: calc(var(--u) * var(--gap, 6)); font-size: calc(var(--u) * 10.4); line-height: .9; color: var(--accent); }
.hero__photo {
  position: absolute; left: 50%; top: calc(var(--u) * 2.4); z-index: 2;
  width: calc(var(--u) * var(--photo, 25)); aspect-ratio: 3 / 4; transform: translateX(-50%);
  border-radius: clamp(14px, 2vw, 28px); object-fit: cover;
  display: flex; align-items: center; justify-content: center; padding: 12px;
  font-size: clamp(10px, 1.1vw, 13px); letter-spacing: .1em; text-transform: uppercase; color: #C9C9C2;
}
.hero__cut {
  position: absolute; left: 50%; top: calc(var(--u) * -2); z-index: 2;
  width: calc(var(--u) * var(--disc, 36)); height: calc(var(--u) * (var(--disc, 36) + 4));
  transform: translateX(-50%); overflow: hidden; border-radius: 0 0 999px 999px;
}
.hero__cut img {position: absolute;left: 50%;bottom: -23.6%;width: 121%;max-width: none;height: auto;transform: translateX(-55%);}
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.hero__foot .lead { flex: 1 1 300px; }

/* Заголовки */
.display { font: 900 clamp(30px, 6vw, 84px)/.95 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.display span { display: block; }
.display--m { font-size: clamp(28px, 5vw, 68px); }
.display--xl { font-size: clamp(30px, 6.6vw, 96px); letter-spacing: -.02em; }

/* Кейсы */
.cases { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.cases .display { margin-bottom: clamp(28px, 4vw, 56px); }
.cases__grid { display: flex; flex-wrap: wrap; gap: 16px; }
.case {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface);
}
.case__info { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.case__head, .case__meta { display: flex; flex-direction: column; gap: 20px; }
.case__title { font: 900 clamp(30px, 4.6vw, 64px)/.95 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tags li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 1px solid #44443F; border-radius: 999px; }
.case-slot { flex: 1 1 320px; min-height: 240px; padding: 28px; border-radius: 28px; display: flex; align-items: flex-end; font: 700 22px/1.1 var(--display); text-transform: uppercase; color: #8A8A84; }

/* Ленты */
.ribbons { position: relative; height: clamp(180px, 22vw, 300px); overflow-x: clip; }
.ribbon { position: absolute; left: -10%; top: 50%; width: 120%; overflow: hidden; }
.ribbon--dark { transform: translateY(-50%) rotate(-4deg); background: #1A1A1A; border-block: 1px solid var(--line); color: #8A8A84; }
.ribbon--accent { transform: translateY(-50%) rotate(4deg); background: var(--accent); color: var(--accent-ink); }
.ribbon__track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ribbon--dark .ribbon__track { animation-direction: reverse; animation-duration: 44s; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 28px; padding: 17px 14px; font: 700 clamp(14px, 1.6vw, 20px) var(--display); text-transform: uppercase; white-space: nowrap; }
.ribbon__track svg { width: 16px; height: 16px; fill: currentColor; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Обо мне */
.about { padding-block: clamp(56px, 8vw, 120px); text-align: center; }
.manifesto { font: 900 clamp(22px, 4.6vw, 64px)/1.08 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.manifesto span { display: block; }
.about__text { max-width: 560px; margin: 32px auto 0; }

/* Услуги */
.services { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: clamp(56px, 8vw, 112px); }
.service {
  flex: 1 1 210px; min-height: 260px; padding: 26px 24px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--ink); color: var(--bg);
  transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-6px); }
.service--accent { background: var(--accent); transform: translateY(-14px); }
.service--accent:hover { transform: translateY(-20px); }
.service h3 { font: 700 20px/1.15 var(--display); }
.service p { flex-grow: 1; font-size: 15px; color: #3A3A36; }
.service--accent p { color: #26261F; }
.service a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.service a:focus-visible, .contact :focus-visible { outline-color: var(--accent-ink); }

/* Процесс */
.process { padding-bottom: clamp(56px, 8vw, 112px); }
.panel { padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); }
.panel .display { margin-bottom: clamp(20px, 3vw, 40px); }
.steps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps__n { flex: 0 0 64px; font: 700 16px var(--display); color: var(--accent); }
.steps h3 { flex: 1 1 260px; font: 700 clamp(18px, 2vw, 26px)/1.15 var(--display); }
.steps p { flex: 1 1 320px; color: #C9C9C2; }

/* Контакты */
.contact { padding-bottom: clamp(32px, 4vw, 56px); }
.contact__panel { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 72px); border-radius: 32px; background: var(--accent); color: var(--accent-ink); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__row p { max-width: 320px; font-weight: 500; color: #26261F; }
.contact ::selection { background: var(--accent-ink); color: var(--accent); }

/* Подвал */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 16px 40px; font-size: 14px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; color: #C9C9C2; }

@media (max-width: 640px) {
  .hero__stage { --disc: 62; --gap: 26; padding-bottom: calc(var(--u) * 13); }
  .hero__photo { font-size: 11px; }
  .nav__links { order: 3; width: 100%; justify-content: space-between; gap: 4px 16px; }
  .service--accent, .service--accent:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; }
  .btn, .btn__arr, .service { transition: none; }
}

/* Кейс: скриншоты и действия в карточке */
.btn--ghost { border: 1px solid #55554F; color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.case__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.case__shots { flex: 1.2 1 340px; display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 24px); }
.case__shots img, .shots img {
  display: block; height: auto; background: #0B0B0C;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: clamp(18px, 2.4vw, 32px);
}
.case__shots img { width: 46%; max-width: 280px; transition: transform .5s var(--ease); }
.case__shots img:last-child { margin-top: clamp(24px, 4vw, 56px); }
.case__shots:hover img:first-child { transform: translateY(-8px); }
.case__shots:hover img:last-child { transform: translateY(8px); }

/* Страница кейса */
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; font-size: 15px; transition: color .2s; }
.back:hover { color: var(--accent); }
.case-hero { padding-block: clamp(24px, 5vw, 72px) clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.case-hero h1 { font: 900 clamp(44px, 11vw, 96px)/.92 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.case-hero .lead { max-width: 620px; font-size: clamp(18px, 1.8vw, 22px); }
.facts { display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 6vw, 96px); margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.shots { display: flex; gap: clamp(12px, 2vw, 24px); padding-bottom: clamp(48px, 7vw, 104px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots img { flex: 1 0 220px; min-width: 0; width: 220px; scroll-snap-align: center; }
.shots img:nth-child(even) { margin-top: clamp(20px, 4vw, 56px); }
.story { display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 6vw, 96px); padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.story h2 { flex: 1 1 280px; font: 900 clamp(24px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.story__body { flex: 2 1 420px; display: flex; flex-direction: column; gap: 18px; max-width: 70ch; font-size: 18px; color: var(--ink-2); }
.story__body strong { color: var(--ink); font-weight: 600; }
.palette { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { flex: 1 1 130px; min-height: 120px; padding: 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; justify-content: flex-end; font-size: 14px; font-weight: 600; }
.swatch span { font-weight: 400; opacity: .75; font-variant-numeric: tabular-nums; }
.type { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 12px; color: var(--ink); }
.type__unb { font: 800 clamp(28px, 4vw, 40px)/1.1 'Unbounded', sans-serif; letter-spacing: -.02em; }
.type__man { font: 700 clamp(18px, 2vw, 22px)/1.3 'Manrope', sans-serif; }
.type small { display: block; margin-top: 6px; font: 400 14px var(--text); color: var(--muted); letter-spacing: 0; }

/* Кейс с десктопным и мобильным скриншотом */
.case__shots--mix { align-items: flex-end; gap: 0; }
.case__shots--mix img:first-child { width: 80%; max-width: none; border-radius: clamp(10px, 1.4vw, 18px); }
.case__shots--mix img:last-child { position: relative; width: 24%; margin: 0 0 -4% -14%; border-radius: clamp(10px, 1.6vw, 22px); box-shadow: 0 24px 48px -20px #000; }
.shots--wide img { flex: 1 0 min(84vw, 760px); width: min(84vw, 760px); border-radius: clamp(10px, 1.4vw, 18px); }
.shots--wide img:nth-child(even) { margin-top: 0; }
