@font-face {
  font-family: "Barlow Condensed";
  src: url("materialy/barlow-condensed-extrabold-italic.woff") format("woff");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #090a0d;
  --ink: #f7f8fb;
  --blue: #446bff;
  --ice: #9ab2ff;
  --rule: #373b43;
  font: 100%/1.35 system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.6rem, 5svh, 4rem) clamp(2rem, 7vw, 9rem);
  background: radial-gradient(ellipse at 83% 63%, #11182a 0, transparent 39%), var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button):focus-visible {
  outline: 3px solid #b5caff;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 5;
  padding: .8rem 1rem;
  transform: translateY(calc(-100% - 2rem));
  background: var(--ink);
  color: var(--canvas);
}
.skip:focus { transform: none; }

.poster {
  --film-height: clamp(32rem, 84svh, 53rem);
  width: min(100%, 74rem);
  display: grid;
  grid-template-areas: "mast film" "booking film" "contact film";
  grid-template-columns: minmax(0, 1fr) min(38%, calc(var(--film-height) * .5625));
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(2.5rem, 7vw, 7.6rem);
  isolation: isolate;
  position: relative;
}
.masthead {
  grid-area: mast;
  align-self: start;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.8vw, 2.9rem);
}
.brand { display: block; flex: none; width: clamp(6.7rem, 9vw, 8.3rem); height: auto; }
.status {
  position: relative;
  margin: 0;
  padding-inline-start: .9rem;
  color: #d3d7df;
  font-size: clamp(.85rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.3;
}
.status strong { display: block; color: var(--ink); font-weight: 650; }
.status::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .48em;
  width: .44rem;
  height: .44rem;
  background: var(--blue);
  transform: skewX(-15deg);
}

