/*
 * MMA / Gym landing — black, yellow accent, white text
 */

:root {
  --mma-bg: #050505;
  --mma-bg-elevated: #111111;
  --mma-yellow: #efff00;
  --mma-yellow-dim: #b8cc00;
  --mma-white: #f5f5f5;
  --mma-muted: #b8b8b8;
  --mma-border: rgba(239, 255, 0, 0.25);
  --mma-maxw: 1120px;
  --mma-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.mma-gym-landing-root {
  scroll-behavior: smooth;
}

body.mma-gym-landing {
  margin: 0;
  background: var(--mma-bg);
  color: var(--mma-white);
  font-family: var(--mma-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.mma-gym-landing .mma-landing-main {
  display: block;
}

body.mma-gym-landing ul,
body.mma-gym-landing ol {
  list-style: none;
  padding-left: 0;
}

body.mma-gym-landing li::marker {
  content: "";
}

.mma-modal-open {
  overflow: hidden;
}

/* ----- Header ----- */
.mma-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--mma-border);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}

.mma-site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mma-header-inner {
  max-width: var(--mma-maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mma-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--mma-white);
  align-items: flex-start;
}

.mma-brand--has-logo {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  max-width: min(100%, 360px);
}

.mma-brand__logo {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

.mma-brand__texts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mma-brand__sitename {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
  color: var(--mma-white);
  line-height: 1.25;
}

.mma-brand__tagline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--mma-muted);
  font-weight: 400;
  display: block;
  line-height: 1.35;
  max-width: 14rem;
}

.mma-nav-desktop {
  display: none;
}

.mma-nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.mma-nav-desktop a {
  color: var(--mma-white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.mma-nav-desktop a:hover,
.mma-nav-desktop a:focus-visible {
  color: var(--mma-yellow);
  border-bottom-color: var(--mma-yellow);
  outline: none;
}

.mma-header-cta {
  display: none;
  white-space: nowrap;
  padding: 0.55rem 1rem;
  background: var(--mma-yellow);
  color: #111;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.mma-header-contact {
  display: none;
}

.mma-header-cta:hover,
.mma-header-cta:focus-visible {
  background: #f4ff66;
  outline: none;
}

.mma-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mma-border);
  border-radius: 4px;
  background: transparent;
  color: var(--mma-white);
  cursor: pointer;
}

.mma-nav-toggle:focus-visible {
  outline: 2px solid var(--mma-yellow);
  outline-offset: 2px;
}

.mma-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mma-nav-toggle__bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mma-white);
  border-radius: 1px;
}

#mma-nav-drawer {
  max-width: var(--mma-maxw);
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--mma-border);
  background: var(--mma-bg);
}

#mma-nav-drawer[hidden] {
  display: none;
}

#mma-nav-drawer.is-open {
  display: block;
}

#mma-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#mma-nav-drawer a {
  display: block;
  padding: 0.65rem 0.25rem;
  color: var(--mma-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

#mma-nav-drawer a:hover,
#mma-nav-drawer a:focus-visible {
  background: var(--mma-bg-elevated);
  color: var(--mma-yellow);
  outline: none;
}

@media (min-width: 960px) {
  .mma-nav-desktop {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .mma-nav-desktop ul {
    flex-wrap: nowrap;
    gap: 0.25rem 0.75rem;
  }

  .mma-header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    margin-left: auto;
    min-width: 220px;
  }

  .mma-header-contact__phone {
    color: var(--mma-yellow);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.1;
  }

  .mma-header-contact__phone:hover,
  .mma-header-contact__phone:focus-visible {
    color: #f4ff66;
    outline: none;
  }

  .mma-header-contact__social {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
  }

  .mma-header-contact__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mma-white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }

  .mma-header-contact__icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: block;
  }

  .mma-header-contact__icon:hover,
  .mma-header-contact__icon:focus-visible {
    color: var(--mma-yellow);
    border-color: rgba(239, 255, 0, 0.62);
    background: rgba(239, 255, 0, 0.08);
    outline: none;
  }

  .mma-nav-toggle {
    display: none;
  }

  #mma-nav-drawer {
    display: none !important;
  }

  .mma-header-cta {
    display: none;
  }
}

