:root {
  color-scheme: light;
  --ink: #1b2b34;
  --ink-soft: #394956;
  --paper: #f6f4ef;
  --paper-strong: #ffffff;
  --line: #d6d1c7;
  --accent: #0052a5;
  --accent-strong: #003e7a;
  --accent-warm: #c19a3b;
  --focus-ring: #99c2ff;
  --shadow: 0 18px 30px -24px rgba(27, 43, 52, 0.4);
  --radius: 18px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #eef5f3, var(--paper) 45%);
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(0, 82, 165, 0.5);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-warm);
  color: #1b2b34;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 20px;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.tricolor-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    #0055a4 0,
    #0055a4 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #ef4135 66.66%,
    #ef4135 100%
  );
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--accent);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.brand-mark img {
  max-width: 90%;
  max-height: 90%;
  display: block;
  border-radius: inherit;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-menu a {
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}

.nav-menu a:hover {
  background: rgba(0, 82, 165, 0.12);
}

.nav-menu a[aria-current="page"],
.nav a[aria-current="page"] {
  background: rgba(0, 82, 165, 0.12);
  font-weight: 600;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hero-card {
  background: var(--paper-strong);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 82, 165, 0.15);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(193, 154, 59, 0.15);
  border-radius: 999px;
  font-weight: 600;
  color: #6b5320;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h2 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 26px -22px rgba(27, 43, 52, 0.35);
}

.callout {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 82, 165, 0.25);
  background: linear-gradient(135deg, rgba(0, 82, 165, 0.08), rgba(193, 154, 59, 0.12));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  border: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(0, 82, 165, 0.4);
}

footer {
  border-top: 1px solid var(--line);
  background: #f0ede6;
  padding: 36px 0 48px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a[aria-current="page"] {
  font-weight: 600;
}

.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: 52px 0 24px;
}

.page-hero h1 {
  margin-bottom: 8px;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  color: var(--ink);
}

.js .faq-answer {
  display: none;
}

.js .faq-item.is-open .faq-answer {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.contact-card {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.small {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    padding: 16px;
    background: var(--paper-strong);
    border-radius: 16px;
    border: 1px solid var(--line);
    margin-top: 12px;
  }

  .nav-open .nav-menu {
    display: flex;
  }
}

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