:root {
  --accent: #DE3163;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: #F2F2F2F2;
  color: #525252;
}

main {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0;
}

header {
  margin-bottom: 40px;
  border-left: 5px solid var(--accent);
  padding-left: 18px;
}

header h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
}

header p {
  margin: 0;
}

section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

section a {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #525252;
  border-radius: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

section a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

a img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

a h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  transition: color 0.15s ease;
}

a:hover h2 {
  color: var(--accent);
}

a p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  main {
    width: min(100% - 24px, 1000px);
    padding: 36px 0;
  }

  section {
    grid-template-columns: 1fr;
  }
}
