:root {
  --blue: #1267d9;
  --blue-dark: #061a63;
  --sky: #eff7ff;
  --ink: #10213b;
  --muted: #66758b;
  --line: #dce7f5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 33, 59, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

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

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

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

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

.brand-logo {
  width: 64px;
  height: auto;
  display: block;
}

.brand-name {
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

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

.brand strong {
  font-size: 18px;
  line-height: 1;
}

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

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 800;
  font-size: 15px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(18, 103, 217, .22);
}

.secondary {
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid rgba(18, 103, 217, .22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 64px);
  background: linear-gradient(135deg, #eef7ff, #ffffff);
}

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

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points span {
  padding: 9px 12px;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.hero-image {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section,
.why-section,
.contact-section {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

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

.service-card {
  display: grid;
  gap: 14px;
  padding: 0 0 22px;
  overflow: hidden;
  color: inherit;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 33, 59, .06);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  outline: none;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card h3,
.service-card p,
.service-card span {
  margin-left: 20px;
  margin-right: 20px;
}

.service-card p {
  color: var(--muted);
}

.service-card span,
.text-link {
  color: var(--blue);
  font-weight: 900;
}

.why-section {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  background: var(--sky);
}

.why-section img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.why-section ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.why-section li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 9px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 13px;
}

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

.review-grid figure,
.blog-card,
.form,
.modal-panel {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 33, 59, .06);
}

.review-grid figure {
  padding: 24px;
}

.review-grid blockquote {
  margin: 0 0 18px;
  color: var(--muted);
}

.review-grid blockquote::before {
  content: "★★★★★";
  display: block;
  margin-bottom: 10px;
  color: #f5b400;
}

.review-grid figcaption {
  font-weight: 900;
}

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

.blog-card {
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.blog-card div {
  padding: 24px;
}

.blog-card p,
.contact-section p,
.modal-copy {
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--ink);
  font-weight: 800;
}

.contact-details a {
  color: var(--blue-dark);
}

.contact-details address {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.text-link {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  background: linear-gradient(135deg, #ffffff, #eef7ff);
}

.form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: #13744a;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 26, 63, .66);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 540px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 26px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue-dark);
  background: var(--sky);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .why-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 56px;
  }

  .brand-name {
    font-size: 16px;
  }

  .site-header > .button {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-image {
    min-height: 260px;
  }

  .service-grid,
  .review-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

}
