:root {
  --ink: #09090b;
  --paper: #ffffff;
  --muted: #697386;
  --line: rgba(9, 9, 11, 0.16);
  --acid: #155eef;
  --orange: #e53945;
  --display: "Unbounded", sans-serif;
  --body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--acid) #edf2fa; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #edf2fa; }
*::-webkit-scrollbar-thumb { background: var(--acid); border: 2px solid #edf2fa; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--orange); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-150%); background: var(--acid); }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  transition: background .3s ease, color .3s ease, height .3s ease;
}
.site-header.scrolled { height: 64px; color: var(--ink); background: rgba(255,255,255,.94); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 11px; font: 600 14px/1 var(--display); letter-spacing: .06em; }
.brand-mark { display: block; width: 22px; height: 22px; flex: none; }
.site-nav { display: flex; gap: 34px; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.site-nav a, .header-phone { position: relative; }
.site-nav a::after, .header-phone::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px; background: var(--acid); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-nav a:hover::after, .header-phone:hover::after { transform: scaleX(1); transform-origin: left; }
.header-phone { justify-self: end; font-weight: 700; font-size: 13px; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 0;
  height: 80svh;
  max-height: none;
  color: white;
  background: var(--ink);
  overflow: hidden;
}
.hero-media { --hero-image: url("/public/assets/hero-car-hq.webp"); position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(3,9,26,.97) 0%, rgba(3,9,26,.84) 43%, rgba(3,9,26,.15) 100%), linear-gradient(0deg, rgba(3,9,26,.78), transparent 55%), var(--hero-image); background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.03); animation: heroZoom 8s ease-out both; }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-content { position: relative; z-index: 3; width: min(1440px, 100%); height: 100%; margin: 0 auto; padding: 88px clamp(24px, 7vw, 110px) 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow, .kicker { margin: 0 0 24px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.72); }
.eyebrow span { color: var(--acid); }
.eyebrow::before, .kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; display: inline-block; margin-right: 12px; vertical-align: middle; }
.hero h1 { max-width: 850px; margin: 0; font: 600 clamp(40px, 4.7vw, 72px)/1.2 var(--display); letter-spacing: -.02em; }
.hero-note { margin: 20px 0 0; padding-left: 16px; border-left: 3px solid var(--acid); color: rgba(255,255,255,.8); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-width: 170px; height: 54px; align-items: center; justify-content: center; padding: 0 26px; border: 1px solid currentColor; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { border-color: var(--acid); background: var(--acid); color: white; }
.button-primary:hover,
.button-primary:focus-visible { color: var(--ink); background: white; border-color: white; outline: 0; }
.button-ghost { color: white; }
.button-ghost:hover { color: var(--ink); background: white; }
.button-dark { color: white; background: var(--ink); border-color: var(--ink); }
.hero-socials { display: flex; gap: 8px; margin-top: 24px; }
.hero-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 9px; font-weight: 800; transition: .25s ease; }
.hero-socials a:hover { background: var(--acid); color: white; border-color: var(--acid); }
.scroll-cue { position: absolute; z-index: 5; left: clamp(24px, 4vw, 72px); bottom: 26px; display: flex; align-items: center; gap: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.scroll-cue span { width: 42px; height: 1px; background: var(--acid); }

@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.03); } }

