:root {
  --navy: #0f4c85;
  --blue: #377dbd;
  --blue-soft: #83b7e6;
  --ice: #eaf4f6;
  --black: #111;
  --gray: #555;
  --muted: #a0a0a0;
  --white: #fff;
  --max: 980px;
  --header-h: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body {
  margin: 0;
  color: var(--black);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo img {
  height: 58px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  background: #123 url("../img/hero.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 50, 0.45);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

.hero h1 {
  margin: 0;
  font-family: "Noticia Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
}

.hero p {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 18px;
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--navy);
}

.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.kicker {
  margin: 0;
  color: var(--blue);
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.section-head h2,
.block h2 {
  margin: 8px 0 0;
  font-family: "Noticia Text", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.services {
  background: var(--ice);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h3 {
  margin: 16px 16px 8px;
  font-family: Raleway, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.card p {
  margin: 0 16px 18px;
  color: var(--gray);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.commitment {
  background: var(--white);
}

.lead {
  font-size: 18px;
}

.about {
  background: #f7f7f7;
}

.contact {
  background: var(--navy);
  color: var(--white);
}

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

.contact h2 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact dt {
  font-family: Raleway, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-top: 18px;
}

.contact dd {
  margin: 4px 0 0;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
}

.site-footer {
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

.map-frame {
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 64px);
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .cards,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid #ececec;
    align-items: flex-start;
  }

  .nav.is-open {
    display: flex;
  }
}
