:root {
  --white: #ffffff;
  --black: #08090b;
  --ink: #15161a;
  --red: #d71920;
  --red-dark: #a80f15;
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, 0.36);
  --steel: #4b5563;
  --muted: #686d78;
  --line: #e3e6eb;
  --soft: #f5f6f8;
  --panel: #121318;
  --shadow: 0 28px 80px rgba(8, 9, 11, 0.16);
  --shadow-premium: 0 24px 80px rgba(8, 9, 11, 0.22), 0 1px 0 rgba(255, 255, 255, 0.58) inset;
  --shadow-hard: 0 18px 0 rgba(8, 9, 11, 0.08);
  --radius: 8px;
  --header-height: 78px;
  --scroll-progress: 0%;
  --font-body: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 249, 0.94) 46%, rgba(255, 255, 255, 0.98)),
    var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.016;
  background-image:
    linear-gradient(90deg, rgba(8, 9, 11, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(8, 9, 11, 0.45) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: multiply;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy,
.hero-visual,
.section-head > *,
.certificate-layout > *,
.contact-layout > *,
.about-grid > *,
.legal-hero-grid > *,
.legal-layout > *,
.weapon-preview > *,
.modal-card > * {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(227, 230, 235, 0.82);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--scroll-progress);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
  box-shadow: 0 0 18px rgba(215, 25, 32, 0.36);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(227, 230, 235, 0.46);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(24px) saturate(1.16);
  box-shadow: 0 12px 36px rgba(8, 9, 11, 0.06);
}

.header-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1280px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.nav-group,
.social-links,
.hero-actions,
.hero-facts,
.model-controls,
.contact-list a {
  display: flex;
  align-items: center;
}

.nav-group {
  gap: 18px;
}

.nav-right {
  justify-content: flex-end;
}

.nav-group a {
  position: relative;
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.nav-group a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-group a:hover,
.nav-group a.is-active,
.footer-links a:hover,
.contact-list a:hover {
  color: var(--red);
}

.nav-group a.is-active::after,
.nav-group a:hover::after {
  transform: scaleX(1);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 156px;
  justify-content: center;
  isolation: isolate;
}

.brand-logo,
.drawer-logo,
.hero-card-logo,
.certificate-logo {
  display: block;
  height: auto;
}

.brand-logo {
  width: 154px;
}

.brand-tracers {
  position: absolute;
  top: -5px;
  left: 86px;
  z-index: 2;
  width: 92px;
  height: 24px;
  pointer-events: none;
  overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 84%, transparent 100%);
}

.brand-tracers span {
  position: absolute;
  left: -18px;
  top: 13px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, #5f3b1f, #d3a45b 32%, #fff4c8 66%, #9a612b);
  box-shadow:
    0 0 6px rgba(255, 238, 188, 0.82),
    0 0 16px rgba(200, 169, 106, 0.38);
  transform: translate3d(0, 0, 0) rotate(-12deg) scale(0.82);
  animation: brandTracerArc 7.2s cubic-bezier(0.18, 0.82, 0.18, 1) infinite;
}

.brand-tracers span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 64px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 132, 0.18) 32%, rgba(255, 244, 207, 0.7));
  filter: blur(0.15px);
  transform: translateY(-50%);
}

.brand-tracers span:nth-child(2) {
  top: 9px;
  width: 7px;
  height: 3px;
  animation-delay: 0.18s;
}

.brand-tracers span:nth-child(2)::before {
  width: 48px;
  opacity: 0.62;
}

.brand-tracers span:nth-child(3) {
  top: 18px;
  width: 6px;
  height: 3px;
  animation-delay: 0.36s;
}

.brand-tracers span:nth-child(3)::before {
  width: 38px;
  opacity: 0.42;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 760;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% -120%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  transform: translateX(-80%) rotate(18deg);
  animation: markSweep 4.8s ease-in-out infinite;
}

.brand-name {
  color: var(--black);
  font-size: 19px;
  font-family: var(--font-display);
  font-weight: 780;
}

.social-links {
  gap: 8px;
}

.drawer-socials {
  display: flex;
  gap: 10px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}

.icon-button,
.social-links a,
.drawer-socials a,
.gallery-arrow {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
  overflow: hidden;
}

.social-links a {
  --social-color: var(--red);
  --social-soft: rgba(215, 25, 32, 0.1);
}

.drawer-socials a {
  --social-color: var(--red);
  --social-soft: rgba(215, 25, 32, 0.1);
  padding: 0;
  border-top: 1px solid var(--line);
  font-size: 0;
}

.social-links a.social-instagram,
.drawer-socials a.social-instagram {
  --social-color: #e1306c;
  --social-soft: rgba(225, 48, 108, 0.14);
}

.social-links a.social-whatsapp,
.drawer-socials a.social-whatsapp {
  --social-color: #25d366;
  --social-soft: rgba(37, 211, 102, 0.14);
}

.social-links a.social-vk,
.drawer-socials a.social-vk {
  --social-color: #0077ff;
  --social-soft: rgba(0, 119, 255, 0.14);
}

.social-links a.social-telegram,
.drawer-socials a.social-telegram {
  --social-color: #229ed9;
  --social-soft: rgba(34, 158, 217, 0.14);
}

.icon-button::before,
.social-links a::before,
.drawer-socials a::before,
.gallery-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 380ms ease, opacity 180ms ease;
}

.icon-button:hover::before,
.social-links a:hover::before,
.drawer-socials a:hover::before,
.gallery-arrow:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.icon-button svg,
.social-links svg,
.drawer-socials svg,
.gallery-arrow svg {
  width: 19px;
  height: 19px;
}

.icon-button:hover,
.social-links a:hover,
.drawer-socials a:hover,
.gallery-arrow:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.social-links a:hover,
.drawer-socials a:hover {
  border-color: var(--social-color);
  background: var(--social-soft);
  color: var(--social-color);
  box-shadow: 0 10px 22px rgba(8, 9, 11, 0.08);
}

.social-links a.social-instagram:hover,
.drawer-socials a.social-instagram:hover {
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) border-box;
  border-color: transparent;
  color: #d62976;
}

.social-whatsapp .whatsapp-bubble {
  fill: currentColor;
  stroke: none;
}

.social-whatsapp .whatsapp-phone {
  fill: var(--white);
  stroke: none;
}

.social-whatsapp:not(:hover) {
  color: #111217;
}

.social-whatsapp:not(:hover) .whatsapp-bubble {
  fill: none;
  stroke: currentColor;
}

.social-whatsapp:not(:hover) .whatsapp-phone {
  fill: currentColor;
  stroke: none;
}

.social-vk svg path {
  fill: currentColor;
  stroke: none;
}

.social-vk svg text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.9px;
}

.menu-button {
  display: none;
}

.section,
.hero-section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section {
  position: relative;
  padding: 98px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(200, 169, 106, 0.08) 50%, transparent),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(8, 9, 11, 0.025) 118px 119px);
  opacity: 0.54;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background:
    linear-gradient(110deg, rgba(200, 169, 106, 0.08), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(215, 25, 32, 0.22), transparent 28%),
    linear-gradient(180deg, #08090b, #111217);
  color: var(--white);
}

.section-band {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(200, 169, 106, 0.18), transparent 32%, rgba(215, 25, 32, 0.08)),
    repeating-linear-gradient(135deg, rgba(215, 25, 32, 0.075) 0 1px, transparent 1px 18px);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 9, 11, 0.05)),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(8, 9, 11, 0.035) 96px 97px);
}

.hero-grid {
  min-height: clamp(660px, 78svh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: center;
  padding: 58px 0 72px;
}

.hero-copy h1,
.section-head h2,
.certificate-layout h2,
.contact-layout h2,
.about-grid h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy h1 {
  text-wrap: balance;
}

.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #3e434c;
  font-size: 20px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.58) 42%, transparent 58% 100%);
  transform: translateX(-120%);
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.button:hover::before {
  transform: translateX(120%);
}

.button > * {
  position: relative;
  z-index: 1;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translate3d(var(--magnet-x, 0), calc(var(--magnet-y, 0) - 2px), 0);
}

