/* ==========================================================================
   MotoStop Ajman — Core Stylesheet
   Pure CSS3. No frameworks. Dark luxury automotive design system.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --primary: #e10600;
  --primary-dark: #a30400;
  --primary-glow: rgba(225, 6, 0, 0.45);
  --secondary: #111111;
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --card: #121212;
  --card-2: #171717;
  --accent: #ffd54a;
  --text: #ffffff;
  --muted: #bdbdbd;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --grad-primary: linear-gradient(135deg, #e10600 0%, #ff4d3d 100%);
  --grad-dark: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 90%);
  --grad-sheen: linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 20px 60px -18px var(--primary-glow);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;

  --container: 1280px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { color: var(--muted); }

.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.text-gradient {
  background: linear-gradient(100deg, #fff 20%, #ff6a5c 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--primary); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-primary);
}
.center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-primary);
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--grad-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  box-shadow: 0 12px 30px -14px var(--primary-glow);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: var(--shadow-sm); }

.btn--accent { --btn-bg: linear-gradient(135deg, #ffd54a, #ffb300); color: #140f00; box-shadow: 0 12px 30px -16px rgba(255, 213, 74, 0.6); }
.btn--wa { --btn-bg: linear-gradient(135deg, #25d366, #128c4a); box-shadow: 0 12px 30px -16px rgba(37, 211, 102, 0.6); }
.btn--sm { padding: 10px 20px; min-height: 42px; font-size: 0.83rem; }
.btn--block { width: 100%; }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.4);
  animation: ripple 0.62s linear;
  pointer-events: none;
  z-index: -1;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------- 6. Surfaces ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.45s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(225, 6, 0, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); border-color: rgba(225, 6, 0, 0.4); box-shadow: var(--shadow-md); }
.card:hover::after { opacity: 1; }

.card__body { padding: clamp(18px, 2.4vw, 28px); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d0d; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s; }
.card:hover .card__media img { transform: scale(1.09); filter: saturate(1.15); }

.glass {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(225, 6, 0, 0.14);
  color: #ff7c72;
  border: 1px solid rgba(225, 6, 0, 0.3);
}
.badge--accent { background: rgba(255, 213, 74, 0.12); color: var(--accent); border-color: rgba(255, 213, 74, 0.3); }
.badge--green { background: rgba(37, 211, 102, 0.12); color: #4ade80; border-color: rgba(37, 211, 102, 0.28); }
.badge--float { position: absolute; top: 14px; left: 14px; z-index: 2; backdrop-filter: blur(8px); }
.badge--float.right { left: auto; right: 14px; }

.price { font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.price small { font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.price del { color: #6b6b6b; font-size: 0.85rem; font-weight: 500; margin-left: 8px; }

.stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; }

/* ---------- 7. Loading screen ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #050505;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  width: 118px;
  height: 118px;
  border-radius: 26px;
  object-fit: cover;
  animation: pulseLogo 1.8s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(225, 6, 0, 0)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 26px rgba(225, 6, 0, 0.6)); }
}
.loader__bar { width: 190px; height: 3px; margin: 26px auto 0; background: #1c1c1c; border-radius: 4px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad-primary); animation: fill 1.1s var(--ease) forwards; }
@keyframes fill { to { width: 100%; } }
.loader__text { margin-top: 14px; font-family: var(--ff-display); font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase; color: #666; }

/* ---------- 8. Header / Nav ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  height: 66px;
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; }
.brand__name span { color: var(--primary); }
.brand__sub { display: block; font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: #7d7d7d; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d7d7d7;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: #fff; }

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

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: min(720px, 86vw);
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(11, 11, 11, 0.96);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.32s var(--ease);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: block; padding: 10px 12px; font-size: 0.83rem; border-radius: 10px; color: var(--muted); }
.mega a::after { display: none; }
.mega a:hover { color: #fff; background: rgba(225, 6, 0, 0.12); }

/* hamburger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.38s var(--ease), opacity 0.25s, width 0.3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; width: 14px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  z-index: 950;
  padding: 100px 24px 40px;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(22px);
  border-left: 1px solid var(--border);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: #e6e6e6;
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .btn { margin-top: 20px; }
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 50px) 0 70px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 5, 5, 0.96) 8%, rgba(5, 5, 5, 0.72) 48%, rgba(5, 5, 5, 0.55) 100%), var(--grad-dark);
}
.hero__glow {
  position: absolute;
  z-index: -2;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.55), transparent 65%);
  top: -20%;
  right: -10%;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.15); }
}
#particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__content { max-width: 760px; }
.hero h1 { margin: 18px 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 6vw, 70px);
  max-width: 900px;
}
.stat { padding: 20px 18px; border-radius: var(--radius-sm); text-align: left; animation: float 6s ease-in-out infinite; }
.stat:nth-child(2) { animation-delay: 0.8s; }
.stat:nth-child(3) { animation-delay: 1.6s; }
.stat:nth-child(4) { animation-delay: 2.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stat__num { font-family: var(--ff-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1; }
.stat__label { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9a9a9a; margin-top: 8px; }

.scroll-ind {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7a7a7a;
}
.scroll-ind i {
  display: block;
  width: 22px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  position: relative;
}
.scroll-ind i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  translate: -50% 0;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 clamp(50px, 7vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 420px at 15% -10%, rgba(225, 6, 0, 0.22), transparent 70%), var(--bg-alt);
}
.page-hero__inner { max-width: 780px; }
.crumbs { font-size: 0.78rem; color: #757575; margin-bottom: 14px; }
.crumbs a:hover { color: var(--primary); }

/* ---------- 10. Features / lists ---------- */
.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.25);
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.card:hover .icon-box { transform: translateY(-4px) rotate(-6deg); background: rgba(225, 6, 0, 0.22); }

