:root {
  --navy: #0f477d;
  --navy-dark: #092f54;
  --gold: #f0b83f;
  --gold-soft: #fff4d8;
  --burgundy: #6e2631;
  --ink: #24303a;
  --muted: #6c747b;
  --paper: #fbfaf7;
  --cream: #f2eee7;
  --line: #e5dfd4;
  --white: #fff;
  --shadow: 0 18px 50px rgba(28, 35, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* Header */

.topbar {
  background: var(--navy-dark);
  color: #dfeaf4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.topbar .wrap {
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.topbar a {
  color: inherit;
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.topbar a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.topbar a:focus-visible {
  color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(15, 71, 125, 0.1);
  background: rgba(255, 255, 255, 0.97);
  font-family: Arial, Helvetica, sans-serif;
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 152px;
  height: auto;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover img {
  transform: scale(1.06);
  filter: brightness(1.08) drop-shadow(0 6px 10px rgba(15, 71, 125, 0.22));
}

.brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
  border-radius: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: Arial, Helvetica, sans-serif;
}

.nav a {
  padding: 12px 13px;
  border-radius: 8px;
  color: #394550;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #0f477d;
  background: #eef4f9;
}

.nav .alert {
  color: #8f2937;
  background: #fff1f2;
}

.menu-btn {
  display: none;
  padding: 10px 13px;
  border: 0;
  border-radius: 8px;
  background: #0f477d;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* Footer */

.footer {
  padding: 56px 0 26px;
  background: #152b3d;
  color: #d7e0e7;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 45px;
  padding-bottom: 38px;
}

.footer-logo {
  width: 135px;
  margin-bottom: 16px;
  filter: none;
  opacity: 1;
  mix-blend-mode: screen;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-brand {
  display: inline-flex;
  border-radius: 5px;
}

.footer-brand:hover .footer-logo {
  transform: scale(1.07);
  filter: brightness(1.2) drop-shadow(0 7px 12px rgba(240, 184, 63, 0.28));
}

.footer-brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.footer p {
  max-width: 460px;
  color: #afbdc7;
  font-size: 14px;
}

.footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-address {
  color: #cbd6de;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a {
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(6px);
}

.footer-links a:focus-visible {
  color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #8fa1ae;
  font-size: 12px;
}

.copyright a {
  color: inherit;
  text-decoration: none;
}

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

@media (max-width: 1050px) {
  .nav {
    position: absolute;
    top: 90px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 30px, 1180px);
  }

  .topbar {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 120px;
  }

  .nav {
    top: 73px;
    right: 15px;
    left: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copyright {
    flex-direction: column;
  }
}