.button-primary {
  border-color: var(--red);
  background: linear-gradient(135deg, var(--red), #b50f17 62%, #731117);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.button-primary:hover {
  border-color: var(--red-dark);
  background: linear-gradient(135deg, #ed2029, var(--red-dark));
  box-shadow: 0 20px 42px rgba(215, 25, 32, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.button-secondary {
  border-color: #cfd3da;
  background: linear-gradient(180deg, var(--white), #f5f6f8);
  color: var(--black);
  box-shadow: 0 10px 24px rgba(8, 9, 11, 0.05);
}

.button-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero-facts {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.hero-facts span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #3e434c;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(8, 9, 11, 0.045);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  perspective: 900px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 3% 8% 7% 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle at 34% 72%, rgba(215, 25, 32, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(8, 9, 11, 0.82), rgba(80, 14, 20, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-premium);
  filter: saturate(0.88) contrast(1.04);
  opacity: 0.32;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8% 2% 3% 10%;
  pointer-events: none;
  border: 1px solid rgba(200, 169, 106, 0.24);
  border-radius: var(--radius);
  transform: translate3d(calc(var(--parallax-x, 0) * 8px), calc(var(--parallax-y, 0) * 8px), 0);
}

.hero-visual > * {
  position: relative;
  z-index: 1;
}

.hero-brand-banner {
  position: absolute;
  inset: 8% 4% 12% 12%;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 106, 0.28);
  border-radius: 18px;
  background: #08090b;
  box-shadow: 0 42px 84px rgba(8, 9, 11, 0.18);
  transform: translate3d(calc(var(--parallax-x, 0) * 6px), calc(var(--parallax-y, 0) * 6px), -26px) rotate(-1.4deg);
}

.hero-brand-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 9, 11, 0.82), rgba(8, 9, 11, 0.18) 42%, rgba(201, 31, 36, 0.34)),
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.18), transparent 20%);
  pointer-events: none;
}

.hero-brand-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 48%;
  opacity: 0.32;
  transform: scale(1.1);
  filter: saturate(0.9) contrast(1.12) blur(0.2px);
}

.target-rings {
  position: relative;
  width: min(100%, 462px);
  aspect-ratio: 1;
  border: 24px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-premium);
  transform-style: preserve-3d;
  transition: transform 220ms ease;
  animation: targetBreath 5.5s ease-in-out infinite;
}

.hero-visual:hover .target-rings {
  transform: translate3d(calc(var(--parallax-x, 0) * -10px), calc(var(--parallax-y, 0) * -10px), 0);
}

.target-rings::before,
.target-rings::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 112%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 9, 11, 0.42), transparent);
  transform: translate(-50%, -50%);
}

.target-rings::after {
  width: 1px;
  height: 112%;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 11, 0.42), transparent);
}

.target-rings span {
  position: absolute;
  inset: 14%;
  border: 20px solid var(--red);
  border-radius: 50%;
}

.target-rings span:nth-child(2) {
  inset: 32%;
  border-color: var(--black);
}

.target-rings span:nth-child(3) {
  inset: 46%;
  border-color: var(--red);
  background: var(--red);
}

.hero-card {
  position: absolute;
  right: 10px;
  bottom: 52px;
  width: min(280px, 68%);
  padding: 28px;
  border-left: 6px solid var(--red);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 11, 0.9);
  color: var(--white);
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 220ms ease;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(200, 169, 106, 0.12));
  pointer-events: none;
}

.hero-card-logo {
  position: relative;
  z-index: 1;
  width: min(210px, 100%);
  margin-bottom: 18px;
}

.hero-card-logo-official {
  width: min(234px, 100%);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.hero-card strong,
.certificate-card strong,
.site-footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 760;
  line-height: 1;
}

.hero-card span,
.certificate-card span {
  display: block;
  margin-top: 10px;
  color: #d8dbe2;
  font-weight: 800;
}

.hero-card small,
.certificate-card small {
  display: block;
  margin-top: 28px;
  color: #b6bac3;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.64fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head h2,
.certificate-layout h2,
.contact-layout h2,
.about-grid h2 {
  font-size: 56px;
}

.section-head p,
.certificate-layout p,
.contact-layout p,
.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-head-dark h2,
.section-head-dark p {
  color: var(--white);
}

.section-head-dark p {
  color: #c8ccd4;
}

.program-grid,
.promo-grid,
.instructor-grid {
  display: grid;
  gap: 18px;
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-grid-expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flip-card,
.promo-card {
  perspective: 1100px;
}

.flip-card {
  display: grid;
  gap: 14px;
}

.flip-card-inner,
.promo-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: filter 260ms ease;
}

.flip-front,
.flip-back,
.promo-front,
.promo-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  visibility: visible;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 0 18px 42px rgba(8, 9, 11, 0.07), 0 1px 0 rgba(255, 255, 255, 0.44) inset;
  opacity: 1;
  transition:
    transform 520ms cubic-bezier(0.2, 0.72, 0.18, 1),
    opacity 180ms ease,
    visibility 0s linear 0s;
  will-change: transform, opacity;
}

.flip-front,
.promo-front {
  background:
    radial-gradient(circle at 78% 24%, rgba(200, 169, 106, 0.22), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(215, 25, 32, 0.35), transparent 30%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.08), rgba(8, 9, 11, 0.86)),
    linear-gradient(135deg, #22252c, #07080b);
  background-size: cover;
  background-position: center;
  color: var(--white);
  transform: rotateY(0deg) translateZ(1px);
}

.flip-back,
.promo-back {
  background:
    linear-gradient(135deg, rgba(200, 169, 106, 0.12), transparent 34%),
    linear-gradient(180deg, #08090b, #121318);
  color: var(--white);
  transform: rotateY(180deg) translateZ(1px);
  border-color: rgba(215, 25, 32, 0.45);
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s, 160ms, 180ms;
}

.flip-card.is-flipped .flip-front,
.promo-card.is-flipped .promo-front {
  opacity: 0;
  visibility: hidden;
  transform: rotateY(-180deg) translateZ(1px);
  transition-delay: 0s, 160ms, 180ms;
  pointer-events: none;
}

.flip-card.is-flipped .flip-back,
.promo-card.is-flipped .promo-back {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateZ(2px);
  transition-delay: 0s;
  pointer-events: auto;
}

.program-card-premium .flip-front,
.program-card-premium .flip-back {
  border-color: rgba(200, 169, 106, 0.58);
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 169, 106, 0.3), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(215, 25, 32, 0.34), transparent 32%),
    linear-gradient(135deg, #090a0e, #171217 72%, #3a1014);
}

.flip-front::after,
.flip-back::after,
.promo-front::after,
.promo-back::after,
.instructor-card::after,
.certificate-card::after,
.weapon-preview::after,
.map-card::after,
.video-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.28) 46%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 700ms cubic-bezier(0.2, 0.72, 0.18, 1), opacity 220ms ease;
}

.flip-card:hover .flip-front::after,
.flip-card:hover .flip-back::after,
.promo-card:hover .promo-front::after,
.promo-card:hover .promo-back::after,
.instructor-card:hover::after,
.certificate-card:hover::after,
.weapon-preview:hover::after,
.map-card:hover::after,
.video-block:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.flip-card:hover .flip-card-inner,
.promo-card:hover .promo-inner {
  filter: drop-shadow(0 24px 38px rgba(8, 9, 11, 0.16));
}

