:root {
  --navy: #001b45;
  --navy-deep: #00122f;
  --navy-soft: #00255f;
  --page: #efefef;
  --text: #081f3f;
  --radius: 22px;
  --page-width: 558px;
  --grid-width: 490px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.36;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
strong { font-weight: 700; }

.page-width {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  height: 425px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform .35s ease;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 31, 82, .91), rgba(0, 42, 103, .90));
}
.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 14px;
}
.hero__content p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 84px);
  line-height: .92;
  letter-spacing: .01em;
  font-weight: 700;
}

/* Меню остаётся на стыке hero и контента, но не фиксируется при прокрутке. */
.floating-nav {
  position: relative;
  z-index: 20;
  height: 0;
  transform: translateY(-22px);
}
.floating-nav__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.floating-nav a {
  min-height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.floating-nav a:hover {
  transform: translateY(-2px);
  background: var(--navy-soft);
}

main { background: var(--page); }
.page-content { padding: 58px 0 46px; }
.white-card {
  background: #fff;
  border-radius: var(--radius);
}
.history {
  padding: 24px 34px 50px;
  font-size: 13px;
  line-height: 1.42;
}
.history p + p { margin-top: 17px; }

.equipment-grid {
  width: min(var(--grid-width), calc(100% - 34px));
  margin: -22px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.equipment-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
}
.equipment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) brightness(.80);
  transition: transform .3s ease, filter .3s ease;
}
.equipment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 72, .28), rgba(0, 32, 76, .60) 48%, rgba(0, 18, 50, .94));
}
.equipment-card span {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 74px;
  padding: 4px 10px 3px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}
.equipment-card:hover img,
.video-card:hover img { transform: scale(1.05); }

.link-pair {
  width: min(var(--grid-width), calc(100% - 34px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin: 18px auto 0;
  font-size: 12px;
}
.link-pair > strong {
  width: 100%;
  text-align: left;
}
.link-pair > a {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
}

.rules-card {
  margin-top: 18px;
  padding: 22px 34px 52px;
  font-size: 13px;
  line-height: 1.42;
}
.rules-card p { text-align: left; }
.team-lineup {
  width: 100%;
  margin: 28px auto 26px;
}
.field-plan {
  width: 92%;
  margin: 24px auto 26px;
}

.video-grid {
  width: min(var(--grid-width), calc(100% - 34px));
  margin: -20px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) brightness(.79);
  transition: transform .3s ease;
}
.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,29,70,.48), rgba(0,25,61,.79) 65%, rgba(0,20,54,.95));
}
.video-card strong {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 12px;
  right: 12px;
  font-size: 10px;
  text-align: center;
}
.video-button {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  min-width: 128px;
  padding: 4px 13px 3px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-size: 8px;
  text-align: center;
}
.rules-link { margin-top: 18px; }
.contact-card {
  margin-top: 18px;
  padding: 22px 28px 20px;
  font-size: 13px;
  line-height: 1.42;
}
.contact-card p + p { margin-top: 16px; }
.contact-card a:hover { text-decoration: underline; }

.footer {
  min-height: 66px;
  background: var(--navy-deep);
  color: #fff;
}
.footer__inner {
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  font-size: 10px;
}
.round-icon,
.socials a {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-deep);
  transition: transform .2s ease;
}
.round-icon svg,
.socials svg { width: 12px; height: 12px; fill: currentColor; }
.socials { display: flex; gap: 12px; }
.socials a:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  :root {
    --radius: 20px;
    --page-width: 330px;
    --grid-width: 296px;
  }

  body { font-size: 12px; line-height: 1.3; }
  .page-width { width: min(var(--page-width), calc(100% - 40px)); }

  .hero { height: 242px; }
  .hero__image { object-position: center 46%; }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(0,34,88,.92), rgba(0,42,103,.90));
  }
  .hero__content { padding-top: 4px; }
  .hero__content p { margin-bottom: 8px; font-size: 12px; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); line-height: .95; }

  .floating-nav { transform: translateY(-16px); }
  .floating-nav__inner { gap: 14px; }
  .floating-nav a { min-height: 32px; padding: 0 6px; font-size: 10px; }

  .page-content { padding-top: 48px; padding-bottom: 31px; }
  .history { padding: 20px 17px 38px; font-size: 11px; }
  .history p + p { margin-top: 17px; }

  .equipment-grid {
    width: min(var(--grid-width), calc(100% - 34px));
    margin-top: -14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .equipment-card {
    aspect-ratio: 1.13 / 1;
    border-radius: 17px;
  }
  .equipment-card span {
    top: 50%;
    min-width: 76px;
    padding: 3px 9px 2px;
    font-size: 9px;
  }

  .link-pair {
    width: min(var(--grid-width), calc(100% - 34px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    font-size: 11px;
    text-align: center;
  }
  .link-pair > strong { text-align: center; }
  .link-pair > a { min-height: 30px; padding: 7px 12px; }

  .rules-card {
    margin-top: 31px;
    padding: 18px 17px 40px;
    font-size: 11px;
  }
  .team-lineup { margin: 24px auto 28px; }
  .field-plan { width: 100%; margin: 26px auto 31px; }

  .video-grid {
    width: min(var(--grid-width), calc(100% - 34px));
    margin-top: -14px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .video-card {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
  }
  .video-card strong {
    top: 16px;
    left: 13px;
    right: 13px;
    font-size: 11px;
  }
  .video-button {
    top: 58%;
    min-width: 132px;
    padding: 5px 13px 4px;
    font-size: 8px;
  }
  .rules-link { margin-top: 17px; }
  .contact-card {
    margin-top: 18px;
    padding: 20px 17px 19px;
    font-size: 11px;
  }
  .contact-card p + p { margin-top: 16px; }

  .footer,
  .footer__inner { min-height: 62px; }
  .footer__inner { width: min(var(--page-width), calc(100% - 40px)); }
  .footer__email { gap: 8px; font-size: 8px; }
  .round-icon,
  .socials a { width: 18px; height: 18px; flex-basis: 18px; }
  .round-icon svg,
  .socials svg { width: 10px; height: 10px; }
  .socials { gap: 10px; }
}

@media (max-width: 370px) {
  .page-width,
  .footer__inner { width: calc(100% - 32px); }
  .equipment-grid,
  .video-grid,
  .link-pair { width: calc(100% - 20px); }
  .floating-nav a { font-size: 9px; }
}