@media (min-width: 960px) and (max-width: 1200px) {
  .mma-nav-desktop a {
    font-size: 0.82rem;
    padding: 0.3rem 0;
  }

  .mma-header-contact {
    min-width: 200px;
  }
}

/* ----- Sections ----- */
.mma-section {
  padding: 4rem 1.25rem;
}

.mma-section--tight-top {
  padding-top: 2rem;
}

.mma-section__inner {
  max-width: var(--mma-maxw);
  margin: 0 auto;
}

.mma-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mma-yellow);
}

.mma-section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.mma-section__lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--mma-muted);
  font-size: 1.05rem;
}

/* Диагональная сетка поверх тёмных блоков (секции лендинга, подвал) */
.mma-surface-textured {
  position: relative;
  overflow: hidden;
}

.mma-surface-textured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -38deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, 0.018) 14px,
    rgba(255, 255, 255, 0.018) 15px
  );
  pointer-events: none;
  opacity: 0.65;
  z-index: 0;
}

.mma-surface-textured .mma-section__inner,
.mma-surface-textured .mma-site-footer__inner,
.mma-surface-textured.mma-nav-drawer > nav {
  position: relative;
  z-index: 1;
}

.mma-section--benefits {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(239, 255, 0, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(239, 255, 0, 0.04), transparent 45%),
    linear-gradient(180deg, #0e0e0e 0%, #080808 45%, #0a0a0a 100%);
  border-top: 1px solid rgba(239, 255, 0, 0.12);
  border-bottom: 1px solid rgba(239, 255, 0, 0.1);
  overflow: hidden;
}

.mma-section__lead--benefits {
  margin-bottom: 2.5rem;
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.55;
  color: #c4c4c4;
}

.mma-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .mma-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.1rem;
  }
}

@media (min-width: 960px) {
  .mma-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1.2rem;
  }
}

.mma-benefit {
  position: relative;
  display: flex;
  /* flex-direction: column; */
  align-items: stretch;
  gap: 1.05rem;
  margin: 0;
  padding: 1.35rem 1.2rem 1.45rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(24, 24, 24, 0.92) 0%, rgba(12, 12, 12, 0.96) 42%, rgba(8, 8, 8, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 1px 0 rgba(239, 255, 0, 0.12) inset,
    0 12px 36px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.mma-benefit::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent 0%, rgba(239, 255, 0, 0.85) 50%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

.mma-benefit:hover,
.mma-benefit:focus-within {
  transform: translateY(-5px);
  border-color: rgba(239, 255, 0, 0.28);
  box-shadow:
    0 1px 0 rgba(239, 255, 0, 0.2) inset,
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(239, 255, 0, 0.07),
    0 0 0 1px rgba(239, 255, 0, 0.12);
}

.mma-benefit__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mma-yellow);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(239, 255, 0, 0.2) 0%, rgba(239, 255, 0, 0.05) 100%);
  border: 1px solid rgba(239, 255, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 8px 28px rgba(239, 255, 0, 0.1);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.mma-benefit:hover .mma-benefit__icon,
.mma-benefit:focus-within .mma-benefit__icon {
  transform: scale(1.04);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 10px 32px rgba(239, 255, 0, 0.18);
}

.mma-benefit__svg {
  width: 34px;
  height: 34px;
  display: block;
  opacity: 0.98;
}

.mma-benefit__text {
  min-width: 0;
  flex: 1;
}

.mma-benefit__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 1.1vw + 0.75rem, 1.18rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--mma-white);
}

.mma-benefit__desc {
  margin: 0;
  font-size: clamp(0.86rem, 0.4vw + 0.78rem, 0.95rem);
  line-height: 1.55;
  color: #b0b0b0;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .mma-benefit,
  .mma-benefit__icon {
    transition: none;
  }

  .mma-benefit:hover,
  .mma-benefit:focus-within {
    transform: none;
  }

  .mma-benefit:hover .mma-benefit__icon,
  .mma-benefit:focus-within .mma-benefit__icon {
    transform: none;
  }
}