.card-number,
.promo-front span {
  color: var(--white);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.card-title,
.promo-card strong {
  display: block;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 760;
  line-height: 1.08;
}

.flip-front .card-title,
.promo-front strong {
  color: var(--white);
}

.flip-front .card-text,
.promo-front small {
  color: #eceff4;
}

.flip-front .card-meta,
.promo-front span {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(215, 25, 32, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.flip-back .card-title,
.promo-back strong {
  color: var(--white);
}

.card-text,
.promo-card small {
  color: var(--muted);
  font-size: 15px;
}

.flip-back .card-text,
.promo-back small {
  color: #d1d5dd;
}

.card-meta,
.price {
  color: var(--white);
  font-weight: 720;
}

.arsenal-layout {
  display: grid;
  gap: 38px;
}

.arsenal-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
}

.arsenal-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-button,
.weapon-list button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: var(--white);
  font-weight: 720;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tab-button:hover,
.weapon-list button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
}

.tab-button.active,
.weapon-list button.active {
  border-color: rgba(215, 25, 32, 0.92);
  background: linear-gradient(135deg, var(--red), #981016);
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.22);
}

.weapon-preview {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.76fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 28% 8%, rgba(200, 169, 106, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  overflow: hidden;
}

.weapon-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(ellipse at 50% 74%, rgba(215, 25, 32, 0.2), transparent 40%),
    linear-gradient(180deg, #202229 0%, #111319 54%, #07080b 100%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28) inset,
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  perspective: 900px;
  touch-action: none;
}

.weapon-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 169, 106, 0.16);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 28%, rgba(0, 0, 0, 0.18)),
    radial-gradient(ellipse at 50% 62%, rgba(65, 72, 86, 0.22), transparent 48%),
    linear-gradient(115deg, rgba(200, 169, 106, 0.1), transparent 34%, rgba(215, 25, 32, 0.1));
  opacity: 0.5;
}

.weapon-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 94%, rgba(0, 0, 0, 0.2), transparent 28%),
    linear-gradient(180deg, transparent 74%, rgba(255, 255, 255, 0.016) 75%, transparent 78%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 86px),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.07), transparent 20%),
    radial-gradient(circle at 78% 26%, rgba(200, 169, 106, 0.07), transparent 22%);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.weapon-stage > * {
  position: relative;
  z-index: 1;
}

.weapon-switch {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(8, 9, 11, 0.48);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-50%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
  backdrop-filter: blur(12px);
}

.weapon-switch-prev {
  left: 16px;
}

.weapon-switch-next {
  right: 16px;
}

.weapon-switch:hover {
  border-color: rgba(200, 169, 106, 0.72);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.58), rgba(200, 169, 106, 0.16)),
    rgba(8, 9, 11, 0.58);
  transform: translateY(-50%) scale(1.04);
}

.weapon-switch:active {
  transform: translateY(-50%) scale(0.98);
}

.weapon-switch[hidden] {
  display: none;
}

.weapon-switch svg {
  width: 26px;
  height: 26px;
}

.weapon-model {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 640px);
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}

.weapon-model.carbine {
  width: min(100%, 680px);
}

.weapon-model::before {
  content: "";
  position: absolute;
  inset: 82% 36% 8%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.22), transparent 76%);
  filter: blur(12px);
  transform: translateZ(-36px);
}

.weapon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(1.09) contrast(1.13) saturate(1.12) drop-shadow(0 20px 18px rgba(0, 0, 0, 0.42));
}

.weapon-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.5)) saturate(0.94) contrast(1.02);
  transition: transform 320ms cubic-bezier(0.2, 0.72, 0.18, 1), filter 320ms ease;
}

.weapon-stage:hover .weapon-photo {
  transform: scale(1.025);
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.58)) saturate(1) contrast(1.04);
}

.weapon-loader {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(8, 9, 11, 0.7);
  color: var(--white);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.weapon-model.is-3d-ready .weapon-loader {
  opacity: 0;
  pointer-events: none;
}

.weapon-model.is-3d-error .weapon-loader {
  border-color: rgba(215, 25, 32, 0.55);
  color: #ffd7d9;
}

.weapon-info {
  align-self: center;
}

.weapon-info > span,
.instructor-drawer > span,
.modal-card > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.weapon-info h3 {
  margin: 8px 0 18px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 760;
  line-height: 1;
  overflow-wrap: anywhere;
}

.weapon-info dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.weapon-info div:not(.model-controls) {
  padding: 14px;
  border-left: 4px solid var(--red);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.weapon-info dt {
  color: #aeb4bf;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.weapon-info dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 720;
}

.model-controls {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.model-controls[hidden] {
  display: none;
}

.model-controls .icon-button,
.gallery-arrow {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.weapon-list {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weapon-list button {
  padding: 0 14px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-inner {
  min-height: 260px;
}

.promo-front::before,
.promo-back::before {
  content: "";
  position: absolute;
  inset: auto 22px 22px auto;
  width: 90px;
  height: 90px;
  border: 12px solid rgba(215, 25, 32, 0.2);
  border-radius: 50%;
}

.certificate-section {
  background:
    linear-gradient(90deg, var(--black) 0 52%, var(--red) 52% 53%, var(--soft) 53% 100%);
  color: var(--white);
}

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: center;
}

.certificate-layout h2,
.certificate-layout p {
  color: var(--white);
}

.certificate-layout p {
  margin: 18px 0 28px;
  color: #d5d8de;
}

.certificate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.certificate-options .button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.certificate-card {
  position: relative;
  justify-self: end;
  width: min(100%, 570px);
  min-height: clamp(342px, 28vw, 386px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 24px);
  aspect-ratio: 1.62;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid rgba(200, 169, 106, 0.44);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 72px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 76% 22%, rgba(200, 169, 106, 0.28), transparent 26%),
    radial-gradient(circle at 16% 88%, rgba(215, 25, 32, 0.3), transparent 34%),
    linear-gradient(135deg, #07080b 0 54%, #171218 74%, #3a1014 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 36px 90px rgba(8, 9, 11, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 8px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.certificate-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 169, 106, 0.58);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}

.certificate-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.34) 45%, transparent 56% 100%),
    linear-gradient(90deg, transparent 0 78%, rgba(200, 169, 106, 0.12) 78% 79%, transparent 79% 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 700ms cubic-bezier(0.2, 0.72, 0.18, 1), opacity 220ms ease;
}

.certificate-card > * {
  position: relative;
  z-index: 1;
}

.certificate-showcase {
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.certificate-showcase:hover {
  border-color: rgba(200, 169, 106, 0.82);
  box-shadow:
    0 42px 100px rgba(8, 9, 11, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 0 0 8px rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.certificate-showcase:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.certificate-logo {
  width: min(360px, 82%);
  max-height: 128px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.certificate-card span,
.certificate-card small,
.certificate-card b {
  display: block;
}

.certificate-topline,
.certificate-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.certificate-bottom {
  min-height: 50px;
  padding-right: 102px;
}

.certificate-topline span,
.certificate-program span,
.certificate-bottom span {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-topline small,
.certificate-bottom small {
  margin: 0;
  color: rgba(213, 216, 222, 0.74);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.certificate-card strong {
  color: var(--white);
  margin: 0;
  font-size: clamp(58px, 5.4vw, 78px);
  letter-spacing: 0;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.certificate-program {
  display: grid;
  gap: 8px;
  width: min(390px, 100%);
  max-width: 100%;
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--red);
  background:
    linear-gradient(90deg, rgba(200, 169, 106, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.certificate-program b {
  color: var(--white);
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 780;
  line-height: 1.05;
}

.certificate-program small {
  max-width: 320px;
  margin: 0;
  color: rgba(213, 216, 222, 0.76);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.certificate-seal {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(200, 169, 106, 0.7);
  border-radius: 50%;
  color: rgba(200, 169, 106, 0.72);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 780;
  box-shadow: 0 0 0 8px rgba(200, 169, 106, 0.05) inset;
}

.certificate-file-card {
  padding: 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 169, 106, 0.18), transparent 28%),
    linear-gradient(135deg, #07080b, #171114 70%, #2b0d10);
}

.certificate-file-card::before {
  inset: 12px;
}

.certificate-file-card object {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 1px solid rgba(200, 169, 106, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.certificate-file-card object a {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--red);
  font-weight: 800;
}

.certificate-file-caption {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}

.certificate-file-caption span {
  color: rgba(213, 216, 222, 0.76);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-file-caption strong {
  grid-column: 1;
  color: var(--white);
  font-size: 24px;
  line-height: 1.05;
}

.certificate-file-caption .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.instructor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instructor-card {
  position: relative;
  min-height: 320px;
  padding: 206px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(8, 9, 11, 0.06), 0 1px 0 rgba(255, 255, 255, 0.64) inset;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
  overflow: hidden;
}

.instructor-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 172px;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.04), rgba(8, 9, 11, 0.72)),
    linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(8, 9, 11, 0.28));
  background-size: cover;
  background-position: center;
  transition: transform 220ms ease;
  z-index: 1;
}

.instructor-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
}

.instructor-card:hover::before {
  transform: scale(1.035);
}

.instructor-card img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 172px;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 220ms ease;
}

.instructor-card:hover img {
  transform: scale(1.035);
}

.instructor-card span {
  position: absolute;
  top: 122px;
  left: 24px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 0;
  border-left: 6px solid var(--red);
  background: var(--black);
  color: var(--white);
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 760;
}

.instructor-card strong {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--black);
  font-size: 24px;
  line-height: 1.14;
}

.instructor-card small {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-weight: 800;
}

.instructor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(430px, 100vw);
  height: 100svh;
  padding: 34px;
  background: var(--white);
  box-shadow: -28px 0 70px rgba(8, 9, 11, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.instructor-drawer.is-open {
  transform: translateX(0);
}

.instructor-drawer > button {
  margin-left: auto;
}

.instructor-drawer h3 {
  margin: 20px 0 8px;
  color: var(--black);
  font-size: 34px;
  line-height: 1.06;
}

.instructor-drawer p {
  color: var(--muted);
}

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 18px;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
}

.gallery-track {
  position: relative;
  height: 390px;
  overflow: hidden;
  perspective: 1100px;
  touch-action: pan-y;
}

.gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 42vw);
  height: 292px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  text-align: left;
  opacity: var(--gallery-opacity, 0);
  pointer-events: var(--gallery-pointer, none);
  cursor: pointer;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transform: var(--gallery-transform, translate3d(-50%, -50%, 0) scale(0.72));
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.18, 0.82, 0.2, 1), border-color 180ms ease, box-shadow 180ms ease, opacity 280ms ease;
  overflow: hidden;
}

.gallery-item.active {
  border-color: rgba(215, 25, 32, 0.74);
  box-shadow: 0 36px 92px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(215, 25, 32, 0.24);
}

.gallery-item:hover {
  border-color: rgba(200, 169, 106, 0.74);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(8, 9, 11, 0.5)),
    linear-gradient(135deg, rgba(215, 25, 32, 0.08), transparent 44%);
}

.gallery-item span,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.gallery-item img {
  object-fit: cover;
  object-position: center;
}

.gallery-item img[src*="gallery-01"],
.gallery-item img[src*="gallery-02"],
.gallery-item img[src*="gallery-03"],
.gallery-item img[src*="gallery-04"],
.gallery-item img[src*="gallery-05"],
.gallery-item img[src*="gallery-06"] {
  object-position: center 42%;
}

.gallery-item img[src*="gallery-07"],
.gallery-item img[src*="gallery-08"],
.gallery-item img[src*="topgun-club-poster"] {
  object-position: center center;
}

.gallery-item span {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.04), rgba(8, 9, 11, 0.52)),
    linear-gradient(135deg, rgba(215, 25, 32, 0.82), rgba(21, 21, 25, 0.88));
  background-size: cover;
  background-position: center;
}

.gallery-item strong {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.gallery-dots button.active {
  background: linear-gradient(135deg, var(--red), var(--gold));
  box-shadow: 0 0 18px rgba(215, 25, 32, 0.42);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.86fr);
  gap: 52px;
  align-items: center;
}

.contact-layout p {
  margin: 18px 0 24px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.contact-list a {
  gap: 12px;
  font-weight: 720;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.map-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef0f4;
  box-shadow: var(--shadow-premium);
}

.map-card strong,
.map-card .button,
.map-actions,
.map-pin {
  position: relative;
}

.map-card strong {
  color: var(--black);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 760;
}

.map-card .button {
  align-self: flex-start;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 2;
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-live {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  filter: saturate(0.82) contrast(1.04);
  transition: opacity 240ms ease;
}

.map-card.is-map-ready .map-live {
  opacity: 1;
}

.map-canvas canvas {
  filter: saturate(0.92) contrast(1.04);
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(75, 85, 99, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(75, 85, 99, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.54));
}

.map-fallback {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 250px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #3e434c;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.map-card.is-map-ready {
  background: #101216;
}

.map-card.is-map-ready .map-grid,
.map-card.is-map-ready .map-fallback {
  opacity: 0;
  pointer-events: none;
}

.map-grid::before {
  content: "";
  position: absolute;
  left: 52%;
  top: 42%;
  width: 22px;
  height: 22px;
  border: 8px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(8, 9, 11, 0.22);
}

.map-pin {
  align-self: flex-end;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  font-weight: 720;
}

.about-section {
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 0.8fr);
  gap: 52px;
  align-items: center;
}

.video-block {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 9, 11, 0.64), rgba(215, 25, 32, 0.48)),
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.2), transparent 22%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, rgba(8, 9, 11, 0.78), rgba(215, 25, 32, 0.76));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-premium);
  cursor: pointer;
  overflow: hidden;
}