.film {
  --cut: clamp(1.25rem, 2.3vw, 2.25rem);
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  grid-area: film;
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 9 / 16;
}
.film::before {
  content: "";
  position: absolute;
  inset: .38rem -.38rem -.38rem .38rem;
  clip-path: var(--shape);
  background: var(--blue);
}
.film-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: var(--shape);
  background: #101318 url("materialy/klub-kadr.jpg") center / cover no-repeat;
}
.film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #01020860, transparent 22%);
}
.playback {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffff65;
  border-radius: 50%;
  background: #080b11bf;
  color: white;
  cursor: pointer;
}
.playback:hover { border-color: white; background: #132352; }
.playback svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.playback .pause, .playback.is-playing .play { display: none; }
.playback.is-playing .pause { display: block; }

.booking { grid-area: booking; align-self: center; padding: 2.2rem 0; min-width: 0; }
.booking:focus { outline: none; }
h1 {
  margin: 0 0 clamp(1.5rem, 4vh, 3rem);
  font: italic 800 clamp(5.5rem, 9.6vw, 9.4rem)/.87 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.028em;
  text-transform: uppercase;
}
h1 span { color: var(--blue); }
.sports { border-block: 1px solid var(--rule); }
.sport {
  display: flex;
  min-height: clamp(3.8rem, 8.2svh, 5.3rem);
  align-items: center;
  gap: clamp(.85rem, 1.6vw, 1.5rem);
  padding: .6rem .45rem .6rem .15rem;
  position: relative;
  transition: background-color .18s ease, padding-inline .18s ease;
}
.sport + .sport { border-top: 1px solid var(--rule); }
.discipline, .contact svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.discipline { width: 2rem; height: 2rem; color: var(--ice); stroke-width: 1.6; }
.sport strong { font-size: clamp(1.25rem, 2vw, 1.85rem); font-weight: 600; letter-spacing: -.045em; }
.go {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--ink);
  background: #23262e;
  transition: background-color .18s ease, transform .18s ease;
}
.go svg { width: .91rem; height: .91rem; fill: none; stroke: currentColor; stroke-width: 2.15; }
.sport:first-child .go, .sport:focus-visible .go { background: #325bea; }
@media (hover: hover) {
  .sport:hover { padding-inline: .5rem .3rem; background: #476fff0d; }
  .sport:hover .go { background: #325bea; transform: translate(1px, -1px); }
  .contact a:hover { color: white; }
  .contact a:hover span { text-decoration: underline; text-underline-offset: .2em; }
}
.contact {
  grid-area: contact;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem clamp(1.3rem, 3.4vw, 3.7rem);
  padding-bottom: .15rem;
}
.contact a { display: inline-flex; gap: .75rem; align-items: center; min-height: 2.8rem; }
.contact svg { width: 1.3rem; height: 1.3rem; stroke-width: 1.55; color: var(--ice); }
.phone small { display: block; color: #bdc3cf; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.phone b { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.025em; }
.map { color: #dde0e8; font-size: .83rem; font-weight: 550; }
.city { display: block; color: #b6bdcb; font-weight: 400; }

@media (max-width: 48rem) and (orientation: portrait), (max-width: 40rem) {
  body { display: block; padding: 0; background: var(--canvas); }
  .poster {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow: clip;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.35rem, env(safe-area-inset-right)) max(1.1rem, env(safe-area-inset-bottom)) max(1.35rem, env(safe-area-inset-left));
  }
  .film { position: absolute; inset: 0 0 auto; z-index: -1; aspect-ratio: 9 / 16; }
  .film::before { display: none; }
  .poster::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 6rem;
    background: linear-gradient(transparent, var(--canvas) 86%);
    pointer-events: none;
  }
  .film-frame { clip-path: none; }
  .film-frame::after {
    background: linear-gradient(180deg, #04060b9c, transparent 20%, #090a0d05 32%, #090a0d86 62%, #090a0dec 91%, var(--canvas));
  }
  .playback {
    left: auto;
    bottom: auto;
    top: max(1.05rem, env(safe-area-inset-top));
    right: max(1.35rem, env(safe-area-inset-right));
  }
  .masthead { align-self: stretch; gap: 1rem; margin-inline-end: 3.55rem; }
  .brand { width: clamp(5.7rem, 22vw, 7.4rem); }
  .status { font-size: .81rem; color: white; text-wrap: balance; text-shadow: 0 1px 5px #000; }
  .status strong { display: inline; }
  .status::before { background: #7b9dff; }
  .booking {
    align-self: stretch;
    margin-top: auto;
    padding: clamp(8.5rem, 23svh, 19rem) 0 0;
  }
  h1 { font-size: clamp(4.6rem, 18vw, 8rem); margin: 0 0 1.15rem; text-shadow: 0 2px 18px #0008; }
  .sports { --rule: #ffffff4d; background: linear-gradient(100deg, #070a0fd9, #0b1019b8); }
  .sport { min-height: clamp(3.5rem, 7.2svh, 4.6rem); gap: 1rem; padding: .55rem .65rem; }
  .discipline { width: 1.7rem; height: 1.7rem; }
  .go { width: 1.85rem; height: 1.85rem; }
  .sport strong { font-size: 1.25rem; }
  .contact { flex-wrap: nowrap; justify-content: space-between; gap: .75rem; padding: 0; margin-top: clamp(1.15rem, 3.25svh, 2rem); }
  .contact a { gap: .55rem; }
  .contact svg { width: 1.1rem; height: 1.1rem; }
  .map { font-size: .77rem; }
  .phone small { font-size: .59rem; }
}
@media (max-width: 22rem) {
  .poster { padding-inline: 1rem; }
  .masthead { gap: .7rem; }
  .status { font-size: .75rem; }
  .contact { gap: .4rem; }
  .contact a { gap: .4rem; }
  .map { font-size: .72rem; }
}
@media (max-height: 34rem) and (min-width: 40.01rem) {
  body { padding-block: 1.25rem; }
  .poster { --film-height: 28rem; column-gap: 2.7rem; }
  .booking { padding-block: 1.45rem; }
  h1 { font-size: clamp(4.3rem, 8vw, 6.5rem); margin-bottom: 1rem; }
  .sport { min-height: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
