:root {
  --primary: #4338ca;
  --bg: #f5f4ff;
  --ink: #1a1633;
  --accent: #f97316;
  --paper: #ffffff;
  --line: #e0dff5;
  --mute: #5a5483;
  --deep: #2d2760;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; }
h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; }
h1 em { font-style: italic; color: var(--primary); }
h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--mute); font-size: 15px; }

.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245,244,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand__num {
  width: 34px; height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--body);
}
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--mute); transition: color .15s; }
.topnav a:hover { color: var(--primary); }

/* CTA buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none; cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .12s;
}
.cta-btn:hover { background: #3730a3; transform: translateY(-1px); }
.cta-btn--dark { background: var(--ink); }
.cta-btn--dark:hover { background: var(--deep); }
.cta-btn--accent { background: var(--accent); }
.cta-btn--accent:hover { background: #ea6c0a; }
.cta-btn--white { background: #fff; color: var(--primary); }
.cta-btn--white:hover { background: #eeeeff; }

/* hero rail layout */
.hero { padding: clamp(40px, 5vw, 72px) 0; }
.hero__rail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.hero__sidebar {
  background: var(--ink);
  border-radius: var(--r);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 86px;
}
.sidebar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.sidebar__city {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.sidebar__facts {
  list-style: none;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}
.sidebar__facts li {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.sidebar__facts span {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.hero__main { display: flex; flex-direction: column; gap: 28px; }
.hero__visual { position: relative; }
.hero__visual img {
  width: 100%;
  height: clamp(280px, 36vw, 460px);
  object-fit: cover;
  border-radius: calc(var(--r) + 4px);
  box-shadow: 0 24px 48px -24px rgba(67,56,202,.3);
}
.hero__visual-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.hero__headline { display: flex; flex-direction: column; gap: 12px; }
.hero__headline > p { max-width: 52ch; }
.link-arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.link-arrow:hover { text-decoration: underline; }

/* courts section */
.courts-section { padding: clamp(52px, 7vw, 84px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.courts-section__head { max-width: 52ch; margin-bottom: 36px; }
.courts-section__head p { margin-top: 8px; }
.courts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.court-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.court-card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.court-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.court-card p { font-size: 14px; flex: 1; }
.court-card__price { margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--accent); }

/* school section */
.school-section { padding: clamp(52px, 7vw, 84px) 0; }
.school-section__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.school-section__text h2 { margin: 8px 0 14px; }
.school-section__text > p { max-width: 44ch; margin-bottom: 24px; }
.school-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.school-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.school-card strong { font-size: 14px; color: var(--ink); }
.school-card span { font-size: 12px; color: var(--mute); }
.feature-box {
  background: var(--ink);
  border-radius: var(--r);
  padding: 28px;
  height: 100%;
}
.feature-box h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.feature-box__lead { color: rgba(255,255,255,.75); margin-bottom: 20px; font-size: 14px; }
.feature-steps {
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.feature-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.feature-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

/* about */
.about-section { padding: clamp(52px, 7vw, 84px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.about-section__in > h2 { margin-bottom: 12px; }
.about-section__sub { max-width: 62ch; margin-bottom: 32px; }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}
.pillar__head { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
.pillar__body { font-size: 14px; color: var(--mute); }

/* booking banner */
.booking-section { padding: clamp(44px, 6vw, 72px) 0; }
.booking-banner {
  background: linear-gradient(120deg, var(--primary) 0%, var(--deep) 100%);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.booking-banner h2 { color: #fff; }
.booking-banner p { color: rgba(255,255,255,.75); margin-top: 6px; font-size: 14px; }

/* contacts */
.contacts-section { padding: clamp(44px, 6vw, 72px) 0; }
.contacts-section__in {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contacts-section__in h2 { margin-bottom: 8px; }
.contacts-section__in > div:first-child > p { max-width: 34ch; }
.contact-rows { display: grid; gap: 12px; }
.contact-row { font-size: 15px; color: var(--mute); }
.cr-label {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  width: 80px;
  margin-right: 6px;
}

/* footer */
.foot { background: var(--ink); padding: 28px 0; }
.foot__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .hero__rail { grid-template-columns: 1fr; }
  .hero__sidebar { position: static; }
  .courts-grid { grid-template-columns: 1fr 1fr; }
  .school-section__in { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr 1fr; }
  .contacts-section__in { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
@media (max-width: 520px) {
  .courts-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .school-cards { grid-template-columns: 1fr; }
}
