:root {
  --blue: #004f75;
  --green: #7bb33f;
  --line: #d6dde2;
  --soft: #f3f7f9;
  --text: #10212d;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font-family: "Segoe UI", Arial, sans-serif; background: #fff; }
a { color: inherit; }
.site-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 42px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-size: 21px; font-weight: 800; text-decoration: none; }
.qt-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--green); color: #fff; font-size: 14px; }
.site-nav { display: flex; gap: 22px; font-weight: 700; color: #5d6d78; }
.site-nav a { text-decoration: none; }
.hero { min-height: 500px; display: flex; align-items: center; padding: 64px 42px; background: linear-gradient(90deg, rgba(0,79,117,.94), rgba(0,79,117,.7)), linear-gradient(135deg, #dce8ee, #fff); color: #fff; }
.hero div { max-width: 760px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; }
.hero p { max-width: 620px; font-size: 20px; line-height: 1.5; color: #e6f1f6; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero .eyebrow { color: #bce284; }
.primary-button, button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0 18px; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.section { padding: 64px 42px; }
.section h2 { margin: 0 0 24px; font-size: 38px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards article, .panel, .auth-card { border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.cards article { min-height: 170px; padding: 24px; }
.cards h3, .panel h2 { margin: 0 0 10px; }
.cards p, .panel p { color: #5d6d78; line-height: 1.5; }
.process { background: var(--soft); }
.process li { margin: 10px 0; font-size: 18px; }
footer { min-height: 70px; display: flex; align-items: center; padding: 0 42px; background: #003e5c; color: #fff; }
.portal-page { min-height: calc(100vh - 70px); padding: 48px; background: var(--soft); }
.auth-card { width: min(100%, 430px); margin: 0 auto; padding: 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; border: 1px solid var(--line); }
.tabs button { background: #fff; color: var(--blue); }
.tabs button.active { background: var(--blue); color: #fff; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; }
input { width: 100%; min-height: 40px; border: 1px solid #9ba8b2; padding: 0 10px; font: inherit; }
select { width: 100%; min-height: 40px; border: 1px solid #9ba8b2; padding: 0 10px; background: #fff; font: inherit; }
.message { min-height: 18px; margin: 0; color: #a12727; font-size: 13px; }
.dashboard-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.dashboard-header h1 { margin: 0; }
.portal-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 22px; }
.panel { padding: 22px; }
.document-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); background: #fbfcfd; margin-bottom: 10px; }
.document-row p { margin: 0; }
.document-row small { color: #5d6d78; }
.hidden { display: none; }
@media (max-width: 820px) {
  .site-header, .site-nav, .dashboard-header { align-items: stretch; flex-direction: column; }
  .site-header, .hero, .section, .portal-page { padding: 28px 22px; }
  .cards, .portal-grid { grid-template-columns: 1fr; }
}