/* Hero */
.mma-hero {
  position: relative;
  min-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  padding: clamp(5rem, 8vh, 6.25rem) 1.25rem clamp(2rem, 5vh, 3rem);
  overflow: hidden;
  background: #050505;
}

.mma-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(239, 255, 0, 0.03) 12px,
    rgba(239, 255, 0, 0.03) 13px
  );
  pointer-events: none;
}

.mma-hero--photo {
  background-color: #070707;
  background-image: var(--mma-hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.mma-hero--photo::before {
  display: block;
  background:
    linear-gradient(105deg, rgba(6, 6, 6, 0.88) 0%, rgba(6, 6, 6, 0.55) 45%, rgba(6, 6, 6, 0.8) 100%),
    radial-gradient(circle at 82% 16%, rgba(239, 255, 0, 0.18), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(239, 255, 0, 0.08), transparent 35%);
}

.mma-hero--photo::after {
  content: "";
  position: absolute;
  inset: auto -16% -34% auto;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 255, 0, 0.14) 0%, rgba(239, 255, 0, 0.03) 52%, transparent 72%);
  pointer-events: none;
  filter: blur(8px);
}

.mma-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--mma-maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.mma-hero__content {
  width: min(100%, 520px);
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.5), rgba(7, 7, 7, 0.2));
  backdrop-filter: blur(4px);
}

.mma-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.mma-hero__title .accent {
  color: var(--mma-yellow);
}

.mma-hero__text {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: clamp(0.97rem, 2vw, 1.05rem);
  line-height: 1.45;
  color: #dddddd;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.mma-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mma-btn--primary {
  background: var(--mma-yellow);
  color: #111;
}

.mma-btn--primary:hover,
.mma-btn--primary:focus-visible {
  background: #f4ff66;
  outline: none;
}

.mma-btn--ghost {
  background: transparent;
  color: var(--mma-white);
  border-color: var(--mma-border);
}

.mma-btn--ghost:hover,
.mma-btn--ghost:focus-visible {
  border-color: var(--mma-yellow);
  color: var(--mma-yellow);
  outline: none;
}

.mma-hero__stats {
  margin-top: 1.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 34rem;
}

.mma-stat {
  --mma-stat-accent: rgba(239, 255, 0, 0.55);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.25rem;
  padding: 0.65rem 0.7rem 0.65rem 0.65rem;
  text-align: left;
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 42%, transparent 68%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.82) 0%, rgba(6, 6, 6, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mma-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--mma-stat-accent), rgba(239, 255, 0, 0.08));
  opacity: 0.95;
  pointer-events: none;
}

.mma-stat--classes {
  --mma-stat-accent: rgba(239, 255, 0, 0.7);
}

.mma-stat--trainers {
  --mma-stat-accent: rgba(244, 255, 102, 0.55);
}

.mma-stat--schedule {
  --mma-stat-accent: rgba(200, 220, 40, 0.5);
}

.mma-stat:hover,
.mma-stat:focus-within {
  border-color: rgba(239, 255, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(239, 255, 0, 0.12) inset,
    0 16px 36px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(239, 255, 0, 0.06);
  transform: translateY(-1px);
}

.mma-stat__icon-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  color: var(--mma-yellow);
  background: radial-gradient(circle at 30% 25%, rgba(239, 255, 0, 0.22), rgba(239, 255, 0, 0.04) 62%, transparent 72%);
  border: 1px solid rgba(239, 255, 0, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mma-stat__svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.mma-stat__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.mma-stat__value {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--mma-yellow);
  text-shadow: 0 0 20px rgba(239, 255, 0, 0.18), 0 1px 0 rgba(0, 0, 0, 0.45);
}

.mma-stat__value::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.3rem;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.9;
}

