:root {
  --bg: #ffffff;
  --text: #262221;
  --muted: #696463;
  --line: #dedad8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 36px 48px 30px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.logo {
  display: block;
  width: min(42vw, 430px);
  height: auto;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--muted);
}

a {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-style: normal;
  text-align: right;
}

.contact strong {
  font-weight: 600;
}

.contact span,
.contact a {
  color: var(--muted);
}

@media (max-width: 720px) {
  .page {
    padding: 24px 22px;
  }

  .logo {
    width: min(74vw, 360px);
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .footer-text {
    align-items: flex-start;
    text-align: left;
  }

  .contact {
    align-items: flex-start;
    text-align: left;
  }
}
