/* AVEN Studio. Фон белый, текст чёрный, структура в духе troika-studio.ru. Брейкпоинты 480 / 900 px */
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/inter-tight-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: 'Inter Tight'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/inter-tight-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/inter-tight-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: 'Inter Tight'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/inter-tight-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/jetbrains-mono-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: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
  --bg: #fff;
  --ink: #000;
  --line: #e8e8e8;
  --pad: clamp(16px, 3.2vw, 48px);
  --f: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.76, 0, .24, 1);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--f); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow { margin-bottom: 20px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.big { font-size: clamp(38px, 5.4vw, 88px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; max-width: 17ch; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; max-width: 44ch; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--bg); border: 1px solid var(--ink); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ---------- кнопки-таблетки ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 99px; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .6s var(--out), background .3s, color .3s;
}
.pill:hover { transform: translateY(-2px); }
.pill--light { background: #fff; color: #000; }
.pill--dark { background: #000; color: #fff; }
.pill--glass { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); }
.pill--glass:hover { background: rgba(255, 255, 255, .26); }

/* ---------- плавающее меню ---------- */
.bar {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px; padding: 6px 6px 6px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .7s var(--out);
}
.bar.is-hidden { transform: translate(-50%, calc(-100% - 20px)); }
.bar-logo { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; color: #000; }
.logo-w { display: block; width: 66px; height: auto; }
.logo-s { font-family: var(--mono); font-size: 9px; letter-spacing: .42em; text-transform: uppercase; opacity: .55; margin-top: 1px; }
.foot-cols .bar-logo { padding: 0; margin-bottom: 4px; }
.foot-cols .logo-w { width: 120px; }
.foot-cols .logo-s { font-size: 11px; }
.bar-nav { display: flex; gap: 22px; font-size: 14px; }
.bar-nav a, .foot-cols a, .foot-row a, .link-btn, .work-link, .doc a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--out);
}
.bar-nav a:hover, .foot-cols a:hover, .foot-row a:hover, .link-btn:hover, .work:hover .work-link, .doc a { background-size: 100% 1px; }
.bar-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 11px; background: #000; color: #fff; font-size: 14px; font-weight: 500; }

/* ---------- появление ---------- */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w-in { display: inline-block; }
.js [data-split] .w-in { transform: translateY(110%) rotate(3deg); transform-origin: 0 100%; transition: transform 1.2s var(--out); transition-delay: calc(var(--i) * 50ms); }
.js [data-split].is-in .w-in { transform: none; }
.js [data-fade] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--out), transform 1.3s var(--out); }
.js [data-fade].is-in { opacity: 1; transform: none; }
.js [data-media] { opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 1s var(--out), transform 1.4s var(--out); }
.js [data-media].is-in { opacity: 1; transform: none; }
.big .w { opacity: .14; transition: opacity .6s; }
.big .w.on { opacity: 1; }
.big em .w.on { opacity: .32; }

