/* ----- Inline styles ----- */
:root {
  --bg: #0b1020;
  --bg-soft: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand: #22d3ee;
  --brand-2: #06b6d4;
  --accent: #f59e0b
}

html {
  scroll-behavior: smooth
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: linear-gradient(180deg, var(--bg), #0e1324) fixed;
  color: var(--text)
}

a {
  color: var(--brand)
}

/* Центрирование контейнера внутри hero */
.hero .overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 0; /* или небольшой padding, если нужен */
}
.hero .overlay .container {
  z-index: 3;
}


.navbar {
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px)
}

body.page-index {
  padding-top: 72px
}

@media (min-width: 992px) {
  body.page-index {
    padding-top: 88px
  }
}

.page-index .navbar.sticky-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040
}

.navbar-dark {
  --bs-navbar-color: #e5e7eb;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-brand-color: #fff
}

.btn-brand {
  --bs-btn-color: #0b1020;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-2);
  --bs-btn-hover-border-color: var(--brand-2);
  --bs-btn-focus-shadow-rgb: 34, 211, 238
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #0b1020
}

/* Unified, denser vertical rhythm */
.section { padding: 32px 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); margin: 16px 0; }
/* Normalize Bootstrap spacing helpers used for sections */
.py-6 { padding-top: 32px !important; padding-bottom: 32px !important; }
@media (min-width: 992px) { .py-lg-7 { padding-top: 32px !important; padding-bottom: 32px !important; } }



.hero .overlay {
  background: linear-gradient(180deg, rgba(11, 16, 32, .72), rgba(11, 16, 32, .88));
  position: relative
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border-radius: 20px
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .25);
  color: #67e8f9;
  font-weight: 600
}

/* Акцентный слоган в hero — золотой неон */
.slogan-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(253, 224, 71, .10), rgba(245, 158, 11, .10));
  border: 1px solid rgba(253, 224, 71, .55);
  color: #fff7bf;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow:
    0 0 4px rgba(255, 214, 10, .55),
    0 0 10px rgba(255, 214, 10, .45),
    0 0 18px rgba(245, 158, 11, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 0 14px rgba(255, 214, 10, .20),
    0 8px 26px rgba(0, 0, 0, .30);
}

/* Универсальный неон-золото текст */
.neon-gold {
  color: #fff7bf;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow:
    0 0 4px rgba(255, 214, 10, .55),
    0 0 10px rgba(255, 214, 10, .45),
    0 0 18px rgba(245, 158, 11, .35);
}

/* Бегущая строка под hero */
.marquee-ribbon {
  background: linear-gradient(90deg, rgba(255, 214, 10, .06), rgba(245, 158, 11, .08));
  border-top: 1px solid rgba(253, 224, 71, .18);
  border-bottom: 1px solid rgba(253, 224, 71, .18);
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 8px 0;
}
.marquee .segment {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.feature {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 24px;
  height: 100%
}

.feature i {
  font-size: 1.4rem;
  color: var(--brand)
}

.course-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px
}

.list-check li {
  margin: .5rem 0
}

.list-check i {
  color: var(--accent);
  margin-right: .5rem
}

.muted {
  color: var(--muted)
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent)
}

.gallery img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1)
}

/* Slightly larger default badge padding */
.badge {
  padding: .45rem .7rem;
}

.badge-soft {
  background: rgba(148, 163, 184, .15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .25)
}

.badge-pro {
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .35);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.faq .accordion-button {
  background: #0f172a;
  color: #e5e7eb
}

.faq .accordion-button:focus {
  box-shadow: none
}

.faq .accordion-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden
}

footer {
  background: #0b1020
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 140px;
  z-index: 50;
  display: none
}

.form-control,
.form-select {
  background: #0f172a;
  border-color: rgba(255, 255, 255, .15);
  color: #e5e7eb
}

.form-control:focus,
.form-select:focus {
  background: #0f172a;
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(34, 211, 238, .15)
}

.brand-gradient {
  background: linear-gradient(90deg, #22d3ee, #38bdf8, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.timeline {
  border-left: 2px dashed rgba(148, 163, 184, .35);
  padding-left: 1rem
}

.timeline .item {
  margin-bottom: 1rem
}

/* === Layout polish & overflow fixes === */
html,
body {
  overflow-x: hidden;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}



.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: none;
  position: fixed;
  right: 16px;
  bottom: 140px;
  z-index: 50;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  contain: layout paint;
}

