:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --text: #242936;
  --muted: #5f6877;
  --line: #d9e0ea;
  --primary: #174a7c;
  --primary-dark: #102f52;
  --accent: #0b6f79;
  --notice-bg: #fff8e6;
  --notice-line: #ead18a;
  --notice-text: #684a05;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-weight: 750;
  letter-spacing: 0;
}

.site-brand:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 58px;
  height: auto;
  flex: 0 0 auto;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.brand-mark {
  color: var(--primary-dark);
}

.brand-text {
  color: var(--muted);
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
}

main {
  flex: 1 0 auto;
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.home-page {
  width: 100%;
  padding-top: 0;
}

.home-page > :not(.home-hero) {
  width: min(1120px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  padding-bottom: 24px;
}

.subpage-hero {
  position: relative;
  height: 210px;
  margin: -42px calc(50% - 50vw) 42px;
  overflow: hidden;
  background: var(--primary-dark);
}

.subpage-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 39, 0.36), rgba(7, 22, 39, 0.62)),
    rgba(7, 22, 39, 0.18);
}

.subpage-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 22px 28px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.subpage-hero .kicker {
  color: rgba(255, 255, 255, 0.82);
}

.subpage-hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 720;
}

.subpage-hero .subtitle {
  max-width: 860px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.home-hero {
  position: relative;
  height: clamp(430px, 34vw, 540px);
  margin: 0 0 30px;
  overflow: hidden;
  background: var(--primary-dark);
}

.home-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 22, 39, 0.22), rgba(7, 22, 39, 0.64)),
    linear-gradient(90deg, rgba(7, 22, 39, 0.42), rgba(7, 22, 39, 0.16), rgba(7, 22, 39, 0.42));
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.home-hero-overlay > * {
  max-width: 1120px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero h1 {
  color: #ffffff;
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 780;
  letter-spacing: 0;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.54);
}

.hero-subtitle {
  max-width: 1040px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.05rem, 1.75vw, 1.45rem);
  line-height: 1.28;
}

.hero-meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
}

.hero-actions {
  justify-content: center;
  margin-top: 10px;
  text-shadow: none;
}

.hero-actions .text-button {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
}

.hero-actions .text-button:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

.hero-actions .text-button.secondary {
  background: rgba(8, 28, 50, 0.28);
  color: #ffffff;
}

.hero-actions .text-button.secondary:hover {
  background: rgba(8, 28, 50, 0.42);
  color: #ffffff;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 650;
  line-height: 1.12;
}

.subtitle {
  max-width: 880px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1.24rem;
  line-height: 1.45;
}

.meta-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.text-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  padding: 10px 14px;
}

.text-button:hover {
  background: var(--primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.text-button.secondary {
  background: #ffffff;
  color: var(--primary);
}

.text-button.secondary:hover {
  background: var(--surface);
  color: var(--primary-dark);
}

.notice {
  border: 1px solid var(--notice-line);
  border-radius: 5px;
  background: var(--notice-bg);
  color: var(--notice-text);
  margin: 0 0 30px;
  padding: 12px 14px;
}

.notice strong {
  color: #543900;
}

.content-section {
  margin-top: 34px;
}

.content-section:first-child {
  margin-top: 0;
}

h2 {
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
  padding-bottom: 6px;
  color: var(--primary-dark);
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.25;
}

h3 {
  margin: 24px 0 8px;
  color: var(--primary-dark);
  font-size: 1.12rem;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.compact-list {
  padding-left: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 0.98rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 700;
}

tbody th {
  width: 32%;
}

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

.profile-list li {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.profile-list li:first-child {
  padding-top: 0;
}

.profile-list li:last-child {
  border-bottom: 0;
}

.profile-list h2 {
  border-bottom: 0;
  margin-bottom: 10px;
  padding-bottom: 0;
  font-size: 1.22rem;
  line-height: 1.35;
}

.profile-list p {
  margin-bottom: 10px;
}

.profile-separator {
  color: var(--muted);
  font-weight: 400;
}

.profile-email {
  margin-top: 8px;
  color: var(--muted);
}

.profile-email strong {
  color: var(--text);
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 28px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 24px;
}

.site-footer strong {
  color: var(--primary-dark);
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .container,
  main {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .brand-logo {
    width: 52px;
  }

  main {
    padding-top: 30px;
  }

  .home-page {
    padding-top: 0;
  }

  .home-hero {
    height: 380px;
  }

  .home-hero-overlay {
    width: min(100% - 28px, 1120px);
    padding: 28px 0;
  }

  .subpage-hero {
    height: 180px;
    margin-top: -30px;
    margin-bottom: 32px;
  }

  .subpage-hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .subtitle {
    font-size: 1.08rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  tbody th {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
