* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.65;
  min-height: 100vh;
}

.wrap {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.header {
  margin-bottom: 12px;
}

.header h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0;
}

.header p {
  font-size: 14px;
  color: #777;
  letter-spacing: .04em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  gap: 12px;
  align-items: start;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.tile:hover,
.tile:focus-within {
  background: #f9f9f9;
  border-color: #bbb;
  transform: translateY(-2px);
}

.tile-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.tile-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #a0c4e8;
}

.tile img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}

.tile-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f5f5f5;
  color: #999;
  font-size: 18px;
  font-weight: 600;
}

.tile-copy {
  min-width: 0;
}

.tile h2 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.tile-category {
  margin-bottom: 5px;
  color: #999;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tile p {
  color: #777;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  color: #777;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-footer a {
  color: #555;
  text-decoration: none;
}

.site-footer a:hover {
  color: #222;
  text-decoration: underline;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.email-image {
  display: inline-block;
  width: 112px;
  height: auto;
  vertical-align: -4px;
}

.legal-page {
  max-width: 720px;
}

.legal-page h1 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.legal-page h2 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  margin-bottom: 10px;
  color: #555;
  font-size: 14px;
}

.legal-page ul {
  padding-left: 18px;
}

.legal-page a {
  color: #3a7ab5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid #a0c4e8;
  border-radius: 8px;
  padding: 7px 14px;
  color: #3a7ab5;
  background: linear-gradient(90deg, #fff 0%, #e8f4ff 30%, #d0e8ff 50%, #e8f4ff 70%, #fff 100%);
  background-size: 200% auto;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  animation: shimmer 3s linear infinite;
}

.back-link:hover {
  animation: none;
  background: #e0f0ff;
  border-color: #3a7ab5;
  color: #1a5a95;
  text-decoration: none;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@media (max-width: 520px) {
  .wrap {
    padding: 24px 18px 64px;
  }

  .header p {
    max-width: 320px;
  }

  .header h1 {
    font-size: 22px;
  }

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

  .tile {
    max-width: 320px;
  }

  .tile-link {
    grid-template-columns: 64px 1fr;
    padding: 14px;
  }

  .tile img {
    width: 64px;
    height: 64px;
  }

  .tile-icon {
    width: 64px;
    height: 64px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