.tick-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.93rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.16);
  border: 1px solid rgba(225, 6, 0, 0.5);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 11px;
  width: 5px;
  height: 8px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: #8f8f8f;
}

/* spec grid */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.spec {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.spec dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7f7f7f; }
.spec dd { font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem; margin-top: 4px; }

/* ---------- 11. Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(225, 6, 0, 0.05));
}
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 5px rgba(225, 6, 0, 0.12);
}
.timeline h4 { font-family: var(--ff-display); font-size: 1.05rem; }
.timeline .yr { font-size: 0.75rem; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }

/* ---------- 12. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(940px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #161616, #0c0c0c);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.4s;
}
.modal.open .modal__box { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 3;
  transition: background 0.3s, transform 0.3s;
}
.modal__close:hover { background: var(--primary); transform: rotate(90deg); }
.modal__media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(20px, 3.4vw, 38px); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
body.no-scroll { overflow: hidden; }

/* ---------- 13. Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--border-strong); color: #fff; }
.filter.active { background: var(--grad-primary); border-color: transparent; color: #fff; }

.masonry { columns: 3 260px; column-gap: 16px; }
.masonry figure {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.masonry img { width: 100%; transition: transform 0.8s var(--ease); }
.masonry figure:hover img { transform: scale(1.08); }
.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.85rem;
  font-family: var(--ff-display);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.masonry figure:hover figcaption { transform: none; opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86svh; border-radius: 14px; object-fit: contain; }

/* ---------- 14. Pricing ---------- */
.plan { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.plan--featured { border-color: rgba(225, 6, 0, 0.5); box-shadow: var(--shadow-glow); }
.plan--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan__price { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; margin: 12px 0 4px; }
.plan .tick-list { margin: 22px 0 26px; flex: 1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.9rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-family: var(--ff-display); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9c9c9c; background: rgba(255, 255, 255, 0.03); }
tbody tr { transition: background 0.25s; }
tbody tr:hover { background: rgba(225, 6, 0, 0.06); }
td:last-child, th:last-child { text-align: right; }

/* ---------- 15. Testimonials slider ---------- */
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform 0.7s var(--ease); }
.slide { min-width: 100%; padding: 4px; }
@media (min-width: 900px) { .slide { min-width: 50%; } }
.quote { padding: clamp(22px, 3vw, 34px); height: 100%; }
.quote p { font-size: 1rem; color: #ddd; font-style: italic; }
.who { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  font-family: var(--ff-display);
  font-weight: 700;
}
.slider__nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.slider__nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.3s;
}
.slider__nav button:hover { background: var(--primary); border-color: transparent; }

