/* Лендинг канала studioigor (корень домена). Основа - стиль Академии Игор (apps/site/DESIGN.md): графит, Geist,
   белая главная кнопка. Первый экран и финал - тёмная сцена под тёплыми прожекторами, ниже стена обложек видео. */
:root {
  --bg: #111214;
  --band: #141518;
  --card: #17181c;
  --card-2: #1c1d22;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f2f1ee;
  --ink-2: #c9c8cc;
  --mute: #8f8e95;
  --on: #3ddc84;
  --amber: 255 178 63;
  --coral: 255 107 87;
  --teal: 46 196 182;
  --sky: 91 157 255;
  --violet: 150 110 255;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r: 20px;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.mono, .kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kicker { margin: 0 0 16px; }
.kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 2px; background: rgb(var(--k, var(--violet))); vertical-align: 1px; box-shadow: 0 0 12px rgb(var(--k, var(--violet)) / .8); }
.k-amber { --k: var(--amber); } .k-coral { --k: var(--coral); } .k-teal { --k: var(--teal); } .k-sky { --k: var(--sky); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1; }

/* переливающийся градиент только тёплых тонов: светлый янтарь, янтарь, коралл и обратно */
.grad { color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(90deg, #fff1da, #ffd497, #f2a650, #ffd497, #fff1da); background-size: 300% 100%; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(17, 18, 20, .72); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(var(--amber) / .5); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .foot-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover, .foot-nav a:hover { color: var(--ink); }
.lang { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang a { padding: 4px 9px; border-radius: 7px; font: 500 12px/1.4 var(--mono); color: var(--ink-2); text-decoration: none; transition: color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--card-2); color: var(--ink); }

/* кнопки, как в академии */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--bg); font: 600 15px/1 var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s, box-shadow .3s; }
.btn:hover { background: #fff; box-shadow: 0 10px 40px -10px rgb(var(--amber) / .6); }
.btn .arr { transition: translate .2s; }
.btn:hover .arr { translate: 3px 0; }
.btn.ghost { background: rgba(17, 18, 20, .35); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.yt-ico { position: relative; flex: none; width: 20px; height: 14px; border-radius: 4px; background: #ff3b30; }
.yt-ico::after { content: ""; position: absolute; left: 8px; top: 4px; border-left: 5px solid #fff; border-block: 3px solid transparent; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* сцена: тёмный зал, сверху тёплый прожектор и два тусклых боковых. Луч - конус из conic-gradient с мягким
   профилем по углу, маска гасит его с расстоянием, так что свет уходит в темноту без резких краёв.
   ::before - блик самой лампы и слабая засветка вокруг, ::after - пылинки, видные только внутри главного луча. */
.stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 360px 150px at 50% 0%, rgb(255 238 212 / .28), rgb(255 238 212 / .14) 28%, rgb(255 238 212 / .05) 55%, rgb(255 238 212 / .012) 80%, transparent), radial-gradient(ellipse 60% 85% at 50% 0%, rgb(255 196 130 / .07), rgb(255 196 130 / .025) 45%, transparent 75%); }
.stage::after { content: ""; position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(1.4px 1.4px at 22px 38px, #fff3e0, transparent), radial-gradient(1px 1px at 96px 120px, #ffe2b8, transparent), radial-gradient(1.8px 1.8px at 150px 64px, #fff3e0, transparent), radial-gradient(1px 1px at 60px 190px, #ffe2b8, transparent); background-size: 180px 220px; -webkit-mask-image: conic-gradient(from 160deg at 50% 0%, transparent, #000 20deg, transparent 40deg), linear-gradient(#000 20%, transparent 90%); -webkit-mask-composite: source-in; mask-image: conic-gradient(from 160deg at 50% 0%, transparent, #000 20deg, transparent 40deg), linear-gradient(#000 20%, transparent 90%); mask-composite: intersect; }
.stage i { --r0: 0deg; --r1: 0deg; --c: 255 236 210; --o: .3; position: absolute; top: 0; left: 50%; width: 1400px; height: 120%; margin-left: -700px; transform-origin: 50% 0; rotate: var(--r0); background: conic-gradient(from 154deg at 50% 0%, transparent, rgb(var(--c) / calc(var(--o) * .3)) 9deg, rgb(var(--c) / calc(var(--o) * .8)) 19deg, rgb(var(--c) / var(--o)) 26deg, rgb(var(--c) / calc(var(--o) * .8)) 33deg, rgb(var(--c) / calc(var(--o) * .3)) 43deg, transparent 52deg); -webkit-mask-image: linear-gradient(#000, rgb(0 0 0 / .6) 45%, transparent 92%); mask-image: linear-gradient(#000, rgb(0 0 0 / .6) 45%, transparent 92%); filter: blur(18px); mix-blend-mode: screen; }
.stage i:nth-child(2), .stage i:nth-child(3) { --c: 255 186 112; --o: .13; width: 1000px; margin-left: -500px; }
.stage i:nth-child(2) { left: 6%; --r0: -30deg; --r1: -22deg; }
.stage i:nth-child(3) { left: 94%; --r0: 30deg; --r1: 22deg; }

/* первый экран: заголовок по центру, под ним стена обложек в перспективе */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 36px 0 0; background: #0a0a0b; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 2; pointer-events: none; }
.hero-in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .kicker { display: inline-flex; align-items: center; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(17, 18, 20, .5); backdrop-filter: blur(8px); color: var(--ink-2); }
.hero .kicker::before { margin-right: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgb(255 59 48 / .6); }
.hero h1 { margin-top: 4px; font-size: clamp(48px, 6.4vw, 92px); font-weight: 900; letter-spacing: -.055em; line-height: .92; }
.hero h1 .grad { display: block; padding-bottom: .06em; }
.lead { margin: 18px 0 24px; max-width: 64ch; text-wrap: balance; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.hero .acts { justify-content: center; }

.wall { position: relative; z-index: 1; height: 560px; margin-top: 18px; perspective: 1200px; perspective-origin: 50% 0%; -webkit-mask-image: radial-gradient(ellipse 56% 100% at 50% 0%, #000 45%, transparent 98%); mask-image: radial-gradient(ellipse 56% 100% at 50% 0%, #000 45%, transparent 98%); }
/* обложки за пределами светового пятна уходят в темноту */
.wall::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 38% 70% at 50% 8%, transparent 30%, rgb(10 10 11 / .82) 100%); }
.wall-stage { display: grid; gap: 18px; transform: rotateX(32deg) scale(1.08); transform-origin: 50% 0%; }
.wall-row { overflow: hidden; }
.track { display: flex; gap: 18px; width: max-content; }
.thumb { flex: none; width: 300px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); transition: translate .3s, box-shadow .3s, border-color .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { translate: 0 -6px; border-color: rgb(255 255 255 / .5); box-shadow: 0 24px 60px -16px rgb(255 214 160 / .45); }

/* общие заголовки разделов */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.045em; }
.sec-note { margin: 0 0 6px; max-width: 46ch; color: var(--ink-2); font-size: 17px; }
.more { flex: none; margin-bottom: 8px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); text-decoration: none; transition: color .2s; }
.more:hover { color: var(--ink); }

/* подсветка под курсором: координаты ставит assets/home.js */
.spot { --glow: var(--sky); position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--glow) / .14), transparent 62%); }
.spot:hover::before { opacity: 1; }

/* академия: постер с тонкой рамкой, по которой бежит тёплый блик, наклон за курсором */
.academy { position: relative; padding: 96px 0 104px; }
.acad-wrap { position: relative; }
.ambient { position: absolute; inset: 4% 2% -2%; width: 96%; height: 98%; object-fit: cover; filter: blur(70px) saturate(1.7); opacity: .5; pointer-events: none; }
.acad { --glow: var(--amber); position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 24px; background: var(--card); transform: perspective(1400px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .95); }
.acad::after { content: ""; position: absolute; inset: -1px; z-index: 3; padding: 1px; border-radius: 25px; pointer-events: none; background: conic-gradient(from var(--a), transparent 0 62%, rgb(255 226 180 / .9) 80%, transparent 96%), linear-gradient(var(--line-2), var(--line-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.acad-art { position: relative; display: block; overflow: hidden; border-radius: 24px 0 0 24px; min-height: 100%; }
.acad-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
.acad:hover .acad-art img { scale: 1.04; }
.acad-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--card)); }
.pill { position: absolute; left: 18px; top: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(17, 18, 20, .74); backdrop-filter: blur(8px); font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--amber)); }
.acad-body { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 40px 40px 38px 8px; }
.acad-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.acad-brand i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 800 12px/1 var(--sans); font-style: normal; letter-spacing: -.02em; }
.acad-brand .mono { margin-left: auto; text-transform: none; letter-spacing: .02em; }
.acad h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.acad h3 a { text-decoration: none; }
.acad .text { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; }
.course { margin-top: 24px; padding: 18px 18px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 4px rgba(61, 220, 132, .16); }
.course-name { margin: 8px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.course-name span { margin-left: 6px; color: var(--mute); font-weight: 400; font-size: 15px; letter-spacing: 0; }
.worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.worlds span { display: grid; gap: 6px; }
.worlds b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.worlds i { height: 6px; border-radius: 2px; background: rgb(var(--c)); box-shadow: 0 0 10px rgb(var(--c) / .45); transform-origin: left; }
.worlds small { font: 500 10.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 0; list-style: none; font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 500; }
.acad .acts { position: relative; z-index: 4; margin-top: auto; padding-top: 26px; }

/* популярные видео */
.videos { padding: 24px 0 104px; }
.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.vid { --glow: var(--coral); display: flex; flex-direction: column; border-radius: 18px; transition: translate .3s; }
.vid-art { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); }
.vid-art img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 46px; margin: -23px 0 0 -32px; border-radius: 14px; background: #ff3b30; opacity: 0; scale: .7; transition: opacity .25s, scale .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.play::after { content: ""; position: absolute; left: 26px; top: 14px; border-left: 15px solid #fff; border-block: 9px solid transparent; }
.vid:hover { translate: 0 -4px; }
.vid:hover .vid-art img { scale: 1.06; }
.vid:hover .play { opacity: 1; scale: 1; }
.vid h3 { margin: 16px 2px 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.vid h3 a { text-decoration: none; }
.vid h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.vid .mono { margin: 8px 2px 0; }

/* форматы: четыре карточки с цветной иконкой */
.formats { position: relative; padding: 96px 0; background: var(--band); border-block: 1px solid var(--line); }
.formats::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 214 160 / .55), transparent); }
.fmt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fmt li { --glow: var(--c); padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .3s, translate .3s; }
.fmt li:hover { border-color: rgb(var(--c) / .45); translate: 0 -4px; }
.ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgb(var(--c) / .13); color: rgb(var(--c)); box-shadow: inset 0 0 0 1px rgb(var(--c) / .25); transition: background .3s, rotate .4s cubic-bezier(.2, .7, .2, 1), scale .4s cubic-bezier(.2, .7, .2, 1); }
.ico svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico circle[r=".9"] { fill: currentColor; stroke: none; }
.fmt li:hover .ico { background: rgb(var(--c) / .24); rotate: -8deg; scale: 1.08; }
.fmt h3 { margin: 20px 0 10px; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.fmt p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* обо мне */
.author { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; margin-top: 104px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.ava { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; }
.author .kicker { margin-bottom: 10px; }
.author h2 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.author-text p:not(.kicker) { margin: 12px 0 0; max-width: 62ch; color: var(--ink-2); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgb(var(--c) / .28); border-radius: 999px; background: rgb(var(--c) / .09); font-size: 13px; }
.chips i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); }
.socials { display: grid; gap: 8px; }
.socials .btn { justify-content: flex-start; min-height: 44px; font-size: 14.5px; }
.soc-ico { flex: none; width: 20px; height: 20px; }
.soc-ico.dc { fill: #5865f2; }
.soc-ico.tg circle { fill: #26a5e4; }
.soc-ico.tg path { fill: #fff; }
.soc-ico.bs rect { fill: #f15f2c; }
.soc-ico.bs path { fill: #fff; }
.soc-ico.gh { fill: var(--ink); }

/* финальная полоса */
.final { position: relative; isolation: isolate; overflow: hidden; margin-top: 104px; padding: 120px 0 128px; border-top: 1px solid var(--line); text-align: center; }
.final { background: #0a0a0b; }
.final-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final h2 { max-width: 16ch; font-size: clamp(38px, 5.4vw, 76px); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.final h2 .grad { display: block; margin-top: .08em; }
.final .acts { justify-content: center; margin-top: 40px; }

/* подвал */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; padding: 32px 0 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .mono { margin: 0 0 0 auto; }

/* движение: только если человек не просил его убрать */
@media (prefers-reduced-motion: no-preference) {
  .grad { animation: flow 9s linear infinite; }
  .stage i { animation: breathe 7s ease-in-out infinite alternate; }
  .stage i:nth-child(2) { animation: sway 17s ease-in-out infinite alternate; }
  .stage i:nth-child(3) { animation: sway 21s -7s ease-in-out infinite alternate; }
  .stage::after { animation: motes 60s linear infinite; }
  .hero .kicker::before { animation: rec 1.8s ease-out infinite; }
  .hero-in > * { animation: up .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-in > :nth-child(2) { animation-delay: .08s; }
  .hero-in > :nth-child(3) { animation-delay: .18s; }
  .hero-in > :nth-child(4) { animation-delay: .26s; }
  .wall-stage { animation: rise 1.4s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .track { animation: slide var(--d, 80s) linear infinite; }
  .wall-row.rev .track { animation-direction: reverse; }
  .wall-row:hover .track { animation-play-state: paused; }
  .acad::after { animation: spin 8s linear infinite; }
  .pill i { animation: ping 2.2s 1.2s ease-out infinite; }
  @supports (animation-timeline: view()) {
    .sec-head, .acad-wrap, .vid, .fmt li, .author, .final-in { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    .vid:nth-child(3n + 2), .fmt li:nth-child(2) { animation-range: entry 6% cover 28%; }
    .vid:nth-child(3n), .fmt li:nth-child(3) { animation-range: entry 12% cover 32%; }
    .fmt li:nth-child(4) { animation-range: entry 18% cover 36%; }
    /* деления курса заполняются, когда карточка академии въезжает в экран */
    .worlds i { animation: bar linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; transform: rotateX(48deg) scale(1.08) translateY(80px); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes flow { to { background-position: 300% 0; } }
@keyframes sway { from { rotate: var(--r0); } to { rotate: var(--r1); } }
@keyframes breathe { from { opacity: .82; } to { opacity: 1; } }
@keyframes motes { to { background-position: 60px -660px; } }
@keyframes spin { to { --a: 360deg; } }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgb(255 59 48 / .6); } 80%, 100% { box-shadow: 0 0 0 8px rgb(255 59 48 / 0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--amber) / .7); } 70%, 100% { box-shadow: 0 0 0 9px rgb(var(--amber) / 0); } }
@keyframes bar { from { scale: 0 1; } }

/* планшет и телефон */
@media (max-width: 1080px) {
  .acad { grid-template-columns: 1fr; }
  .acad-art { aspect-ratio: 16 / 9; border-radius: 24px 24px 0 0; }
  .acad-art::after { background: linear-gradient(180deg, transparent 70%, var(--card)); }
  .acad-body { padding: 8px 32px 32px; }
  .fmt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author { grid-template-columns: auto minmax(0, 1fr); }
  .author .socials { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
}
@media (max-width: 880px) {
  .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: start; }
  .wall { height: 380px; }
  .thumb { width: 230px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { gap: 16px; height: 60px; }
  .nav { display: none; }
  .top .lang { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .lead { font-size: 16.5px; }
  .hero .acts .btn, .final .acts .btn, .acad .acts .btn { flex: 1 1 auto; }
  .wall { height: 300px; margin-top: 24px; }
  .thumb { width: 180px; border-radius: 10px; }
  .wall-stage, .track { gap: 10px; }
  .academy { padding: 64px 0 72px; }
  .acad-body { padding: 4px 20px 24px; }
  .acad-brand .mono { margin-left: 0; width: 100%; }
  .worlds small { font-size: 9.5px; }
  .vid-grid { grid-template-columns: 1fr; }
  .videos { padding-bottom: 72px; }
  .formats { padding: 64px 0; }
  .fmt { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; gap: 20px; margin-top: 72px; padding: 24px 20px; }
  .ava { width: 96px; height: 96px; }
  .final { margin-top: 72px; padding: 80px 0 88px; }
  .foot .mono { margin: 0; width: 100%; }
}
@media (hover: none) {
  .acad { transform: none; }
}
