:root {
  --bg: #070707;
  --bg-soft: #101010;
  --bg-card: #171717;
  --red: #e1192c;
  --red-dark: #a80f1e;
  --white: #ffffff;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(100% - 32px, var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  max-width: 190px;
  font-size: 0.86rem;
  line-height: 1.15;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.facebook-pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.facebook-pill,
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(225, 25, 44, 0.25);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.facebook-pill:hover,
.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover,
.facebook-pill:hover {
  background: #ff2338;
}

.btn-secondary:hover {
  border-color: var(--red);
  background: rgba(225, 25, 44, 0.16);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("hero2.jpg") center 34% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.26)),
    radial-gradient(circle at 78% 58%, rgba(225, 25, 44, 0.24), transparent 28%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), #070707 96%);
  z-index: 1;
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
}

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

.hero-stats {
  position: absolute;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading,
.about-grid,
.program-grid,
.trainer-grid,
.gallery-grid,
.pricing-grid,
.testimonial-grid,
.contact-grid {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading p:last-child {
  max-width: 840px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-section,
.trainers-section,
.testimonials-section {
  background: var(--bg);
}

.programs-section,
.membership-section,
.contact-section {
  background:
    linear-gradient(135deg, rgba(225, 25, 44, 0.08), transparent 36%),
    var(--bg-soft);
}

.about-grid,
.program-grid,
.trainer-grid,
.pricing-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

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

.highlight-card,
.program-card,
.pricing-card,
.testimonial-card,
.contact-form,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.highlight-card,
.program-card,
.pricing-card,
.testimonial-card {
  padding: 28px;
}

.highlight-card,
.program-card,
.pricing-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.highlight-card:hover,
.program-card:hover,
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 25, 44, 0.58);
  background: linear-gradient(180deg, rgba(225, 25, 44, 0.12), rgba(255, 255, 255, 0.035));
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.highlight-card h3,
.program-card h3,
.pricing-card h3,
.testimonial-card strong,
.trainer-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-card p,
.program-card p,
.pricing-card li,
.testimonial-card p,
.trainer-card p {
  color: var(--muted);
}

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

.program-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.88)),
    linear-gradient(135deg, rgba(225, 25, 44, 0.24), rgba(255, 255, 255, 0.04));
}

.trainer-grid,
.pricing-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trainer-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.trainer-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.35s ease;
}

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

.trainer-card div {
  padding: 24px;
}

.trainer-card span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-grid {
  columns: 4 240px;
  column-gap: 18px;
}

.gallery-item {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  cursor: zoom-in;
}

.gallery-item::after {
  content: "View";
  position: absolute;
  inset: auto 14px 14px auto;
  padding: 7px 11px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.78);
}

.price {
  margin-bottom: 22px;
  color: var(--white);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.1;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(225, 25, 44, 0.8);
  transform: translateY(-12px);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-card .btn {
  margin-top: auto;
}

.testimonial-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 1.05rem;
}

.testimonial-card strong {
  color: var(--white);
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 22px;
}

.info-card span {
  display: block;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-card strong,
.info-card a {
  font-size: 1.12rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.full-width {
  width: 100%;
}

.map-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(225, 25, 44, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 25, 44, 0.18) 1px, transparent 1px),
    #111;
  background-size: 44px 44px;
  text-align: center;
}

.map-placeholder span {
  display: block;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.contact-form label {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 14px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 25, 44, 0.14);
}

.contact-form .invalid {
  border-color: #ff6b6b;
}

.form-message {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.success {
  color: #62e69f;
}

.form-message.error {
  color: #ff8080;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer a:not(.footer-brand) {
  color: var(--white);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 72px 18px 28px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ff2338;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    height: calc(100vh - 78px);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 7, 7, 0.98);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link,
  .facebook-pill {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .facebook-pill {
    margin-top: 18px;
    border-bottom: 0;
    padding-inline: 20px;
  }

  .hero-stats {
    left: 16px;
    right: 16px;
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .program-grid,
  .trainer-grid,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 74px;
  }

  .navbar {
    width: min(100% - 24px, var(--max));
    min-height: 70px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    max-width: 150px;
    font-size: 0.76rem;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    min-height: 940px;
    align-items: flex-start;
    background-position: center top;
  }

  .hero-content {
    padding-top: 146px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    bottom: 22px;
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .about-grid,
  .program-grid,
  .trainer-grid,
  .gallery-grid,
  .pricing-grid,
  .testimonial-grid,
  .contact-grid,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .about-grid,
  .program-grid,
  .trainer-grid,
  .pricing-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .trainer-card img {
    height: 320px;
  }

  .gallery-grid {
    columns: 1;
  }

  .gallery-item img {
    min-height: 340px;
  }

  .contact-form,
  .highlight-card,
  .program-card,
  .pricing-card,
  .testimonial-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 880px;
  }

  .hero-content {
    padding-top: 122px;
  }

  .gallery-item img {
    min-height: 280px;
  }

  .price {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