.mma-stat__label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(230, 230, 230, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  .mma-stat {
    transition: none;
  }

  .mma-stat:hover,
  .mma-stat:focus-within {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .mma-hero__content {
    width: min(100%, 560px);
  }
}

@media (max-width: 760px) {
  .mma-hero {
    min-height: auto;
    max-height: none;
    padding: 5rem 1rem 2.5rem;
  }

  .mma-hero__inner {
    justify-content: flex-start;
  }

  .mma-hero__content {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
  }

  .mma-hero__stats {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .mma-stat {
    min-height: 3.85rem;
    padding: 0.55rem 0.65rem;
  }

  .mma-stat__icon-wrap {
    width: 2.45rem;
    height: 2.45rem;
  }

  .mma-hero__actions {
    justify-content: center;
  }  

  .mma-hero__actions .mma-btn {
    width: 60%;
  }
}

/* Services grid */
.mma-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .mma-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .mma-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mma-card {
  background: var(--mma-bg-elevated);
  border: 1px solid var(--mma-border);
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
  transition: border-color 0.15s, transform 0.15s;
}

.mma-card:hover {
  border-color: rgba(239, 255, 0, 0.55);
  transform: translateY(-2px);
}

.mma-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(239, 255, 0, 0.12);
  color: var(--mma-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.mma-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.mma-card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mma-muted);
}

/* Trainers */
.mma-carousel {
  position: relative;
}

.mma-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.mma-carousel__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--mma-border);
  border-radius: 6px;
  background: #111;
  color: var(--mma-white);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.mma-carousel__btn:hover,
.mma-carousel__btn:focus-visible {
  border-color: var(--mma-yellow);
  color: var(--mma-yellow);
  outline: none;
}

.mma-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mma-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.mma-carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.mma-carousel__track--trainers .mma-carousel__slide {
  flex: 0 0 100%;
}

@media (min-width: 600px) {
  .mma-carousel__track--trainers .mma-carousel__slide {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 900px) {
  .mma-carousel__track--trainers .mma-carousel__slide {
    flex-basis: calc((100% - 3.75rem) / 4);
  }
}

.mma-trainers-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .mma-trainers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}

@media (min-width: 900px) {
  .mma-trainers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.mma-trainer {
  background: var(--mma-bg-elevated);
  border: 1px solid var(--mma-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mma-trainer__photo {
  aspect-ratio: 5 / 3;
  max-height: 10.5rem;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(239, 255, 0, 0.45);
  padding: 0;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .mma-trainer__photo {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

.mma-trainer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 599px) {
  .mma-trainer__photo {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .mma-trainer__photo img {
    object-position: center top;
  }
}

.mma-trainer__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  box-sizing: border-box;
}

.mma-trainer__placeholder-icon {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  opacity: 0.9;
}

.mma-trainer__placeholder-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mma-muted);
}

@media (min-width: 600px) {
  .mma-trainer__placeholder {
    padding: 1rem;
    min-height: 11rem;
  }

  .mma-trainer__placeholder-icon {
    width: 56px;
    height: 56px;
  }

  .mma-trainer__placeholder-label {
    font-size: 0.8rem;
  }
}

.mma-trainer__body {
  padding: 0.75rem 0.9rem 0.95rem;
  flex: 1;
}

@media (min-width: 600px) {
  .mma-trainer__body {
    padding: 1rem 1.1rem 1.2rem;
  }
}

.mma-trainer__name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 600px) {
  .mma-trainer__name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
}

.mma-trainer__role {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--mma-yellow);
  font-weight: 600;
}

@media (min-width: 600px) {
  .mma-trainer__role {
    font-size: 0.82rem;
    line-height: 1.45;
  }
}

