:root {
  --ink: #0c1446;
  --muted: #667ab3;
  --line: #d8def0;
  --paper: #f5f7fb;
  --white: #ffffff;
  --sage: #43b5fe;
  --forest: #0c1446;
  --gold: #43b5fe;
  --blue: #0066ff;
  --shadow: 0 24px 70px rgba(12, 20, 70, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 20, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 70, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
}

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: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 251, 0.94);
  border-bottom: 1px solid rgba(216, 222, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  background: var(--forest);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #18245d;
  font-size: 14px;
  border-radius: 8px;
}

.nav a:hover {
  background: #e9f4ff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: 560px;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px) clamp(38px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 64%, rgba(67,181,254,0.045) 64% 64.25%, transparent 64.25%),
    linear-gradient(35deg, transparent 0 72%, rgba(0,102,255,0.035) 72% 72.25%, transparent 72.25%),
    linear-gradient(90deg, rgba(245,247,251,0.98) 0%, rgba(245,247,251,0.88) 55%, rgba(245,247,251,0.55) 100%),
    url("assets/start.jpg") right 13% center / auto 82% no-repeat,
    linear-gradient(120deg, #f7f9ff, #eaf4ff 58%, #eef3fb);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--ink);
}

.hero .eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--blue);
}

.hero .eyebrow::after {
  content: "";
  position: absolute;
  left: 56px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,102,255,0.45), transparent);
}

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

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 0.98;
  font-weight: 500;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
  margin-bottom: 8px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--blue);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 500;
}

h3 {
  font-size: 19px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: #26336b;
  font-size: 21px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--forest);
}

.button.secondary {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.55);
}

.hero-panel,
.contact-details,
.contact-form,
.legal-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 222, 240, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.panel-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.phone {
  display: block;
  margin: 12px 0 14px;
  color: var(--forest);
  font-size: 30px;
  font-weight: 800;
}

dl {
  margin: 22px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  text-align: right;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-top: 3px solid rgba(0, 102, 255, 0.24);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong,
.intro-band div > span:not(.fact-icon) {
  grid-column: 2;
}

.intro-band span {
  color: var(--muted);
}

.fact-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue) !important;
  font-weight: 800;
  background: #eef6ff;
  border: 1px solid #cfdfff;
  border-radius: 8px;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section::before {
  content: "";
  position: absolute;
  top: 48px;
  right: clamp(18px, 5vw, 72px);
  width: 130px;
  height: 130px;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(90deg, rgba(0,102,255,0.16) 1px, transparent 1px),
    linear-gradient(rgba(0,102,255,0.14) 1px, transparent 1px);
  background-size: 18px 18px;
}

.contact-section::before {
  opacity: 0.28;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.content {
  max-width: 760px;
  color: #243066;
  font-size: 18px;
}

.team {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

ul {
  padding-left: 20px;
}

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

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

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

.service-grid article {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-grid article {
  min-height: 420px;
  overflow: hidden;
}

.service-grid article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(67,181,254,0.35));
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--blue);
  background: #eef6ff;
  border: 1px solid #cfdfff;
  border-radius: 8px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiet-note {
  margin: 28px 0 0;
  color: var(--forest);
  font-size: 20px;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  background: var(--white);
}

.contact-copy {
  padding-right: clamp(0px, 3vw, 32px);
}

.contact-details {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.contact-details h3 {
  margin-bottom: 6px;
}

.contact-details a {
  color: var(--blue);
  font-weight: 700;
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: #18245d;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7d4;
  border-color: #cfd8ef;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.check input {
  width: 18px;
  margin-top: 4px;
}

.check a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form .button {
  width: fit-content;
}

.map-link {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  background: #f7f9ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(0,102,255,0.08) 32% 33%, transparent 33%),
    linear-gradient(25deg, transparent 0 55%, rgba(67,181,254,0.12) 55% 56%, transparent 56%);
}

.map-link > * {
  position: relative;
  z-index: 1;
}

.route-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, #0066ff 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 0 46%, rgba(12,20,70,0.28) 46% 54%, transparent 54%),
    linear-gradient(rgba(12,20,70,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,20,70,0.14) 1px, transparent 1px),
    #eef6ff;
  background-size: auto, auto, 14px 14px, 14px 14px, auto;
  border: 1px solid #cfdfff;
}

.map-link h3,
.map-link p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #e6edff;
  background: var(--forest);
}

.footer nav {
  display: flex;
  gap: 18px;
}

.legal-hero {
  padding: 72px clamp(18px, 5vw, 72px) 32px;
  background: linear-gradient(120deg, #f7f9ff, #eaf4ff);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 32px clamp(18px, 5vw, 72px) 80px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.legal-nav a {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-card {
  padding: clamp(24px, 4vw, 44px);
}

.legal-card h2 {
  margin-top: 32px;
  font-size: 34px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #27346b;
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .contact-section,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid article {
    min-height: 0;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 50px;
  }

  h1 span {
    font-size: 20px;
  }

  .hero .eyebrow {
    font-size: 19px;
  }

  h2 {
    font-size: 38px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 4px;
  }

  .nav a {
    width: 100%;
  }

  .hero {
    display: block;
    max-width: 100vw;
    min-height: auto;
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 34px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-panel,
  .contact-copy,
  .contact-details,
  .contact-form,
  .legal-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-panel {
    margin-top: 30px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
    max-width: 320px;
  }

  h1 span {
    margin-bottom: 6px;
    font-size: 17px;
  }

  .hero .eyebrow {
    display: flex;
    font-size: 17px;
  }

  .hero .eyebrow::before {
    width: 30px;
  }

  .hero .eyebrow::after {
    left: 42px;
  }

  h2,
  .legal-card h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 18px;
    max-width: 318px;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-actions .button,
  .map-link .button {
    width: 100%;
    max-width: 100%;
  }

  .map-link {
    align-items: stretch;
    flex-direction: column;
  }

  dl div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  dd {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .intro-band,
  .service-grid,
  .contact-form,
  .legal-nav {
    grid-template-columns: 1fr;
  }

  .intro-band div {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 20px;
    padding-left: 20px;
  }

  .fact-icon {
    width: 38px;
    height: 38px;
  }

  .section::before {
    width: 82px;
    height: 82px;
    opacity: 0.22;
  }

  .phone {
    font-size: 25px;
  }

  .footer {
    display: block;
  }

  .footer nav {
    flex-wrap: wrap;
    margin-top: 12px;
  }
}