.video-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-block::after {
  background:
    linear-gradient(135deg, rgba(8, 9, 11, 0.42), rgba(215, 25, 32, 0.28)),
    linear-gradient(180deg, transparent, rgba(8, 9, 11, 0.28));
}

.video-block::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: calc(var(--radius) - 5px);
}

.video-block span {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 72px;
  height: 72px;
  margin: auto;
  clip-path: polygon(24% 16%, 24% 84%, 84% 50%);
  background: var(--white);
}

.review-row {
  display: flex;
  gap: 12px;
  margin: 26px 0;
}

.review-row div {
  min-width: 132px;
  padding: 16px;
  border-left: 4px solid var(--red);
  background: var(--white);
}

.review-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.review-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

details {
  padding: 16px 0;
  border-top: 1px solid #d8dce3;
}

details:last-child {
  border-bottom: 1px solid #d8dce3;
}

summary {
  cursor: pointer;
  font-weight: 720;
}

details p {
  margin: 10px 0 0;
}

.site-footer {
  padding: 36px 0;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.site-footer p {
  margin: 6px 0 0;
  color: #c2c6ce;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: #d8dbe2;
}

.legal-page {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.96)),
    var(--white);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(227, 230, 235, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.legal-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.legal-nav-links a {
  color: var(--black);
}

.legal-nav-links a[aria-current="page"],
.legal-nav-links a:hover {
  color: var(--red);
}

.document-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 0%, rgba(215, 25, 32, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 247, 249, 0.96)),
    var(--white);
  color: var(--ink);
}

.document-article {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 86px;
}

.document-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-article h1 {
  margin: 0 0 24px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 860;
  line-height: 0.94;
}

.document-lead {
  max-width: 760px;
  margin: 0 0 34px;
  color: var(--steel);
  font-size: 20px;
  line-height: 1.55;
}

.document-article section {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(227, 230, 235, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(215, 25, 32, 0.05), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 54px rgba(8, 9, 11, 0.07);
}

.document-article h2 {
  margin: 0 0 12px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.14;
}

.document-article p,
.document-article li {
  color: var(--steel);
  font-size: 17px;
  line-height: 1.66;
}

.document-article a {
  color: var(--red);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(215, 25, 32, 0.32);
  text-underline-offset: 3px;
}

.document-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.document-facts div {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(227, 230, 235, 0.86);
}

.document-facts div:first-child {
  border-top: 0;
}

.document-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.document-facts dd {
  margin: 0;
  color: var(--black);
  font-weight: 650;
}

.document-updated {
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

.legal-hero {
  padding: 96px 0 82px;
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.56fr);
  gap: 56px;
  align-items: center;
}

.legal-kicker,
.legal-card-head span,
.document-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 68px);
  font-weight: 760;
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: balance;
}

.legal-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--steel);
  font-size: 18px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.legal-actions .button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.legal-status-card {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(215, 25, 32, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 8%, rgba(215, 25, 32, 0.18), transparent 28%),
    linear-gradient(135deg, #111217, #1b1114);
  color: var(--white);
  box-shadow: var(--shadow-premium);
}

.legal-status-card strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 760;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.legal-status-card p,
.legal-status-card small {
  min-width: 0;
  margin: 0;
  color: #d5d8de;
  overflow-wrap: anywhere;
}

.legal-status-card code {
  min-width: 0;
  color: var(--white);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(8, 9, 11, 0.06);
}

.legal-toc a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 720;
}

