:root {
  color-scheme: light;
  --page-bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #e9eff8;
  --text: #183153;
  --muted: #58708f;
  --border: #d6e1f0;
  --shadow: 0 12px 28px rgba(24, 49, 83, 0.08);
  --hero-start: #173a61;
  --hero-end: #275486;
  --free: #ecf8f1;
  --free-text: #1d7a45;
  --open: #eef4ff;
  --open-text: #2952a3;
  --closed: #f6eefc;
  --closed-text: #7a33ad;
  --commercial: #fff3e8;
  --commercial-text: #a85e16;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.hero {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #fff;
  padding: 4rem 1.5rem 5rem;
}

.hero__content,
.page,
.footer {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.lead,
.meta {
  max-width: 760px;
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.meta {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.page {
  padding: 0 1.5rem 4rem;
  margin-top: -2.5rem;
}

.intro,
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.75rem;
}

.intro h2,
.section h2 {
  margin: 0;
  font-size: 1.75rem;
}

.intro p,
.section__heading p,
.card p,
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--surface-alt);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2rem;
  margin-top: 1.75rem;
}

.section__heading {
  margin-bottom: 1.5rem;
}

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

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  min-height: 180px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus {
  text-decoration: underline;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge--free {
  background: var(--free);
  color: var(--free-text);
}

.badge--open {
  background: var(--open);
  color: var(--open-text);
}

.badge--closed {
  background: var(--closed);
  color: var(--closed-text);
}

.badge--commercial {
  background: var(--commercial);
  color: var(--commercial-text);
}

.footer {
  padding: 0 1.5rem 3rem;
}

@media (max-width: 820px) {
  .intro {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 560px) {
  .hero {
    padding: 3rem 1.25rem 4.5rem;
  }

  .page,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section,
  .intro {
    padding: 1.5rem;
  }

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