/* Schedule */
.mma-week-schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mma-week-schedule {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .mma-week-schedule {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mma-day-card {
  background: #101010;
  border: 1px solid rgba(239, 255, 0, 0.26);
  border-radius: 12px;
  padding: 1.15rem 1.1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.mma-day-card__day {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mma-yellow);
}

.mma-day-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mma-day-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mma-day-card__list li span {
  color: #e4e4e4;
  font-size: 0.95rem;
}

.mma-day-card__list li strong {
  color: #111;
  background: var(--mma-yellow);
  border-radius: 5px;
  padding: 0.2rem 0.45rem;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.mma-day-card--off {
  border-color: rgba(255, 255, 255, 0.2);
}

.mma-day-card__off {
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
  font-size: 0.95rem;
}

.mma-schedule-info-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .mma-schedule-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mma-schedule-info-card {
  background: #101010;
  border: 1px solid rgba(239, 255, 0, 0.26);
  border-radius: 12px;
  padding: 1.4rem 1.35rem;
}

.mma-schedule-info-card h3 {
  margin: 0 0 0.9rem;
  color: var(--mma-yellow);
  font-size: 1.2rem;
  line-height: 1.2;
}

.mma-schedule-info-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #e2e2e2;
  font-size: 1rem;
  line-height: 1.55;
}

.mma-schedule-info-card p {
  margin: 0;
  color: #e2e2e2;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .mma-day-card {
    padding: 1rem;
  }

  .mma-day-card__day {
    font-size: 1rem;
  }

  .mma-schedule-info-card {
    padding: 1.15rem 1.05rem;
  }
}

.mma-table td.mma-muted,
.mma-muted {
  color: var(--mma-muted);
}

/* Pricing */
.mma-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .mma-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1120px) {
  .mma-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mma-price-card {
  background: #101010;
  border: 1px solid rgba(239, 255, 0, 0.22);
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.mma-price-card--featured {
  border-color: var(--mma-yellow);
  box-shadow: 0 0 0 1px rgba(239, 255, 0, 0.24), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.mma-price-card__name {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--mma-yellow);
}

.mma-price-list {
  margin: 0 0 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mma-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mma-price-row span {
  color: #e2e2e2;
  font-size: 0.93rem;
  line-height: 1.35;
}

.mma-price-row strong {
  color: #111;
  background: var(--mma-yellow);
  border-radius: 5px;
  padding: 0.18rem 0.45rem;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.mma-price-list--promo .mma-price-row {
  justify-content: flex-start;
}

.mma-price-list--promo .mma-price-row span {
  font-size: 0.9rem;
}

/* Gallery — Masonry (CSS columns), лайтбокс без изменений */
.mma-gallery-grid--masonry {
  display: block;
  column-count: 2;
  column-gap: 0.65rem;
  column-fill: balance;
}

@media (min-width: 600px) {
  .mma-gallery-grid--masonry {
    column-count: 3;
  }
}

@media (min-width: 900px) {
  .mma-gallery-grid--masonry {
    column-count: 4;
    column-gap: 0.85rem;
  }
}

.mma-gallery-grid--masonry .mma-gallery__item {
  margin: 0 0 0.65rem;
  padding: 0;
  width: 100%;
  max-width: 100%;
  display: inline-block;
  vertical-align: top;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--mma-border);
  background: #111;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .mma-gallery-grid--masonry .mma-gallery__item {
    margin-bottom: 0.85rem;
  }
}

.mma-gallery-grid--masonry .mma-gallery__item:hover,
.mma-gallery-grid--masonry .mma-gallery__item:focus-visible {
  border-color: rgba(239, 255, 0, 0.45);
  outline: none;
  box-shadow: 0 0 0 1px rgba(239, 255, 0, 0.2);
}

.mma-gallery-grid--masonry .mma-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  pointer-events: none;
}

/* Reviews */
.mma-reviews-slider {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.mma-reviews-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.mma-reviews-slider__hint {
  margin: 0;
  color: var(--mma-muted);
  font-size: 0.9rem;
}

.mma-reviews-slider__controls {
  display: flex;
  gap: 0.4rem;
}

.mma-reviews-slider__btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--mma-border);
  border-radius: 6px;
  background: #111;
  color: var(--mma-white);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.mma-reviews-slider__btn:hover,
.mma-reviews-slider__btn:focus-visible {
  border-color: var(--mma-yellow);
  color: var(--mma-yellow);
  outline: none;
}

.mma-reviews-slider__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mma-reviews-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mma-reviews-slider__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 760px) {
  .mma-reviews-slider__track {
    grid-auto-columns: calc((100% - 0.9rem) / 2);
  }
}

@media (min-width: 1180px) {
  .mma-reviews-slider__track {
    grid-auto-columns: calc((100% - 1.8rem) / 3);
  }
}

.mma-reviews-slider__slide {
  scroll-snap-align: start;
}

.mma-review {
  margin: 0;
  background: #141414;
  border: 1px solid rgba(239, 255, 0, 0.2);
  border-radius: 12px;
  padding: 1.35rem 1.2rem;
  min-height: 190px;
}