.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(34, 211, 238, .35);
}




/* Navbar nav alignments */
.navbar .navbar-nav {
  align-items: center;
  gap: .25rem;
}











/* HERO: responsive image with object-fit to avoid empty space */
.hero {
  position: relative;
  background: none !important;
  min-height: clamp(56vh, 68vh, 88vh);
}

.hero::before {
  content: none !important;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  z-index: 1;
}

.hero .overlay {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (max-width: 576px) {
  .hero {
    min-height: 62vh;
  }

  .hero .overlay {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .hero .lead {
    font-size: clamp(1rem, 3.8vw, 1.125rem);
  }

  .icon-badge {
    font-size: .9rem;
  }
}


/* --- Courses layout polish --- */
.course-card {
  display: flex;
  flex-direction: column
}

.course-card .course-body {
  flex: 1 1 auto
}

.course-card .course-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto
}

.course-card .price-badge {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: .5rem;
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .35)
}

.course-card .price {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .2px
}




/* ===== Gallery slider & filters (non-intrusive) ===== */
.gallery-swiper .swiper-slide a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1)
}



.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease
}

.gallery-swiper .swiper-slide a:hover img {
  transform: scale(1.03)
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  top: 42%
}

@media (min-width:768px) {
  .gallery-swiper .swiper-slide img {
    height: 320px
  }
}

@media (min-width:1200px) {
  .gallery-swiper .swiper-slide img {
    height: 380px
  }
}

#galleryFilters .btn {
  border-color: var(--brand)
}

#galleryFilters .btn.active {
  background: var(--brand);
  color: #0b1020;
  border-color: var(--brand)
}

/* ===== GLightbox fullscreen scaling (no inner scrollbars) ===== */
.glightbox-container,
.glightbox-container .ginner-container {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh
}

.glightbox-clean .gslide-image,
.glightbox-clean .gslide-image img {
  max-width: 100vw;
  max-height: calc(100vh - 96px);
  width: 100%;
  height: auto;
  object-fit: contain
}

.glightbox-clean .gslide-image img {
  display: block
}

.glightbox-clean .gslide,
.glightbox-clean .gslide-media,
.glightbox-clean .gslide-image img {
  overflow: hidden
}

@media (max-width:576px) {

  .glightbox-clean .gslide-image,
  .glightbox-clean .gslide-image img {
    max-height: calc(100vh - 72px)
  }
}

/* --- Course syllabus (modules) inside cards --- */
.course-syllabus .accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  overflow: hidden;
}

.course-syllabus .accordion-button {
  background: rgba(255, 255, 255, .03);
  color: inherit;
}

.course-syllabus .accordion-button:focus {
  box-shadow: none;
}

.course-syllabus .accordion-button.collapsed {
  background: rgba(255, 255, 255, .02);
}

.course-syllabus .accordion-body {
  background: rgba(255, 255, 255, .02);
}

/* Accordions: use explicit chevron, hide default icon */
.course-syllabus .accordion-button::after,
.faq .accordion-button::after {
  display: none !important;
}
.accordion-button .chevron {
  margin-left: auto;
  transition: transform .2s ease, opacity .2s ease;
  opacity: .9;
  font-size: 1rem;
  color: #e5e7eb;
  pointer-events: none;
}
.accordion-button:not(.collapsed) .chevron {
  transform: rotate(180deg);
  opacity: 1;
}




/* === Course actions spacing & divider === */
.course-card .course-actions {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .08)
}





/* Hover/active focus states */
.course-syllabus .accordion-button:focus {
  box-shadow: 0 0 0 .15rem rgba(14, 165, 233, .25)
}




/* === Dark theme readability for accordions inside course cards === */
:root:not(.light) .course-syllabus .accordion-item {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .03)
}

:root:not(.light) .course-syllabus .accordion-button {
  background: rgba(255, 255, 255, .06);
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

:root:not(.light) .course-syllabus .accordion-button.collapsed {
  background: rgba(255, 255, 255, .04);
  color: #f8fafc;
  border-bottom-color: rgba(255, 255, 255, .06)
}

:root:not(.light) .course-syllabus .accordion-body {
  background: rgba(255, 255, 255, .02);
  color: #e2e8f0
}


/* === Gallery navigation arrows — mobile-visible & emphasized === */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
  z-index: 5;
  top: 45%;
}

