:root {
  --ink: #18202a;
  --muted: #596574;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --line: #d9e0e7;
  --navy: #18324a;
  --blue: #2563a6;
  --teal: #1f766f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(64px, 9vw, 108px) clamp(20px, 5vw, 72px) clamp(46px, 7vw, 82px);
  background:
    linear-gradient(120deg, rgba(37, 99, 166, 0.1), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.lead {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.company-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(24, 32, 42, 0.08);
}

.company-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

dl {
  margin: 0;
  padding: 8px 24px 24px;
}

dl div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.section,
.contact-section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.about-section,
.standards-section {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: clamp(28px, 6vw, 86px);
}

.about-section p,
.business-grid p,
.standards-list,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.business-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.standards-section {
  color: white;
  background: var(--navy);
}

.standards-section .section-label {
  color: #9cc9ff;
}

.standards-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 20px;
  color: #dce7f2;
}

.contact-section {
  max-width: 900px;
}

.contact-section p {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: #dce7f2;
  background: #101923;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 18px;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: #9cc9ff;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-route {
  min-height: calc(100vh - 147px);
  background: #ffffff;
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) clamp(20px, 5vw, 72px);
}

.legal-content h1 {
  margin-bottom: 28px;
  text-align: center;
}

.legal-content h3 {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.5vw, 42px);
  text-align: center;
}

.legal-content h2 {
  margin-top: 30px;
  font-size: 22px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--blue);
  word-break: break-all;
}

.legal-content .ql-align-center {
  text-align: center;
}

.legal-content .ql-align-justify {
  text-align: justify;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-footer {
    place-items: center;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .about-section,
  .business-grid,
  .standards-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
  }

  h1 {
    font-size: 38px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
