:root {
  color-scheme: light;
  --ink: #182e43;
  --muted: #465a6d;
  --blue: #245578;
  --line: #dce3eb;
  --soft: #eef3f8;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.site-width { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-top: 3px solid var(--blue); border-bottom: 1px solid var(--line); background: white; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 15px; }
.identity { display: flex; align-items: center; gap: 12px; }
.identity img { object-fit: contain; flex: none; }
.identity strong, .identity span { display: block; }
.identity strong { font-size: 17px; }
.identity span, .header-label { font-size: 12px; color: var(--muted); }
.header-label { font-weight: 650; }
.portal {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(315px, .95fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding-block: clamp(42px, 8vw, 108px);
}
.eyebrow { margin: 0 0 15px; font-size: 12px; text-transform: uppercase; font-weight: 750; letter-spacing: .1em; color: #14588d; }
.eyebrow span { display: inline-block; width: 19px; height: 3px; margin-right: 7px; vertical-align: middle; background: var(--blue); border-radius: 2px; }
h1 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.045em; margin: 0; }
.lead { font-size: clamp(15px, 1.7vw, 18px); color: var(--muted); line-height: 1.65; margin: 20px 0 24px; max-width: 530px; }
.scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scope li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #ffffffa6; }
.scope strong, .scope small { display: block; }
.scope strong { font-size: 13px; }
.scope small { color: var(--muted); font-size: 12px; }
.scope-icon { flex: 0 0 20px; height: 20px; background: var(--blue); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-hospital { --icon: url("icons/hospital.svg"); }
.icon-district { --icon: url("icons/map-marker.svg"); }
.icon-territory { --icon: url("icons/organization.svg"); }
.access-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 26px #143c600d; }
.access-icon { display: inline-grid; width: 45px; height: 45px; place-items: center; border-radius: 10px; background: var(--soft); color: var(--blue); }
h2, .login h1 { font-size: clamp(23px, 3vw, 32px); margin: 15px 0 6px; letter-spacing: -.025em; }
.access-note { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.access-actions { display: grid; gap: 10px; }
.access-primary, .access-secondary { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; border-radius: 7px; padding: 8px 12px; text-align: center; font-size: 14px; font-weight: 750; }
.access-primary { background: var(--blue); color: white; text-decoration: none; }
.access-primary:hover { background: #1a4465; }
.access-secondary { color: var(--blue); text-underline-offset: .2em; }
.access-secondary:hover { background: var(--soft); }
.access-primary:focus-visible, .access-secondary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.login { max-width: 460px; padding-block: clamp(24px, 7vw, 84px); }
.login-back { width: fit-content; margin: 0 0 10px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-block: 15px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 730px) {
  .portal { grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
  .site-width { width: calc(100% - 32px); }
  .header-label, .desktop-break { display: none; }
}

.site-footer a { color: inherit; }