.mma-review__stars {
  color: var(--mma-yellow);
  letter-spacing: 0.15em;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.mma-review__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--mma-muted);
  font-style: italic;
}

.mma-review__author {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mma-white);
}

/* Contacts */
.mma-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mma-contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.mma-contact-block {
  background: var(--mma-bg-elevated);
  border: 1px solid var(--mma-border);
  border-radius: 10px;
  padding: 1.4rem 1.45rem;
}

.mma-contact-block--map {
  grid-column: 1 / -1;
}

.mma-contact-logo-wrap {
  margin: 0 0 1rem;
}

.mma-contact-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.mma-contact-block h3 {
  margin: 0 0 0.9rem;
  font-size: 1.22rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--mma-yellow);
}

.mma-contact-block p,
.mma-contact-block address {
  margin: 0 0 0.8rem;
  font-style: normal;
  color: var(--mma-white);
  font-size: 1rem;
  line-height: 1.45;
}

.mma-contact-block a {
  color: var(--mma-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mma-contact-block a:hover {
  color: var(--mma-yellow);
}

.mma-contact-block a[href^="tel:"] {
  margin-bottom: 0.9rem;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--mma-yellow);
  text-decoration: none;
}

.mma-contact-block a[href^="tel:"]:hover,
.mma-contact-block a[href^="tel:"]:focus-visible {
  color: #f4ff66;
  text-decoration: none;
}

.mma-contact-block .mma-muted {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--mma-white);
}

.mma-contact-social {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.mma-contact-social__link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mma-yellow);
  text-decoration: none;
  border: 1px solid rgba(239, 255, 0, 0.35);
  border-radius: 999px;
  background: rgba(239, 255, 0, 0.05);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mma-contact-social__link svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.mma-contact-social__link:hover,
.mma-contact-social__link:focus-visible {
  color: var(--mma-white);
  border-color: var(--mma-white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.mma-contact-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
}

.mma-contact-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: var(--mma-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}

.mma-contact-legal-btn:hover,
.mma-contact-legal-btn:focus-visible {
  color: var(--mma-yellow);
  outline: none;
}

.mma-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--mma-white);
}

.mma-form input,
.mma-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--mma-border);
  background: #0a0a0a;
  color: var(--mma-white);
  font: inherit;
}

.mma-form input:focus-visible,
.mma-form textarea:focus-visible {
  outline: 2px solid var(--mma-yellow);
  border-color: var(--mma-yellow);
}

.mma-form textarea {
  min-height: 120px;
  resize: vertical;
}

.mma-form-note {
  margin-top: 0.75rem!important;
  font-size: 0.82rem!important;
  color: var(--mma-muted);
}

.mma-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mma-form-req {
  color: var(--mma-yellow);
  font-weight: 800;
}

.mma-form-opt {
  font-weight: 400;
  color: var(--mma-muted);
  font-size: 0.78em;
}

.mma-form-feedback {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mma-form-feedback--success {
  background: rgba(239, 255, 0, 0.12);
  border: 1px solid rgba(239, 255, 0, 0.35);
  color: var(--mma-white);
}

.mma-form-feedback--error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffcccc;
}

/* AJAX toast: заявка отправлена / ошибка */
.mma-contact-toast {
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  max-width: min(92vw, 22rem);
  padding: 0.9rem 1.15rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.32s ease, opacity 0.32s ease;
  opacity: 0;
  pointer-events: none;
}

.mma-contact-toast--success {
  background: #1a1a0a;
  border: 1px solid rgba(239, 255, 0, 0.5);
  color: var(--mma-white);
}

.mma-contact-toast--error {
  background: #2a1010;
  border: 1px solid rgba(255, 140, 140, 0.45);
  color: #ffe4e4;
}

.mma-contact-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.mma-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.mma-contact-map {
  margin-top: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  min-height: 220px;
}

.mma-contact-map > * {
  max-width: 100% !important;
}

/* Site footer (landing) */
.mma-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4rem 1.25rem 2rem;
  background: #0b0b0b;
}

