:root {
  --font-body: "Aptos", "Segoe UI", "Helvetica Neue", "Nimbus Sans", sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", sans-serif;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #eef1f4;
  --text: #15191f;
  --text-muted: #5d6574;
  --accent: #ef3f3f;
  --accent-dark: #cd2525;
  --border: #dbe0e6;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow-soft: 0 10px 30px rgba(14, 22, 38, 0.08);
  --shadow-lift: 0 18px 45px rgba(14, 22, 38, 0.14);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --max: 1180px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at top right, #fef3f3 0%, #f5f6f8 40%);
  line-height: 1.55;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 860px);
}

.section {
  padding: var(--space-6) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-heading--left {
  text-align: left;
}

.products-intro {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
}

.products-intro__title {
  position: relative;
  width: fit-content;
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
  animation: products-glitch-skew 3.4s infinite linear alternate-reverse;
}

.products-intro__lead {
  position: relative;
  margin: 0;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.products-intro__title::before,
.products-intro__title::after {
  content: attr(data-heading);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.products-intro__title::before {
  left: 2px;
  text-shadow: -2px 0 rgba(0, 0, 0, 0.65);
  clip-path: inset(14% 0 60% 0);
  animation: products-glitch-top 2.2s infinite linear alternate-reverse;
}

.products-intro__title::after {
  left: -2px;
  text-shadow: 2px 0 rgba(255, 90, 61, 0.88);
  clip-path: inset(62% 0 8% 0);
  animation: products-glitch-bottom 2.6s infinite linear alternate-reverse;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 70ch;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 224, 230, 0.75);
}

.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}

.site-logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.site-logo__text {
  font-size: 1.1rem;
}

.site-logo__image {
  display: block;
  height: 52px;
  width: auto;
}

.menu-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  display: none;
}

.site-nav .menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.2rem;
}

.site-nav .menu a {
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a {
  color: var(--text);
}

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero__inner {
  max-width: 780px;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__lead {
  color: var(--text-muted);
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-4);
}

.front-slider {
  padding: clamp(1.25rem, 2vw, 2rem) 0 clamp(4rem, 7vw, 6rem);
}

.front-slider__shell {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  min-height: clamp(520px, 76vh, 720px);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 101, 72, 0.22), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.1), transparent 20%),
    linear-gradient(120deg, #0c1119 0%, #111926 38%, #18263d 62%, #f4f5f7 62.2%, #eceff3 100%);
  box-shadow: 0 30px 70px rgba(7, 14, 25, 0.16);
}

.front-slider__shell::before,
.front-slider__shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.front-slider__shell::before {
  width: 380px;
  height: 380px;
  top: -180px;
  right: -100px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(12px);
}

.front-slider__shell::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -120px;
  background: rgba(255, 87, 51, 0.15);
  filter: blur(10px);
}

.front-slider__track {
  position: relative;
  min-height: inherit;
}

.front-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 0.7s ease,
    transform 0.8s ease,
    visibility 0.8s ease;
}

.front-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.front-slide__content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  color: #fff;
}

.front-slide__eyebrow {
  margin: 0 0 1rem;
  color: #ff9787;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.front-slide__title {
  max-width: 10ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.front-slide__lead {
  max-width: 32rem;
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.front-slide__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.front-portal {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1.08 / 1;
  perspective: 1400px;
}

.front-portal__halo {
  position: absolute;
  inset: 8% 12%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
}

.front-portal__halo--outer {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 87, 51, 0.08));
  box-shadow: 0 0 0 1px rgba(255, 87, 51, 0.1), 0 30px 60px rgba(6, 14, 28, 0.18);
  animation: front-portal-float 9s ease-in-out infinite;
}

.front-portal__halo--middle {
  inset: 15% 18%;
  border-color: rgba(255, 148, 122, 0.26);
  animation: front-portal-float 9s ease-in-out infinite 0.7s;
}

.front-portal__halo--inner {
  inset: 22% 24%;
  border-color: rgba(255, 255, 255, 0.2);
  animation: front-portal-float 9s ease-in-out infinite 1.2s;
}

.front-portal__gym {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 36px;
}

.front-portal__photo {
  position: absolute;
  inset: 12% 14% 10%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(9, 14, 24, 0.2);
}

.front-portal__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 14, 24, 0.12), transparent 32%, rgba(255, 255, 255, 0.04) 58%, rgba(8, 14, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 14, 24, 0.1));
  pointer-events: none;
}

.front-portal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
  transform: scale(0.9);
}

