:root {
  --ultra: #2420E8;
  --tomato: #FF4B1F;
  --pink: #FF8FD8;
  --lemon: #EEFF41;
  --ink: #120E2B;
  --paper: #FFF6EA;
  --night: #0B0A0C;
  --gold: #D4A84B;
  --gold-soft: #C2AC8A;

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ultra);
  color: var(--ink);
  font: 400 18px/1.5 var(--body);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--lemon); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 16px; }

/* Шапка */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.top__logo { font: 900 18px/1 var(--display); letter-spacing: .08em; text-decoration: none; }
.top__nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.top__nav a { font: 500 13px/1 var(--mono); text-transform: uppercase; text-decoration: none; letter-spacing: .06em; }
.top__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Первый экран */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding: 90px var(--gutter) 48px;
  display: grid; align-content: end;
}
.wall { position: absolute; inset: 0; pointer-events: none; }
.phone {
  position: absolute; margin: 0; width: clamp(120px, 15vw, 230px); aspect-ratio: 540 / 1168;
  border-radius: clamp(16px, 2vw, 30px); overflow: hidden;
  border: 3px solid var(--ink); background: var(--ink);
  box-shadow: 10px 12px 0 var(--ink);
  animation: drop 1s cubic-bezier(.2, .9, .25, 1.15) both;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.p1 { left: 6%;  top: 9%;  rotate: -9deg; animation-delay: .05s; }
.p2 { left: 27%; top: 3%;  rotate: 6deg;  animation-delay: .15s; }
.p3 { left: 47%; top: 12%; rotate: -4deg; animation-delay: .25s; }
.p4 { left: 66%; top: 2%;  rotate: 8deg;  animation-delay: .35s; }
.p5 { left: 84%; top: 14%; rotate: -7deg; animation-delay: .45s; }
@keyframes drop { from { translate: 0 -120vh; } to { translate: 0 0; } }

.name {
  position: relative; z-index: 2; margin: 0;
  /* Правка владельца (02.11): имя ограничено и по высоте экрана — чтобы плашка «кто я» целиком влезала в первый экран */
  font: 900 clamp(56px, min(13.5vw, 19svh), 230px)/.86 var(--display);
  text-transform: uppercase; letter-spacing: -.02em;
  color: #fff; mix-blend-mode: difference;
}
.name__row { display: block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.r1 { animation-delay: .5s; }
.r2 { padding-left: 9vw; animation-delay: .62s; }
.r3 { text-align: right; animation-delay: .74s; }
.name em {
  font: italic 600 1.15em/0 var(--serif); text-transform: none; letter-spacing: 0;
}
@keyframes rise { from { opacity: 0; translate: 0 .4em; } to { opacity: 1; translate: 0 0; } }

.hero__lead {
  position: relative; z-index: 2; max-width: 44ch; margin: 28px 0 0;
  font: 500 clamp(17px, 1.5vw, 21px)/1.4 var(--body);
  background: var(--lemon); padding: 16px 18px 18px; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  /* Правка владельца (02.11, арена): текст виден почти сразу, а не через секунду */
  animation: rise .6s .25s both;
}
.hero__lead p { margin: 0; }
.hero__meta { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px !important; }
.hero__phrase { font-weight: 700; }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 13px/1 var(--mono); padding: 7px 10px; border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; }
.hero__projects { display: grid; gap: 6px; margin-top: 14px; }
.hero__projects a {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; text-decoration: none; color: var(--paper);
  background: var(--ink); border: 2px solid var(--ink); transition: background .15s, color .15s;
}
.hero__projects a:nth-child(2) { background: var(--ultra); }
.hero__projects b { font: 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.hero__projects span { font-size: 15px; opacity: .85; }
.hero__projects i { margin-left: auto; font-style: normal; }
.hero__projects a:hover { background: var(--tomato); }
.hero__projects a:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }

.sticker {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 42px;
  width: clamp(110px, 12vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--tomato); border-radius: 50%; border: 3px solid var(--ink);
}
.sticker svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.sticker text { font: 700 15px var(--mono); letter-spacing: .14em; fill: var(--ink); }
.sticker span { font: italic 600 clamp(40px, 5vw, 64px)/1 var(--serif); color: var(--paper); }
@keyframes spin { to { rotate: 360deg; } }

/* Бегущая строка */
.ticker {
  overflow: hidden; background: var(--tomato); color: var(--ink);
  border-block: 3px solid var(--ink); rotate: -1.5deg; margin: 0 -2vw; position: relative; z-index: 4;
}
.ticker__track {
  display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0;
  animation: run 38s linear infinite;
}
.ticker span { font: 700 clamp(16px, 2vw, 26px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 14px; height: 14px; background: var(--lemon); border: 2px solid var(--ink); rotate: 45deg; flex: none; }
@keyframes run { to { translate: -50% 0; } }

/* Перемена */
.peremena { background: var(--paper); padding: clamp(80px, 10vw, 140px) var(--gutter) 80px; margin-top: -24px; }
.tag {
  display: inline-block; margin: 0 0 18px; padding: 6px 10px;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--paper);
}
.peremena__title {
  margin: 0; font: 900 clamp(64px, 12vw, 260px)/.82 var(--display); text-transform: uppercase; letter-spacing: -.03em;
  color: var(--ultra);
}
.peremena__title span { color: var(--tomato); text-shadow: .05em .05em 0 var(--ink); }
.peremena__lead { max-width: 40ch; margin: 24px 0 0; font: 400 clamp(19px, 2vw, 26px)/1.35 var(--body); }
.peremena__lead b, .elitzont__lead b { font-weight: 700; display: block; margin-bottom: 6px; }

.peremena__grid {
  display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: clamp(16px, 2.5vw, 32px);
  margin-top: clamp(40px, 6vw, 80px);
}
.card { border: 3px solid var(--ink); padding: clamp(20px, 2.5vw, 32px); box-shadow: 8px 8px 0 var(--ink); }
.card h3 { margin: 0 0 12px; font: 700 clamp(18px, 1.8vw, 24px)/1.1 var(--display); text-transform: uppercase; }
.card p { margin: 0; }
.card--pink { background: var(--pink); rotate: -1deg; }
.card--lemon { background: var(--lemon); rotate: 1.2deg; }
.card--ink { background: var(--ink); color: var(--paper); rotate: -.6deg; box-shadow: 8px 8px 0 var(--tomato); }
.card .big { font: 900 clamp(44px, 5vw, 76px)/1 var(--display); color: var(--lemon); margin-bottom: 10px; }

.reel { margin-top: clamp(56px, 8vw, 100px); }
.reel__hint { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.reel__track {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px;
  display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.reel li { flex: none; width: clamp(180px, 20vw, 260px); scroll-snap-align: start; }
.reel li:nth-child(odd) { margin-top: 36px; }
.reel video {
  width: 100%; aspect-ratio: 540 / 1168; object-fit: cover;
  border: 3px solid var(--ink); border-radius: 26px; background: var(--ink);
  box-shadow: 8px 8px 0 var(--ultra);
}
.reel li p { margin: 12px 0 0; font: 700 15px/1.25 var(--body); }

/* Элитзонт */
.elitzont { position: relative; background: var(--night); color: var(--paper); overflow: hidden; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.elitzont__inner { position: relative; padding: clamp(90px, 11vw, 160px) var(--gutter); }
.tag--gold { background: var(--gold); color: var(--night); }
.elitzont__title {
  margin: 0; font: 900 clamp(60px, 15vw, 260px)/.85 var(--display); text-transform: uppercase; letter-spacing: -.03em;
}
.elitzont__title em { font: italic 500 1.18em/0 var(--serif); text-transform: none; color: var(--gold); letter-spacing: 0; }
.elitzont__lead { max-width: 36ch; margin: 28px 0 0; font: 400 clamp(19px, 2.1vw, 28px)/1.35 var(--body); color: var(--gold-soft); }

.collage { position: relative; height: clamp(420px, 56vw, 760px); margin: clamp(48px, 7vw, 90px) 0; }
.collage img { position: absolute; object-fit: cover; border: 1px solid rgb(212 168 75 / .5); }
.c1 { left: 0; top: 6%; width: 38%; height: 82%; }
.c2 { left: 32%; top: 0; width: 36%; height: 52%; z-index: 2; }
.c3 { right: 0; top: 18%; width: 40%; height: 74%; }
.c4 { left: 36%; bottom: 0; width: 28%; height: 44%; object-fit: contain; background: var(--paper); z-index: 3; padding: 4%; rotate: -4deg; }

.did { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.did li { padding: 20px 0; border-top: 1px solid rgb(212 168 75 / .4); color: var(--gold-soft); }
.did b { display: block; margin-bottom: 6px; font: italic 600 clamp(26px, 2.6vw, 36px)/1.05 var(--serif); color: var(--gold); }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 36px 0 0;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--gold);
}
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Обо мне */
.me { background: var(--lemon); padding: clamp(80px, 10vw, 140px) var(--gutter); border-bottom: 3px solid var(--ink); }
.me__title {
  margin: 0 0 clamp(32px, 5vw, 64px); font: 900 clamp(56px, 12vw, 200px)/.85 var(--display); text-transform: uppercase;
  letter-spacing: -.03em; color: var(--tomato); text-shadow: .05em .05em 0 var(--ink);
}
.me__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.me__text p { margin: 0 0 18px; max-width: 46ch; }
.me__big { font: 500 clamp(22px, 2.6vw, 34px)/1.25 var(--body); }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li {
  counter-increment: step; position: relative;
  padding: 16px 16px 16px 72px; margin-bottom: 12px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.flow li:nth-child(even) { margin-left: 28px; }
.flow li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--ultra); color: var(--lemon); font: 900 18px/1 var(--display); border-radius: 50%;
}
.flow span { display: block; font: 700 18px/1.1 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.flow li:last-child { background: var(--tomato); }

/* Связь */
.contact { background: var(--ultra); padding: clamp(80px, 12vw, 180px) var(--gutter); text-align: center; }
.contact__pre { margin: 0 0 18px; font: 500 15px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--paper); }
.contact__big {
  display: inline-block; font: 900 clamp(44px, 10vw, 170px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.03em;
  color: var(--lemon); text-decoration: none; transition: color .2s, rotate .2s;
}
.contact__big:hover { color: var(--pink); rotate: -2deg; }
.contact__phone {
  display: inline-block; margin-top: 28px; padding: 14px 22px; background: var(--lemon); color: var(--ink);
  font: 700 clamp(20px, 3vw, 34px)/1 var(--mono); text-decoration: none; box-shadow: 6px 6px 0 var(--ink);
  rotate: 1.5deg; transition: rotate .2s, background .2s;
}
.contact__phone:hover { background: var(--pink); rotate: -1deg; }
.contact__big, .contact__phone { outline-offset: 6px; }
.contact { display: flex; flex-direction: column; align-items: center; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--gutter); background: var(--ink); color: var(--paper);
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
}

/* Телефон */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top__nav a:not(:last-child) { display: none; }
  .phone { width: 34vw; box-shadow: 6px 8px 0 var(--ink); }
  .p1 { left: -4%; top: 9%; }
  .p2 { left: 33%; top: 5%; }
  .p3 { left: 70%; top: 11%; }
  .p4, .p5 { display: none; }
  .hero { padding-bottom: 150px; }
  .sticker { left: var(--gutter); right: auto; bottom: 24px; }
  .peremena__grid { grid-template-columns: 1fr; }
  .card { rotate: 0deg !important; }
  .collage { height: 520px; }
  .c1 { width: 58%; height: 60%; }
  .c2 { left: 44%; width: 56%; height: 40%; }
  .c3 { left: 30%; right: auto; top: 46%; width: 70%; height: 54%; }
  .c4 { left: 0; bottom: 2%; width: 46%; height: 32%; }
  .did { grid-template-columns: 1fr; }
  .me__cols { grid-template-columns: 1fr; }
  .peremena__title { font-size: 22vw; }
  .peremena__title span { display: block; }
  .flow li:nth-child(even) { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ticker__track { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .ticker [aria-hidden="true"], .ticker [aria-hidden="true"] + i { display: none; }
}

/* Переключатель языка (правка владельца 02.11) — в шапке с mix-blend, поэтому белым */
.lang { display: inline-flex; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; }
.lang button {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; padding: 6px 10px; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: #fff; color: #000; }
.lang button:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.top__nav { align-items: center; }

.card--ink .big { font-size: clamp(30px, 3.4vw, 48px); }
.safe { margin: 0; padding: 0; list-style: none; }
.safe li { padding: 8px 0 8px 22px; position: relative; border-top: 2px solid var(--ink); }
.safe li:first-child { border-top: 0; padding-top: 0; }
.safe li::before { content: ''; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 10px; height: 10px; background: var(--ink); rotate: 45deg; }
.safe li:first-child::before { top: calc(50% - 4px); }
.me__label { margin: 0 0 16px; font: 500 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.flow--plain li { padding: 18px 20px; }
.flow--plain li::before { content: none; }
.flow--plain span { margin: 0; font-size: clamp(18px, 2vw, 24px); }
.flow--plain li:last-child { background: var(--pink); }
.contact__tg { background: var(--pink); rotate: -1.5deg; text-transform: none; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Связь: две равные колонки «Позвонить» и «Написать» (правка владельца 02.11) */
.contact__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(48px, 6vw, 120px); width: 100%; }
.contact__way { display: flex; flex-direction: column; align-items: center; }
.contact__big--tg { color: var(--pink); }
.contact__big--tg:hover { color: var(--lemon); }
.contact__big { font-size: clamp(40px, 7vw, 120px); }

/* Кнопка Telegram в шапке — рядом с RU/EN, в той же манере */
.tg {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; box-sizing: border-box;
  border: 2px solid currentColor; border-radius: 999px; text-decoration: none;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.tg svg { width: 16px; height: 16px; }
.tg:hover { background: #fff; color: #000; }
.tg:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 760px) { .top__nav a.tg { display: inline-flex; } .tg span { display: none; } .tg { padding: 0 9px; } }

@media (min-width: 900px) {
  .hero__lead { max-width: 60ch; }
  .hero__projects { grid-template-columns: 1fr 1fr; }
}
