:root {
  --red: #c82020;
  --red-dark: #971717;
  --text: #272727;
  --muted: #666;
  --line: #dedede;
  --background: #f5f3ef;
  --surface: #fff;
  --focus: #1f5fa8;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--red-dark);
}

a:hover {
  color: var(--red);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
.footer-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 70px;
  height: auto;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

main {
  padding-block: 42px 56px;
}

.intro {
  margin-bottom: 28px;
  text-align: center;
}

.intro h1,
.content-card h1,
.content-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.25;
}

.intro h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.intro p {
  margin: 0;
  color: var(--muted);
}

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

.link-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgb(0 0 0 / 7%);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.link-card > div {
  width: 100%;
  min-width: 0;
}

.link-card:hover {
  color: var(--text);
  border-color: #c8c8c8;
  box-shadow: 0 12px 28px rgb(0 0 0 / 14%);
  transform: translateY(-4px);
}

.link-card:focus-visible {
  outline-offset: 5px;
}

.card-media {
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #e9e9e9;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 320ms ease;
}

.link-card:hover .card-media img,
.link-card:focus-visible .card-media img {
  transform: scale(1.055);
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 500;
}

.card-content p {
  margin: 0;
  color: var(--red-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-card {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgb(0 0 0 / 7%);
}

.content-card h1 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.content-card h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
}

.content-card p {
  margin: 0 0 16px;
}

address {
  margin-bottom: 18px;
  font-style: normal;
}

.download-link {
  display: inline-block;
  padding: 11px 16px;
  color: #fff;
  background: var(--red-dark);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.download-link:hover,
.download-link:focus-visible {
  color: #fff;
  background: var(--red);
}

.site-footer {
  padding-block: 24px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card,
  .card-media img {
    transition: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding-block: 18px;
  }

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