:root {
  --black: #050505;
  --black-2: #0c0c0c;
  --black-3: #151515;
  --white: #f4f4f0;
  --paper: #e9e9e2;
  --muted: #b7b7af;
  --ink-muted: #4f4f4a;
  --red: #d71920;
  --line: rgba(244, 244, 240, 0.16);
  --dark-line: rgba(5, 5, 5, 0.16);
  --max: 1180px;
  --header: 82px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  min-height: var(--header);
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.94);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.98);
}

.brand-mark,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
}

.brand-mark {
  gap: 14px;
  min-height: 58px;
}

.brand-mark span {
  display: grid;
  gap: 2px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 0.9;
}

.brand-mark span::after {
  content: "Boxning";
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark img,
.footer-logo img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  transition: transform 220ms ease;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  background: var(--black);
}

.brand-mark:hover img {
  transform: rotate(-4deg) scale(1.04);
}

.site-nav {
  display: flex;
  justify-content: center;
  justify-self: center;
  align-items: center;
  gap: 0;
  min-height: 46px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 240, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 14px clamp(8px, 1.1vw, 14px);
  transition: color 160ms ease;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.site-nav a:hover::before,
.site-nav a.is-active::before {
  transform: scaleX(1);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding-left: clamp(12px, 1.6vw, 20px);
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
}

.social-links::before {
  content: "Följ";
  margin-right: 12px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
}

.social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 0;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  transition: color 160ms ease, transform 160ms ease;
}

.social-links a + a {
  margin-left: 12px;
}

.social-links a + a::before {
  content: "/";
  margin-right: 12px;
  color: var(--red);
}

.social-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.page-main {
  animation: page-in 420ms ease both;
  overflow: hidden;
}

.home-hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  padding: calc(var(--header) + 58px) clamp(18px, 5vw, 66px) 58px;
  overflow: hidden;
  background: var(--black);
}

.home-hero {
  min-height: 100svh;
  padding-bottom: clamp(58px, 9vh, 94px);
}

.page-hero {
  min-height: 48vh;
  border-bottom: 1px solid var(--line);
}

body[data-page="schema"] .page-hero {
  min-height: 0;
  padding-top: calc(var(--header) + 22px);
  padding-bottom: 24px;
}

body[data-page="schema"] .page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(260px, 520px);
  gap: 8px 32px;
  align-items: end;
}

body[data-page="schema"] .page-hero .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body[data-page="schema"] .page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
}

body[data-page="schema"] .page-hero p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
}

.hero-video video,
.hero-video img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.24) brightness(0.74);
}

.hero-video video {
  opacity: 0.68;
  transform: scale(1.03);
}

.hero-video img {
  opacity: 0;
  transform: scale(1.04) translate3d(0, 0, 0);
  animation: hero-motion 18s ease-in-out infinite;
}

.hero-video img:nth-child(2) {
  animation-delay: 6s;
}

.hero-video img:nth-child(3) {
  animation-delay: 12s;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 5, 0.54);
}

.hero-content,
.page-hero .section-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(930px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  max-width: 930px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(4.2rem, 8.8vw, 8.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-lead,
.page-hero p,
.content-block p,
.intro-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
}

.home-hero .eyebrow {
  margin-bottom: 34px;
}

.intro-copy h2 {
  max-width: 660px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button span {
  margin-left: 10px;
}

.button:hover {
  transform: translateY(-2px);
}

.button-red {
  border-color: var(--red);
  background: var(--red);
}

.button-red:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.button-white:hover {
  background: var(--white);
  color: var(--black);
}

.section {
  position: relative;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 66px);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.section-white {
  background: var(--paper);
  color: var(--black);
}

.section-white .eyebrow,
.section-white .page-card span {
  color: var(--red);
}

.section-white p,
.section-white small,
.section-white .solid-list span {
  color: var(--ink-muted);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid,
.split,
.contact-layout,
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.reverse {
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.9fr);
}

.intro-facts,
.solid-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.intro-facts div,
.solid-list div {
  padding: 22px;
  background: var(--black-2);
}

.section-white .solid-list,
.section-white .intro-facts {
  border-color: var(--dark-line);
  background: var(--dark-line);
}

.section-white .solid-list div,
.section-white .intro-facts div {
  background: var(--white);
}

.intro-facts span,
.solid-list strong,
.payment-box span,
.price-card span {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-facts strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--white);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.intro-facts small,
.solid-list span {
  color: var(--muted);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--dark-line);
  background: var(--dark-line);
}

.page-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  background: var(--white);
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.page-card:hover {
  z-index: 1;
  background: var(--red);
  color: var(--white);
  transform: translateY(-6px);
}

.page-card span,
.page-card strong,
.page-card small {
  display: block;
}

.page-card strong {
  margin: 42px 0 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.page-card:hover span,
.page-card:hover small {
  color: var(--white);
}

.image-block {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--black-3);
}

.section-white .image-block {
  border-color: var(--dark-line);
}

body[data-page="om"] .image-block {
  min-height: 0;
  align-self: center;
}

body[data-page="om"] .image-block img {
  height: auto;
}

.image-block img,
.gallery-item img {
  filter: grayscale(1) contrast(1.08);
  transition: filter 260ms ease, transform 360ms ease;
}

.image-block:hover img,
.gallery-item:hover img {
  filter: grayscale(0.15) contrast(1.08);
  transform: scale(1.035);
}

.content-block {
  min-width: 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.price-card {
  position: relative;
  min-height: 270px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--black-2);
  overflow: hidden;
}

.price-card-red {
  background: var(--red);
}

.price-card-red span,
.price-card-red small {
  color: var(--white);
}

.price-card strong {
  display: block;
  margin: 38px 0 10px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.price-card small {
  color: var(--muted);
}

.payment-box {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--dark-line);
  background: var(--black);
  color: var(--white);
}

.payment-box p {
  color: var(--muted);
}

.payment-box strong {
  display: block;
  margin-top: 28px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.schedule-section {
  padding-top: clamp(22px, 3vw, 34px);
}

.schedule-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.schedule-heading .eyebrow,
.schedule-heading h2 {
  margin: 0;
}

.schedule-heading h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
}

.schedule-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.schedule-day {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--black-2);
}