.mma-site-footer__inner {
  max-width: var(--mma-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  align-items: start;
  text-align: left;
}

@media (min-width: 768px) {
  .mma-site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .mma-site-footer__inner {
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  }

  .mma-site-footer__copy {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.mma-site-footer__title {
  margin: 0 0 0.9rem;
  color: var(--mma-white);
  font-size: 1rem;
  font-weight: 700;
}

.mma-site-footer__col {
  min-width: 0;
}

.mma-site-footer__col--brand .mma-site-footer__title {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.mma-site-footer__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--mma-muted);
  font-size: 0.95rem;
}

.mma-site-footer__list li {
  margin-bottom: 0.45rem;
}

.mma-site-footer__social {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  justify-content: flex-start;
  margin-top: 0.65rem;
}

.mma-site-footer__social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mma-white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mma-site-footer__social-link svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.mma-site-footer__social-link:hover,
.mma-site-footer__social-link:focus-visible {
  color: var(--mma-yellow);
  border-color: rgba(239, 255, 0, 0.6);
  background: rgba(239, 255, 0, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.mma-site-footer__logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.mma-site-footer__siteline {
  margin: 0;
  max-width: 26rem;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--mma-muted);
}

.mma-site-footer__meta {
  margin: 0 0 0.45rem;
  color: var(--mma-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mma-site-footer__meta a {
  color: var(--mma-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mma-site-footer__meta a:hover,
.mma-site-footer__meta a:focus-visible {
  color: var(--mma-muted);
  outline: none;
}

.mma-site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  justify-content: flex-start;
  margin: 0 0 1rem;
}

.mma-site-footer__links button {
  background: none;
  border: none;
  padding: 0;
  color: var(--mma-muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}

.mma-site-footer__links button:hover,
.mma-site-footer__links button:focus-visible {
  color: var(--mma-white);
  outline: none;
}

.mma-site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mma-muted);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Галерея: полноэкранный просмотр */
.mma-gallery-lightbox {
  z-index: 300;
  padding: 0;
}

.mma-gallery-lightbox__shell {
  position: relative;
  z-index: 1;
  width: min(100vw, 1280px);
  height: min(96vh, 900px);
  max-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  box-sizing: border-box;
}

.mma-gallery-lightbox__frame {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mma-gallery-lightbox__frame img {
  max-width: 100%;
  max-height: calc(96vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.mma-gallery-lightbox__nav {
  position: fixed;
  top: 50dvh;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--mma-border);
  background: rgba(17, 17, 17, 0.9);
  color: var(--mma-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s, color 0.15s;
}

.mma-gallery-lightbox__nav svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.mma-gallery-lightbox__nav:hover,
.mma-gallery-lightbox__nav:focus-visible {
  border-color: var(--mma-yellow);
  color: var(--mma-yellow);
  outline: none;
}

.mma-gallery-lightbox__prev {
  left: max(0.5rem, env(safe-area-inset-left, 0px));
}

.mma-gallery-lightbox__next {
  right: max(0.5rem, env(safe-area-inset-right, 0px));
}

.mma-gallery-lightbox .mma-gallery-lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 2;
}

.mma-gallery-lightbox__counter {
  position: absolute;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.88rem;
  color: var(--mma-muted);
}

@media (max-width: 640px) {
  .mma-gallery-lightbox__shell {
    padding: 2.75rem 0.35rem;
  }

  .mma-gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .mma-gallery-lightbox__nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Modals */
.mma-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.mma-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.mma-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #101010;
  border: 1px solid var(--mma-border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.mma-modal__dialog--wide {
  max-width: min(92vw, 640px);
  max-height: min(88vh, 720px);
}

.mma-modal__body--legal {
  font-size: 0.86rem;
  line-height: 1.55;
}

.mma-modal__body--legal p {
  margin: 0 0 0.85rem;
}

.mma-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.mma-modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mma-yellow);
}

.mma-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mma-border);
  border-radius: 4px;
  background: transparent;
  color: var(--mma-white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mma-modal__close:hover,
.mma-modal__close:focus-visible {
  border-color: var(--mma-yellow);
  color: var(--mma-yellow);
  outline: none;
}

.mma-modal__body {
  font-size: 0.9rem;
  color: var(--mma-muted);
}

.mma-modal__body p {
  margin: 0 0 0.75rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
