:root {
  --ink: #111820;
  --muted: #687483;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: #dbe2ea;
  --blue: #1769aa;
  --green: #2d7c64;
  --gold: #b9853d;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(23, 105, 170, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(45, 124, 100, 0.12), transparent 24%),
    linear-gradient(180deg, var(--white), var(--paper));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 42px;
}

.intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.portrait {
  display: block;
  width: 164px;
  height: 164px;
  margin-bottom: 28px;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: 50%;
  box-shadow: 0 18px 48px rgba(17, 24, 32, 0.16);
  object-fit: cover;
  object-position: center 34%;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.95;
}

h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.intro-line {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.intro p:not(.intro-line),
.legal p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(17, 24, 32, 0.09);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(17, 24, 32, 0.14);
}

.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.logo-tile {
  display: grid;
  min-height: 190px;
  align-content: center;
  gap: 16px;
  place-items: center;
  padding: 22px;
  text-align: center;
  text-decoration: none;
}

.logo-tile img {
  max-width: 100%;
  max-height: 116px;
  aspect-ratio: auto;
  object-fit: contain;
}

.logo-tile span {
  max-width: 22ch;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.contact-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
}

.contact-line a {
  color: var(--ink);
  font-size: 1.16rem;
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--blue);
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
}

.site-footer span {
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a,
.back-link {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.legal {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 90px;
}

.legal h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

@media (max-width: 960px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page {
    padding-top: 54px;
  }

  .portrait {
    width: 136px;
    height: 136px;
  }

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

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