.legal-toc a:hover {
  background: var(--soft);
  color: var(--red);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card {
  scroll-margin-top: calc(var(--header-height) + 18px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(8, 9, 11, 0.07);
}

.legal-card-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.legal-card h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 760;
  line-height: 1.08;
}

.legal-card h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 760;
}

.legal-card p {
  color: var(--steel);
}

.legal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.legal-facts div,
.legal-split > div,
.legal-empty-grid > div,
.program-legal-list > div {
  padding: 16px;
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, #fafbfc, #f3f5f8);
}

.legal-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.legal-facts dd {
  margin: 5px 0 0;
  color: var(--black);
  font-weight: 720;
}

.legal-facts a,
.program-legal-list a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.program-file-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(215, 25, 32, 0.1);
  color: var(--red);
  font-size: 13px;
  font-weight: 720;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.document-card {
  display: grid;
  align-content: space-between;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 14%, rgba(200, 169, 106, 0.16), transparent 28%),
    linear-gradient(135deg, #111217, #08090b);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(8, 9, 11, 0.12);
}

.document-card strong {
  display: block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.12;
}

.document-card small {
  margin-top: 12px;
  color: #bfc4cc;
}

.document-card.is-pending {
  opacity: 0.92;
}

.legal-note {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(215, 25, 32, 0.22);
  border-radius: var(--radius);
  background: #fff8f8;
}

.program-legal-list,
.legal-split,
.legal-empty-grid {
  display: grid;
  gap: 14px;
}

.legal-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-empty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-empty-grid strong {
  display: block;
  color: var(--black);
  font-weight: 720;
}

.legal-empty-grid span {
  display: block;
  margin-top: 8px;
  color: var(--steel);
}

.price-table {
  display: grid;
  gap: 10px;
}

.price-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: var(--soft);
}

.price-table strong {
  color: var(--black);
}

.booking-modal,
.gallery-modal,
.certificate-modal {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-modal {
  width: min(760px, calc(100% - 28px));
}

.certificate-modal {
  width: min(980px, calc(100% - 28px));
}

.booking-modal::backdrop,
.gallery-modal::backdrop,
.certificate-modal::backdrop {
  background: rgba(8, 9, 11, 0.64);
}

.modal-card,
.gallery-modal-card,
.certificate-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 30px;
  background: var(--white);
}

.modal-card h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.modal-card label[hidden] {
  display: none;
}

.modal-card input,
.modal-card textarea,
.modal-card select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd3da;
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
}

.modal-card input:focus,
.modal-card textarea:focus,
.modal-card select:focus {
  outline: 2px solid rgba(215, 25, 32, 0.24);
  border-color: var(--red);
}

.agreement {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.agreement span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.agreement a {
  color: var(--red);
  font-weight: 820;
  text-decoration: underline;
  text-decoration-color: rgba(215, 25, 32, 0.36);
  text-underline-offset: 3px;
}

.agreement input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 720;
}

.form-note a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(200, 169, 106, 0.7);
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 130;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 8%, rgba(200, 169, 106, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(8, 9, 11, 0.96), rgba(18, 19, 24, 0.96));
  color: var(--white);
  box-shadow: 0 28px 80px rgba(8, 9, 11, 0.32);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: #d8dbe2;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--gold);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gallery-modal-media {
  min-height: 340px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.8), rgba(8, 9, 11, 0.86)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 18px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.gallery-modal-media video {
  display: block;
  width: 100%;
  min-height: 340px;
  background: var(--black);
  object-fit: contain;
}

.gallery-modal-card h3 {
  margin: 0;
  font-size: 30px;
}

.gallery-modal-card p {
  margin: 0;
  color: var(--muted);
}

.certificate-modal-card {
  gap: 18px;
  background:
    radial-gradient(circle at 78% 16%, rgba(200, 169, 106, 0.12), transparent 28%),
    var(--white);
}

