:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1b2330;
  --muted: #4f5d75;
  --brand: #0f4c81;
  --brand-dark: #0b365d;
  --accent: #f2a900;
  --border: #d8dee8;
  --success: #1f7a3e;
  --danger: #a61b1b;
  --radius: 0.75rem;
  --shadow: 0 8px 24px rgba(15, 28, 44, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero img {
  width: 100%;
  max-height: min(60vh, 520px);
  object-fit: cover;
  border-radius: var(--radius);
}

.card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.55rem;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 94%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 28, 44, 0.06);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.brand span {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
}

.primary-nav {
  display: none;
}

.primary-nav.open {
  display: block;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.primary-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 0.6rem 0.65rem;
  min-height: 44px;
  border-radius: 0.4rem;
  font-weight: 600;
}

.primary-nav a[aria-current="page"] {
  background: #edf4ff;
  color: var(--brand-dark);
}

.header-contact {
  display: none !important;
}

.hero {
  background: linear-gradient(135deg, #eaf2fb 20%, #fdfdfd 100%);
  padding: 3rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

h1 {
  line-height: 1.2;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.9rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.8rem;
}

h3 {
  margin: 0.3rem 0 0.5rem;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: #e2eeff;
}

.section {
  padding: clamp(1.6rem, 4vw, 2.2rem) 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-2 {
  grid-template-columns: 1fr;
}

.cards-3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 2.4vw, 1.1rem);
  box-shadow: var(--shadow);
}

.list-clean {
  margin: 0;
  padding-left: 1.1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem;
}

.cta-band {
  background: #0f4c81;
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
}

.cta-band a {
  color: #fff;
}

.site-footer {
  background: #0f1f33;
  color: #e6edf5;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1.8rem 0;
}

.site-footer a {
  color: #d5e8ff;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

p,
li,
a {
  overflow-wrap: anywhere;
}

.staff-link {
  font-size: 0.9rem;
  display: none !important;
}

.form-group {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

input {
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
  min-height: 1.25rem;
}

.success {
  color: var(--success);
  font-size: 0.92rem;
  min-height: 1.25rem;
}

@media (min-width: 480px) {
  .hero {
    padding: 3.2rem 0 2.8rem;
  }
}

@media (max-width: 520px) {
  .header-wrap {
    min-height: 68px;
  }

  .brand span {
    font-size: 1rem;
  }

  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 0.55rem 0.7rem;
  }

  .btn-row {
    gap: 0.55rem;
  }

  .btn-row .btn-primary {
    width: 100%;
    text-align: center;
  }

  .btn-row .btn-secondary {
    width: auto;
  }
}

@media (min-width: 768px) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block !important;
  }

  .primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, 90%);
  }
}
