/* =========================================================
   GOLODETSKII — стили сайта
   Цвета и шрифты переопределяются из админки (раздел «Тема»):
   JS записывает их в переменные ниже.
   ========================================================= */

@font-face {
  font-family: "TagType";
  src: url("../static/fonts/TagType.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #adff2f;
  --black: #000000;
  --white: #ffffff;
  --surface: #151515;
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, .14);

  --f-display: "Tektur", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-tag: "TagType", "Tektur", cursive;

  --radius: 22px;
  --radius-s: 14px;
  --pad: clamp(18px, 4.4vw, 64px);
  --maxw: 1440px;
  --bar-h: 68px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, canvas, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--black); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--lime); color: var(--black);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Плёночное зерно поверх всего */
body.has-grain::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Выделение *слов* из текстов */
em { font-style: normal; color: var(--lime); }
.block--light em { color: var(--black); background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); }

/* Граффити */
.graffiti {
  font-family: var(--f-tag);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--lime);
  filter: url(#spray);
  line-height: 1;
}

/* ===== Кнопки ===== */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  font-variation-settings: "wdth" 100;
  transition: transform .5s var(--ease), color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime); color: var(--black); }
.btn--lime::before { background: var(--white); }
.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark::before { background: var(--lime); }
.btn--dark:hover { color: var(--black); }

.round {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, transform .4s var(--ease);
  font-size: 18px;
}
.round img { width: 20px; height: 20px; }
.round:hover { background: var(--lime); color: var(--black); }
.round:hover img { filter: invert(1); }
.round:active { transform: scale(.92); }
.round:disabled { opacity: .3; pointer-events: none; }
.flip { transform: scaleX(-1); }