.front-slide--2 .front-portal__photo img {
  object-position: 24% 48%;
  transform: scale(0.96);
}

.front-portal__gym::before {
  content: "";
  position: absolute;
  inset: 12% 14% 10%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 98, 66, 0.24), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 25%),
    linear-gradient(180deg, rgba(17, 27, 43, 0.1), rgba(17, 27, 43, 0.72));
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.front-slide--photo .front-portal__gym::before,
.front-slide--photo .front-portal__deck,
.front-slide--photo .front-portal__belt,
.front-slide--photo .front-portal__console,
.front-slide--photo .front-portal__rail {
  display: none;
}

.front-slide--photo .front-portal__beam,
.front-slide--photo .front-portal__lane {
  opacity: 0.46;
}

.front-portal__beam,
.front-portal__lane,
.front-portal__rail,
.front-portal__deck,
.front-portal__belt,
.front-portal__console,
.front-portal__pulse {
  position: absolute;
}

.front-portal__beam {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.9;
}

.front-portal__beam--left {
  left: 18%;
  top: 14%;
  width: 2px;
  height: 42%;
  transform: skewX(-18deg);
}

.front-portal__beam--right {
  right: 18%;
  top: 14%;
  width: 2px;
  height: 42%;
  transform: skewX(18deg);
}

.front-portal__beam--top {
  left: 26%;
  right: 26%;
  top: 13%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.front-portal__lane {
  bottom: 9%;
  width: 2px;
  height: 56%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
}

.front-portal__lane--left {
  left: 32%;
  transform: rotate(26deg);
  transform-origin: bottom center;
}

.front-portal__lane--right {
  right: 32%;
  transform: rotate(-26deg);
  transform-origin: bottom center;
}

.front-portal__deck {
  left: 31%;
  right: 31%;
  bottom: 16%;
  height: 16%;
  border-radius: 28px 28px 42px 42px;
  background: linear-gradient(180deg, #2a3039, #11161e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 36px rgba(0, 0, 0, 0.28);
  transform: perspective(700px) rotateX(66deg);
}

.front-portal__belt {
  left: 36%;
  right: 36%;
  bottom: 27%;
  height: 22%;
  border-radius: 18px 18px 24px 24px;
  background:
    linear-gradient(90deg, rgba(255, 87, 51, 0.9), rgba(255, 140, 110, 0.45) 12%, rgba(255, 255, 255, 0.08) 12.4%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(180deg, #1f252d, #0f131a);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transform: perspective(700px) rotateX(70deg);
}

.front-portal__console {
  left: 41%;
  right: 41%;
  top: 24%;
  height: 14%;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(190, 198, 209, 0.84) 22%, rgba(23, 30, 41, 0.98) 23%, #0f141c 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.front-portal__console::before {
  content: "";
  position: absolute;
  inset: 18% 14%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 64, 64, 0.9), transparent 5%),
    radial-gradient(circle at 32% 78%, rgba(255, 192, 64, 0.85), transparent 5%),
    radial-gradient(circle at 46% 78%, rgba(74, 210, 130, 0.9), transparent 5%),
    linear-gradient(180deg, rgba(35, 144, 255, 0.52), rgba(15, 22, 31, 0.9));
}

.front-portal__rail {
  width: 10px;
  height: 28%;
  bottom: 31%;
  background: linear-gradient(180deg, #c4ccd5, #4f5965 48%, #2a3038);
  border-radius: 999px;
}

.front-portal__rail--left {
  left: 40.5%;
  transform: rotate(18deg);
  transform-origin: bottom center;
}

.front-portal__rail--right {
  right: 40.5%;
  transform: rotate(-18deg);
  transform-origin: bottom center;
}

.front-portal__pulse {
  inset: 0;
}

.front-portal__pulse::before,
.front-portal__pulse::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  border: 1px solid rgba(255, 102, 74, 0.2);
  transform: translateX(-50%);
  animation: front-pulse 4.8s ease-out infinite;
}

.front-portal__pulse::after {
  animation-delay: 1.6s;
}

.front-slide__index {
  position: absolute;
  right: 8%;
  bottom: 11%;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
}

.front-slider__controls {
  position: absolute;
  left: clamp(2rem, 5vw, 4rem);
  right: clamp(2rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 4vw, 2rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.front-slider__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.front-slider__dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.front-slider__dot.is-active {
  transform: scale(1.2);
  background: var(--accent);
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at top right, rgba(239, 63, 63, 0.2), transparent 34%),
    linear-gradient(135deg, #12171f 0%, #1a2029 46%, #ef3f3f 46.5%, #ff5a3d 100%);
}

.about-hero::before,
.about-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.about-hero::before {
  width: 240px;
  height: 240px;
  top: -80px;
  left: -70px;
}

.about-hero::after {
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -140px;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.about-hero__content {
  color: #fff;
}

.about-hero__content .hero__eyebrow {
  color: #ff8c78;
}

.about-hero__title {
  display: grid;
  gap: 0.15em;
  margin-bottom: 1.1rem;
}

.about-hero__word {
  display: inline-block;
  width: fit-content;
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.about-hero__word--primary {
  color: #fff;
  animation: hero-bounce 3.6s ease-in-out infinite;
}

.about-hero__word--secondary {
  color: #ff5a3d;
  animation: hero-bounce 3.6s ease-in-out infinite 0.28s;
}

.about-hero__lead {
  max-width: 36rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
}

.about-hero__visual {
  display: flex;
  justify-content: flex-end;
}

.about-hero__frame {
  position: relative;
  width: min(100%, 620px);
  padding: 1rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: 0 24px 60px rgba(6, 12, 23, 0.34);
}

.about-hero__frame::before {
  content: "";
  position: absolute;
  inset: auto 1rem 0.8rem 1rem;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 90, 61, 0.22);
  filter: blur(18px);
}

.about-hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  animation: runner-float 4.2s ease-in-out infinite;
}

.about-story__intro {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.about-story__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-story__card {
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(21, 25, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.96));
  box-shadow: 0 18px 40px rgba(14, 22, 38, 0.06);
}

.about-story__card--lead {
  grid-column: 1 / -1;
  border: 0;
  background:
    linear-gradient(180deg, rgba(236, 239, 243, 0.96), rgba(229, 233, 238, 0.98));
  box-shadow: none;
}

.about-story__card p {
  margin: 0;
  color: #2b3342;
  font-size: 1rem;
}

@keyframes hero-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  18% {
    transform: translateY(-10px);
  }

  34% {
    transform: translateY(0);
  }

  52% {
    transform: translateY(-6px);
  }
}

@keyframes runner-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes front-portal-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  40% {
    transform: translate3d(0, -10px, 0) scale(1.015);
  }

  65% {
    transform: translate3d(0, 6px, 0) scale(0.995);
  }
}

@keyframes front-pulse {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.55);
  }

  20% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(2.25);
  }
}

