:root {
  --navy-950: #071c33;
  --navy-900: #0c294a;
  --blue: #0637ff;
  --blue-soft: #eaf0ff;
  --surface: #ffffff;
  --background: #f5f7fa;
  --line: #dce4ec;
  --text: #162233;
  --muted: #657286;
  --shadow: 0 14px 36px rgba(7, 28, 51, 0.09);
  --shadow-hover: 0 20px 48px rgba(7, 28, 51, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--navy-950);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  color: var(--surface);
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand__logo {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--surface);
  border: 3px solid var(--surface);
  border-radius: 50%;
}

.brand__name,
.brand__label {
  display: block;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.brand__label {
  margin-top: 2px;
  color: #c9d7e6;
  font-size: 0.8rem;
  line-height: 1.3;
}

.external-link {
  color: var(--surface);
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.hero {
  padding: 88px 20px 104px;
  color: var(--surface);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(52, 145, 224, 0.2), transparent 34%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900));
}

.hero__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

main {
  width: min(1120px, calc(100% - 40px));
  min-height: 280px;
  margin: 0 auto 72px;
  padding-top: 44px;
  flex: 1;
}

.documents {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 20px;
}

.document-card {
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.document-card:hover {
  border-color: #b5c5d5;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.document-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.document-card__type {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 7px 10px;
  color: #0028c7;
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-card h2 {
  max-width: 620px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.document-card__description {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.document-card__edition {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.document-card__action {
  margin-top: auto;
  padding-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.document-card__action span {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.document-card:hover .document-card__action span {
  transform: translateX(4px);
}

footer {
  padding: 27px 20px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .topbar__inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand__logo {
    width: 58px;
    height: 58px;
  }

  .hero {
    padding: 64px 20px 78px;
  }

  .hero__inner,
  main,
  .topbar__inner {
    width: min(1120px, calc(100% - 28px));
  }

  .document-card {
    min-height: 220px;
    padding: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