/* ===== Прелоадер ===== */
.leader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: var(--black); color: var(--white);
  transition: opacity .6s var(--ease), visibility .6s;
}
.leader__ring { position: absolute; width: min(56vmin, 340px); height: auto; transform: rotate(-90deg); }
.leader__ring circle { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; }
.leader__ring .leader__sweep { stroke: var(--lime); stroke-width: 4; stroke-dasharray: 553; stroke-dashoffset: 553; animation: sweep .62s linear infinite; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.leader__num { font-family: var(--f-display); font-weight: 900; font-size: min(34vmin, 210px); line-height: 1; font-variation-settings: "wdth" 75; }
.leader__cross { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.leader.is-done { opacity: 0; visibility: hidden; }

/* ===== Шапка ===== */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; align-items: center; gap: 24px;
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.bar.is-solid { background: rgba(0,0,0,.62); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__logo { width: 50px; flex: none; color: var(--white); transition: color .3s; }
.bar__logo:hover { color: var(--lime); }
.bar__logo svg { width: 100%; height: auto; }
.bar__nav { margin: 0 auto; }
.bar__nav ul { display: flex; gap: 6px; }
.bar__nav a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.78); transition: color .25s, background .25s;
}
.bar__nav a:hover, .bar__nav a.is-active { color: var(--black); background: var(--lime); }
.bar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tc {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
.tc__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.lang { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.lang__btn { min-width: 36px; height: 30px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); transition: .25s; }
.lang__btn.is-active { background: var(--white); color: var(--black); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: rgba(255,255,255,.1); }
.burger span:not(.sr-only) { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--lime); color: var(--black);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 24px) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  clip-path: circle(0% at calc(100% - 44px) 34px); transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 34px); }
.menu__list a {
  display: block; font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 75;
  font-size: clamp(48px, 15vw, 96px); line-height: .95; text-transform: uppercase; padding: 4px 0;
}
.menu__socials { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.menu__socials a { border-bottom: 2px solid; }
body.menu-open .bar { color: var(--black); }
body.menu-open .bar .bar__logo, body.menu-open .tc { color: var(--black); }
body.menu-open .burger { background: var(--black); }
body.menu-open .lang { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
body.menu-open .lang__btn { color: rgba(0,0,0,.6); }
body.menu-open .lang__btn.is-active { background: var(--black); color: var(--lime); }

/* ===== Первый экран ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--bar-h) + 24px) var(--pad) calc(36px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(120% 80% at 70% 30%, #1a1a1a 0%, var(--black) 60%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__content { position: relative; z-index: 2; max-width: 760px; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__title {
  position: relative; display: flex; flex-direction: column;
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 75;
  font-size: clamp(64px, 9.4vw, 180px); line-height: .84; letter-spacing: -.01em; text-transform: uppercase;
}
.hero__line { display: block; width: max-content; position: relative; }
.hero__line--2 { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero__tag {
  position: absolute; left: 100%; top: .02em; margin-left: .12em;
  font-family: var(--f-tag); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: .6em; color: var(--lime); transform: rotate(-9deg); transform-origin: left bottom;
  filter: url(#spray) drop-shadow(0 6px 24px rgba(173,255,47,.35));
  white-space: nowrap;
}
.hero__role { margin-top: 26px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 20px); color: rgba(255,255,255,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__socials {
  position: absolute; z-index: 2; right: var(--pad); bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.hero__socials a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); transition: color .25s; }
.hero__socials a:hover { color: var(--lime); }
.hero__hint {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 18px); transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,.5); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none; white-space: nowrap; transition: opacity .6s;
}
.hero.no-3d .hero__hint { display: none; }

/* ===== Бегущая лента ===== */
main { overflow-x: hidden; overflow-x: clip; }
.tape { position: relative; z-index: 3; background: var(--lime); color: var(--black); overflow: hidden; transform: rotate(-2deg) scale(1.04); margin: -10px 0 0; }
.tape__track { display: flex; width: max-content; will-change: transform; }
.tape__track span {
  flex: none; padding: 16px 0; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 75; text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1;
}
.tape__track span::after { content: "\00a0"; }

/* ===== Обо мне ===== */
.about {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 14vw, 200px) var(--pad);
}
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--surface); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.about__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px;
}
.about__title {
  display: flex; flex-direction: column;
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 75; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 96px); line-height: .9;
}
.about__title .graffiti { text-transform: none; font-size: .9em; transform: rotate(-5deg); transform-origin: left; margin-top: .1em; }
.about__text { margin-top: 30px; font-size: clamp(21px, 2.1vw, 34px); line-height: 1.28; font-weight: 500; letter-spacing: -.01em; }
.scrub .w { opacity: .18; transition: opacity .2s linear; }
.scrub .w.on { opacity: 1; }

/* ===== Блоки (видео / дизайн) ===== */
.block { position: relative; padding: clamp(80px, 11vw, 170px) var(--pad); overflow: hidden; }
.block--dark { background: var(--black); color: var(--white); }
.block--light { background: var(--white); color: var(--black); border-radius: clamp(26px, 4vw, 56px) clamp(26px, 4vw, 56px) 0 0; }
.block--light + .contacts, .block--light + .block--dark { margin-top: 0; }
.block__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; max-width: var(--maxw); margin: 0 auto clamp(36px, 5vw, 64px); }
.block__title {
  position: relative; font-family: var(--f-display); font-weight: 900; font-variation-settings: "wdth" 75; text-transform: uppercase;
  font-size: clamp(76px, 15vw, 250px); line-height: .8; letter-spacing: -.01em;
}
.block__title { width: max-content; max-width: 100%; padding-bottom: .22em; }
.block__tag {
  position: absolute; right: -.35em; bottom: -.08em; font-size: .46em; transform: rotate(-8deg);
  text-shadow: 0 0 40px rgba(173,255,47,.25); white-space: nowrap;
}
.block--light .block__tag { color: var(--black); -webkit-text-stroke: 0; }
.block--light .block__tag { text-shadow: 6px 6px 0 var(--lime); }
.block__lead { max-width: 44ch; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.45; color: inherit; opacity: .88; }
.block__cta { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 64px); }

