:root {
  --navy: #082747;
  --navy-dark: #03182d;
  --red: #e30613;
  --red-dark: #b9000a;
  --orange: #ff6b00;
  --blue: #0f6bdb;
  --green: #219653;
  --text: #0b1f3a;
  --muted: #4b5563;
  --bg: #ffffff;
  --soft: #fff3f1;
  --border: #d9e0ea;
  --shadow: 0 12px 30px rgba(8, 39, 71, 0.12);
  --font: "Inter", sans-serif;
  --gutter: clamp(32px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(8, 39, 71, 0.08);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.7vw, 34px);
  color: #162237;
  font-weight: 500;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 6px;
  font-weight: 800;
}

.nav-cta {
  color: #fff;
  background: var(--red);
}

.section {
  padding: clamp(48px, 7vw, 76px) 0;
}

.section-soft {
  background: linear-gradient(90deg, #fff 0%, var(--soft) 50%, #fff 100%);
}

.center {
  text-align: center;
}

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

h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 26px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero {
  position: relative;
  min-height: 560px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.98) 0%, rgba(227, 6, 19, 0.88) 42%, rgba(227, 6, 19, 0.18) 74%),
    url("assets/hero-handball.png") center right / cover no-repeat;
}

.hero-grid {
  display: grid;
  align-items: center;
  min-height: 560px;
}

.hero-copy {
  max-width: 650px;
}

.badge {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-weight: 800;
}

.hero p {
  max-width: 600px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.button-light {
  color: var(--red);
  background: #fff;
}

.button-outline {
  color: #fff;
  border: 2px solid currentColor;
}

.hero-stats {
  margin-top: 48px;
}

.hero-stats div {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  align-items: center;
}

.hero-stats i {
  grid-row: span 2;
  font-size: 2.8rem;
}

.hero-stats strong,
.hero-stats span {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.club-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.club-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.club-grid p {
  color: #1f2937;
  font-size: 1.08rem;
}

.teams-grid,
.news-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.teams-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

.team-card,
.news-grid article,
.contact-grid a,
.contact-grid span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(8, 39, 71, 0.08);
}

.team-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 24px;
}

.team-card > i {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #fff;
  border-radius: 999px;
  font-size: 2.8rem;
}

.team-card.red h3,
.news-grid i,
.news-grid a {
  color: var(--red);
}

.team-card.red > i {
  background: var(--red);
}

.team-card.orange h3 {
  color: var(--orange);
}

.team-card.orange > i {
  background: var(--orange);
}

.team-card.blue h3 {
  color: var(--blue);
}

.team-card.blue > i {
  background: var(--blue);
}

.team-card.green h3 {
  color: var(--green);
}

.team-card.green > i {
  background: var(--green);
}

.team-card p {
  margin: 6px 0 12px;
}

.team-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.join {
  padding: clamp(50px, 7vw, 72px) 0;
  color: #fff;
  background: var(--red);
}

.join-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.join h2 {
  color: #fff;
}

.pricing table {
  width: 100%;
  overflow: hidden;
  color: #111827;
  background: #fff;
  border-collapse: collapse;
  border-radius: 8px;
}

.pricing th,
.pricing td {
  padding: 11px 22px;
  border: 1px solid #d9d9d9;
}

.pricing th {
  color: #fff;
  background: var(--red-dark);
}

.pricing td:last-child {
  text-align: center;
}

.pricing p {
  margin-top: 16px;
  font-style: italic;
  font-weight: 500;
}

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

.news-grid article {
  padding: 28px;
  border-top: 5px solid var(--red);
}

.news-grid i {
  font-size: 1.8rem;
}

.news-grid a {
  font-weight: 800;
}

.contact {
  padding: clamp(50px, 7vw, 74px) 0;
  color: #fff;
  text-align: center;
  background: var(--navy);
}

.contact h2 {
  color: #fff;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.contact-grid a,
.contact-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 92px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.36);
  font-weight: 500;
}

.contact-grid i {
  font-size: 2.6rem;
}

.contact .button {
  margin-top: 8px;
}

.site-footer {
  padding: 34px 0 22px;
  color: #fff;
  background: var(--navy-dark);
}

.site-footer .brand-mark {
  width: 46px;
  height: 46px;
}

.site-footer .footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-grid nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 54px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(227, 6, 19, 0.96), rgba(227, 6, 19, 0.76)),
      url("assets/hero-handball.png") center / cover no-repeat;
  }

  .club-grid,
  .teams-grid,
  .join-grid,
  .news-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 22px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 0.75rem;
  }

  .hero,
  .hero-grid {
    min-height: 610px;
  }

  .hero-stats {
    gap: 18px;
  }

  .team-card {
    grid-template-columns: 1fr;
  }
}
