:root {
  --ink: #1d2433;
  --muted: #596579;
  --line: #dbe2ea;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --brand: #176b87;
  --brand-2: #0e7c66;
  --accent: #d55c2d;
  --shadow: 0 16px 45px rgba(23, 35, 52, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(850px, calc(100% - 32px)); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }
.topbar { background: #0f2734; color: #e9f4f5; font-size: .92rem; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav-wrap { min-height: 132px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 0 0; }
.brand img { width: 228px; height: auto; }
.header-banner { flex: 0 1 728px; display: block; }
.header-banner img { width: 100%; max-height: 90px; object-fit: contain; }
.main-nav {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  min-height: 48px;
  border-top: 1px solid var(--line);
  font-size: .91rem;
  font-weight: 750;
  text-transform: uppercase;
}
.main-nav a { padding: 10px 0; }
.main-nav a:hover { color: var(--brand); }
.nav-group { position: relative; }
.nav-group.has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
  border-radius: 0;
}
.submenu a { display: block; padding: 8px 10px; font-weight: 600; }
.nav-group:hover .submenu { display: block; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  background: #fff;
}
.button.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.button.primary:hover { background: #10566d; color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; margin: 6px 9px; background: var(--ink); }
.hero {
  background:
    linear-gradient(115deg, rgba(23,107,135,.10), rgba(14,124,102,.08) 55%, rgba(213,92,45,.08)),
    #f8fbfc;
  border-bottom: 1px solid var(--line);
}
.hero-grid { min-height: 520px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0; }
.eyebrow, .card-kicker { margin: 0 0 10px; color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 14px; }
h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.18rem; }
.hero-copy { font-size: 1.18rem; color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.hero-panel div { padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.hero-panel strong { display: block; font-size: 1.55rem; color: var(--brand-2); }
.hero-panel span { color: var(--muted); }
.section { padding: 64px 0; }
.muted { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head a { color: var(--brand); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 210px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card a { display: block; padding: 22px; height: 100%; }
.service-card p, .article-list p, .content p, .page-hero p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr .78fr; gap: 36px; align-items: start; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 6px; }
.steps span { color: var(--muted); }
.contact-box, .info-panel, .form-card, .cta-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}
.article-list { display: grid; gap: 14px; }
.article-list article { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.article-list article:last-child { border-bottom: 0; }
.article-list time { color: var(--accent); font-size: .92rem; font-weight: 700; }
.page-hero { background: var(--soft); padding: 48px 0; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li:before { content: "/"; margin-right: 8px; color: #94a0af; }
.content { font-size: 1.05rem; }
.content h2, .content h3 { margin-top: 32px; }
.content a { color: var(--brand); text-decoration: underline; }
.article-header { margin-bottom: 36px; }
.cta-strip { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact-layout { display: grid; grid-template-columns: 1fr .78fr; gap: 28px; align-items: start; }
label { display: grid; gap: 7px; font-weight: 700; margin-bottom: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
}
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #a33017; font-weight: 700; }
.flash { background: #e9f7f3; color: #0e5c4f; border: 1px solid #bfe5dc; border-radius: 8px; padding: 12px 14px; }
.site-footer { background: #10232d; color: #d9e7ea; padding: 46px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 1rem; color: #fff; }
.site-footer a { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.16); margin-top: 28px; padding-top: 18px; font-size: .9rem; color: #aec5ca; }
.floating-actions { position: fixed; left: 18px; bottom: 64px; display: grid; gap: 10px; z-index: 12; }
.floating-actions a {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  background: #24509d;
  color: #fff;
  border-radius: 50%;
  padding: 8px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.floating-actions a:nth-child(2) { background: #0c91d2; }
.floating-actions a:nth-child(3) { background: #2f7df1; }
.search-form { display: flex; gap: 10px; margin-top: 20px; }

.home-lead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.home-showcase {
  padding: 18px 0 32px;
  border-bottom: 1px solid var(--line);
}
.home-main {
  padding-top: 32px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 160px;
  gap: 10px;
}
.feature-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.feature-card:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.feature-card:nth-child(2) {
  grid-column: 2 / span 2;
  grid-row: 1;
}
.feature-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.feature-card:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.feature-card:nth-child(n+5) {
  display: none;
}
.feature-card a,
.feature-card img {
  display: block;
  width: 100%;
  height: 100%;
}
.feature-card img {
  object-fit: cover;
  transform: scale(1.001);
}
.feature-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(12, 24, 34, 0), rgba(12, 24, 34, .88));
}
.feature-caption h2 {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.primary-column {
  min-width: 0;
}
.block-title {
  border-bottom: 2px solid var(--brand);
  margin: 0 0 18px;
}
.block-title span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .9rem;
}
.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.lead-article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.lead-article:not(:first-of-type) {
  display: none;
}
.lead-article img {
  width: 100%;
  aspect-ratio: 31 / 18;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.lead-article h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}
.lead-article p {
  color: var(--muted);
}
.compact-news {
  display: grid;
  gap: 14px;
}
.compact-news article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.compact-news a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.compact-news img {
  width: 150px;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.compact-news span {
  display: block;
  font-weight: 750;
  line-height: 1.35;
}
.compact-news time {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-size: .88rem;
  margin-top: -10px;
}
.service-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.service-group h2 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.service-group h2 a {
  color: var(--brand);
}
.service-group ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.service-group li + li {
  margin-top: 6px;
}
.home-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 120px;
}
.advisor-card,
.quick-links {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.advisor-card {
  padding-bottom: 20px;
}
.advisor-card img {
  width: 100%;
  aspect-ratio: 21 / 13;
  object-fit: cover;
}
.advisor-card h2,
.advisor-card p,
.advisor-card .button {
  margin-left: 18px;
  margin-right: 18px;
}
.advisor-card h2 {
  font-size: 1.08rem;
  margin-top: 16px;
}
.advisor-card p {
  color: var(--muted);
}
.quick-links {
  padding: 18px;
}
.quick-links h2 {
  font-size: 1.08rem;
}
.quick-links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  font-weight: 750;
}
.quick-links a:last-child {
  border-bottom: 0;
}

@media (max-width: 920px) {
  .topbar { display: none; }
  .nav-wrap { flex-wrap: nowrap; padding: 0; min-height: 118px; }
  .brand img { width: 232px; max-width: calc(100vw - 100px); }
  .header-banner { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 118px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
  }
  .main-nav.open { display: flex; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding-left: 12px; }
  .hero-grid, .two-col, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 38px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-strip, .section-head, .search-form { align-items: stretch; flex-direction: column; }
  .home-showcase { padding: 16px 0 30px; }
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(238px, 72vw));
    grid-template-rows: minmax(300px, 76vw) 145px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .feature-card:first-child {
    grid-column: 1;
    grid-row: 1;
    width: calc(100vw - 32px);
    height: 100%;
  }
  .feature-card:not(:first-child) {
    width: auto;
    min-width: 0;
    height: 145px;
    scroll-snap-align: start;
  }
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    grid-row: 2;
  }
  .feature-card:nth-child(2) { grid-column: 1; }
  .feature-card:nth-child(3) { grid-column: 2; }
  .feature-card:nth-child(4) { grid-column: 3; }
  .feature-card img {
    height: 100%;
  }
  .feature-caption {
    min-height: 96px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .feature-caption h2 {
    font-size: .95rem;
    line-height: 1.18;
  }
  .content-grid,
  .experience-layout,
  .service-list-grid {
    grid-template-columns: 1fr;
  }
  .home-main {
    padding-top: 34px;
  }
  .home-sidebar {
    position: static;
  }
  .floating-actions {
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .floating-actions a {
    border-radius: 0;
    min-height: 58px;
    box-shadow: none;
  }
  .floating-actions a:nth-child(2) { background: #e94522; }
  .compact-news a {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .compact-news img {
    width: 112px;
  }
  .compact-news time {
    grid-column: 2;
  }
}