.signal-strip { position: relative; z-index: 6; height: 62px; display: flex; align-items: center; overflow: hidden; background: var(--acid); color: white; border-bottom: 1px solid var(--ink); font: 600 18px var(--display); white-space: nowrap; }
.signal-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.signal-group { display: flex; flex-shrink: 0; width: max-content; min-width: 100vw; align-items: center; justify-content: space-around; gap: 28px; padding-right: 28px; }
.signal-strip span { display: inline-block; }
.signal-strip i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: white; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-shell { width: min(1360px, calc(100% - 48px)); margin: 0 auto; }
.about { padding: 140px 0 110px; display: grid; grid-template-columns: 100px 1fr; column-gap: 32px; }
.section-index { padding-top: 8px; font: 600 12px var(--display); color: #777d77; }
.display-heading { margin: 0; max-width: 1120px; font: 600 clamp(34px, 5vw, 70px)/1.08 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.kicker { color: #697069; }
.skills-grid { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill-card { min-height: 290px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.skill-number { color: #747a74; font: 500 10px var(--display); }
.skill-card .skill-icon { width: 64px; height: 64px; margin: 44px 0 24px; color: currentColor; stroke-width: 1.55; }
.skill-card p { max-width: 200px; margin: auto 0 0; font-size: 16px; font-weight: 700; }
.skill-card-accent { background: var(--acid); color: white; }
.own-car { grid-column: 2; margin-top: 28px; min-height: 116px; padding: 24px 30px; display: grid; grid-template-columns: 170px 1fr 160px; align-items: center; gap: 28px; color: white; background: var(--ink); }
.own-car span { color: var(--acid); font: 500 10px var(--display); letter-spacing: .12em; }
.own-car p { margin: 0; font-size: clamp(17px, 2vw, 24px); font-weight: 700; }
.own-car .own-car-icon { width: 74px; height: 74px; justify-self: end; color: var(--acid); stroke-width: 1.45; }

.programs { padding: 120px 0; background: #eef4ff; border-top: 1px solid var(--line); }
.programs-head { display: grid; grid-template-columns: 100px 1fr auto; gap: 32px; align-items: end; margin-bottom: 60px; }
.text-link { padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.text-link span { color: var(--orange); margin-left: 18px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; perspective: 1200px; }
.program-card { --tilt-x: 0deg; --tilt-y: 0deg; --card-lift: 0px; position: relative; background: var(--paper); cursor: pointer; transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--card-lift)); transform-style: preserve-3d; will-change: transform; transition: transform .22s ease, box-shadow .3s ease; }
.program-card:hover { --card-lift: -8px; box-shadow: 0 24px 50px rgba(17,20,17,.14); }
.program-card:focus-within { outline: 3px solid var(--acid); outline-offset: 4px; }
.program-card-featured { margin-top: -24px; }
.program-image { position: relative; aspect-ratio: 1.08; overflow: hidden; background: #ccc; }
.program-image img { height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .55s ease, filter .55s ease; }
.program-card:hover .program-image img { transform: scale(1.05); filter: saturate(1) contrast(1.02); }
.program-code, .sale { position: absolute; top: 16px; padding: 7px 9px; font: 500 9px var(--display); letter-spacing: .08em; }
.program-code { right: 16px; color: white; background: rgba(17,20,17,.7); }
.sale { left: 16px; background: var(--orange); color: white; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; }
.program-body { min-height: 280px; padding: 30px; display: flex; flex-direction: column; }
.program-body h3 { margin: 0 0 12px; font: 600 19px/1.25 var(--display); }
.program-body p { margin: 0; color: #5e655e; font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: auto 0 22px; }
.price strong { font: 600 25px var(--display); }
.price small { font: inherit; font-size: .55em; }
.price s { color: #969b96; font-size: 12px; }
.program-body > a { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.program-body > a::after { content: ""; position: absolute; z-index: 2; inset: 0; }
.program-body > a:focus-visible { outline: 0; }
.program-body > a span { color: var(--orange); }
.center-action { display: flex; justify-content: center; margin-top: 52px; }

.resource-directory { position: relative; padding: 96px 0 104px; overflow: hidden; color: #fff; background: #071022; }
.resource-directory::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 82%); pointer-events: none; }
.resource-directory .section-shell { position: relative; z-index: 1; }
.resource-directory-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) 180px; gap: 24px; align-items: end; margin-bottom: 38px; }
.resource-directory-head::after { content: ""; height: 4px; margin-bottom: 9px; background: linear-gradient(90deg, var(--acid) 0 68%, var(--orange) 68% 100%); }
.resource-directory-head .section-index { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: #fff; background: var(--orange); }
.resource-directory .kicker { color: #91a1c2; }
.resource-directory-head .display-heading { color: #fff; font-size: clamp(34px, 4.4vw, 62px); }
.resource-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.resource-directory-grid a { position: relative; min-height: 218px; padding: 22px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; color: #fff; border: 1px solid rgba(255,255,255,.16); background: #101d3c; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.resource-directory-grid a::before { content: ""; position: absolute; z-index: -1; right: -92px; bottom: -112px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 52px rgba(255,255,255,.025); transition: transform .35s ease; }
.resource-directory-grid a:first-child { grid-column: span 2; background: linear-gradient(135deg, #2463eb, #1748bd); }
.resource-directory-grid a:nth-child(4) { background: linear-gradient(135deg, #d82f3e, #a91628); }
.resource-directory-grid a:nth-child(7) { color: var(--ink); border-color: #fff; background: #fff; }
.resource-directory-grid a:nth-child(7)::before { border-color: rgba(9,9,11,.12); box-shadow: 0 0 0 24px rgba(9,9,11,.025), 0 0 0 52px rgba(9,9,11,.018); }
.resource-directory-grid a:hover,
.resource-directory-grid a:focus-visible { z-index: 2; outline: 0; border-color: var(--acid); box-shadow: 0 20px 50px rgba(0,0,0,.28); transform: translateY(-6px); }
.resource-directory-grid a:hover::before,
.resource-directory-grid a:focus-visible::before { transform: translate(-12px, -12px) scale(1.08); }
.resource-directory-grid small { color: #8fa1c6; font: 600 10px var(--display); letter-spacing: .12em; }
.resource-directory-grid a:first-child small,
.resource-directory-grid a:nth-child(4) small { color: rgba(255,255,255,.72); }
.resource-directory-grid a:nth-child(7) small { color: #7a8291; }
.resource-directory-grid strong { position: relative; z-index: 1; max-width: 280px; margin-top: auto; font: 600 17px/1.35 var(--display); }
.resource-directory-grid a:first-child strong { max-width: 520px; font-size: clamp(20px, 2vw, 28px); }
.resource-directory-grid i { position: absolute; right: 20px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.08); font: 500 15px var(--body); font-style: normal; transition: color .2s ease, background .2s ease, transform .25s ease; }
.resource-directory-grid a:nth-child(7) i { color: var(--ink); border-color: rgba(9,9,11,.16); background: #eef4ff; }
.resource-directory-grid a:hover i,
.resource-directory-grid a:focus-visible i { color: var(--ink); background: #fff; transform: rotate(45deg); }

.journal { padding: 108px 0 118px; background: #f4f7fc; }
.journal-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr); gap: 60px; align-items: end; margin-bottom: 46px; }
.journal-head .kicker { color: var(--acid); }
.journal-head .display-heading { max-width: 900px; font-size: clamp(36px, 4.5vw, 66px); }
.journal-head__note { max-width: 430px; margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.journal-card { min-width: 0; display: grid; grid-template-columns: minmax(220px, .88fr) minmax(0, 1.12fr); overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.journal-card:hover, .journal-card:focus-visible { outline: 0; border-color: var(--acid); box-shadow: 0 24px 55px rgba(7,16,34,.14); transform: translateY(-6px); }
.journal-card__media { position: relative; min-height: 360px; margin: 0; overflow: hidden; background: #101d3c; }
.journal-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,16,34,.76)); pointer-events: none; }
.journal-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.journal-card:hover .journal-card__media img { transform: scale(1.045); }
.journal-card__media span { position: absolute; z-index: 1; left: 18px; bottom: 18px; padding: 8px 10px; color: #fff; background: rgba(7,16,34,.78); border-left: 3px solid var(--orange); font: 700 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.journal-card__body { padding: 30px; display: flex; flex-direction: column; }
.journal-card__body small { color: var(--acid); font: 700 9px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.journal-card__body h3 { margin: 24px 0 16px; font: 600 clamp(20px, 1.8vw, 27px)/1.25 var(--display); letter-spacing: -.025em; }
.journal-card__body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.journal-card__body strong { margin-top: auto; padding-top: 32px; color: var(--ink); font: 700 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.journal-card__body i { margin-left: 6px; color: var(--orange); font-style: normal; }

.training-media { padding: 120px 0 132px; color: white; background: var(--ink); overflow: hidden; }
.training-media-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.training-media .kicker { color: var(--acid); }
.training-media .display-heading { max-width: 900px; font-size: clamp(34px, 4.8vw, 66px); }
.training-media .text-link { flex: none; color: white; }
.training-media-head__actions { max-width: 430px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.training-media-head__actions .button { min-width: 174px; height: 50px; }
.training-media-head__actions .text-link { width: 100%; margin: 12px 0 0; text-align: right; }
.training-media-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, minmax(200px, 24vh)); gap: 14px; }
.training-clip { position: relative; min-width: 0; overflow: hidden; isolation: isolate; background: #141820; }
.training-clip::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(3,5,10,.03) 34%, rgba(3,5,10,.88) 100%); pointer-events: none; }
.training-clip::after { content: "▶"; position: absolute; z-index: 3; left: 24px; top: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: rgba(5,7,13,.28); backdrop-filter: blur(8px); font-size: 11px; transition: transform .25s ease, background .25s ease; pointer-events: none; }
.training-clip:hover::after, .training-clip:focus-within::after { transform: scale(1.08); background: var(--acid); border-color: var(--acid); }
.training-clip video { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(1.06); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.training-clip:hover video, .training-clip:focus-within video { transform: scale(1.035); filter: saturate(1) contrast(1.03); }
.training-clip-copy { position: absolute; z-index: 3; left: 24px; right: 68px; bottom: 22px; }
.training-clip-copy span { display: block; margin-bottom: 8px; color: #8eb3ff; font: 500 8px var(--display); letter-spacing: .13em; }
.training-clip-copy strong { display: block; max-width: 420px; font-size: clamp(15px, 1.35vw, 20px); line-height: 1.3; }
.training-clip-open { position: absolute; z-index: 4; inset: 0; width: 100%; padding: 24px; display: flex; align-items: flex-start; justify-content: flex-end; border: 0; color: white; background: transparent; cursor: pointer; font: 600 8px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.training-clip-open:focus-visible { outline: 3px solid white; outline-offset: -6px; }
.training-clip-summer { grid-column: 1 / 7; grid-row: 1; }
.training-clip-winter-wide { grid-column: 1 / 7; grid-row: 2; }
.training-clip-cabin { grid-column: 1 / 7; grid-row: 3; }
.training-clip-class { grid-column: 7 / 10; grid-row: 1 / 4; }
.training-clip-winter-close { grid-column: 10 / 13; grid-row: 1 / 4; }
.training-clip-class video, .training-clip-winter-close video { object-position: center; }

.video-lightbox { width: min(1180px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; overflow: visible; border: 0; color: white; background: transparent; }
.video-lightbox::backdrop { background: rgba(2,5,12,.88); backdrop-filter: blur(12px); }
.video-lightbox-panel { position: relative; padding: 12px; background: #070a12; box-shadow: 18px 18px 0 var(--acid), -10px -10px 0 var(--orange); }
.video-lightbox-player { display: block; width: 100%; max-height: calc(100dvh - 150px); aspect-ratio: 16/9; object-fit: contain; background: #000; }
.video-lightbox-close { position: absolute; z-index: 3; right: 20px; top: 20px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(5,7,13,.78); cursor: pointer; font: 600 9px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.video-lightbox-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 12px 2px; }
.video-lightbox-footer h3 { margin: 0; font: 600 clamp(14px, 1.5vw, 20px)/1.3 var(--display); }
.video-lightbox-footer > div { display: flex; align-items: center; gap: 12px; flex: none; }
.video-lightbox-footer button, .video-lightbox-footer a { padding: 10px 12px; border: 1px solid rgba(255,255,255,.28); color: white; background: transparent; cursor: pointer; font: 600 8px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.video-lightbox-footer button:hover, .video-lightbox-footer a:hover { border-color: var(--acid); background: var(--acid); }
.video-lightbox.video-lightbox-portrait { width: min(560px, calc(100% - 40px)); }
.video-lightbox-portrait .video-lightbox-player { height: min(72dvh, 760px); aspect-ratio: auto; }

.video-section { padding: 140px 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 6vw, 96px); align-items: center; }
.video-copy { display: grid; grid-template-columns: 70px 1fr; }
.video-copy .section-index { grid-row: 1 / span 3; }
.video-copy .display-heading { font-size: clamp(30px, 4vw, 52px); }
.video-copy > p:not(.kicker) { grid-column: 2; margin: 28px 0 0; color: #687068; }
.video-copy-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.video-copy-actions .button { min-width: 150px; }
.video-stage { position: relative; min-height: 720px; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: white; background: radial-gradient(circle at 58% 45%, rgba(21,94,239,.28), transparent 34%), linear-gradient(145deg, #101a31 0%, #05070d 68%); border: 1px solid rgba(9,9,11,.2); }
.video-grid { position: absolute; z-index: -2; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(135deg, black, transparent 86%); }
.video-stage::before { content: ""; position: absolute; z-index: -1; left: -10%; bottom: 13%; width: 64%; height: 2px; background: var(--orange); box-shadow: 0 0 18px rgba(229,57,69,.8); transform: rotate(-12deg); transform-origin: left; }
.video-stage::after { content: ""; position: absolute; z-index: -1; right: -14%; top: 18%; width: 72%; height: 2px; background: var(--acid); box-shadow: 0 0 20px rgba(21,94,239,.9); transform: rotate(-12deg); transform-origin: right; }
.video-frame { position: relative; z-index: 2; width: min(48%, 340px); aspect-ratio: 9/16; padding: 7px; background: var(--ink); box-shadow: 18px 18px 0 var(--acid), -10px -10px 0 rgba(229,57,69,.86), 0 34px 90px rgba(0,0,0,.5); transform: translateZ(0); }
.local-video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: cover; }
.telegram-reel { position: absolute; z-index: 3; right: 30px; bottom: 76px; width: 152px; aspect-ratio: 9/16; overflow: hidden; border: 6px solid #0a0c12; background: #0a0c12; box-shadow: 10px 10px 0 var(--orange), 0 22px 48px rgba(0,0,0,.42); transform: rotate(3deg); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.telegram-reel:hover { transform: rotate(0) translateY(-7px); box-shadow: 10px 14px 0 var(--orange), 0 28px 58px rgba(0,0,0,.52); }
.telegram-reel::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3,5,10,.9)); pointer-events: none; }
.telegram-reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.telegram-reel > span { position: absolute; z-index: 2; left: 10px; right: 8px; bottom: 10px; color: rgba(255,255,255,.76); font: 500 7px/1.45 var(--display); letter-spacing: .08em; }
.telegram-reel b { display: block; color: white; font-size: 8px; letter-spacing: .1em; }
.video-corner { position: absolute; z-index: 4; top: 20px; right: 18px; padding: 7px 8px; color: white; background: rgba(5,7,13,.75); backdrop-filter: blur(8px); font: 500 8px var(--display); letter-spacing: .12em; pointer-events: none; }
.video-status { position: absolute; z-index: 4; left: 18px; bottom: 58px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: white; background: rgba(5,7,13,.78); backdrop-filter: blur(8px); font: 600 8px var(--display); letter-spacing: .09em; pointer-events: none; }
.video-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(229,57,69,.6); animation: statusPulse 1.8s ease-out infinite; }
.video-scan { position: absolute; z-index: 3; left: 7px; right: 7px; top: 7px; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); box-shadow: 0 0 14px rgba(255,255,255,.6); pointer-events: none; }
.video-stage.motion-active .video-scan { opacity: .55; animation: videoScan 5.5s ease-in-out infinite; }
.video-orbit { position: absolute; z-index: -1; left: 6%; top: 25%; width: 260px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.video-orbit::before, .video-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.video-orbit::before { inset: 38px; }
.video-orbit::after { inset: 82px; border-color: rgba(21,94,239,.55); }
.video-orbit span { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.video-stage.motion-active .video-orbit { animation: orbitSpin 16s linear infinite; }
.video-telemetry { position: absolute; font: 500 8px var(--display); letter-spacing: .14em; color: rgba(255,255,255,.62); }
.video-telemetry-top { top: 28px; left: 30px; right: 30px; display: flex; align-items: center; justify-content: space-between; }
.video-telemetry-top b { color: white; font: 500 18px var(--display); }
.video-telemetry-side { right: 24px; top: 50%; display: flex; gap: 26px; transform: translate(44%, -50%) rotate(90deg); }
.video-telemetry-side span { position: relative; }
.video-telemetry-side span + span::before { content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--acid); }
.video-vk-link { position: absolute; left: 30px; bottom: 26px; z-index: 5; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.42); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: color .25s ease, border-color .25s ease; }
.video-vk-link span { margin-left: 10px; color: var(--orange); }
.video-vk-link:hover { color: #86adff; border-color: var(--acid); }
@keyframes videoScan { 0%, 12% { top: 7px; opacity: 0; } 28%, 72% { opacity: .5; } 88%, 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes statusPulse { 70%, 100% { box-shadow: 0 0 0 9px rgba(229,57,69,0); } }

.reviews { padding: 52px 0 56px; color: white; background: var(--ink); overflow: hidden; }
.reviews-head { display: flex; width: min(80%, 1360px); align-items: end; justify-content: space-between; margin: 0 auto 22px; }
.reviews .kicker { color: var(--acid); }
.review-controls { display: flex; align-items: center; gap: 18px; }
.review-controls button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); color: white; background: transparent; cursor: pointer; transition: .2s ease; }
.review-controls button:hover { border-color: var(--acid); color: var(--ink); background: var(--acid); }
.review-controls span { min-width: 62px; text-align: center; font: 500 10px var(--display); color: #8e958f; }
.review-controls b { color: white; }
.review-track { display: grid; width: min(80%, 1360px); grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 auto; padding: 0; }
.review-track::-webkit-scrollbar { display: none; }
.review-card { position: relative; min-height: 260px; max-height: 320px; overflow: auto; padding: 28px 34px; border: 1px solid rgba(255,255,255,.18); scroll-snap-align: start; background: #101d3c; }
.review-card { scrollbar-width: thin; scrollbar-color: var(--acid) #101d3c; }
.review-card::-webkit-scrollbar { width: 8px; }
.review-card::-webkit-scrollbar-track { background: #101d3c; }
.review-card::-webkit-scrollbar-thumb { background: var(--acid); border: 2px solid #101d3c; border-radius: 999px; }
.review-card::-webkit-scrollbar-thumb:hover { background: var(--orange); }
.review-card h3 { margin: 0 0 18px; font: 600 18px var(--display); }
.review-card p { color: #dbe6ff; font-size: 13px; line-height: 1.62; }
.review-card-yandex { display: flex; flex-direction: column; justify-content: flex-start; }
.review-card-yandex h3 { margin: 16px 0 12px; }
.review-card-yandex p { max-width: 960px; margin: 0; font-size: 13px; line-height: 1.62; white-space: pre-line; }
.review-meta { display: flex; align-items: center; gap: 14px; color: #9eabc7; font: 500 10px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.review-rating { color: var(--acid); font-size: 13px; letter-spacing: .12em; }
.review-source { width: max-content; margin-top: auto; padding-top: 20px; color: white; font: 600 10px var(--display); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.review-source span { color: var(--orange); }
.review-source:hover { color: var(--acid); }
.quote-mark { position: absolute; right: 32px; top: 15px; color: var(--acid); font: 600 70px/1 var(--display); }

.contacts { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 650px; background: #f6f9ff; }
.map-visual { position: relative; min-height: 620px; overflow: hidden; background: #d4d7cf; border-right: 1px solid var(--line); }
#contact-map { position: absolute; inset: 0; }
.maplibregl-map { font-family: var(--body); }
.maplibregl-canvas { filter: none; }
.maplibregl-ctrl-group { border-radius: 0; box-shadow: none; border: 1px solid rgba(17,20,17,.2); }
.maplibregl-ctrl-group button { width: 36px; height: 36px; }
.maplibregl-popup-content { padding: 14px 16px; border-radius: 0; font: 700 12px/1.5 var(--body); box-shadow: 0 12px 30px rgba(17,20,17,.18); }
.contact-marker { position: relative; width: 54px; height: 54px; }
.contact-marker::before { content: ""; position: absolute; inset: 0; border: 2px solid white; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-45deg); box-shadow: 0 12px 26px rgba(9,9,11,.28); }
.contact-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border: 4px solid white; border-radius: 50%; transform: translate(-50%, -50%); }
.map-city { position: absolute; z-index: 2; padding: 9px 12px; background: var(--ink); color: white; font: 500 9px var(--display); letter-spacing: .11em; pointer-events: none; }
.map-city { left: 8%; top: 14%; }
.map-routes { position: absolute; z-index: 4; right: 22px; bottom: 22px; width: min(430px, calc(100% - 44px)); padding: 16px; border: 1px solid rgba(9,9,11,.18); background: rgba(255,255,255,.94); box-shadow: 0 16px 42px rgba(9,9,11,.18); backdrop-filter: blur(14px); }
.map-routes > p { margin: 0 0 12px; color: var(--ink); font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.map-route-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map-route-links a { position: relative; min-height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; color: var(--ink); background: #f6f9ff; border: 1px solid var(--line); font-size: 11px; font-weight: 800; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.map-route-links a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--acid); }
.map-route-links a:first-child::before { background: var(--orange); }
.map-route-links a:last-child::before { background: var(--ink); }
.map-route-links a:hover,
.map-route-links a:focus-visible { color: #fff; background: var(--acid); border-color: var(--acid); transform: translateY(-2px); }
.map-route-links a:hover::before,
.map-route-links a:focus-visible::before { background: #fff; }
.map-route-links span { color: var(--orange); }
.map-route-links a:hover span,
.map-route-links a:focus-visible span { color: #fff; }
.contact-panel { padding: 110px clamp(30px, 6vw, 90px); display: flex; flex-direction: column; align-items: flex-start; }
.contact-panel .display-heading { font-size: clamp(42px, 5vw, 68px); }
.contact-phone { margin: 50px 0 34px; font: 500 clamp(25px, 3vw, 40px) var(--display); border-bottom: 4px solid var(--acid); }
.contact-socials { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 48px; }
.contact-socials a { padding: 18px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.contact-socials a + a { padding-left: 18px; border-left: 1px solid var(--line); }
.contact-socials span { color: var(--orange); }

footer { min-height: 120px; padding: 0 clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: white; background: var(--ink); }
footer p { color: #8d938e; font-size: 12px; }
footer > a:last-child { justify-self: end; color: var(--acid); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: fixed; inset: 64px 0 auto; padding: 30px 24px; display: none; flex-direction: column; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .site-nav { display: flex; }
  .header-phone { display: none; }
  .menu-toggle { display: grid; width: 42px; height: 42px; padding: 11px; border: 1px solid currentColor; background: transparent; color: inherit; }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 3px 0; background: currentColor; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; max-width: 720px; }
  .program-card-featured { margin-top: 0; }
  .program-image { aspect-ratio: 1.55; }
  .resource-directory-head { grid-template-columns: 52px minmax(0, 1fr) 120px; }
  .resource-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-card { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); }
  .journal-card__media { min-height: 320px; }
  .training-media-grid { grid-template-rows: repeat(3, 220px); }
  .training-clip-summer, .training-clip-winter-wide, .training-clip-cabin { grid-column: 1 / 8; }
  .training-clip-class { grid-column: 8 / 13; grid-row: 1 / 3; }
  .training-clip-winter-close { grid-column: 8 / 13; grid-row: 3; }
  .video-section { grid-template-columns: 1fr; }
  .video-stage { min-height: 680px; }
  .telegram-reel { right: 48px; }
  .contacts { grid-template-columns: 1fr; }
  .map-visual { min-height: 480px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .site-header { height: 64px; padding: 0 18px; }
  .hero { min-height: 0; height: 80svh; }
  .hero-media { background-image: linear-gradient(180deg, rgba(3,9,26,.25), rgba(3,9,26,.96) 68%), var(--hero-image); background-position: 64% center; }
  .hero-grid { background-size: 46px 46px; }
  .hero-content { justify-content: flex-end; padding: 72px 20px 40px; }
  .hero h1 { max-width: 100%; font-size: clamp(28px, 7.7vw, 38px); line-height: 1.2; letter-spacing: -.02em; }
  .hero-note { max-width: 330px; font-size: 13px; }
  .hero-actions { width: 100%; }
  .button { min-width: 0; flex: 1; padding: 0 14px; }
  .hero-socials { display: none; }
  .scroll-cue { display: none; }
  .signal-strip { height: 50px; font-size: 14px; }
  .section-shell { width: calc(100% - 32px); max-width: 1360px; }
  .about { padding: 90px 0 70px; grid-template-columns: minmax(0, 1fr); }
  .section-copy, .skills-grid, .own-car { min-width: 0; }
  .section-index { margin-bottom: 18px; }
  .display-heading { font-size: clamp(28px, 8.3vw, 40px); }
  .about .display-heading, .video-copy .display-heading { font-size: clamp(27px, 7.7vw, 36px); }
  .skills-grid { grid-column: 1; grid-template-columns: 1fr; margin-top: 50px; }
  .skill-card { min-height: 210px; }
  .skill-card .skill-icon { margin: 28px 0 18px; }
  .own-car { grid-column: 1; grid-template-columns: 1fr; padding: 24px; }
  .own-car .own-car-icon { display: none; }
  .programs { padding: 85px 0; }
  .programs-head { grid-template-columns: 1fr; gap: 8px; }
  .programs-head .section-index { margin-bottom: 8px; }
  .text-link { margin-top: 24px; width: max-content; }
  .program-image { aspect-ratio: 1.1; }
  .program-body { min-height: 270px; padding: 24px; }
  .resource-directory { padding: 76px 0 82px; }
  .resource-directory-head { grid-template-columns: 40px 1fr; gap: 14px; margin-bottom: 28px; }
  .resource-directory-head::after { display: none; }
  .resource-directory-head .section-index { width: 34px; height: 34px; }
  .resource-directory-grid { grid-template-columns: 1fr; }
  .resource-directory-grid a:first-child { grid-column: auto; }
  .resource-directory-grid a { min-height: 146px; padding: 20px; }
  .resource-directory-grid a:first-child strong { font-size: 20px; }
  .journal { padding: 82px 0 90px; }
  .journal-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .journal-head__note { font-size: 13px; }
  .journal-card { grid-template-columns: 1fr; }
  .journal-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .journal-card__body { min-height: 280px; padding: 24px; }
  .journal-card__body h3 { font-size: 21px; }
  .training-media { padding: 84px 0 94px; }
  .training-media-head { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
  .training-media-head__actions { width: 100%; max-width: none; justify-content: flex-start; }
  .training-media-head__actions .button { flex: 1; min-width: 145px; }
  .training-media-head__actions .text-link { width: max-content; margin-top: 10px; text-align: left; }
  .training-media-grid { width: 100%; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 12px; scrollbar-width: none; }
  .training-media-grid::-webkit-scrollbar { display: none; }
  .training-clip { flex: 0 0 78vw; height: 430px; scroll-snap-align: center; }
  .training-clip-summer, .training-clip-winter-wide { height: 300px; align-self: center; }
  .training-clip-copy { left: 18px; right: 54px; bottom: 17px; }
  .training-clip::after { left: 18px; top: 18px; width: 38px; height: 38px; }
  .training-clip-open { padding: 18px; }
  .video-lightbox { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .video-lightbox-panel { padding: 6px; box-shadow: 8px 8px 0 var(--acid), -5px -5px 0 var(--orange); }
  .video-lightbox-player { max-height: 68dvh; }
  .video-lightbox.video-lightbox-portrait { width: calc(100% - 24px); }
  .video-lightbox-portrait .video-lightbox-player { height: 64dvh; }
  .video-lightbox-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 8px 8px; }
  .video-lightbox-footer > div { width: 100%; }
  .video-lightbox-footer button, .video-lightbox-footer a { flex: 1; text-align: center; }
  .video-lightbox-close { right: 12px; top: 12px; }
  .video-section { padding: 90px 0 100px; gap: 50px; }
  .video-copy { grid-template-columns: 1fr; }
  .video-copy .section-index { grid-row: auto; }
  .video-copy > p:not(.kicker) { grid-column: 1; }
  .video-copy-actions { grid-column: 1; width: 100%; }
  .video-copy-actions .button { flex: 1; min-width: 0; }
  .video-stage { min-height: 610px; }
  .video-frame { width: min(68%, 330px); padding: 6px; box-shadow: 12px 12px 0 var(--acid), -7px -7px 0 rgba(229,57,69,.86), 0 28px 70px rgba(0,0,0,.48); }
  .telegram-reel { right: 12px; bottom: 67px; width: 94px; border-width: 4px; box-shadow: 7px 7px 0 var(--orange), 0 18px 38px rgba(0,0,0,.44); }
  .telegram-reel > span { left: 7px; right: 5px; bottom: 7px; font-size: 6px; }
  .telegram-reel b { font-size: 6px; }
  .video-vk-link { left: 20px; right: 20px; bottom: 20px; width: max-content; max-width: calc(100% - 40px); font-size: 8px; }
  .video-telemetry-top { left: 20px; right: 20px; top: 20px; }
  .video-telemetry-side { right: 15px; }
  .video-orbit { left: -16%; top: 29%; width: 220px; }
  .reviews { padding: 44px 0 48px; }
  .reviews-head { width: calc(100% - 32px); align-items: flex-start; gap: 16px; flex-direction: column; }
  .review-track { width: calc(100% - 32px); }
  .review-card { min-height: 260px; max-height: 42vh; padding: 26px 24px; }
  .review-card p { font-size: 13px; }
  .map-visual { min-height: 380px; }
  .map-routes { right: 16px; bottom: 16px; width: calc(100% - 32px); padding: 13px; }
  .map-route-links { gap: 6px; }
  .map-route-links a { min-height: 44px; padding: 0 9px; font-size: 10px; }
  .contact-panel { padding: 80px 24px; }
  .contact-phone { font-size: 24px; }
  .contact-socials { grid-template-columns: 1fr; }
  .contact-socials a + a { padding-left: 0; border-left: 0; }
  .contact-panel .button { width: 100%; flex: none; }
  footer { padding: 36px 24px; grid-template-columns: 1fr auto; gap: 24px; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .program-card { --tilt-x: 0deg !important; --tilt-y: 0deg !important; }
}