/* Линейка таймлайна */
.ruler { position: relative; max-width: var(--maxw); height: 34px; margin: 0 auto 22px; border-bottom: 1px solid var(--line); }
.ruler__ticks {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, transparent 1px 100px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 20px) bottom / 100% 7px no-repeat;
}
.ruler__ticks span { position: absolute; top: 2px; font-family: var(--f-display); font-size: 10px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; transform: translateX(4px); }
.ruler__head { position: absolute; top: 0; bottom: -10px; left: 0; width: 2px; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.ruler__head::before { content: ""; position: absolute; top: -2px; left: -6px; width: 14px; height: 12px; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--maxw); margin: 0 auto 28px; }
.filters button {
  height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line); color: rgba(255,255,255,.8); transition: .3s var(--ease);
}
.filters button sup { font-size: 10px; margin-left: 4px; opacity: .6; }
.filters button:hover { box-shadow: inset 0 0 0 1px var(--white); color: var(--white); }
.filters button[aria-selected="true"] { background: var(--lime); color: var(--black); box-shadow: none; }

/* Сетка роликов */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 44vw), 1fr)); gap: clamp(10px, 1.2vw, 18px); max-width: var(--maxw); margin: 0 auto; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-s); overflow: hidden; background: var(--surface);
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease); isolation: isolate;
}
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 45%, transparent 75%, rgba(0,0,0,.35)); pointer-events: none; }
.reel__clip { position: absolute; z-index: 2; left: 12px; top: 10px; font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.reel__meta { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; }
.reel__title { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.05; text-transform: uppercase; font-variation-settings: "wdth" 85; }
.reel__cat { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: .5s var(--ease);
}
.reel__play::before { content: ""; margin-left: 4px; border-left: 16px solid var(--black); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.reel:hover .reel__play, .reel:focus-visible .reel__play { transform: scale(1); opacity: 1; }
.reel:hover img { transform: scale(1.06); }
.reel:hover { box-shadow: 0 30px 60px -20px rgba(173,255,47,.35); }
.reel.is-out { display: none; }
.reels__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Лента проектов */
.rail {
  display: flex; gap: clamp(12px, 1.4vw, 22px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .proj { pointer-events: none; }
.proj { flex: none; scroll-snap-align: start; text-align: left; }
.proj__img {
  position: relative; display: block; height: clamp(300px, 58vh, 620px); max-width: 86vw; border-radius: var(--radius); overflow: hidden; background: #eee;
}
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); user-select: none; -webkit-user-drag: none; }
.proj:hover .proj__img img { transform: scale(1.04); }
.proj__count { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--black); color: var(--lime); }
.proj__name { display: block; margin-top: 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); text-transform: uppercase; font-variation-settings: "wdth" 85; }
.rail__ui { display: flex; align-items: center; gap: 20px; max-width: var(--maxw); margin: 26px auto 0; }
.rail__hint { font-size: 14px; font-weight: 600; opacity: .6; }
.rail__progress { flex: 1; height: 3px; background: rgba(0,0,0,.12); border-radius: 3px; overflow: hidden; }
.rail__progress i { display: block; height: 100%; width: 20%; background: var(--black); border-radius: inherit; transform-origin: left; }
.rail__btns { display: flex; gap: 8px; }
.block--light .round { background: rgba(0,0,0,.06); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.block--light .round img { filter: invert(1); }
.block--light .round:hover { background: var(--lime); }

/* ===== Контакты ===== */
.contacts {
  position: relative; background: var(--black); text-align: center; overflow: hidden;
  padding: clamp(60px, 8vw, 120px) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
}
.block--light + .contacts { border-radius: 0; }
.contacts__logo { height: clamp(200px, 36vh, 400px); max-width: 900px; margin: 0 auto; }
.contacts__logo canvas { width: 100% !important; height: 100% !important; }
.contacts__logo.is-static svg { height: 100%; margin: 0 auto; color: var(--lime); }
.contacts__title { font-size: clamp(64px, 13vw, 220px); margin-top: -.15em; transform: rotate(-4deg); text-shadow: 0 0 60px rgba(173,255,47,.25); }
.contacts__text { max-width: 44ch; margin: 24px auto 0; font-size: clamp(17px, 1.4vw, 21px); color: rgba(255,255,255,.8); }
.contacts__links { max-width: 1100px; margin: clamp(40px, 6vw, 80px) auto 0; text-align: left; border-bottom: 1px solid var(--line); }
.contacts__links a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(16px, 2vw, 26px) 8px; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 72px); line-height: 1; transition: color .4s var(--ease), padding .5s var(--ease);
}
.contacts__links a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.contacts__links a:hover { color: var(--black); padding-left: 24px; padding-right: 24px; }
.contacts__links a:hover::before { transform: scaleY(1); }
.contacts__links svg { width: clamp(26px, 3vw, 44px); height: auto; flex: none; transition: transform .5s var(--ease); }
.contacts__links a:hover svg { transform: rotate(45deg); }
.contacts__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1100px; margin: 34px auto 0; font-size: 13px; color: var(--muted); }
.contacts__bottom a:hover { color: var(--lime); }

