:root {
  --ink: #0d2a52;
  --ink-soft: #123664;
  --paper: #f3f7fb;
  --white: #ffffff;
  --muted: #5d7188;
  --line: #d5e1ed;
  --accent: #0759b5;
  --accent-dark: #03458e;
  --accent-light: #dceeff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { min-height: 112px; padding: 8px max(28px, calc((100vw - var(--max))/2)); display: flex; align-items: center; gap: 44px; background: rgba(255,255,255,.97); color: var(--ink); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(13,42,82,.12); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 88px; height: 88px; padding: 3px; object-fit: contain; flex: 0 0 auto; }
.brand-name { font: 700 2.2rem/1.05 "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif; letter-spacing: .005em; }
.brand-name small { color: var(--accent); font-size: .64em; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { font-size: .92rem; font-weight: 600; text-decoration: none; color: #284766; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.header-phone { min-width: 170px; padding-left: 20px; border-left: 1px solid var(--line); color: var(--accent-dark); text-decoration: none; font-weight: 700; line-height: 1.3; }
.header-phone span { display: block; color: #718297; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.menu-button { display: none; background: transparent; border: 0; padding: 8px; }
.menu-button > span:not(.sr-only) { width: 25px; height: 2px; background: var(--accent-dark); display: block; margin: 5px; }

.hero { min-height: calc(100vh - 112px); max-height: 840px; position: relative; isolation: isolate; display: flex; align-items: center; color: white; overflow: hidden; }
.hero-picture { position: absolute; inset: 0; z-index: -3; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,31,67,.98) 0%, rgba(7,42,89,.92) 38%, rgba(7,54,105,.34) 70%, rgba(7,54,105,.10) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 45%; height: 8px; background: var(--accent); }
.hero-content { width: min(660px, calc(100% - 56px)); margin-left: max(28px, calc((100vw - var(--max))/2)); padding: 80px 0 170px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3 { font-family: "Arial Narrow", Arial, sans-serif; margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: .94; letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 { color: white; }
.hero h1 span { color: var(--accent); }
.hero .eyebrow, .company .eyebrow, .contact .eyebrow { color: white; }
.hero-copy { max-width: 590px; margin: 0 0 34px; color: #e4e7e8; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; font: 700 .91rem/1 Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: white; border: 1px solid rgba(255,255,255,.58); background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.hero-facts { position: absolute; left: max(28px, calc((100vw - var(--max))/2)); bottom: 34px; display: grid; grid-template-columns: repeat(3, 1fr); width: min(760px, calc(100% - 56px)); }
.hero-facts div { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.24); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font: 700 1.15rem "Arial Narrow", Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.hero-facts span { color: #c9d9ea; font-size: .78rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 112px 28px; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.section-heading.compact { grid-template-columns: 1fr; max-width: 760px; }
.section-heading h2, .company h2, .contact h2 { margin-bottom: 0; font-size: clamp(2.25rem, 3.7vw, 3.65rem); line-height: 1; text-transform: uppercase; letter-spacing: -.018em; }
.company h2, .contact h2 { color: white; }
.section-heading > p { color: var(--muted); margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 285px; padding: 34px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .22s, box-shadow .22s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(13,42,82,.11); z-index: 1; }
.service-card-featured { background: var(--accent); color: white; }
.service-card h3 { margin: 54px 0 12px; font-size: 1.65rem; line-height: 1.1; text-transform: uppercase; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.service-card-featured p { color: rgba(255,255,255,.84); }
.service-card-certified { position: relative; color: white; background: var(--ink-soft); box-shadow: inset 0 5px 0 var(--accent); }
.service-card-certified h3 { margin-top: 52px; font-size: 1.5rem; }
.service-card-certified p { color: #d0deec; }
.service-badge { position: absolute; top: 26px; right: 26px; min-height: 36px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.42); border-radius: 2px; color: white; background: rgba(255,255,255,.08); font: 700 .68rem/1 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.certificate-trigger { cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.certificate-trigger span { margin-left: 4px; font-size: .9rem; }
.certificate-trigger:hover { color: var(--ink); background: white; border-color: white; transform: translateY(-2px); }
.certificate-trigger:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

.certificate-dialog { width: min(920px, calc(100% - 32px)); max-height: 94vh; padding: 0; border: 0; color: var(--ink); background: transparent; box-shadow: 0 28px 80px rgba(3,20,45,.42); }
.certificate-dialog::backdrop { background: rgba(3,20,45,.82); backdrop-filter: blur(5px); }
.certificate-window { padding: 26px; background: white; }
.certificate-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.certificate-header .eyebrow { margin-bottom: 6px; }
.certificate-header h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.08; text-transform: uppercase; }
.certificate-close { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font: 300 2rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.certificate-close:hover { color: white; background: var(--accent); border-color: var(--accent); }
.certificate-close:focus-visible { outline: 3px solid rgba(7,89,181,.25); outline-offset: 2px; }
.certificate-figure { margin: 0; }
.certificate-figure img { width: auto; max-width: 100%; max-height: calc(94vh - 190px); margin: 0 auto; object-fit: contain; }
.certificate-figure figcaption { margin-top: 12px; color: var(--muted); font-size: .84rem; text-align: center; }
.certificate-original { display: block; width: fit-content; margin: 16px auto 0; color: var(--accent-dark); font-size: .88rem; font-weight: 700; text-underline-offset: 3px; }

.references { padding: 112px 28px 124px; background: #eaf2f9; }
.references-inner { max-width: var(--max); margin: 0 auto; }
.reference-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-auto-rows: 275px; gap: 16px; }
.reference-card { position: relative; margin: 0; overflow: hidden; background: var(--ink); }
.reference-card-large { grid-row: span 2; }
.reference-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.reference-card:hover img { transform: scale(1.035); }
.reference-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,25,54,.88)); pointer-events: none; }
.reference-card figcaption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; color: white; }
.reference-card figcaption span, .reference-card figcaption strong { display: block; }
.reference-card figcaption span { margin-bottom: 3px; color: #b9d8f5; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.reference-card figcaption strong { font: 700 1.2rem/1.15 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }

.company { max-width: none; padding: 0; display: grid; grid-template-columns: 1.15fr .85fr; color: white; background: var(--ink); }
.company-panel { padding: 112px max(28px, calc((100vw - var(--max))/2)); padding-right: 9vw; }
.company-panel > p:not(.eyebrow) { max-width: 660px; color: #c8d6e6; }
.text-link { display: inline-block; margin-top: 22px; color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 8px; }
.company-quote { min-height: 570px; padding: 80px 7vw; display: flex; flex-direction: column; justify-content: center; background: var(--accent); }
.quote-mark { height: 74px; font: 800 8rem/.8 Georgia, serif; opacity: .35; }
.company-quote blockquote { margin: 24px 0; font: 700 clamp(1.7rem, 2.6vw, 2.55rem)/1.14 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.company-quote p { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.process { padding-bottom: 128px; }
.process-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 1fr; padding: 34px 0; border-bottom: 1px solid var(--line); }
.process-list h3 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; }
.process-list p { margin: 0; color: var(--muted); }

.contact { padding: 108px max(28px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; color: white; background: var(--ink-soft); }
.contact-intro > p:not(.eyebrow) { color: #c8d6e6; }
.contact-direct { margin-top: 46px; display: grid; gap: 12px; }
.contact-direct a { text-decoration: none; }
.contact-direct span, .contact-direct strong { display: block; }
.contact-direct span { color: #9eb3ca; font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; }
.contact-direct strong { font-size: 1.12rem; }
.contact-form { padding: 38px; background: white; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 19px; font-size: .84rem; font-weight: 700; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 0; padding: 14px; background: #f7f8f8; color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(7,89,181,.18); border-color: var(--accent); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--muted); }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.contact-form .button { width: 100%; }
.form-note { color: var(--muted); font-size: .75rem; margin: 12px 0 0; text-align: center; }

.site-footer { padding: 50px max(28px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; color: #cad8e7; background: #071d3b; font-size: .82rem; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 64px; height: 64px; padding: 2px; background: white; border-radius: 4px; }
.footer-brand div span, .site-footer > div > span { display: block; color: #8098b1; }
.footer-brand strong, .site-footer > div > strong { display: block; color: white; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { color: white; }
.footer-links span { color: #8098b1; }
.footer-social { display: grid; align-content: start; gap: 4px; }
.footer-social > span { color: #8098b1; }
.footer-social > strong { color: white; font-weight: 600; }
.copyright { grid-column: 1 / -1; padding-top: 24px; margin: 10px 0 0; border-top: 1px solid #24436a; color: #7890aa; }
.mobile-call { display: none; }

.legal-back { margin-left: auto; color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal-main { width: min(900px, calc(100% - 40px)); min-height: 70vh; margin: 0 auto; padding: 92px 0 110px; }
.legal-main > h1 { margin-bottom: 28px; color: var(--ink); font-size: clamp(2.9rem, 5.5vw, 4.6rem); line-height: .96; text-transform: uppercase; }
.legal-main section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-main section h2 { margin-bottom: 12px; color: var(--ink); font-size: 1.65rem; }
.legal-main section p { margin: 8px 0; color: #445c75; }
.legal-main section ul { margin: 12px 0; padding-left: 24px; color: #445c75; }
.legal-main section li + li { margin-top: 7px; }
.legal-main section code { padding: 2px 5px; border-radius: 3px; background: #eef3f8; font-size: .92em; }
.legal-main section a { color: var(--accent-dark); }
.legal-notice { margin-bottom: 22px; padding: 20px 22px; border-left: 5px solid var(--accent); background: var(--accent-light); color: #193e68; }
.legal-footer { grid-template-columns: 1.5fr 1fr 1fr; }

@media (max-width: 900px) {
  .site-header { min-height: 92px; padding: 7px 20px; }
  .brand-logo { width: 72px; height: 72px; }
  .header-phone { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 20px; flex-direction: column; gap: 0; background: white; border-top: 1px solid var(--line); box-shadow: 0 12px 28px rgba(13,42,82,.14); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .hero { min-height: 760px; }
  .hero-content { width: calc(100% - 40px); margin-left: 20px; padding-bottom: 235px; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,31,67,.96), rgba(7,49,98,.50)); }
  .hero-facts { left: 20px; width: calc(100% - 40px); grid-template-columns: 1fr; bottom: 35px; }
  .hero-facts div { padding: 8px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .hero-facts div:first-child { border-top: 0; }
  .section { padding: 84px 20px; }
  .references { padding: 84px 20px 92px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .reference-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .reference-card-large { grid-row: auto; grid-column: span 2; }
  .company { grid-template-columns: 1fr; }
  .company-panel { padding: 88px 28px; }
  .company-quote { min-height: 390px; }
  .contact { grid-template-columns: 1fr; gap: 45px; padding: 84px 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-bottom: 90px; }
  .mobile-call { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; height: 52px; align-items: center; justify-content: center; background: var(--accent); color: white; box-shadow: 0 9px 30px rgba(0,0,0,.28); font-weight: 800; text-decoration: none; }
}

@media (max-width: 600px) {
  .site-header { min-height: 88px; padding: 7px 16px; }
  .brand-logo { width: 66px; height: 66px; }
  .brand-name { font-size: 1.85rem; }
  .hero { min-height: 780px; }
  .hero-image { object-position: 66% center; }
  .hero-content { padding-top: 55px; }
  h1 { font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: .96; }
  .hero-copy { max-width: 93%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .service-grid { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .reference-card-large { grid-column: auto; }
  .service-card { min-height: 245px; }
  .service-card h3 { margin-top: 34px; }
  .service-card-certified h3 { margin-top: 58px; }
  .service-badge { top: 20px; right: 20px; }
  .certificate-dialog { width: calc(100% - 20px); max-height: 96vh; }
  .certificate-window { padding: 16px; }
  .certificate-header { gap: 12px; margin-bottom: 14px; padding-bottom: 14px; }
  .certificate-header .eyebrow { font-size: .66rem; }
  .certificate-figure img { max-height: calc(96vh - 185px); }
  .contact-form { padding: 25px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .legal-main { padding-top: 70px; }
  .legal-back { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
