:root {
  --resources-bg: #f7f9fd;
  --resources-surface: rgba(255, 255, 255, 0.92);
  --resources-border: #cfd9e7;
  --resources-shadow: 0 20px 48px rgba(17, 31, 58, 0.12);
  --resources-text: #16253d;
  --resources-button-bg: #ffffff;
  --resources-button-bg-hover: #f2f6fb;
  --resources-button-border: #c6d3e4;
  --resources-button-text: #000000;
  --resources-link: #0a58ca;
  --resources-accent: #183963;
}

:root[data-theme="dark"] {
  --resources-bg: #13253d;
  --resources-surface: rgba(17, 32, 54, 0.92);
  --resources-border: #37547a;
  --resources-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  --resources-text: #e9f1ff;
  --resources-button-bg: #23456f;
  --resources-button-bg-hover: #2f5a8d;
  --resources-button-border: #5579a8;
  --resources-button-text: #a9caff;
  --resources-link: #9ac5ff;
  --resources-accent: #244d80;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--resources-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--resources-bg);
  color: var(--resources-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.resources-page {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 24px 0 96px;
}

.resources-header {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.resources-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.resources-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--resources-border);
  background: var(--resources-surface);
  color: var(--resources-text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--resources-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.resources-nav-link:hover,
.resources-nav-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(18, 45, 91, 0.2);
  border-color: var(--resources-accent);
  outline: none;
}

.resources-nav-link:focus-visible,
.resources-action:focus-visible {
  outline: 2px solid var(--resources-link);
  outline-offset: 3px;
}

.resources-hero {
  margin: 0 auto 28px;
  text-align: center;
}

.resources-hero h1 {
  margin: 0;
  color: var(--resources-text);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.resources-actions {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
}

.resources-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--resources-button-border);
  border-radius: 10px;
  background: var(--resources-button-bg);
  color: var(--resources-button-text);
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.resources-action:hover,
.resources-action:focus-visible {
  background: var(--resources-button-bg-hover);
  border-color: var(--resources-button-bg-hover);
  transform: translateY(-1px);
}

:root:not([data-theme="dark"]) .resources-action:hover,
:root:not([data-theme="dark"]) .resources-action:focus-visible {
  color: #000000;
  border-color: #b7c9de;
}

.home-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 0 34px;
}

.home-bottom-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
}

.home-bottom-link svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.home-bottom-link:focus-visible {
  outline: 2px solid var(--resources-link);
  outline-offset: 3px;
}

:root[data-theme="dark"] .home-bottom-link {
  color: #f3f7ff;
}

@media (max-width: 720px) {
  .resources-page {
    width: min(100% - 18px, 880px);
    padding-top: 16px;
    padding-bottom: 72px;
  }

  .resources-header {
    margin-bottom: 28px;
  }

  .resources-nav {
    gap: 8px;
  }

  .resources-nav-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .resources-actions {
    gap: 8px;
  }

  .resources-action {
    min-height: 46px;
    font-size: 13px;
    padding: 0 12px;
  }
}