.schedule-day header {
  display: grid;
  gap: 8px;
  padding: 18px clamp(16px, 1.8vw, 22px);
  background: var(--white);
  color: var(--black);
}

.schedule-day:nth-child(even) header {
  background: var(--black);
  color: var(--white);
}

.schedule-day header span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.schedule-day h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 0.9;
}

.schedule-sessions {
  display: grid;
}

.schedule-session {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px 16px;
  align-content: start;
  min-height: 104px;
  padding: 16px clamp(14px, 1.5vw, 20px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.schedule-session time,
.schedule-session span {
  font-size: 0.78rem;
  font-weight: 900;
}

.schedule-session time {
  grid-row: 1;
  color: var(--white);
}

.schedule-session span {
  grid-row: 2;
  color: var(--red);
}

.schedule-session strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.14rem);
  line-height: 1.2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--black-2);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--black-2);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  padding: 14px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  position: relative;
  padding: 0 clamp(18px, 5vw, 66px);
  background: var(--black);
  overflow: hidden;
}

.site-footer::before {
  content: "RÅGSVEDS BOXNINGSKLUBB";
  position: absolute;
  left: clamp(18px, 5vw, 66px);
  bottom: -0.2em;
  color: rgba(244, 244, 240, 0.055);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.2rem, 12vw, 11rem);
  line-height: 0.85;
  pointer-events: none;
  white-space: nowrap;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr;
  gap: clamp(28px, 5vw, 74px);
  min-height: 250px;
  padding: 52px 0;
  align-items: center;
  color: var(--muted);
}

.footer-logo {
  align-self: center;
}

.footer-logo img {
  width: 72px;
  height: 72px;
}

.footer-logo span {
  max-width: 410px;
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 4rem);
  line-height: 0.9;
}

.footer-inner > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-inner strong {
  color: var(--red);
  text-transform: uppercase;
}

.footer-inner a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.home-hero .reveal,
.page-hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-motion {
  0% {
    opacity: 0;
    transform: scale(1.05) translate3d(-1.5%, 0, 0);
  }
  8% {
    opacity: 0.36;
  }
  30% {
    opacity: 0.36;
    transform: scale(1.12) translate3d(1.5%, -1%, 0);
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.05) translate3d(-1.5%, 0, 0);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .social-links {
    position: fixed;
    left: auto;
    right: 0;
    width: min(380px, 100vw);
    display: flex;
    visibility: hidden;
    background: rgba(5, 5, 5, 0.99);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 220ms ease, opacity 180ms ease, visibility 220ms;
  }

  .site-nav.is-open,
  .social-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .site-nav {
    top: var(--header);
    bottom: 0;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 0;
    padding: 28px 24px 104px;
    border: 0;
    border-left: 1px solid var(--line);
    overflow-y: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .social-links {
    top: auto;
    bottom: 0;
    z-index: 3;
    gap: 0;
    padding-left: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .social-links::before {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-right: 0;
    padding: 0 18px;
    border-right: 1px solid var(--line);
  }

  .social-links a {
    flex: 1;
    justify-content: center;
    width: auto;
    min-height: 48px;
    border: 0;
    border-right: 1px solid var(--line);
  }

  .social-links a + a {
    margin-left: 0;
  }

  .social-links a + a::before {
    display: none;
  }

  .intro-grid,
  .split,
  .reverse,
  .contact-layout,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .page-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {
  .schedule-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header: 74px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .site-nav,
  .social-links {
    width: 100vw;
  }

  .brand-mark span {
    font-size: 0.92rem;
  }

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

  .home-hero {
    min-height: 94svh;
    padding-bottom: 58px;
  }

  .page-hero {
    min-height: 42vh;
  }

  body[data-page="schema"] .page-hero {
    padding-top: calc(var(--header) + 30px);
  }

  body[data-page="schema"] .page-hero .section-inner {
    display: block;
  }

  body[data-page="schema"] .page-hero .eyebrow {
    margin-bottom: 8px;
  }

  body[data-page="schema"] .page-hero h1 {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(1.95rem, 9vw, 3.6rem);
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .action-row,
  .button {
    width: 100%;
  }

  .price-grid,
  .page-links,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-logo span {
    max-width: min(100%, 270px);
    font-size: clamp(1.55rem, 11vw, 2.7rem);
    overflow-wrap: break-word;
  }

  .image-block {
    min-height: 310px;
  }

  .schedule-heading {
    display: block;
  }

  .schedule-board {
    grid-template-columns: 1fr;
  }

  .schedule-session {
    min-height: 120px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }
}

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

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