:root {
  --bg: #f4f3f6;
  --paper: #ffffff;
  --ink: #170c2f;
  --muted: #6f6880;
  --accent: #6f4bc3;
  --accent-dark: #251044;
  --accent-soft: #ebe5fb;
  --line: rgba(37, 16, 68, 0.14);
  --shadow: 0 24px 70px rgba(37, 16, 68, 0.12);
  --radius: 8px;
  --max: 1180px;
}

@font-face {
  font-family: "Antonio";
  src: url("assets/Antonio.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 243, 246, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-kiselev {
  height: 50px;
}

.brand-logo-padelhub {
  height: 36px;
}

.brand-x {
  color: var(--accent-dark);
  font-family: "Antonio", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-dark);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--accent-dark);
  padding: 11px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 74px);
  padding: 72px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 243, 246, 0.94)),
    var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.league-line {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Antonio", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 700;
  font-size: clamp(74px, 13vw, 176px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-lead {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-panel {
  margin: 54px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--accent-dark);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  min-width: 0;
}

.fact + .fact {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact strong,
.fact small {
  display: block;
}

.fact strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
  text-transform: uppercase;
}

.fact small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.category-strip div {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.78);
}

.category-strip span,
.category-strip strong {
  display: block;
  text-transform: uppercase;
}

.category-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.category-strip strong {
  margin-top: 6px;
  color: var(--accent-dark);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
}

.skyline,
.footer-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background:
    linear-gradient(to top, rgba(111, 75, 195, 0.42), rgba(111, 75, 195, 0)),
    url("assets/moscow-skyline.svg") center bottom / 1180px auto repeat-x;
  opacity: 0.95;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

.section-head.compact {
  max-width: 760px;
}

.section-number {
  color: var(--accent);
  font-weight: 950;
  font-size: 14px;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: "Antonio", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.section-head p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.event-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.event-summary,
.format-card,
.past-card,
.partner-slot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-summary {
  position: sticky;
  top: 102px;
  padding: 28px;
}

.event-summary h3,
.format-card h3 {
  margin: 0;
  font-family: "Antonio", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--accent-dark);
}

dl {
  margin: 24px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 18px;
  font-weight: 750;
}

.note {
  margin: 24px 0 0;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 750;
}

.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.format-card {
  padding: 24px;
}

.format-card.featured {
  color: var(--paper);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.format-card.featured h3,
.format-card.featured .format-top span,
.format-card.featured .fee,
.format-card.featured .prize {
  color: var(--paper);
}

.format-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.featured .format-top {
  border-color: rgba(255, 255, 255, 0.2);
}

.format-top span {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.prize {
  margin: 18px 0 0;
  color: var(--accent);
  font-weight: 950;
  font-size: 20px;
}

.format-card ul {
  margin: 18px 0 0;
  padding: 0 0 0 18px;
}

.format-card li + li {
  margin-top: 8px;
}

.fee {
  margin: 22px 0 0;
  color: var(--accent-dark);
  font-weight: 950;
}

.past-event {
  padding-top: 40px;
}

.past-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(235, 229, 251, 0.86)),
    var(--paper);
}

.past-card h2 {
  margin-top: 12px;
}

.past-card p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.outline-link,
.solid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 13px;
}

.outline-link {
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.48);
  flex: 0 0 auto;
}

.outline-link:hover,
.outline-link:focus-visible {
  color: var(--paper);
  background: var(--accent-dark);
  outline: none;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.partner-slot {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
}

.partner-slot img {
  display: block;
  max-width: 100%;
  max-height: 66px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.archive-section {
  padding-top: 30px;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  min-height: 230px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: #1b1725;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-one img {
  object-position: 38% 48%;
}

.photo-two img {
  object-position: 50% 40%;
}

.photo-three img {
  object-position: 48% 35%;
}

.photo-four img {
  object-position: 64% 42%;
}

.solid-link {
  color: var(--paper);
  background: var(--accent-dark);
}

.solid-link:hover,
.solid-link:focus-visible {
  background: var(--accent);
  outline: none;
}

.footer {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 82px 0 24px;
  color: var(--paper);
  background: var(--accent-dark);
}

.footer-skyline {
  height: 155px;
  opacity: 0.36;
  background:
    linear-gradient(to top, rgba(111, 75, 195, 0.72), rgba(111, 75, 195, 0)),
    url("assets/moscow-skyline.svg") center bottom / 980px auto repeat-x;
}

.footer-inner,
.copyright {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
}

.footer h2 {
  color: var(--paper);
  font-size: clamp(38px, 5vw, 64px);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.82);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--paper);
  outline: none;
}

.organizers {
  display: grid;
  gap: 12px;
  text-align: right;
  text-transform: uppercase;
}

.organizers span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
}

.organizers strong {
  max-width: 280px;
  font-size: 22px;
  line-height: 1.05;
}

.copyright {
  margin-top: 62px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

@media (max-width: 940px) {
  .event-layout {
    grid-template-columns: 1fr;
  }

  .event-summary {
    position: static;
  }

  .formats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .nav {
    width: min(100% - 28px, var(--max));
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo-kiselev {
    height: 40px;
  }

  .brand-logo-padelhub {
    height: 28px;
  }

  .brand-x {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-inner,
  .section,
  .footer-inner,
  .copyright {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 {
    font-size: clamp(62px, 22vw, 100px);
    line-height: 1.02;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .fact {
    padding: 22px;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .category-strip {
    grid-template-columns: 1fr;
    margin-bottom: 120px;
  }

  .skyline {
    height: 130px;
    background-size: 820px auto;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-head p,
  .past-card p {
    font-size: 16px;
  }

  .past-card {
    display: grid;
    padding: 24px;
  }

  .outline-link,
  .solid-link {
    width: 100%;
  }

  .photo-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .photo-card {
    min-width: 78%;
    min-height: 190px;
    scroll-snap-align: start;
  }

  .footer-inner {
    display: grid;
  }

  .organizers {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .league-line {
    font-size: 13px;
  }

  .icon {
    width: 42px;
    height: 42px;
  }

  .fact strong {
    font-size: 22px;
  }

  .category-strip div,
  .format-card,
  .event-summary {
    padding: 20px;
  }

  .format-top {
    display: grid;
    gap: 6px;
  }

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

  .partner-slot {
    min-height: 96px;
  }

  .copyright {
    margin-top: 42px;
  }
}
