:root {
  --primary: #0b6edc;
  --primary-dark: #094fa3;
  --ink: #0d1b2a;
  --muted: #6b7280;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e5e7eb;
  --accent: #11a0d2;
  --header-height: 86px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body {
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f5f7fb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Work Sans', sans-serif;
  line-height: 1.5;
}

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

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.bg {
  background: linear-gradient(180deg, #f9fbff 0%, #f0f3fa 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(11, 110, 220, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn.inline {
  padding: 10px 0;
  color: var(--primary);
  border: none;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 110, 220, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.pill.soft {
  background: #eef2ff;
  color: var(--ink);
}

.pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  margin-top: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.board-card {
  background: var(--card);
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.06);
}

.role {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(13, 27, 42, 0.08);
  border: 1px solid #eef1f6;
}

.card.highlight {
  background: linear-gradient(145deg, #ffffff 0%, #f9fbff 100%);
}

.card.embed {
  padding: 0;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.08);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(11, 110, 220, 0.1);
  color: var(--primary);
}

.nav-links .pill {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: left;
  background: linear-gradient(115deg, rgba(13, 27, 42, 0.75), rgba(11, 110, 220, 0.6)), url('img/water.jpg') center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(17, 160, 210, 0.35), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  display: grid;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  max-width: 720px;
}

.intro {
  display: grid;
  gap: 14px;
  max-width: 840px;
}

.hero p {
  max-width: 680px;
  color: #eaf0ff;
}

.hero-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
  color: #f5f7ff;
}

.stat span {
  display: block;
  font-size: 1.6rem;
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(13, 27, 42, 0.08);
  border: 1px solid #eef1f6;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

thead {
  background: var(--ink);
  color: #fff;
}

th, td {
  padding: 16px 18px;
  text-align: left;
}

tbody tr:nth-child(odd) {
  background: #fbfcff;
}

tbody tr:nth-child(even) {
  background: #f4f6fb;
}

td small {
  color: var(--muted);
}

.cta {
  margin-top: 28px;
  padding: 24px 28px;
  background: #0d1b2a;
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta.inverse {
  background: #e8f3ff;
  color: var(--ink);
  border: 1px solid #c7e2ff;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card.course .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(11, 110, 220, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card.course h3 {
  margin-bottom: 6px;
}

.center {
  text-align: center;
  margin-top: 26px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.time-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #eef1f6;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.06);
}

.date {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 110, 220, 0.08);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.partner-card {
  background: var(--card);
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.05);
}

.partner-card.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.partner-card.logo-card img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.trainings-grid .training-card h3 {
  margin-bottom: 8px;
}

.contact-card {
  margin: 14px 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #eef1f6;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.link {
  color: var(--primary);
  font-weight: 700;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dfe4ee;
  background: #f9fbff;
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(11, 110, 220, 0.25);
  background: #fff;
}

.tiny {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 32px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.rule-card .rule-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rules {
  margin-left: 16px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.rule-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.rule-figure {
  background: #f9fbff;
  border: 1px solid #e6ecf6;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.rule-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rule-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  background: #0b1320;
  color: #e5e7eb;
  padding: 28px 0 20px;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.site-footer h5 {
  color: #fff;
  margin-bottom: 8px;
}

.site-footer a {
  color: #e5e7eb;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    display: none;
    box-shadow: 0 15px 30px rgba(13, 27, 42, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    text-align: left;
  }

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

@media (max-width: 720px) {
  .btn-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  table {
    min-width: 620px;
  }
}