/* ===== Лайтбокс ===== */
.lb {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0,0,0,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(70px + env(safe-area-inset-top, 0px)) 16px calc(70px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transition: opacity .4s var(--ease);
}
.lb.is-open { opacity: 1; }
.lb__stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.lb__stage iframe { width: min(100%, calc((100vh - 160px) * 9 / 16)); aspect-ratio: 9 / 16; height: auto; max-height: 100%; border: 0; border-radius: var(--radius-s); background: #000; }
.lb__stage iframe.is-wide { width: min(100%, 1200px); aspect-ratio: 16 / 9; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-s); user-select: none; }
.lb__close { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); }
.lb__nav { position: absolute; top: 50%; margin-top: -26px; }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }
.lb__caption { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 14px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }

/* Появление (только если работают анимации) */
.js-anim [data-in] { opacity: 0; transform: translateY(40px); }

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .bar__nav a { padding: 8px 10px; }
  .tc { display: none; }
}
@media (max-width: 900px) {
  :root { --bar-h: 62px; }
  .bar__nav { display: none; }
  .burger { display: block; }
  .bar { gap: 12px; }
  .about { grid-template-columns: 1fr; }
  .block__head { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { justify-content: flex-end; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .hero::after { content: ""; position: absolute; inset: auto 0 0; height: 62%; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--black) 18%, rgba(0,0,0,.7) 55%, transparent); }
  .hero__title { font-size: clamp(46px, 15.2vw, 96px); }
  .hero__line--2 { -webkit-text-stroke-width: 1.5px; }
  .hero__tag { font-size: .52em; }
  .hero__role { margin-top: 18px; font-size: 15px; }
  .hero__actions { margin-top: 18px; }
  .hero__actions .btn { --h: 48px; padding: 0 20px; font-size: 14px; flex: 1; }
  .hero__socials { display: none; }
  .hero__hint { font-size: 11px; }
  .about__photo { aspect-ratio: 4 / 3.6; }
  .reel__play { width: 50px; height: 50px; margin: -25px 0 0 -25px; opacity: .95; transform: scale(.8); }
  .reel__clip { font-size: 10px; }
  .rail__hint { display: none; }
  .lb__nav { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .lb__caption { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .contacts__bottom { justify-content: center; }
}
@media (hover: none) {
  .reel__play { opacity: .95; transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body.has-grain::after { animation: none; }
  .js-anim [data-in] { opacity: 1; transform: none; }
  .scrub .w { opacity: 1; }
}

/* ===== Телефоны: убираем тяжёлые эффекты, из-за которых дёргается прокрутка ===== */
@media (hover: none), (max-width: 900px) {
  body.has-grain::after { display: none; }
  .bar.is-solid { background: rgba(0,0,0,.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost, .round, .reel__cat, .about__photo figcaption { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost, .round { background: rgba(255,255,255,.06); }
  .reel__cat, .about__photo figcaption { background: rgba(0,0,0,.6); }
  .graffiti, .hero__tag { filter: none; }
  .hero__tag, .contacts__title, .block__tag { text-shadow: none; }
  .reel { transition: none; box-shadow: none; }
  .about__photo img { will-change: auto; }
}
