:root {
  --ink: #17222d;
  --ink-soft: #4f6172;
  --brand: #118fd0;
  --brand-dark: #0b5f99;
  --brand-light: #dff4ff;
  --brand-pale: #f4fbff;
  --white: #ffffff;
  --amber: #f4b02e;
  --coral: #e85b50;
  --line: rgba(17, 143, 208, .18);
  --shadow: 0 24px 70px rgba(17, 143, 208, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--brand-pale);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.site {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(55, 184, 242, .2), transparent 28%),
    linear-gradient(180deg, #f4fbff 0%, #eaf7fe 60%, #ffffff 100%);
}

.section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(232, 248, 255, .96)),
    linear-gradient(135deg, rgba(17, 143, 208, .12), transparent 58%);
  border-bottom: 1px solid rgba(17, 143, 208, .16);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px 8px 0;
}

.brand::after {
  content: "";
  position: absolute;
  left: 74px;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: .55;
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 315px;
  max-width: 52vw;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(17, 143, 208, .16));
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(17, 143, 208, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(17, 143, 208, .08);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  align-items: center;
  gap: 24px 34px;
  margin: 0 auto;
  padding: 52px max(20px, calc((100vw - 1180px) / 2)) 26px;
  background:
    radial-gradient(circle at 82% 28%, rgba(17, 143, 208, .16), transparent 24%),
    radial-gradient(circle at 16% 88%, rgba(244, 176, 46, .16), transparent 24%),
    linear-gradient(110deg, rgba(255, 255, 255, .98) 0%, rgba(233, 248, 255, .96) 54%, rgba(194, 234, 255, .9) 100%);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--brand), #37b8f2, var(--amber));
}

.hero-inner {
  width: min(720px, 100%);
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand-dark);
}

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

h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(42px, 5.5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
}

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
}

.btn.primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(17, 143, 208, .28);
}

.btn.secondary {
  border: 1px solid rgba(17, 143, 208, .28);
  background: rgba(255, 255, 255, .7);
  color: var(--brand-dark);
}

.hero-visual {
  align-self: center;
  justify-self: end;
  width: min(445px, 100%);
  margin-bottom: 18px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 44px rgba(17, 143, 208, .18));
}

.hero-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(17, 143, 208, .18);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 42px rgba(17, 143, 208, .12);
}

.hero-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(17, 143, 208, .14);
  color: var(--brand-dark);
  font-weight: 900;
  text-align: center;
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .56);
  box-shadow: var(--shadow);
}

.service {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .76);
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--brand);
}

.service.accent-amber::before {
  background: var(--amber);
}

.service.accent-coral::before {
  background: var(--coral);
}

.service.accent-ink::before {
  background: var(--brand-dark);
}

.service-number {
  color: rgba(17, 143, 208, .42);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}

.service h3 {
  margin: 42px 0 12px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.1;
}

.service p {
  margin: 0;
  color: #56616b;
}

.process-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.process-copy p:last-child {
  max-width: 460px;
  margin: 24px 0 0;
  color: #56616b;
  font-size: 18px;
}

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

.process li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 18px;
  align-items: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17, 143, 208, .1);
}

.process span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 900;
}

.process strong {
  color: var(--ink);
  font-size: 22px;
}

.process p {
  margin: 0;
  color: #56616b;
}

.contact-section {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding: 44px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 143, 208, .94), rgba(11, 95, 153, .96)),
    url("assets/interior-pattern.svg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.contact-section h2 {
  max-width: 720px;
  color: var(--white);
}

.contact-link {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  word-break: break-word;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 34px 0 50px;
  color: #65717a;
}

.footer a {
  color: var(--ink);
  font-weight: 900;
}

.legal {
  max-width: 980px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 50px 26px 86px;
  background: var(--white);
}

.legal h1 {
  margin: 8px 0 20px;
  color: var(--ink);
  font-size: 48px;
  line-height: 1.08;
}

.legal h2,
.legal h3 {
  margin-top: 30px;
  color: var(--ink);
}

.legal p,
.legal li {
  color: #35414d;
}

.back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-weight: 900;
}

@media (max-width: 940px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .logo {
    width: 290px;
    max-width: 86vw;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 44px;
  }

  .hero-inner {
    padding-bottom: 0;
  }

  .hero-visual {
    justify-self: center;
    width: min(380px, 92vw);
    margin: 0;
  }

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

  .hero-strip span:nth-child(2) {
    border-right: 0;
  }

  .hero-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(17, 143, 208, .14);
  }

  .services,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .section,
  .footer,
  .contact-section {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 auto;
  }

  .hero {
    padding: 44px 14px 18px;
  }

  h1 {
    font-size: 41px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .btn,
  .contact-link {
    width: 100%;
  }

  .hero-visual {
    width: min(330px, 96vw);
  }

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

  .service,
  .contact-section {
    padding: 24px;
  }

  .section {
    padding: 62px 0;
  }

  .process li {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .process span {
    width: 42px;
    height: 42px;
  }
}