@keyframes products-glitch-top {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, -2px);
  }

  40% {
    transform: translate(-1px, 2px);
  }

  60% {
    transform: translate(2px, -1px);
  }

  80% {
    transform: translate(1px, 1px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes products-glitch-bottom {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(2px, 1px);
  }

  40% {
    transform: translate(-2px, -1px);
  }

  60% {
    transform: translate(1px, -2px);
  }

  80% {
    transform: translate(-1px, 2px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes products-glitch-skew {
  0%,
  100% {
    transform: skew(0deg);
  }

  22% {
    transform: skew(-1.2deg);
  }

  24% {
    transform: skew(0.8deg);
  }

  26% {
    transform: skew(0deg);
  }

  62% {
    transform: skew(1deg);
  }

  64% {
    transform: skew(-0.8deg);
  }

  66% {
    transform: skew(0deg);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--border);
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.section--home-cta {
  padding-top: 0;
}

.home-cta-block {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  min-height: 340px;
  padding: clamp(3rem, 7vw, 5rem);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(238, 240, 243, 0.96), rgba(229, 232, 236, 0.98));
  text-align: center;
  box-shadow: none;
}

.home-cta-block .container {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.home-cta-block h2 {
  max-width: 26ch;
  margin: 0;
  color: #20181d;
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.home-cta-block .btn {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ef3f3f;
  font-size: 1.1rem;
  font-weight: 600;
}

.home-cta-block .btn::after {
  content: " ->";
}

.home-cta-block .btn:hover {
  background: transparent;
  color: #d63232;
  transform: none;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.chip:hover,
.chip.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.4rem;
}

.filters {
  background: var(--surface);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.filter-group__toggle::after {
  content: "+";
  font-size: 1.05rem;
}

.filter-group__toggle[aria-expanded="true"]::after {
  content: "−";
}

.filter-group__body {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.filter-group__body label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
}

.filters__actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.products-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
}

.products-toolbar label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
}

.products-toolbar select {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.45rem 2.5rem 0.45rem 0.8rem;
  font: inherit;
}

.products-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card__link {
  display: block;
}

.card__media {
  aspect-ratio: 5 / 4;
  background: var(--surface-muted);
  position: relative;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #111722;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  letter-spacing: 0.08em;
}

.card__body {
  padding: 1rem;
}

.card__meta,
.card__excerpt {
  color: var(--text-muted);
  margin: 0;
}

.card__title {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.card__cta {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: all var(--transition);
}

.card:hover .card__cta {
  opacity: 1;
  transform: translateY(0);
}

.card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d8dde5, #eef1f4);
}

.quick-view-modal[hidden] {
  display: none;
}

.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.quick-view-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 32, 0.58);
}

.quick-view-modal__dialog {
  position: relative;
  background: #fff;
  width: min(1080px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  border-radius: var(--radius-l);
  padding: 1.3rem;
  overflow: auto;
  box-shadow: var(--shadow-lift);
}

.quick-view-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.quick-view__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.quick-gallery {
  position: relative;
}

.quick-gallery__slides {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-muted);
}

.quick-gallery__slide {
  display: none;
  aspect-ratio: 1 / 1;
}

.quick-gallery__slide.is-active {
  display: block;
}

.quick-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.quick-gallery__nav--prev {
  left: 0.8rem;
}

.quick-gallery__nav--next {
  right: 0.8rem;
}

.quick-view__content .entry-content {
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list strong {
  font-size: 0.9rem;
}

.pagination-wrap ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin-top: 1.6rem;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.pagination-wrap .prev,
.pagination-wrap .next {
  width: auto;
  min-width: 38px;
  padding: 0 0.9rem;
}

.pagination-wrap .current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.entry-title {
  margin-bottom: 1rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p,
.entry-content li {
  color: #2b3342;
}

.entry-cover {
  margin-bottom: 1rem;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.single-product {
  display: grid;
  gap: 1.2rem;
}

.single-product__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem;
}

.single-product__gallery figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.single-product__subtitle {
  color: var(--text-muted);
  margin-top: -0.35rem;
}

.contact-layout {
  display: flex;
  justify-content: center;
}

.contact-cards {
  display: grid;
  gap: 0.8rem;
}

.contact-card,
.contact-form-wrap {
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.contact-form-wrap {
  width: min(100%, 530px);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: #f1f3f6;
}

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

.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (min-width: 700px) {
  .products-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .front-slide {
    grid-template-columns: 1fr;
    align-items: flex-start;
    min-height: inherit;
  }

  .front-slide__content {
    max-width: 100%;
  }

  .front-slide__title {
    max-width: 11ch;
  }

  .front-slide__visual {
    min-height: 360px;
  }

  .front-slider__controls {
    left: 1.5rem;
    right: 1.5rem;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .about-hero__inner,
  .quick-view__layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-hero {
    background:
      radial-gradient(circle at top right, rgba(239, 63, 63, 0.2), transparent 34%),
      linear-gradient(180deg, #12171f 0%, #1a2029 56%, #ef3f3f 56.5%, #ff5a3d 100%);
  }

  .about-hero__visual {
    justify-content: flex-start;
  }

  .about-story__grid {
    grid-template-columns: 1fr;
  }

  .products-intro {
    width: 100%;
  }
}

@media (max-width: 840px) {
  .front-slider {
    padding-top: 0.75rem;
  }

  .front-slider__shell {
    min-height: 640px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 20% 15%, rgba(255, 101, 72, 0.2), transparent 24%),
      linear-gradient(180deg, #0c1119 0%, #111926 54%, #f4f5f7 54.2%, #eceff3 100%);
  }

  .front-slide {
    padding: 1.4rem 1.25rem 5.5rem;
  }

  .front-slide__title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .front-slide__lead {
    font-size: 0.98rem;
  }

  .front-slide__visual {
    min-height: 280px;
  }

  .front-portal {
    width: 100%;
  }

  .front-slider__controls {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .front-slider__dots {
    gap: 0.45rem;
    padding-inline: 0.6rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .site-nav.is-open {
    max-height: 300px;
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }
}

.site-footer__inner {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.site-footer__nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.site-footer__nav .menu a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--transition);
}

.site-footer__nav .menu a:hover,
.site-footer__nav .menu .current-menu-item > a {
  color: var(--text);
}

.site-footer__meta,
.site-footer__credit {
  margin: 0;
}

.site-footer__credit {
  font-weight: 700;
  color: var(--text);
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(239, 63, 63, 0.92);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 63, 63, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, background 220ms ease;
}

.scroll-top:hover {
  background: #d93030;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top span {
  font-size: 1.15rem;
  line-height: 1;
}
