:root {
  --blue: #063f86;
  --blue-dark: #052d61;
  --blue-deep: #041f42;
  --ink: #172033;
  --muted: #667085;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --line: #dbe3ee;
  --shadow: 0 22px 60px rgba(5, 45, 97, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 118px;
}

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

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 36px;
  width: min(1160px, calc(100% - 32px));
  min-height: 74px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow: 0 16px 42px rgba(5, 45, 97, 0.12);
}

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

.brand-logo {
  width: auto;
  max-width: 240px;
  height: 76px;
  object-fit: contain;
}

.brand-logo.is-missing {
  display: none;
}

.brand-fallback {
  display: block;
  line-height: 1;
}

.brand-logo.is-missing + .brand-fallback {
  display: block;
}

.brand-fallback strong {
  display: block;
  color: currentColor;
  font-size: 1.16rem;
  font-weight: 850;
  white-space: nowrap;
}

.brand-fallback small {
  display: block;
  margin-top: 4px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 750;
}

.main-nav a {
  opacity: 0.82;
  transition: opacity 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  opacity: 1;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  min-height: 92vh;
  padding: 150px 0 86px;
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(4, 31, 66, 0.96), rgba(6, 63, 134, 0.9)),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.16), transparent 34%),
    var(--blue-deep);
}

.hero-inner,
.section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: end;
  min-height: calc(92vh - 236px);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .section-kicker {
  color: rgba(255, 255, 255, 0.76);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-panel ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.hero-panel li {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-panel li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.section {
  padding: 86px 0;
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.intro-grid > p,
.contact-copy > p,
.service-item p,
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.service-list {
  display: grid;
  gap: 14px;
}

.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(5, 45, 97, 0.06);
}

.service-item span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
}

.service-item p {
  max-width: 780px;
  margin-top: 8px;
}

.process {
  background: #ffffff;
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1160px) / 2));
  padding-right: max(16px, calc((100vw - 1160px) / 2));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1160px;
}

.process-step {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-step strong {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue-dark);
}

.process-step p {
  margin-top: 10px;
}

.quality-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 52px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--blue-deep);
  box-shadow: var(--shadow);
}

.quality-card .section-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.quality-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quality-list li {
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.quality-list li:last-child {
  border-bottom: 0;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 32px;
  color: var(--ink);
  font-style: normal;
}

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

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(6, 63, 134, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.form-status.is-error {
  color: #b42318;
}

.legal-hero {
  padding: 150px 0 24px;
  color: #ffffff;
  background: linear-gradient(125deg, var(--blue-deep), var(--blue));
}

.legal-hero .section {
  padding: 0;
}

.legal-hero .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.legal-content {
  padding-top: 64px;
}

.legal-card {
  max-width: 860px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.legal-card h3 {
  margin-top: 30px;
  color: var(--blue-deep);
}

.legal-card p,
.legal-card address {
  margin: 14px 0 0;
  color: var(--muted);
  font-style: normal;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  gap: 22px;
  color: var(--ink);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(5, 45, 97, 0.12);
  }

  .site-header.is-open .main-nav {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-inner,
  .intro-grid,
  .quality-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 40px;
    align-items: start;
  }

  .hero-panel {
    max-width: 480px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-logo {
    max-width: 148px;
    height: 54px;
  }

  .brand-fallback strong {
    font-size: 0.95rem;
  }

  .brand-fallback small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 128px 0 62px;
  }

  .hero-inner {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .quality-card,
  .contact-form,
  .legal-card {
    padding: 22px;
  }

  .site-footer {
    display: grid;
    align-items: start;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
