:root {
  color-scheme: light;
  --navy: #0b2235;
  --ink: #142a3b;
  --blue: #64b2ff;
  --accent: #f69b3e;
  --muted: #47596b;
  --line: #d9e3eb;
  --background: #f4f7fa;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 1rem/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #2782d1; outline-offset: 4px; }
.wrap { width: min(67rem, calc(100% - 3rem)); margin-inline: auto; }
header { background: var(--navy); color: white; }
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--blue); }
nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); align-items: stretch; }
nav a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
  color: #e4edf5;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: white; border-bottom-color: var(--accent); }
main {
  flex: 1 0 auto;
  display: grid;
  align-items: center;
  padding-block: clamp(1.25rem, 4.5vh, 3rem);
}
h1, h2, p { margin: 0; }
h1 { margin-bottom: .8rem; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.055em; }
h2 { margin-bottom: .3rem; font-size: 1.12rem; line-height: 1.24; }
p { color: var(--muted); }
.panel {
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: white;
  padding: clamp(.85rem, 2.1vw, 1.35rem);
}
.essence {
  padding: clamp(1.2rem, 4vw, 2.75rem);
  border-radius: 1rem;
  background: linear-gradient(125deg, var(--navy), #174a6b);
  color: white;
}
.essence p { color: #dfecf6; max-width: 63ch; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .85rem; margin-top: .85rem; }
.company-grid a { overflow-wrap: anywhere; }
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: .85rem; margin-top: 1.1rem; }
.service { grid-column: span 2; }
.software {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  background: #eaf4ff;
  border-color: #bfd9f3;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: .55rem .85rem;
  border-radius: .5rem;
  background: var(--accent);
  color: var(--navy);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: #ffb064; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: clamp(1.25rem, 4vw, 3rem); }
.contact h1 { max-width: 22ch; }
.contact .button { flex-shrink: 0; }
footer { padding-block: .65rem; color: #dbe7f2; background: var(--navy); font-size: .875rem; }

@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .company-grid { grid-template-columns: 1fr 1fr; }
  .company-data { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .service { grid-column: auto; }
  .software { grid-column: 1 / -1; }
  .contact { align-items: start; flex-direction: column; }
}
@media (max-width: 500px) {
  .header-row { flex-direction: column; align-items: start; justify-content: center; gap: .04rem; min-height: 0; padding-top: .65rem; }
  nav a { min-height: 2.55rem; }
  main { padding-block: .85rem; }
  h1 { margin-bottom: .55rem; }
  h2 { font-size: 1rem; }
  .panel { padding: .65rem; }
  .panel p { font-size: .875rem; line-height: 1.35; }
  .essence h1 { font-size: 1.82rem; }
  .company-grid { gap: .5rem; margin-top: .5rem; }
  .essence p { font-size: .94rem; }
  .services { margin-top: .65rem; }
  .software { align-items: flex-start; flex-wrap: wrap; gap: .55rem; }
  footer { padding-block: .45rem; }
}
