:root {
  --blue: #37517e;
  --blue-dark: #243a61;
  --accent: #47b2e4;
  --text: #444444;
  --muted: #6b7280;
  --soft: #f3f5fa;
  --white: #ffffff;
  --line: #dbe4f0;
  --shadow: 0 0 30px rgba(55, 81, 126, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  background: var(--white);
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  max-width: 960px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(55, 81, 126, 0.96);
  color: var(--white);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.header-inner p {
  margin: 0;
}

.header-inner a {
  justify-self: center;
}

.app-link {
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--white);
  white-space: nowrap;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 92px 0 54px;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: 42px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 12px;
  color: var(--white);
  font-family: Jost, Arial, sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.16;
  font-weight: 700;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 23px);
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-link {
  background: var(--accent);
  color: var(--white);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.hero-image img {
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

.section {
  padding: 72px 0;
}

.section h2 {
  position: relative;
  margin: 0 0 38px;
  color: var(--blue);
  text-align: center;
  font-family: Jost, Arial, sans-serif;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 58px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--accent);
}

.split-section,
.pricing {
  background: var(--soft);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 40px;
  align-items: stretch;
}

.split-copy h2 {
  margin-bottom: 28px;
  text-align: left;
}

.split-copy h2::after {
  left: 0;
  transform: none;
}

.callout {
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.callout h3 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 18px;
}

.split-image {
  min-height: 430px;
  background: url("assets/img/why-us.png") center / contain no-repeat;
}

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

.service-card,
.price-card,
.contact-info,
.map-wrap {
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card {
  min-width: 0;
  padding: 32px 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 34px rgba(55, 81, 126, 0.18);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: transparent;
  color: var(--accent);
}

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

.service-card h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.35;
}

.service-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.pricing-copy {
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

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

.price-card {
  padding: 40px;
  border-top: 4px solid transparent;
}

.price-card.featured {
  border-top-color: var(--accent);
}

.price-card h3 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 20px;
}

.price {
  margin: 0 0 22px;
  color: var(--blue);
  font-family: Jost, Arial, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.price span {
  display: inline-block;
  margin-right: 3px;
  vertical-align: top;
  font-size: 18px;
}

.price small {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 400;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
}

.price-note {
  margin: 34px 0 0;
  text-align: center;
}

.contact-lead {
  margin-top: -18px;
  margin-bottom: 34px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: stretch;
}

.contact-info {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.contact-info article {
  padding-left: 72px;
  position: relative;
}

.contact-info article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(71, 178, 228, 0.12);
}

.contact-info h3 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 20px;
}

.contact-info p {
  margin: 0;
}

.contact-info a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.map-wrap {
  min-height: 430px;
  padding: 10px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border: 0;
}

.site-footer {
  padding: 32px 0;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: var(--accent);
  color: var(--white);
  font-size: 24px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1080px) {
  .service-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 12px 0;
    text-align: center;
  }

  .app-link {
    justify-self: center;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 42px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .hero-image {
    order: -1;
  }

  .split-copy h2 {
    text-align: center;
  }

  .split-copy h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .split-image {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .section {
    padding: 54px 0;
  }

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

  .service-card,
  .price-card,
  .contact-info {
    padding: 24px 18px;
  }

  .contact-info article {
    padding-left: 0;
  }

  .contact-info article::before {
    display: none;
  }

  .price {
    font-size: 36px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
