/* Layout: header, footer, wrapper, subheader */
.wrapper {
  width: 100%;
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 10px;
}

.site-main {
  min-height: 40vh;
}

.section {
  padding: 60px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: 28px;
}

/* Header */
.site-header {
  background: var(--color-header);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--wrapper);
}

.site-header__logo img {
  width: var(--logo-w);
  height: var(--logo-h);
  object-fit: contain;
}

.site-nav__list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav__item a {
  display: block;
  padding: 15px 20px;
  line-height: 60px;
  color: #8b989b;
  text-decoration: none;
  font-size: 17px;
  position: relative;
}

.site-nav__item a:hover,
.site-nav__item.is-active a {
  color: #cbd8da;
  text-decoration: none;
}

.site-nav__item.is-active a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  margin-left: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #cbd8da;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
}

/* Subheader — origin #Header_wrapper photo, title 50px white, height ~250 */
.site-subheader {
  padding: 100px 0;
  text-align: center;
  background: #0c141d url("../uploads/2018/02/back-middle-1.jpg") center center no-repeat;
  color: #fff;
  overflow: hidden;
}

.site-subheader__title {
  margin: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  padding-top: 50px;
  margin-top: 40px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  max-width: var(--container);
}

.site-footer__heading {
  margin: 0 0 16px;
  font-size: 16px;
}

.site-footer__links li {
  margin: 0 0 8px;
}

.site-footer__links a,
.site-footer__links span {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__copy {
  border-top: 1px solid #ddd;
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
}

.site-footer__copy p {
  margin: 0;
}

.site-footer__copy a {
  color: var(--color-muted);
}

@media (max-width: 1239px) {
  .site-header__toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: var(--color-header);
    padding: 12px 0 20px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__item a {
    line-height: 44px;
    padding: 0 20px;
  }

  .site-nav__item.is-active a::after {
    display: none;
  }

  .site-header {
    position: relative;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-subheader {
    padding: 60px 0;
  }
}
