:root {
  --green: #8cc63f;
  --green-dark: #73b72f;
  --blue: #002d62;
  --text: #5d6470;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 108px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.header-inner {
  width: min(1000px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand-mark img {
  width: 37px;
  height: 40px;
  display: block;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  font-size: 13px;
  color: var(--blue);
}

.nav a {
  transition: color .2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--blue);
  font-size: 13px;
}

.header-contact span {
  color: var(--green);
  font-weight: 700;
  margin-right: 5px;
}

.menu-toggle {
  display: none;
  justify-self: end;
  border: 1px solid rgba(0, 45, 98, .18);
  background: #fff;
  color: var(--blue);
  padding: 12px 16px;
  font: inherit;
}

.side-quote {
  position: fixed;
  right: 0;
  top: 170px;
  z-index: 40;
  min-width: 230px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s ease;
}

.side-quote:hover {
  background: var(--green-dark);
}

.hero {
  position: relative;
  height: 792px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ddd;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-overlay {
  background: rgba(255, 255, 255, .58);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(656px, 70vw);
  height: auto;
  transform: translateY(-3px);
}

.section {
  padding: 104px 0 96px;
}

.wrap {
  width: min(980px, calc(100% - 42px));
  margin: 0 auto;
}

.narrow {
  max-width: 735px;
  text-align: center;
}

.section-title {
  margin: 0;
  text-align: center;
  color: var(--blue);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: .1em;
}

.section-title span {
  color: var(--green);
}

.section-title.light {
  color: #fff;
}

.rule {
  width: 44px;
  height: 3px;
  margin: 22px auto 40px;
  background: #111;
}

.rule.white {
  background: #fff;
}

.about p {
  line-height: 1.7;
  margin: 0 0 24px;
}

.about-actions {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-top: 34px;
}

.btn {
  min-width: 144px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 600;
}

.services {
  position: relative;
  min-height: 535px;
  padding: 97px 0 96px;
  color: #fff;
  overflow: hidden;
}

.services-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 45, 98, .58), rgba(0, 45, 98, .58)),
    url("../assets/services-bg.jpg") center / cover no-repeat;
}

.services .wrap {
  position: relative;
  z-index: 1;
}

.services-grid {
  width: min(700px, 100%);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 92px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.service-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.quote {
  padding: 108px 0 137px;
}

.quote-wrap {
  max-width: 720px;
  text-align: center;
}

.quote-copy {
  max-width: 680px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.quote-form {
  width: 512px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  text-align: left;
}

.quote-form h3 {
  grid-row: span 2;
  align-self: center;
  margin: 0;
  color: #242424;
  font-size: 20px;
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 47px;
  border: 2px solid #111;
  padding: 0 14px;
  font: inherit;
  color: #333;
  background: #fff;
}

.quote-form textarea {
  grid-column: 1 / -1;
  min-height: 126px;
  padding-top: 14px;
  resize: vertical;
}

.quote-form button {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 0;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.map-section {
  height: 383px;
  border-top: 1px solid rgba(0, 0, 0, .12);
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) invert(.88) contrast(1.12);
}

.footer {
  min-height: 420px;
  background: var(--green);
  color: #fff;
  padding: 105px 0 24px;
  text-align: center;
}

.footer-inner {
  width: min(760px, calc(100% - 42px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 115px;
}

.footer-title {
  color: var(--blue);
  font-size: 34px;
  letter-spacing: .13em;
}

.footer-title span {
  color: #fff;
}

.footer-block p {
  margin: 0;
  line-height: 1.55;
  font-weight: 600;
}

.copyright {
  margin: 103px auto 0;
  font-size: 11px;
  font-weight: 600;
}

.copyright a {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    min-height: 82px;
    grid-template-columns: 48px 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset: 82px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 45, 98, .1);
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 18px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 45, 98, .08);
  }

  .header-contact {
    display: none;
  }

  .hero {
    height: 620px;
  }

  .side-quote {
    top: 118px;
    min-width: 210px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 44px;
  }
}

@media (max-width: 640px) {
  .wrap,
  .footer-inner {
    width: min(100% - 30px, 980px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    height: 510px;
  }

  .hero-logo {
    width: min(520px, 88vw);
  }

  .section-title,
  .footer-title {
    font-size: 28px;
  }

  .about-actions,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 20px;
  }

  .services {
    padding: 72px 0;
  }

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

  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form h3 {
    grid-row: auto;
    text-align: center;
    margin-bottom: 8px;
  }

  .footer {
    padding-top: 75px;
  }

  .copyright {
    margin-top: 55px;
    width: min(100% - 30px, 520px);
  }
}
