:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172026;
  background: #f6f7f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f7f9;
}

main {
  min-height: 100vh;
}

.hero {
  padding: 42px max(20px, calc((100vw - 1080px) / 2)) 52px;
  background:
    linear-gradient(90deg, rgba(75, 12, 44, 0.92), rgba(20, 108, 95, 0.72)),
    url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.logo-panel {
  display: flex;
  width: min(100%, 980px);
  margin-bottom: 32px;
  padding: 18px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.logo-panel img {
  display: block;
  width: 100%;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}

.hero p {
  margin: 0 0 10px;
  color: #f2b544;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.hero > span {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1080px, calc(100% - 40px));
  margin: 34px auto;
}

.grid a {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid #dce3e7;
  border-radius: 8px;
  background: #ffffff;
  color: #172026;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.06);
}

.grid a:hover {
  border-color: #9b124d;
}

.grid strong {
  color: #841349;
  font-size: 21px;
}

.grid span {
  color: #172026;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
}

.grid small {
  color: #51606d;
  font-size: 14px;
  line-height: 1.5;
}

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