/* ---------- 16. Accordion ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 12px; overflow: hidden; }
.acc__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.3s;
}
.acc__q:hover { color: var(--primary); }
.acc__q i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-style: normal;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.acc.open .acc__q i { transform: rotate(45deg); background: var(--primary); border-color: transparent; }
.acc__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc__a p { padding: 0 20px 20px; font-size: 0.92rem; }

/* ---------- 17. Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a0a0a0; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  font-size: 0.94rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field option { background: #121212; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(225, 6, 0, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.1);
}
.field.error input, .field.error select, .field.error textarea { border-color: #ff4d4d; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1); }
.err { color: #ff6b6b; font-size: 0.76rem; min-height: 1em; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success.show { display: block; animation: popIn 0.6s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.check {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.14);
  border: 2px solid #25d366;
  font-size: 2.1rem;
  animation: pulseLogo 2s ease-in-out infinite;
}
.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 18. Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #070707, #030303);
  padding: clamp(50px, 7vw, 90px) 0 30px;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer h5 { font-family: var(--ff-display); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; color: #fff; }
.footer li { margin-bottom: 10px; }
.footer li a, .footer p { color: #9d9d9d; font-size: 0.9rem; transition: color 0.25s; }
.footer li a:hover { color: var(--primary); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.socials a:hover { background: var(--grad-primary); transform: translateY(-4px); border-color: transparent; }
.footer__bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #767676;
}
.footer__bottom a:hover { color: var(--primary); }

/* ---------- 19. Floating widgets ---------- */
.fab-wa, .to-top {
  position: fixed;
  right: 18px;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.fab-wa { bottom: 18px; background: linear-gradient(135deg, #25d366, #128c4a); }
.fab-wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: halo 2.4s ease-out infinite;
}
@keyframes halo { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.65); opacity: 0; } }
.fab-wa:hover, .to-top:hover { transform: scale(1.09); }
.to-top {
  bottom: 84px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* emergency banner */
.emergency {
  background: var(--grad-primary);
  text-align: center;
  padding: 11px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--ff-display);
}
.emergency a { text-decoration: underline; text-underline-offset: 3px; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(225, 6, 0, 0.3), transparent 70%), linear-gradient(160deg, #151515, #0a0a0a);
  border: 1px solid var(--border-strong);
}
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* newsletter */
.news-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.news-form input { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.news-form input:focus { outline: none; border-color: rgba(225, 6, 0, 0.6); }

/* map placeholder */
.map {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: repeating-linear-gradient(45deg, #0e0e0e 0 18px, #101010 18px 36px);
  display: grid;
  place-items: center;
  text-align: center;
}
.map .pin { font-size: 2.4rem; animation: float 3.4s ease-in-out infinite; }

/* cursor (desktop) */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.5); transition: width 0.3s, height 0.3s, background 0.3s; }
.cursor.hover { width: 56px; height: 56px; background: rgba(255, 255, 255, 0.12); }
.cursor-dot { width: 6px; height: 6px; background: var(--primary); }
@media (hover: none), (max-width: 1024px) { .cursor, .cursor-dot { display: none; } }

/* ---------- 20. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s; filter: blur(6px); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.4s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }

.page-fade { animation: pageIn 0.6s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* skeleton */
.skeleton { background: linear-gradient(90deg, #131313 25%, #1c1c1c 37%, #131313 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 404 */
.big404 {
  font-family: var(--ff-display);
  font-size: clamp(6rem, 24vw, 16rem);
  font-weight: 700;
  line-height: 0.85;
  background: linear-gradient(180deg, #fff, rgba(225, 6, 0, 0.65));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* legal / prose */
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 38px 0 12px; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.prose ul { list-style: disc; padding-left: 22px; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 10px; font-size: 0.83rem; }
}
@media (max-width: 1024px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .burger { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand__sub { display: none; }
  .brand img { width: 38px; height: 38px; }
  .header__cta .btn { padding: 10px 16px; min-height: 42px; font-size: 0.8rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .masonry { columns: 1; }
  .hero__actions .btn { flex: 1 1 100%; }
  .modal__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 380px) {
  body { font-size: 15px; }
  .btn { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

@media print {
  .header, .footer, .fab-wa, .to-top, #loader { display: none !important; }
}