.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
  font-size: 18px;
  color: #fff;
}



/* smaller screens: bring arrows inwards and ensure visible */
@media (max-width: 576px) {
  .gallery-swiper .swiper-button-prev {
    left: 6px;
  }

  .gallery-swiper .swiper-button-next {
    right: 6px;
  }

  .gallery-swiper .swiper-button-next,
  .gallery-swiper .swiper-button-prev {
    display: flex;
  }
}

/* Avoid arrows fully disappearing on disabled state */
.gallery-swiper .swiper-button-disabled {
  opacity: .35 !important;
  pointer-events: none;
}


/* === GLightbox controls — force show on small screens & make them stand out === */
.glightbox-clean .gbtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.glightbox-clean .gbtn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}



/* Position tweaks for mobile */
@media (max-width: 576px) {
  .glightbox-clean .gnext {
    right: 10px !important;
  }

  .glightbox-clean .gprev {
    left: 10px !important;
  }

  .glightbox-clean .gbtn {
    width: 42px;
    height: 42px;
  }
}


/* === GLightbox controls visibility on tap (mobile) === */
.glightbox-container .gcontrols {
  transition: opacity .2s ease;
}

.glightbox-container .gcontrols.force-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.glightbox-clean .gprev,
.glightbox-clean .gnext {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 576px) {

  .glightbox-clean .gprev,
  .glightbox-clean .gnext {
    display: flex !important;
  }
}

/* === Contact form placeholders: white === */
#signupForm input::placeholder,
#signupForm textarea::placeholder { color: #fff; opacity: 1; }
/* Safari/legacy fallback */
#signupForm input::-webkit-input-placeholder,
#signupForm textarea::-webkit-input-placeholder { color: #fff; opacity: 1; }
#signupForm input::-moz-placeholder,
#signupForm textarea::-moz-placeholder { color: #fff; opacity: 1; }
#signupForm input:-ms-input-placeholder,
#signupForm textarea:-ms-input-placeholder { color: #fff; }

/* ----- moto-standriding-css ----- */
/* === Standriding enhancements (v5) === */

/* --- Preloader: speedometer --- */
#preloader-speedo{ position:fixed; inset:0; display:grid; place-items:center;
  background:radial-gradient(1200px 800px at 50% 60%, rgba(0,0,0,.84), rgba(0,0,0,.96));
  z-index:1000; transition:opacity .45s ease, visibility .45s ease; }
#preloader-speedo.hidden{ opacity:0; visibility:hidden; }
.speedo-wrap{ width:clamp(220px, 44vw, 420px); aspect-ratio:1; filter:drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
#speedo svg{ width:100%; height:100%; }
#speedo .ring{ stroke: rgba(255,255,255,.15); }
#speedo .ticks{ stroke: currentColor; stroke-opacity:.55; }
#speedo .needle{ stroke:#ef4444; stroke-width:4; stroke-linecap:round; }
#speedo .cap{ fill:#ef4444; }
#speedo .readout{ font: 800 26px/1 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; fill: currentColor; }
#speedo .unit{ font: 700 12px/1 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; fill: currentColor; opacity:.8; }
#speedo .brand{ font: 900 12px/1 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; letter-spacing:.12em; fill: currentColor; opacity:.7; }



:root.stunt{ --neon: 0 0 16px rgba(34,211,238,.8), 0 0 36px rgba(34,211,238,.55), 0 0 72px rgba(6,182,212,.5); }
:root.stunt h1, :root.stunt h2, :root.stunt .brand{ text-shadow: var(--neon); }


/* (removed) stunt-toggle and combo-hud styles */

/* --- Tire smoke (intensity-based; starts at 0) --- */
.tire-smoke{ position:fixed; left:0; right:0; bottom:-20px; height:150px; pointer-events:none; z-index:50; display:none; }
:root.stunt .tire-smoke{ display:block; }
.tire-smoke::before, .tire-smoke::after{ content:""; position:absolute; left:50%; width:220vw; height:100%; transform:translateX(-50%);
  --i: var(--smoke-intensity, 0);
  background: radial-gradient(70px 36px at 50% 100%, rgba(255,255,255,.38), transparent 60%),
          radial-gradient(120px 54px at 40% 100%, rgba(255,255,255,.28), transparent 60%),
          radial-gradient(90px 45px at 60% 100%, rgba(255,255,255,.28), transparent 60%);
  filter: blur(calc(6px * var(--i)));
  opacity: calc(.0 + .55 * var(--i));
  animation: smoke linear infinite;
  animation-duration: 8s;
}
.tire-smoke::after{ opacity: calc(.0 + .75 * var(--i)); animation-duration: 10s; }

@keyframes smoke{ 0%{ transform:translate(-50%,12px) scale(1);} 50%{ transform:translate(-50%,-16px) scale(1.06);} 100%{ transform:translate(-50%,12px) scale(1);} }

/* --- Exhaust puffs --- */
.exhaust-puff{ position:fixed; bottom:30px; right:60px; width:18px; height:18px; pointer-events:none; z-index:56; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(200,200,200,.35) 60%, rgba(180,180,180,.15) 100%); filter: blur(2px); opacity:.9; }