/* ---------- первый экран ---------- */
.hero { --hp: 0; position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #000; }
.hero-media { position: absolute; inset: -4% 0; transform: translate3d(0, calc(var(--hp) * 12%), 0) scale(calc(1.02 + var(--hp) * .05)); will-change: transform; backface-visibility: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.25) 40%, rgba(0,0,0,.65)); }
.hero-in {
  position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad) 80px; gap: 22px;
  transform: translate3d(0, calc(var(--hp) * -50px), 0); opacity: calc(1 - var(--hp) * 1.1); will-change: transform, opacity;
}
.hero-title { font-size: clamp(56px, 10vw, 170px); font-weight: 500; letter-spacing: -0.06em; line-height: .92; display: grid; justify-items: center; }
.hero-line { display: block; }
/* сменяющееся слово: выезжает снизу, рамка плавно подстраивает ширину */
.rot { position: relative; display: block; height: 1.14em; overflow: hidden; font-weight: 400; }
/* все слова стоят по центру одной рамки постоянной ширины — строка не прыгает */
.rot-w { position: absolute; left: 50%; top: 0; line-height: 1.1; white-space: nowrap; transform: translateX(-50%); }
html:not(.js) .rot-w:not(.is-on) { display: none; }
html:not(.js) .rot-w.is-on { position: relative; left: 0; transform: none; }
.rot-w .ch { display: inline-block; transform: translate3d(0, 105%, 0); opacity: 0; transition: transform 1.1s var(--out), opacity .7s var(--out); transition-delay: calc(var(--c) * 30ms); will-change: transform, opacity; }
.rot-w.is-on .ch { transform: none; opacity: 1; }
.rot-w.is-out .ch { transform: translate3d(0, -105%, 0); opacity: 0; transition-duration: .8s, .5s; }
.rot-w.is-reset .ch { transition: none; }
.hero-sub { font-size: clamp(17px, 1.6vw, 22px); max-width: 40ch; opacity: .9; text-wrap: balance; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.hero-foot .mono { opacity: .7; }
.ticker { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.ticker-track { display: flex; gap: 10px; width: max-content; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }
.ticker span { padding: 10px 18px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); font-size: 14px; white-space: nowrap; }

/* ---------- манифест ---------- */
.manifest { padding-top: clamp(100px, 13vw, 200px); display: grid; gap: 28px; }
.manifest .big { max-width: 19ch; }

/* ---------- фирменный стиль ---------- */
.brand { padding-top: clamp(100px, 13vw, 200px); display: grid; gap: clamp(32px, 4vw, 56px); }
.brand-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.brand-head .lead { max-width: 38ch; }
.brand-board { border-radius: 24px; overflow: hidden; background: #0b0b0b; aspect-ratio: 3 / 2; }
.brand-board img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- работы ---------- */
.works { padding-top: clamp(100px, 13vw, 200px); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 96px); }
.works-head .lead { max-width: 30ch; }
.works-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(64px, 8vw, 120px); align-items: start; }
.work { display: block; }
.work--low { margin-top: clamp(120px, 16vw, 260px); }
.work-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #f4f4f4; contain: layout paint; }
.work-media > img, .work-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-media > img { transition: transform 1.4s var(--out); }
.work:hover .work-media > img { transform: scale(1.03); }
.work-media > video, .work-phone > video { opacity: 0; transition: opacity .4s; }
.work-media.is-playing > video, .work-phone.is-playing > video { opacity: 1; }
.work-phone {
  position: absolute; z-index: 2; right: 5%; bottom: -12%; width: 23%; padding: 5px; border-radius: 22px; background: #fff;
  border: 1px solid var(--line); transition: transform .9s var(--out);
}
.work-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 17px; }
.work-phone > video { position: absolute; top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: top; border-radius: 17px; }
.work:hover .work-phone { transform: translateY(-10%); }
.work-info { display: grid; gap: 10px; margin-top: 24px; max-width: 46ch; }
.work-info h3 { font-size: clamp(28px, 2.8vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.work-link { justify-self: start; font-weight: 500; margin-top: 4px; }
.work-link i { font-style: normal; display: inline-block; transition: transform .6s var(--out); }
.work:hover .work-link i { transform: translate(3px, -3px); }
.work-empty {
  aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  transition: border-color .4s;
}
.work-empty p { font-size: clamp(36px, 4.4vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: .95; }
.work--next:hover .work-empty { border-color: #000; }
.work-shots { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 100px); }
.work-shots figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.work-shots img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- подход ---------- */
.rules { padding-top: clamp(100px, 13vw, 200px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.rules-head { position: sticky; top: 110px; }
.rules-list li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.rules-list li:last-child { border-bottom: 1px solid var(--line); }
.rules-list .mono { grid-row: span 2; padding-top: 8px; }
.rules-list h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
.rules-list p { max-width: 44ch; }

/* ---------- финал ---------- */
.final { padding-top: clamp(100px, 13vw, 200px); display: grid; justify-items: center; gap: 20px; text-align: center; }
.final .big { max-width: 16ch; }
.final-card { position: relative; width: 100%; height: min(78vh, 680px); margin-top: 32px; border-radius: 24px; overflow: hidden; background: #000; color: #fff; text-align: left; }
.final-card > video { width: 100%; height: 100%; object-fit: cover; }
.final-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.2)); }
.final-in { position: absolute; z-index: 1; left: 0; bottom: 0; padding: clamp(24px, 4vw, 56px); display: grid; gap: 24px; }
.final-t { font-size: clamp(44px, 6vw, 100px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; }
.final-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- подвал ---------- */
.foot { padding-top: clamp(100px, 12vw, 180px); padding-bottom: 24px; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.foot-cols > div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-cols .mono { margin-bottom: 6px; }
.foot-text { max-width: 34ch; }
.js .foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.foot-row span { margin-right: auto; }
.link-btn { background-color: transparent; border: 0; padding: 0; cursor: pointer; }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(400px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  display: grid; gap: 10px; font-size: 14px; line-height: 1.45;
  transform: translateY(24px); opacity: 0; transition: transform .8s var(--out), opacity .5s;
}
.cookie[hidden] { display: none; }
.cookie.is-on { transform: none; opacity: 1; }
.cookie-t { font-weight: 500; font-size: 16px; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.btn { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.btn--fill { background: #000; color: #fff; border-color: #000; font-weight: 500; }
.btn:hover { border-color: #000; }

/* ---------- курсор-точка ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cursor span { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1.5px #fff; transition: opacity .3s; }
.cursor.is-hidden span { opacity: 0; }

/* ---------- страница политики ---------- */
.doc { max-width: 760px; padding: clamp(120px, 16vh, 170px) var(--pad) 40px; margin: 0 auto; }
.doc h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.doc-date { margin: 16px 0 40px; }
.doc h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; margin: 40px 0 12px; scroll-margin-top: 90px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc + .foot { padding-top: 40px; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .bar { left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 12px; }
  .bar.is-hidden { transform: translateY(calc(-100% - 20px)); }
  .bar-nav { display: none; }
  .works-head, .brand-head { flex-direction: column; align-items: flex-start; }
  .works-grid { grid-template-columns: 1fr; }
  .work--low, .work-shots { margin-top: 0; }
  .work-phone { bottom: -14%; width: 26%; border-radius: 16px; padding: 4px; }
  .work-phone img { border-radius: 12px; }
  .rules { grid-template-columns: 1fr; }
  .rules-head { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .final-card { height: 76vh; }
}
@media (max-width: 480px) {
  .bar-logo span { display: none; }
  .hero-btns .pill { width: 100%; }
  .cookie-btns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-split] .w-in, .js [data-fade], .js [data-media] { transform: none; opacity: 1; }
  .big .w { opacity: 1; } .big em .w { opacity: .32; }
  .hero-in, .hero-media { transform: none; opacity: 1; }
  .ticker-track { animation: none; }
  .rot-w .ch { transition: none; }
  .js }