.certificate-modal-card > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-modal-card h3 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.certificate-modal-card iframe {
  width: 100%;
  min-height: min(62vh, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5f7;
}

.certificate-modal-frame {
  display: block;
  min-height: min(68vh, 720px);
  box-shadow:
    0 24px 70px rgba(8, 9, 11, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.certificate-modal-preview {
  position: relative;
  min-height: 420px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(209, 176, 106, 0.66);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 20%, rgba(209, 176, 106, 0.28), transparent 25%),
    radial-gradient(circle at 18% 86%, rgba(201, 31, 36, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 72px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, #050608 0 58%, #151218 78%, #351014 100%);
  color: var(--white);
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(8, 9, 11, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.certificate-modal-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(209, 176, 106, 0.62);
  pointer-events: none;
}

.certificate-modal-preview span,
.certificate-modal-preview img,
.certificate-modal-preview strong,
.certificate-modal-preview small {
  position: relative;
  z-index: 1;
}

.certificate-modal-preview span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-modal-preview img {
  width: min(360px, 74%);
  margin-top: 20px;
}

.certificate-modal-preview strong {
  max-width: 13ch;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 0.98;
}

.certificate-modal-preview small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.certificate-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  bottom: 0;
  left: auto;
  z-index: 90;
  width: min(340px, 88vw);
  padding: 22px;
  background: var(--white);
  box-shadow: -28px 0 70px rgba(8, 9, 11, 0.18);
  transition: none;
}

.mobile-drawer.is-open {
  right: 0 !important;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.drawer-logo {
  width: 150px;
}

.mobile-drawer a {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 720;
}

.mobile-drawer .drawer-socials a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  font-size: 0;
}

.mobile-drawer .button {
  width: 100%;
  margin-top: 22px;
}

.page-shade {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 9, 11, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.page-shade.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes markSweep {
  0%,
  58% {
    transform: translateX(-80%) rotate(18deg);
  }

  72%,
  100% {
    transform: translateX(80%) rotate(18deg);
  }
}

@keyframes brandTracerArc {
  0%,
  61%,
  100% {
    opacity: 0;
    transform: translate3d(-20px, 6px, 0) rotate(-12deg) scale(0.62);
  }

  65% {
    opacity: 0.9;
    transform: translate3d(14px, -2px, 0) rotate(-11deg) scale(0.9);
  }

  74% {
    opacity: 0.82;
    transform: translate3d(84px, -7px, 0) rotate(-8deg) scale(1);
  }

  82% {
    opacity: 0;
    transform: translate3d(112px, -8px, 0) rotate(-7deg) scale(0.74);
  }
}

@keyframes targetBreath {
  0%,
  100% {
    filter: saturate(1) contrast(1);
  }

  50% {
    filter: saturate(1.06) contrast(1.04);
  }
}

@media (max-width: 1120px) {
  .header-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-group,
  .social-links {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .brand-tracers {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    justify-self: end;
  }

  .hero-grid,
  .contact-layout,
  .about-grid,
  .legal-hero-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 720px;
    font-size: 58px;
    line-height: 1.02;
  }

  .hero-visual {
    min-height: 430px;
  }

  .target-rings {
    width: min(80vw, 430px);
  }

  .section-head h2,
  .certificate-layout h2,
  .contact-layout h2,
  .about-grid h2 {
    font-size: 46px;
    line-height: 1.08;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arsenal-panel {
    grid-template-columns: 1fr;
  }

  .arsenal-tabs {
    flex-direction: row;
  }

  .weapon-list {
    grid-column: 1;
  }

  .certificate-section {
    background: var(--black);
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-grid,
  .legal-empty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-nav {
    width: min(calc(100% - 28px), 1180px);
  }

  .header-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-button {
    position: fixed;
    top: 8px;
    right: max(14px, calc(100vw - 362px));
    z-index: 80;
    display: inline-grid !important;
    justify-self: end;
    width: 52px;
    height: 52px;
    border-color: rgba(8, 9, 11, 0.18) !important;
    background: var(--white) !important;
    color: var(--black) !important;
    box-shadow: 0 10px 24px rgba(8, 9, 11, 0.08);
  }

  .site-header {
    position: sticky;
  }

  .section,
  .hero-section {
    scroll-margin-top: 20px;
  }

  .section {
    padding: 66px 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 60px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(30px, 8.2vw, 34px);
    line-height: 1.03;
    overflow-wrap: break-word;
    text-wrap: normal;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: min(100%, 300px);
  }

  .hero-facts span {
    display: grid;
    min-height: 40px;
    place-items: center;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-copy p,
  .section-head p,
  .certificate-layout p,
  .contact-layout p,
  .about-grid p {
    font-size: 16px;
  }

  .hero-copy p {
    max-width: 34ch;
    margin-inline: auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: min(100%, 300px);
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
  }

  .hero-visual {
    min-height: 330px;
    overflow: hidden;
  }

  .target-rings {
    width: min(72vw, 286px);
    border-width: 18px;
  }

  .target-rings span {
    border-width: 16px;
  }

  .hero-card {
    right: clamp(8px, 3vw, 18px);
    bottom: 20px;
    width: min(196px, 52vw);
    padding: 16px;
  }

  .hero-card-logo {
    width: min(160px, 100%);
    margin-bottom: 12px;
  }

  .hero-card span {
    font-size: 13px;
  }

  .section-head h2,
  .certificate-layout h2,
  .contact-layout h2,
  .about-grid h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .section-head,
  .certificate-layout,
  .weapon-preview,
  .footer-grid,
  .legal-facts,
  .legal-split,
  .document-grid,
  .legal-empty-grid {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    min-height: auto;
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .legal-nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .legal-hero {
    padding: 58px 0 56px;
  }

  .legal-page .container {
    width: calc(100% - 48px);
    max-width: calc(100% - 48px);
  }

  .legal-hero-copy,
  .legal-status-card,
  .legal-card,
  .legal-toc {
    width: 100%;
    max-width: 100%;
  }

  .legal-hero h1 {
    max-width: 9.8ch;
    font-size: clamp(32px, 9.6vw, 38px);
    line-height: 1.06;
    text-wrap: normal;
  }

  .legal-hero p {
    font-size: 16px;
    max-width: 30ch;
  }

  .legal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 14px;
  }

  .legal-status-card,
  .legal-card {
    width: 100%;
    max-width: 100%;
    padding: 22px;
    overflow: hidden;
  }

  .legal-status-card strong {
    font-size: 24px;
    max-width: 14ch;
  }

  .legal-status-card p {
    max-width: 28ch;
  }

  .legal-card h2,
  .legal-card h3,
  .legal-card p,
  .legal-empty-grid span,
  .document-card strong,
  .document-card small {
    overflow-wrap: anywhere;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .document-article {
    width: calc(100vw - 32px);
    padding: 82px 0 56px;
    overflow: hidden;
  }

  .document-article h1 {
    font-size: clamp(32px, 8.5vw, 38px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .document-article section {
    padding: 20px;
    overflow: hidden;
  }

  .document-facts div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .document-facts dd,
  .document-article p {
    overflow-wrap: anywhere;
  }

  .program-grid,
  .program-grid-expanded,
  .promo-grid,
  .instructor-grid {
    grid-template-columns: 1fr;
  }

  .flip-card-inner,
  .promo-inner {
    min-height: 240px;
  }

  .arsenal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .weapon-stage {
    min-height: 260px;
  }

  .weapon-info h3 {
    font-size: 38px;
  }

  .weapon-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .weapon-list button {
    min-height: 44px;
    padding: 0 12px;
  }

  .weapon-model {
    width: min(100%, 360px);
    height: 220px;
  }

  .weapon-switch {
    width: 38px;
    height: 48px;
  }

  .weapon-switch-prev {
    left: 10px;
  }

  .weapon-switch-next {
    right: 10px;
  }

  .certificate-card strong {
    font-size: 48px;
  }

  .certificate-logo {
    width: min(300px, 86%);
  }

  .certificate-card {
    min-height: 320px;
    width: 100%;
    justify-self: stretch;
    aspect-ratio: auto;
    padding: 26px;
  }

  .certificate-options {
    grid-template-columns: 1fr;
  }

  .certificate-topline,
  .certificate-bottom {
    display: grid;
    gap: 6px;
  }

  .certificate-topline small,
  .certificate-bottom small {
    text-align: left;
  }

  .certificate-program {
    width: 100%;
    gap: 6px;
  }

  .certificate-program b {
    font-size: 26px;
  }

  .certificate-program small {
    max-width: none;
  }

  .certificate-seal {
    right: 24px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .certificate-bottom {
    min-height: auto;
    padding-right: 72px;
  }

  .gallery-shell {
    width: min(100%, 430px);
    margin-inline: auto;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    min-height: 330px;
  }

  .gallery-track {
    height: 306px;
  }

  .gallery-item {
    width: min(280px, 66vw);
    height: 238px;
    min-height: 0;
  }

  .gallery-item span,
  .gallery-item img {
    height: 100%;
    min-height: 0;
  }

  .gallery-item strong {
    display: none;
  }

  .contact-layout,
  .about-grid {
    gap: 32px;
  }

  .map-card {
    min-height: 380px;
    padding: 22px;
    justify-content: flex-start;
    gap: 22px;
  }

  .map-card strong {
    font-size: 42px;
  }

  .map-fallback {
    left: 22px;
    right: 22px;
    bottom: 154px;
    max-width: none;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.3;
  }

  .map-actions {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: auto;
    padding: 8px;
    border: 1px solid rgba(8, 9, 11, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 42px rgba(8, 9, 11, 0.1);
    backdrop-filter: blur(12px);
  }

  .map-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    box-shadow: none;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-row {
    flex-direction: column;
  }

  .gallery-modal-media {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .legal-page .container {
    width: 342px;
    max-width: calc(100% - 48px);
  }

  .document-article {
    width: calc(100% - 32px);
  }
}

@media (max-width: 760px) {
  .certificate-file-card {
    min-height: 360px;
    padding: 16px;
  }

  .certificate-file-card object {
    min-height: 230px;
  }

  .certificate-file-caption {
    grid-template-columns: 1fr;
  }

  .certificate-file-caption .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .gallery-shell {
    width: 100%;
    min-height: 318px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    overflow: hidden;
  }

  .gallery-shell > .gallery-arrow {
    display: inline-grid;
    width: 38px;
    height: 44px;
    align-self: center;
  }

  .gallery-track {
    width: min(100%, 310px);
    height: 292px;
    min-height: 0;
    margin-inline: auto;
    overflow: hidden;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(238px, 62vw);
    height: 234px;
    min-height: 0;
    grid-column: auto;
    transform: var(--gallery-transform, translate3d(-50%, -50%, 0) scale(0.72));
    opacity: var(--gallery-opacity, 0);
    pointer-events: var(--gallery-pointer, none);
  }

  .gallery-item span,
  .gallery-item img {
    height: 100%;
    min-height: 0;
  }

  .gallery-item:not(.active) strong {
    display: none;
  }

  .certificate-modal-card iframe {
    min-height: 56vh;
  }

  .certificate-modal-preview {
    min-height: 360px;
  }

  .certificate-modal-preview strong {
    max-width: 12ch;
    font-size: 32px;
  }

  .certificate-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .certificate-modal-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-tracers,
  .brand-tracers span,
  .brand-mark::after {
    opacity: 0 !important;
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Premium correction pass */
:root {
  --font-body: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Inter", Arial, sans-serif;
  --red: #c91f24;
  --red-dark: #8f1116;
  --gold: #d1b06a;
  --soft: #f7f8fa;
  --line: #dfe3ea;
  --shadow-premium: 0 28px 86px rgba(8, 9, 11, 0.18), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.94) 48%, rgba(255, 255, 255, 0.99)),
    var(--white);
  letter-spacing: 0;
}

.container {
  width: min(1220px, calc(100% - 48px));
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.68);
}

.header-nav {
  width: min(1360px, calc(100% - 44px));
  gap: 20px;
}

.brand {
  width: clamp(148px, 12vw, 184px);
  min-height: 50px;
}

.brand-logo {
  width: 100%;
  max-height: 46px;
  object-fit: contain;
}

.drawer-logo {
  width: 152px;
}

.hero-card-logo,
.certificate-logo {
  object-fit: contain;
}

.brand-tracers {
  left: 116px;
  width: 88px;
  opacity: 0.72;
}

.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 78% 34%, rgba(201, 31, 36, 0.08), transparent 28%),
    linear-gradient(180deg, #fff, #f8f9fb 82%);
}

.hero-grid {
  min-height: 650px;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  gap: clamp(48px, 6vw, 92px);
}

.hero-copy h1 {
  max-width: 11.4ch;
  font-size: clamp(58px, 5.2vw, 86px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  color: #343945;
  font-size: 20px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-facts {
  margin-top: 30px;
  gap: 10px;
}

.hero-facts span {
  min-height: 42px;
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(8, 9, 11, 0.06);
}

.hero-visual {
  min-height: 520px;
  overflow: visible;
}

.target-rings {
  filter: drop-shadow(0 36px 46px rgba(8, 9, 11, 0.18));
}

.hero-card {
  right: clamp(10px, 3vw, 42px);
  bottom: clamp(42px, 6vw, 78px);
  width: clamp(282px, 22vw, 326px);
  padding: clamp(22px, 2vw, 30px);
  border-left-width: 5px;
  background:
    radial-gradient(circle at 80% 18%, rgba(209, 176, 106, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(8, 9, 11, 0.92), rgba(18, 20, 21, 0.88));
  box-shadow: 0 36px 72px rgba(8, 9, 11, 0.26);
}

.program-grid-expanded {
  gap: 20px;
}

.flip-card-inner,
.promo-inner {
  min-height: 294px;
}

.flip-front,
.flip-back,
.promo-front,
.promo-back {
  border-color: rgba(8, 9, 11, 0.08);
  box-shadow: 0 24px 64px rgba(8, 9, 11, 0.1), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.flip-card .button,
.promo-card .button {
  min-height: 46px;
}

.certificate-section {
  position: relative;
  background:
    radial-gradient(circle at 70% 22%, rgba(209, 176, 106, 0.16), transparent 26%),
    linear-gradient(90deg, #050608 0 54%, #c91f24 54% 55.5%, #f6f7f9 55.5% 100%);
}

.certificate-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

.certificate-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.82fr);
  gap: clamp(48px, 6vw, 92px);
}

.certificate-layout p {
  max-width: 640px;
  font-size: 18px;
}

.certificate-options {
  max-width: 560px;
  gap: 14px;
}

.certificate-options .button {
  min-height: 54px;
}

.certificate-card {
  width: min(100%, 610px);
  min-height: 382px;
  padding: clamp(28px, 3vw, 42px);
  border-color: rgba(209, 176, 106, 0.64);
  background:
    radial-gradient(circle at 82% 20%, rgba(209, 176, 106, 0.28), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(201, 31, 36, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 68px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 54px),
    linear-gradient(135deg, #06070a 0 56%, #151218 76%, #351014 100%);
  box-shadow:
    0 44px 96px rgba(8, 9, 11, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 0 10px rgba(255, 255, 255, 0.08);
}

.certificate-card::before {
  inset: 20px;
  border-color: rgba(209, 176, 106, 0.68);
}

.certificate-logo {
  width: min(386px, 82%);
  max-height: 118px;
}

.certificate-program {
  width: min(430px, calc(100% - 88px));
  border-left-color: var(--red);
  background:
    linear-gradient(90deg, rgba(201, 31, 36, 0.18), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.certificate-program b {
  max-width: 18ch;
  font-size: clamp(23px, 1.9vw, 30px);
  line-height: 1.08;
}

.gallery-shell {
  min-height: 440px;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
}

.gallery-track {
  height: 400px;
  overflow: hidden;
}

.gallery-item {
  width: min(454px, 38vw);
  height: 306px;
  border-color: rgba(255, 255, 255, 0.12);
}

.gallery-item.active {
  border-color: rgba(209, 176, 106, 0.78);
  box-shadow:
    0 42px 96px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(201, 31, 36, 0.28);
}

.gallery-item::after {
  background: linear-gradient(180deg, transparent 64%, rgba(8, 9, 11, 0.58));
}

.contact-layout {
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 0.96fr);
}

.map-card {
  min-height: 420px;
  padding: 34px;
  border-color: rgba(8, 9, 11, 0.08);
  background:
    radial-gradient(circle at 54% 48%, rgba(201, 31, 36, 0.14), transparent 13%),
    linear-gradient(135deg, #f4f6fa, #e9edf4);
}

.map-card::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 47%;
  z-index: 0;
  width: 26px;
  height: 26px;
  border: 8px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 16px 34px rgba(8, 9, 11, 0.22);
  transform: translate(-50%, -50%);
  opacity: 0.72;
  display: none;
}

.map-live {
  display: none;
}

.map-card.is-static-map .map-grid,
.map-card.is-static-map .map-fallback {
  opacity: 1;
  pointer-events: auto;
}

.map-card strong {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
}

.map-pin {
  top: 34px;
  right: 34px;
  z-index: 3;
}

.map-fallback {
  left: 34px;
  right: 34px;
  bottom: 118px;
  max-width: 370px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.86);
  z-index: 2;
}

.map-fallback span {
  color: var(--red);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-fallback strong {
  color: var(--black);
  font-size: 16px;
  line-height: 1.25;
}

.map-fallback small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.map-actions {
  width: min(100%, 540px);
  padding: 8px;
  border: 1px solid rgba(8, 9, 11, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  z-index: 2;
}

.map-actions .button {
  min-height: 48px;
}

.about-section {
  background:
    linear-gradient(90deg, #050608 0 51%, rgba(201, 31, 36, 0.9) 51% 52%, #f6f7f9 52% 100%);
}

.agreement span {
  font-size: 12px;
  line-height: 1.35;
}

.cookie-banner {
  max-width: 940px;
  padding: 14px 16px;
  border-color: rgba(209, 176, 106, 0.28);
}

.cookie-banner p {
  font-size: 13px;
}

.cookie-actions .button {
  min-height: 42px;
  padding-inline: 18px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .certificate-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .certificate-section,
  .about-section {
    background:
      linear-gradient(180deg, #050608 0 58%, #c91f24 58% 59%, #f6f7f9 59% 100%);
  }

  .certificate-card {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(430px, calc(100% - 28px));
  }

  .header-nav {
    width: calc(100% - 24px);
  }

  .brand {
    width: 142px;
  }

  .brand-logo {
    max-height: 42px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    gap: 28px;
    padding: 42px 0 54px;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 10.8ch;
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-copy p {
    max-width: 31ch;
    margin-inline: 0;
    font-size: 16px;
  }

  .hero-actions,
  .hero-facts {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 312px;
    overflow: visible;
  }

  .target-rings {
    width: min(74vw, 286px);
  }

  .hero-card {
    width: min(210px, 58vw);
    right: 0;
    bottom: 10px;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    gap: 12px;
  }

  .flip-card-inner,
  .promo-inner {
    min-height: 236px;
  }

  .certificate-card {
    min-height: 344px;
    padding: 28px;
  }

  .certificate-program {
    width: 100%;
    padding-right: 70px;
  }

  .certificate-program b {
    max-width: 12ch;
    font-size: 24px;
  }

  .certificate-logo {
    width: min(286px, 88%);
  }

  .gallery-shell {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 304px;
  }

  .gallery-track {
    width: min(100%, 260px);
    height: 276px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9) {
    width: min(228px, 58vw);
    height: 226px;
  }

  .map-card {
    min-height: 386px;
    padding: 22px;
  }

  .map-pin {
    top: 22px;
    right: 22px;
  }

  .map-card::before {
    top: 42%;
    left: 66%;
    opacity: 0.36;
  }

  .map-fallback {
    left: 22px;
    right: 22px;
    bottom: 128px;
    max-width: none;
  }

  .map-actions {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: auto;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* UI QA pass: mobile containment and cleaner first screen */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

.section,
.hero-section,
.site-footer {
  overflow-x: clip;
}

@media (min-width: 761px) {
  .certificate-section {
    overflow: hidden;
  }

  .certificate-card {
    width: min(100%, 570px);
    min-height: 356px;
    justify-self: center;
  }

  .certificate-logo {
    width: min(330px, 78%);
  }

  .certificate-program b {
    max-width: 17ch;
  }

  .gallery-item img {
    filter: saturate(0.98) contrast(1.05);
  }

  .gallery-item.active img {
    filter: saturate(1.05) contrast(1.08) brightness(1.03);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-nav,
  .section > .container {
    width: min(calc(100% - 64px), 390px);
    max-width: calc(100% - 64px);
    margin-inline: auto;
  }

  .header-nav {
    min-width: 0;
  }

  .brand {
    width: min(152px, calc(100vw - 108px));
    min-width: 0;
  }

  .menu-button {
    right: 24px;
  }

  .hero-grid {
    width: 100%;
    gap: 30px;
    padding: 44px 0 56px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 10.6ch;
    font-size: clamp(38px, 10.6vw, 44px);
    line-height: 1.1;
  }

  .hero-copy p {
    max-width: 32ch;
    margin-inline: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions,
  .hero-facts {
    width: min(100%, 304px);
    max-width: 304px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button,
  .hero-facts span {
    width: 100%;
    min-width: 0;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .hero-facts span {
    padding-inline: 10px;
    font-size: 12px;
    line-height: 1.15;
  }

  .hero-visual {
    width: min(100%, 312px);
    max-width: 312px;
    margin-inline: auto;
    min-height: 318px;
    overflow: hidden;
  }

  .hero-visual::before {
    inset: 5% 0 7%;
  }

  .hero-visual::after {
    inset: 9% 0 5%;
  }

  .hero-brand-banner {
    inset: 3% 0 16% 2%;
    border-radius: 14px;
    transform: translate3d(calc(var(--parallax-x, 0) * 4px), calc(var(--parallax-y, 0) * 4px), -20px) rotate(-1deg);
  }

  .hero-brand-banner img {
    object-position: 50% 44%;
  }

  .target-rings {
    width: min(74vw, 274px);
    border-width: 18px;
    transform: translateX(-18px);
  }

  .target-rings span {
    border-width: 15px;
  }

  .hero-card {
    right: 22px;
    bottom: 20px;
    width: min(174px, 50vw);
    max-width: calc(100% - 48px);
    padding: 13px;
  }

  .hero-card-logo {
    width: min(142px, 100%);
    margin-bottom: 9px;
  }

  .hero-card-logo-official {
    max-height: 50px;
  }

  .hero-card span {
    font-size: 12px;
    line-height: 1.28;
  }

  .hero-card small {
    margin-top: 16px;
    font-size: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    width: min(100%, 300px);
    min-width: 0;
    margin-inline: auto;
  }

  .section-head h2,
  .certificate-layout h2,
  .contact-layout h2,
  .about-grid h2 {
    font-size: clamp(32px, 8.7vw, 38px);
    line-height: 1.12;
  }

  .section-head p,
  .certificate-layout p,
  .contact-layout p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .weapon-info h3 {
    max-width: 100%;
    font-size: clamp(30px, 8.4vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .weapon-preview {
    padding: 18px;
  }

  .weapon-info div:not(.model-controls) {
    padding: 12px;
  }

  .program-grid,
  .program-grid-expanded,
  .promo-grid,
  .instructor-grid,
  .flip-card,
  .promo-card,
  .flip-card-inner,
  .promo-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .program-grid,
  .program-grid-expanded,
  .promo-grid,
  .instructor-grid {
    width: min(100%, 300px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero-actions .button,
  .flip-card > .button,
  .promo-card > .button,
  .certificate-options .button,
  .map-actions .button {
    width: calc(100% - 10px);
    margin-inline: auto;
  }

  .flip-card-inner,
  .promo-inner {
    min-height: 268px;
  }

  .flip-front,
  .flip-back,
  .promo-front,
  .promo-back {
    padding: 22px;
    min-width: 0;
  }

  .card-title,
  .promo-card strong {
    max-width: 100%;
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .card-text,
  .promo-card small {
    max-width: 100%;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .card-meta,
  .price {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .flip-front .card-meta,
  .promo-front span {
    width: auto;
    align-self: flex-start;
  }

  .certificate-section {
    overflow: hidden;
  }

  .certificate-layout {
    width: 100%;
    gap: 32px;
  }

  .certificate-options {
    width: 100%;
    max-width: 100%;
  }

  .certificate-card {
    width: 100%;
    max-width: 100%;
    min-height: 304px;
    padding: 24px;
  }

  .certificate-logo {
    width: min(230px, 82%);
  }

  .certificate-program {
    width: 100%;
    padding: 16px 64px 16px 16px;
  }

  .certificate-program b {
    max-width: 12ch;
    font-size: 22px;
  }

  .gallery-shell {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .gallery-track {
    width: 100%;
    max-width: 282px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9) {
    width: min(230px, 62vw);
  }

  .contact-layout,
  .map-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .map-card {
    min-height: 392px;
    padding: 22px;
  }

  .map-fallback {
    left: 18px;
    right: 18px;
    bottom: 142px;
  }

  .map-actions {
    width: 100%;
    min-width: 0;
  }

  .cookie-banner {
    left: 50%;
    right: auto;
    bottom: 10px;
    width: min(calc(100% - 36px), 320px);
    max-width: 320px;
    transform: translateX(-50%);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
  }

  .cookie-banner p {
    min-width: 0;
    font-size: 12px;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .cookie-banner a {
    white-space: normal;
  }

  .cookie-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .cookie-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
  }
}

/* Layout containment and responsive typography */
.hero-copy h1,
.section-head h2,
.certificate-layout h2,
.contact-layout h2,
.about-grid h2,
.legal-hero h1,
.document-article h1 {
  letter-spacing: 0;
  text-wrap: balance;
}

.card-title,
.promo-card strong,
.weapon-info h3,
.legal-status-card strong {
  line-height: 1.14;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .container,
  .section > .container,
  .legal-page .container,
  .document-page .container {
    width: min(calc(100% - 36px), 390px);
    max-width: calc(100% - 36px);
  }

  .site-header {
    min-height: 64px;
  }

  .header-nav {
    display: flex;
    width: min(calc(100% - 32px), 390px);
    max-width: calc(100% - 32px);
    justify-content: space-between;
  }

  .site-header .nav-group,
  .site-header .social-links {
    display: none !important;
  }

  .site-header .brand {
    width: auto;
    max-width: calc(100vw - 94px);
  }

  .site-header .brand-logo {
    width: min(142px, calc(100vw - 118px));
  }

  .site-header .menu-button {
    position: fixed !important;
    inset: 10px max(18px, calc(100vw - 372px)) auto auto !important;
    z-index: 1000;
    display: inline-grid !important;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-color: rgba(8, 9, 11, 0.16) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--black) !important;
    box-shadow: 0 12px 28px rgba(8, 9, 11, 0.08);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .menu-button[data-menu-open] {
    position: fixed !important;
    top: 10px !important;
    right: max(18px, calc(100vw - 372px)) !important;
    z-index: 1000 !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .site-header .menu-button svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .hero-grid {
    padding-top: 46px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(34px, 8.8vw, 38px);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: normal;
  }

  .hero-copy p {
    max-width: min(100%, 300px);
  }

  .hero-actions,
  .hero-facts {
    width: 100%;
    max-width: 320px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .legal-nav {
    width: min(calc(100% - 32px), 390px);
    max-width: calc(100% - 32px);
  }

  .legal-hero h1,
  .document-article h1 {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 34px);
    line-height: 1.14;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: normal;
  }

  .legal-hero p,
  .document-lead {
    max-width: 31ch;
    font-size: 15px;
    line-height: 1.52;
  }

  .legal-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 320px;
  }

  .legal-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }

  .legal-status-card strong {
    font-size: clamp(24px, 7vw, 29px);
    line-height: 1.13;
    overflow-wrap: normal;
    word-break: normal;
  }

  .button,
  .weapon-button,
  .legal-actions .button,
  .certificate-options .button {
    min-width: 0;
    white-space: normal;
  }

  .cookie-banner {
    bottom: 8px;
    left: 18px;
    right: auto;
    width: min(calc(100vw - 72px), 300px);
    max-width: 300px;
    transform: none;
    gap: 10px;
    padding: 11px;
  }

  .cookie-banner p {
    font-size: 11.5px;
    line-height: 1.34;
  }

  .cookie-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .cookie-actions .button {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 12px;
    line-height: 1.18;
  }

  .certificate-modal-frame {
    min-height: 62vh;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: clamp(31px, 8.8vw, 35px);
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }
}
