@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Prata&display=swap');

:root {
  --ink: #13223b;
  --ink-soft: #526078;
  --paper: #f3f6fa;
  --paper-deep: #e7edf5;
  --white: #ffffff;
  --sage: #3158a6;
  --sage-dark: #244483;
  --copper: #df5b42;
  --line: rgba(19,34,59,.14);
  --shadow: 0 26px 70px rgba(19,34,59,.12);
  --serif: 'Prata', Georgia, serif;
  --sans: 'Onest', 'Segoe UI', sans-serif;
  --radius: 20px;
  --wrap: min(1240px, calc(100% - 48px));
}

body { background: var(--paper); font-size: 16px; line-height: 1.65; }
body::before { display: none; }
h1,h2,h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(48px,6.2vw,88px); }
h2 { font-size: clamp(38px,4.8vw,64px); }
h3 { font-size: clamp(24px,2.5vw,34px); }
.eyebrow { color: var(--copper); letter-spacing: .14em; }
.lead { font-size: clamp(17px,1.6vw,21px); line-height: 1.55; }
.button { min-height: 54px; padding-inline: 24px; border-color: var(--sage); background: var(--sage); }
.button:hover { background: var(--sage-dark); }
.button--ghost { border-color: currentColor; background: transparent; color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); background: var(--ink); }
:focus-visible { outline: 3px solid #ff9c83; outline-offset: 4px; }

.site-header { border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.header-row { min-height: 78px; }
.brand__mark { border: 0; background: var(--copper); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 800; }
.brand__name { color: var(--ink); }
.brand__name small,.header-phone small { color: var(--ink-soft); }
.nav a { color: var(--ink-soft); }
.nav a:hover,.nav a[aria-current='page'] { color: var(--ink); }
.nav a::after { bottom: -9px; height: 2px; background: var(--copper); }
.header-phone { padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.header-phone:hover { border-color: var(--sage); color: var(--sage); }

.hero { padding: 28px 0 80px; }
.hero-grid { min-height: 650px; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); border: 0; border-radius: 26px; background: var(--ink); box-shadow: var(--shadow); }
.hero-copy { z-index: 1; padding: clamp(42px,6vw,76px); color: #fff; }
.hero-copy::before { top: 34px; left: auto; right: 30px; color: #fff; font-size: 112px; opacity: .045; }
.hero h1 { font-size: clamp(48px,5.4vw,78px); line-height: 1.04; }
.hero h1 em { color: #ff8b70; }
.hero .lead { color: rgba(255,255,255,.76); }
.hero .button--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .button--ghost:hover { background: #fff; color: var(--ink); }
.hero-proof { border-top-color: rgba(255,255,255,.2); }
.hero-proof strong { color: #ff8b70; font-family: var(--sans); font-weight: 700; }
.hero-proof span { color: rgba(255,255,255,.68); }
.hero-photo { min-height: 650px; }
.hero-photo::after { inset: 0; border: 0; border-radius: 0; background: linear-gradient(90deg,rgba(19,34,59,.22),transparent 38%); }
.hero-note { right: 24px; bottom: 24px; max-width: 290px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 16px 40px rgba(19,34,59,.18); }

.section { padding: 92px 0; }
.section--white { background: #fff; }
.section--ink { background: var(--ink); }
.section-head,.hub-directory__head { display: grid; grid-template-columns: minmax(0,.85fr) minmax(320px,1.15fr); align-items: end; gap: 56px; margin-bottom: 42px; }
.section-head .lead,.hub-directory__head .lead { justify-self: end; }
.route-grid { gap: 14px; }
.route-card,.route-card:nth-child(1),.route-card:nth-child(2) { min-height: 260px; grid-column: span 4; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: none; }
.route-card::before { position: absolute; top: 0; right: 28px; left: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--copper); content: ''; transform: scaleX(.28); transform-origin: left; transition: transform .25s ease; }
.route-card:hover { border-color: rgba(49,88,166,.42); box-shadow: 0 18px 45px rgba(19,34,59,.1); transform: translateY(-5px); }
.route-card:hover::before { transform: scaleX(1); }
.route-card.route-card--dark { background: var(--ink); color: #fff; }
.route-card.route-card--dark p { color: rgba(255,255,255,.74); }
.route-card h3 { margin-top: 34px; font-size: 28px; line-height: 1.13; }
.route-card p { font-size: 14px; line-height: 1.6; }
.route-card__index { color: var(--copper); font-family: var(--sans); font-weight: 700; }
.route-card .arrow { font-size: 20px; }

.hub-directory { scroll-margin-top: 95px; border-block: 1px solid var(--line); background: #fff; }
.hub-directory__head h2 { max-width: 620px; }
.hub-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); }
.hub-service-link { display: grid; min-height: 112px; grid-template-columns: 42px minmax(0,1fr) 38px; align-items: center; gap: 18px; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .2s ease,color .2s ease; }
.hub-service-link:nth-child(even) { border-right: 0; }
.hub-service-link:hover { background: var(--paper); color: var(--sage-dark); }
.hub-service-link__number { color: var(--copper); font-size: 12px; font-weight: 700; }
.hub-service-link__copy { display: grid; gap: 6px; }
.hub-service-link__copy strong { font-size: 17px; line-height: 1.3; }
.hub-service-link__copy small { color: var(--ink-soft); font-size: 12px; }
.hub-service-link__arrow { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: transform .2s ease,background .2s ease; }
.hub-service-link:hover .hub-service-link__arrow { background: var(--sage); color: #fff; transform: translateX(3px); }
.hub-directory__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 32px; padding: 24px 28px; border-radius: 14px; background: var(--paper); }
.hub-directory__footer p { margin-right: auto; font-weight: 600; }

.portrait-frame { padding: 0; overflow: hidden; border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.portrait-frame img { max-height: 660px; border-radius: 0; }
.portrait-frame::before { display: none; }
.content-card { border-radius: 14px; background: #fff; }
.content-card h3 { font-size: 27px; }
.process article { min-height: 270px; }
.process article::before { color: #ff8b70; font-family: var(--sans); font-weight: 700; }
.process h3 { font-size: 25px; }

.page-hero { padding: 76px 0 70px; background: var(--ink); color: #fff; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.55); }
.page-hero-grid { grid-template-columns: minmax(0,1fr) 230px; align-items: center; }
.page-hero h1 { max-width: 900px; font-size: clamp(48px,6vw,82px); line-height: 1.04; }
.page-hero .lead { color: rgba(255,255,255,.72); }
.page-hero .button--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.page-hero .button--ghost:hover { background: #fff; color: var(--ink); }
.page-index { width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #ff8b70; font-family: var(--sans); font-size: 64px; font-weight: 700; opacity: 1; }
.pill { border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.78); }
a.pill:hover { border-color: #ff8b70; color: #fff; }

.service-list { grid-template-columns: repeat(2,1fr); gap: 16px; }
.service-group { border-radius: 16px; }
.service-group h3 { font-size: 28px; }
.service-group a { display: block; padding: 8px 0; }
.service-group a:hover { color: var(--sage); }

.service-hero { padding: 64px 0 72px; background: #fff; }
.service-hero h1 { font-size: clamp(43px,5.6vw,76px); line-height: 1.06; }
.expert-aside { border: 0; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 14px 14px 0 var(--paper-deep); }
.expert-aside::before { margin-bottom: 48px; border: 0; border-radius: 8px; background: var(--copper); color: #fff; font-family: var(--sans); }
.expert-aside p { color: rgba(255,255,255,.68); }
.article-nav { top: 78px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
.article-nav a:hover { color: var(--sage); }
.detail-card { border-radius: 14px; background: #fff; }
.detail-card span,.timeline li::before,.document-list li::before { color: var(--copper); font-family: var(--sans); }
.related-card { border-radius: 14px; background: #fff; }
.contact-band { background: var(--sage); }
.phone-display { color: #fff; }
.site-footer { background: #0d192d; }

@media (max-width: 1040px) {
  .nav { gap: 14px; }
  .nav a { font-size: 12px; }
  .route-card,.route-card:nth-child(1),.route-card:nth-child(2) { grid-column: span 6; }
}

@media (max-width: 980px) {
  :root { --wrap: min(100% - 36px,1240px); }
  .nav { background: #fff; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; }
  .hero-photo { min-height: 600px; }
  .section-head,.hub-directory__head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .lead,.hub-directory__head .lead { justify-self: start; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-index { display: none; }
  .article-nav { top: 78px; }
}

@media (max-width: 680px) {
  :root { --wrap: min(100% - 28px,1240px); }
  .header-row { min-height: 72px; }
  .header-phone { padding: 8px 10px; font-size: 11px; }
  .nav { inset-block-start: 72px; }
  .hero { padding-top: 14px; }
  .hero-grid { border-radius: 18px; }
  .hero-copy { min-height: auto; padding: 42px 24px; }
  .hero h1 { font-size: clamp(43px,13vw,58px); }
  .hero-photo { min-height: 470px; }
  .hero-note { right: 16px; bottom: 16px; left: 16px; max-width: none; }
  .section { padding: 70px 0; }
  .route-card,.route-card:nth-child(1),.route-card:nth-child(2) { min-height: 235px; grid-column: 1/-1; }
  .hub-service-grid { grid-template-columns: 1fr; }
  .hub-service-link,.hub-service-link:nth-child(even) { min-height: 100px; padding: 18px 10px; border-right: 0; grid-template-columns: 34px minmax(0,1fr) 34px; gap: 10px; }
  .hub-service-link__copy small { display: none; }
  .hub-directory__footer { align-items: flex-start; padding: 22px; flex-direction: column; }
  .hub-directory__footer p { margin-right: 0; }
  .page-hero { padding: 54px 0 62px; }
  .page-hero h1 { font-size: clamp(40px,11vw,55px); }
  .service-list { grid-template-columns: 1fr; }
  .service-hero h1 { font-size: clamp(38px,10vw,52px); }
  .article-nav { top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
