:root {
  color-scheme: light;
  background: #f4f7fa;
}

.home-page {
  --home-ink: var(--weight-list-ink);
  --home-muted: var(--weight-list-muted);
  --home-line: var(--weight-list-line);
  --home-blue: var(--weight-list-blue);
  font-family: var(--weight-list-font);
  color: var(--home-ink);
}

.home-wrap {
  width: min(var(--public-header-width), calc(100% - 2 * var(--public-header-gutter)));
  margin-inline: auto;
}

.home-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 48px;
  padding: 10px 17px;
  font-weight: 750;
  text-decoration: none;
}

.home-page .home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-carousel { position: relative; }

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 36vw, 530px);
  overflow: hidden;
  background: #0c1724;
  color: #fff;
}

.home-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: min(76%, 1280px);
  height: 100%;
  object-fit: cover;
  object-position: 60% 9%;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0c1724 14%, #0c1724f4 31%, #0c17246b 57%, #0c172400 77%);
}

.home-hero-inner {
  padding-block: 64px;
}

.home-hero :is(h1, h2) {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.45rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.052em;
}

.home-hero-runner h2 { font-size: clamp(2.8rem, 6.35vw, 5.8rem); }
.home-hero-runner .home-hero-image { object-position: 75% 8%; }

.home-hero :is(h1, h2) span {
  display: block;
  color: #49e2f1;
}

.home-hero p {
  max-width: 390px;
  margin: 25px 0 28px;
  color: #d1dfec;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.6;
}

.home-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-controls {
  position: absolute;
  inset-inline-start: max(var(--public-header-gutter), calc((100% - var(--public-header-width)) / 2));
  inset-block-end: 15px;
  display: flex;
  gap: 6px;
}

.hero-controls button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #8095ad;
  border-radius: 7px;
  background: #0c1724ea;
  color: #ecf4fa;
  font-size: .8rem;
}

.hero-controls button[aria-pressed="true"],
.hero-controls button:hover { border-color: var(--weight-list-cyan); color: var(--weight-list-cyan); }
.hero-controls button:focus-visible { outline: 2px solid var(--weight-list-cyan); outline-offset: 2px; }

.home-link-primary {
  background: #49e2f1;
  color: #10202e;
}

.home-link-primary:hover { background: #8aedf7; }

.home-link-ghost {
  border-color: #8095ad;
  background: #0c172452;
  color: #fff;
}

.home-link-ghost:hover { background: #29435b; }

.home-page :is(a, button, summary):focus-visible {
  outline: 2px solid var(--home-blue);
  outline-offset: 4px;
}

.home-hero :is(a, button):focus-visible { outline-color: #9ceef7; }

.home-catalogue {
  padding-block: 40px 64px;
}

.home-catalogue .status:empty { display: none; }

.home-section { scroll-margin-top: 20px; }

.home-section + .home-section {
  margin-top: 38px;
  padding-top: 33px;
  border-top: 1px solid var(--home-line);
}

.home-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  letter-spacing: -.055em;
  line-height: 1.1;
}

.home-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 18px;
}

.home-events > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 19px 20px;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  background: #fff;
  color: var(--home-muted);
}

.home-events .event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 12px 25px -20px #12203573;
  scroll-margin-top: 16px;
}

.home-events .event-card:target {
  outline: 2px solid var(--home-blue);
  outline-offset: 3px;
}

.home-events .event-heading {
  min-height: 96px;
  flex-wrap: nowrap;
  padding: 16px;
}

.home-events .event-heading h3 {
  font-size: 1.17rem;
  letter-spacing: -.03em;
}

.home-events .event-heading p {
  font-size: .87rem;
  line-height: 1.5;
}

.home-events .event-logo {
  max-width: 78px;
  max-height: 43px;
}

.home-events .event-description { margin: 11px 16px; }
.home-events .event-description summary { font-size: .9rem; }
.home-events .event-description-content p { font-size: .92rem; }
.home-events .event-actions { margin-top: auto; }
.home-events .event-actions:not(:empty) { padding: 13px 16px 16px; }
.home-events .event-actions :is(a, button) {
  min-height: 42px;
  padding: 9px 12px;
  font-size: .85rem;
}

.home-section .competition-map-panel {
  margin: 0 0 18px;
  background: #fff;
  border-color: var(--home-line);
}

.home-section .competition-map-panel summary {
  padding: 12px 16px;
  color: var(--home-blue);
  font-size: .9rem;
}

.home-main dialog {
  max-width: min(725px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  color: var(--home-ink);
}

.home-main dialog::backdrop { background: #0c1724ad; }
.home-main dialog form { margin-bottom: 22px; }

.home-footer {
  padding-block: 25px;
  border-top: 1px solid var(--home-line);
  background: #fff;
  font-weight: 700;
  font-size: .9rem;
}

.home-footer a { color: var(--home-blue); }
.home-footer-inner { flex-wrap: wrap; gap: 10px 20px; }

@media (max-width: 560px) {
  .home-hero { min-height: 490px; align-items: end; }
  .home-hero-image {
    width: 100%;
    height: 76%;
    object-position: 74% center;
  }
  .home-hero::after {
    background: linear-gradient(0deg, #0c1724 6%, #0c1724f5 37%, #0c172471 66%, transparent 92%);
  }
  .home-hero-inner { padding-block: 125px 34px; }
  .hero-carousel:has(.hero-controls:not([hidden])) .home-hero-inner { padding-bottom: 65px; }
  .home-hero :is(h1, h2) { font-size: clamp(2.55rem, 10.75vw, 3.75rem); }
  .home-hero-runner h2 { font-size: clamp(2.2rem, 9vw, 3.35rem); }
  .home-hero p { margin: 16px 0 20px; }
  .home-link { min-height: 44px; padding-inline: 12px; font-size: .87rem; }
  .home-catalogue { padding-block: 31px 42px; }
}