/* --- Rubber sparks --- */
.rubber-spark{ position:fixed; bottom:6px; left:50%; width:6px; height:6px; border-radius:999px; pointer-events:none; z-index:55;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd17a 60%, #ff7a18 100%); filter: blur(.2px) drop-shadow(0 0 10px rgba(255,154,16,.6)); opacity:.95; }

/* (removed) HUD footer/moto-speedo overlap adjustments */

/* (removed) combo-hud mobile layout adjustments */

/* ----- moto-enhancements-css ----- */
:root { --brand:#22d3ee; --brand-2:#3b82f6; --text:#e5e7eb; }
.moto-speedo{ position:fixed; left:16px; bottom:16px; z-index:60; width:120px; height:120px; pointer-events:none; opacity:.95; filter:drop-shadow(0 8px 24px rgba(0,0,0,.35)); display:none; }
:root.stunt .moto-speedo{ display:block; bottom:80px; }
@media (max-width:576px){ .moto-speedo{ transform:scale(.8); left:8px; bottom:8px; } :root.stunt .moto-speedo{ bottom:80px; } }
:root:not(.light) .moto-speedo .ring{ stroke:rgba(255,255,255,.18); }
:root:not(.light) .moto-speedo .arc{ stroke:var(--brand); }
:root:not(.light) .moto-speedo .tick{ stroke:rgba(255,255,255,.35); }
:root:not(.light) .moto-speedo .needle{ stroke:#f59e0b; }

.moto-speedo text{ font:600 10px/1 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; fill:currentColor; }

/* ----- moto-fix-v51-css ----- */
/* v5.1 fixes */

/* Restore 3D tilt */
.tiltable{ transform-style:preserve-3d; transition:transform .18s ease, box-shadow .18s ease; will-change:transform; }
.tiltable .tilt-shadow{ position:absolute; inset:0; border-radius:inherit; background:radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), rgba(34,211,238,.12), transparent 60%); pointer-events:none; mix-blend-mode:screen; opacity:0; transition:opacity .2s ease; }
.tiltable:hover{ box-shadow:0 20px 40px rgba(0,0,0,.35)!important; }
.tiltable:hover .tilt-shadow{ opacity:1; }



/* Prevent footer overlap: reserve space when HUD visible */
:root.stunt body{ padding-bottom: 140px; }
:root.stunt footer{ padding-top: 12px; }

/* Ensure scroll speedometer stays above HUD but not overlapping footer */
:root.stunt .moto-speedo{ bottom: 80px; z-index: 68; }
@media (max-width:576px){ :root.stunt .moto-speedo{ bottom: 80px; } }

/* ----- cookie-consent-css ----- */
.cookie-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:1055; display:none; }
.cookie-banner .inner{ background: rgba(15,23,42,.95); color:#e5e7eb; border:1px solid rgba(255,255,255,.18); border-radius:12px; padding:12px 14px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.cookie-banner .actions{ display:flex; gap:8px; flex-wrap:wrap; }
.cookie-banner.show{ display:block; }
