:root {
  --blue-900: #0b3d6b;
  --blue-800: #10508f;
  --blue-700: #1563ad;
  --blue-600: #1a76cc;
  --blue-100: #e7f2fc;
  --blue-50: #f3f8fd;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #dbe4ee;
  --white: #ffffff;
  --amber: #f5a623;
  --red: #d64545;
  --green: #2e9e5b;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 61, 107, .08);
  --shadow-lg: 0 8px 24px rgba(11, 61, 107, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: #f5f8fb;
  font-size: 16px;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.topbar {
  background: var(--blue-900);
  color: #cfe0f2;
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #cfe0f2; }
.topbar .top-info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .top-info span { display: inline-flex; align-items: center; gap: 6px; }

.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo svg { width: 30px; height: 30px; fill: #fff; }
.brand-name { font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--blue-900); }
.brand-sub { font-size: 13px; color: var(--muted); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-900); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-600); }
.btn-ghost:hover { background: var(--blue-50); text-decoration: none; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-full { width: 100%; }

/* ===== Nav ===== */
.navbar { background: var(--blue-800); }
.navbar .container { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 6px;
  color: #e6f0fa; padding: 14px 16px; font-weight: 600; font-size: 15px;
}
.nav-list > li > a:hover { background: var(--blue-900); text-decoration: none; }
.nav-list > li > a.active { background: var(--blue-700); color: #fff; }
.nav-list .caret { font-size: 10px; opacity: .7; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 8px 8px; z-index: 50; }
.nav-list > li:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 18px; color: var(--ink); font-size: 14.5px; border-bottom: 1px solid var(--blue-50); }
.dropdown a:hover { background: var(--blue-50); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; color: #fff;
}
.nav-toggle svg { width: 24px; height: 24px; fill: #fff; display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 60%, var(--blue-600));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
}
.hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { font-size: 34px; margin: 0 0 14px; line-height: 1.2; max-width: 760px; }
.hero p { font-size: 17px; color: #ddeaf8; max-width: 680px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 46px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.eyebrow { color: var(--blue-700); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.section h2 { font-size: 26px; margin: 6px 0 0; color: var(--blue-900); }
.section-head p { color: var(--muted); margin: 10px 0 0; }

.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; color: var(--blue-900); }

/* ===== Tiles / features ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tile h3 { display: flex; align-items: center; gap: 10px; }
.icon-badge {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 22px; height: 22px; fill: currentColor; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 14.5px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--blue-50); color: var(--blue-900); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--blue-50); }

.note {
  background: var(--amber); color: #5a3d05;
  border-radius: 8px; padding: 12px 16px; font-size: 14px;
  border-left: 4px solid #c97f0a;
}
.note-blue { background: var(--blue-100); color: var(--blue-900); border-left-color: var(--blue-700); }

/* ===== Alerts / news ===== */
.alert { display: flex; gap: 14px; background: #fff7ed; border: 1px solid #ffd9a1; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.alert .a-date { color: var(--muted); font-size: 13px; }
.alert strong { color: #9a4b00; display: block; margin-bottom: 4px; }
.alert .a-icon { font-size: 22px; }

.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-date { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.news-item h3 { margin: 0 0 8px; font-size: 16.5px; }
.news-item p { color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.news-item .more { margin-top: 12px; font-weight: 600; }

/* ===== Contact / forms ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .icon-badge { width: 36px; height: 36px; }
.info-list .icon-badge svg { width: 19px; height: 19px; }
.info-label { font-size: 13px; color: var(--muted); }
.info-value { font-weight: 600; }
.info-value a { font-weight: 600; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-success { display: none; background: #e9f8ef; color: #166b3c; border: 1px solid #b7e6c9; padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }

/* ===== Accordion ===== */
.acc { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.acc-head { width: 100%; background: none; border: none; text-align: left; padding: 16px 18px; font: inherit; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--blue-900); }
.acc-head .arr { transition: transform .2s; color: var(--blue-600); }
.acc.open .acc-head .arr { transform: rotate(180deg); }
.acc-body { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc.open .acc-body { max-height: 900px; padding-bottom: 16px; }

/* ===== Footer ===== */
.footer { background: var(--blue-900); color: #cfe0f2; margin-top: 20px; }
.footer .container { padding-top: 40px; padding-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer a { color: #cfe0f2; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding: 16px 0; font-size: 13px; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 18px 0; }
.breadcrumb a { color: var(--blue-700); }
.breadcrumb span.sep { margin: 0 8px; color: var(--muted); }

.page-title { font-size: 30px; color: var(--blue-900); margin: 4px 0 20px; }

/* ===== Table of docs ===== */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: flex; gap: 12px; align-items: center; padding: 15px 4px; color: var(--blue-800); font-weight: 600; }
.doc-list a:hover { text-decoration: none; color: var(--blue-600); }
.doc-list .d-ico { width: 36px; height: 36px; border-radius: 8px; background: #eef1f5; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.doc-list .d-meta { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.doc-list .d-meta span { margin-right: 12px; }

/* ===== Requirement list (standards) ===== */
.req { counter-reset: req; }
.req li { counter-increment: req; position: relative; padding: 14px 16px 14px 52px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.req li::before { content: counter(req); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; background: var(--blue-100); color: var(--blue-700); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.req li strong { color: var(--blue-900); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; width: 100%; background: var(--blue-800); }
  .nav-list.open { display: flex; }
  .navbar .container { flex-direction: column; align-items: stretch; }
  .nav-list > li .dropdown { position: static; box-shadow: none; border-radius: 0; background: var(--blue-900); }
  .nav-list > li .dropdown a { color: #e6f0fa; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .header-main .container { flex-wrap: wrap; }
  .header-actions { width: 100%; margin-left: 0; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Accessibility (large font) ===== */
body.large-font { font-size: 19px; }
body.large-font h1 { font-size: 38px; }
body.large-font h2 { font-size: 30px; }
body.large-font .section { padding: 40px 0; }

/* ===== Print ===== */
@media print {
  .topbar, .navbar, .footer, .breadcrumb, .header-actions, .form-actions { display: none; }
  .card, table { box-shadow: none; border: 1px solid #ccc; }
}