/* header */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 20px;
  z-index: 2;

  @media (width < 1024px) {
    position: static;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 80px;

    background: var(--color-black);
  }
}

.header__logo {
  margin-right: auto;

  @media (width < 1024px) {
    display: none;
  }

  .logo__svg {
    fill: var(--color-white);
  }
}

.header__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-grow: 1;

  &::before {
    content: '';
    display: block;

    @media (width < 1024px) {
      display: none;
    }
  }

  @media (width < 480px) {
    flex-direction: column;
    align-items: center;
  }
}

.header__address {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  text-decoration: none;
  color: var(--color-white);

  &:hover {
    text-decoration: none;
  }

  @media (width < 480px) {
    margin: 0 0 15px;
  }
}

.header__address-icon {
  display: inline-block;
  fill: var(--color-white);
  margin-top: 4px;

  @media (width < 1024px) {
    display: none;
  }
}

.header__address-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  font-size: 18px;

  @media (width < 1024px) {
    font-size: 16px;
  }

  @media (width < 768px) {
    font-size: 14px;
  }
}

.header__address-small {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;

  font-weight: 300;
  font-size: 12px;

  @media (width < 768px) {
    font-size: 10px;
  }
}

.header__address-small-link {
  text-decoration: none;
}

.header__address:hover .header__address-small-link {
  text-decoration: underline;
}

.header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;

  color: var(--color-white);
}

.header__phones-tel {
  color: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;

  @media (width < 1024px) {
    font-size: 19px;
  }

  @media (width < 768px) {
    font-size: 18px;
  }
}

.header__phones-icon {
  fill: var(--color-white);

  @media (width < 768px) {
    width: 14px;
    height: 14px;
    margin-right: 5px;
  }
}

.header__phones-text {
  margin-top: 2px;

  font-size: 12px;
  font-weight: 300;

  @media (width < 1024px) {
    font-size: 11px;
  }

  @media (width < 768px) {
    margin-top: 0;
    font-size: 10px;
  }
}

/* footer */

.footer {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 60px;
  margin-top: auto;

  background-color: var(--color-black-light);
  color: var(--color-grey-light);

  @media (width < 768px) {
    padding-top: 40px;
  }

  & a {
    color: var(--color-grey-light);
  }
}

.footer__menu {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;

  & ul {
    list-style: none;
    margin: 0;
  }
}

.footer__menu-column {
  margin-right: 40px;

  &:last-child {
    margin-right: 0;
  }

  @media (width < 768px) {
    display: none;
  }
}

.footer__menu-column--map {
  margin-left: auto;

  @media (width < 768px) {
    display: block;
    width: 100%;
  }
}

.footer__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 60px;

  @media (width < 1200px) {
    margin-bottom: 40px;
  }

  @media (width < 640px) {
    flex-direction: column;
  }
}

.footer__logo {
  @media (width < 1200px) {
    flex: 1 1 50%;
    order: 0;
    margin: 0 0 15px 0;
  }

  .logo__svg {
    fill: var(--color-white);

    @media (width < 640px) {
      width: 180px;
    }
  }
}

.footer__address {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;

  text-decoration: none;

  @media (width < 1200px) {
    flex: 1 1 50%;
    margin: 0;
    order: 3;
  }

  &:hover {
    text-decoration: none;
  }
}

.footer__address-icon {
  display: inline-block;
  fill: var(--color-grey-light);
  margin-top: 4px;
}

.footer__address-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;

  font-size: 18px;
}

.footer__address-small {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;

  font-weight: 300;
  font-size: 12px;
}

.footer__address-small-link {
  text-decoration: none;
}

.footer__address:hover .footer__address-small-link {
  text-decoration: underline;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;

  color: var(--color-grey-light);

  @media (width < 1200px) {
    flex: 1 1 50%;
    order: 1;
    margin: 0 0 15px 0;
  }

  @media (width < 640px) {
    margin-bottom: 20px;
  }
}

.footer__phones-tel {
  color: inherit;
  font-size: 22px;
  line-height: 1.2;
}

.footer__phones-icon {
  margin-top: 4px;

  fill: var(--color-grey-light);
}

.footer__phones-text {
  margin-top: 2px;

  font-size: 12px;
  font-weight: 300;
}

.footer__btn {
  min-width: 220px;

  @media (width < 1200px) {
    margin: 0;
    order: 2;
  }

  @media (width < 640px) {
    min-width: 180px;
    order: 0;
    margin-bottom: 20px;
  }
}

.footer__copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 7px 0;
  margin: 20px 0 0;

  border-top: 1px solid var(--color-black-extra-light);
  font-size: 12px;

  @media (width < 768px) {
    flex-direction: column;
    text-align: center;
  }

  @media (width < 480px) {
    font-size: 10px;
  }
}

.footer__copyright-text {
  @media (width < 768px) {
    margin-bottom: 5px;
  }
}

.footer__politics {
  text-align: right;
}

/* sub-header */

.sub-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: #000000;

  visibility: hidden;

  @media (width < 1024px) {
    position: static;
  }
}

.sub-header__inner {
  position: relative;
  height: var(--subheader-height);
  margin-bottom: -61px;

  background: #444;
  visibility: visible;
  overflow: hidden;

  @media (width < 1024px) {
    height: auto;
    margin: 0;
  }
}

.sub-header__bg {
  position: fixed;
  left: 50%;
  top: 0;
  height: var(--subheader-height);
  max-width: initial;
  margin: 0 auto;

  transform: translateX(-50%);

  width: 100%;
  object-fit: cover;

  @media (width < 1024px) {
    position: absolute;
    height: 100%;
  }
}

.sub-header__overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  background-color: rgba(15, 15, 15, 0.82);
}

.sub-header__top {
  position: relative;
  z-index: 1;
}

.sub-header__menu {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;

  background-color: rgba(0, 0, 0, 0.6);
  visibility: visible;

  @media (width < 1024px) {
    display: none;
  }
}

.sub-header__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--subheader-height);
  z-index: 1;

  color: var(--color-white);
  line-height: 1.4;

  @media (width < 1024px) {
    height: auto;
    padding: 30px 0;
  }
}

.sub-header__container {
  width: 100%;
  text-align: left;

  @media (width < 480px) {
    text-align: center;
  }
}

.sub-header__h1 {
  font-size: 36px;

  @media (width < 1024px) {
    font-size: 28px;
  }

  @media (width < 480px) {
    font-size: 24px;
    line-height: 1.2;
  }

  @media (width < 360px) {
    font-size: 22px;
  }
}

.sub-header__accent {
  padding: 0 15px;
  margin: 0 5px;

  background: var(--color-accent);
  font-weight: 600;
}

.sub-header__links {
  margin-top: 40px;

  @media (width < 1024px) {
    margin-top: 20px;
  }
}

.sub-header__links .sub-header__btn {
  padding-left: 20px;
  padding-right: 20px;
  margin: 10px 20px 10px 0;

  &:last-child {
    margin-right: 0;
  }

  @media (width < 480px) {
    margin: 10px 5px;
  }
}

/* breadcrumbs */

.breadcrumb {
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.2;

  @media (width < 1024px) {
    font-size: 14px;
  }

  & li {
    list-style: none;
    display: inline-block;
    margin: 0 0 5px;

    color: var(--color-grey-dark);
    cursor: default;
    font-weight: 200;

    &:last-child::after {
      display: inline-block;
      content: '\2935';

      color: var(--color-grey);
      font-family: Arial, sans-serif;
      font-size: 18px;
      line-height: 9px;
      vertical-align: bottom;
    }

    & a {
      text-decoration: none;
      color: inherit;
      transition: color .1s;

      &:hover {
        color: var(--color-accent);
      }
    }
  }

  .divider {
    padding: 0 2px;
    color: inherit;
  }
}

/* main-menu */

.main-menu {
  .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 0;

    & li {
      position: relative;
      width: 100%;
      margin: 0;
      padding: 0;
      list-style: none;

      & a {
        display: block;
        padding: 18px 20px;

        color: var(--color-white);
        font-size: 18px;
        font-weight: 100;
        text-decoration: none;
        text-align: center;

        transition: background-color .15s ease;

        &:hover {
          background-color: rgba(255, 255, 255, 0.1);
        }
      }

      &.current a {
        background-color: rgba(255, 255, 255, 0.2);
      }
    }
  }

  .item-421 a::before {
    content: '🛠';
    margin-right: 10px;
  }
}

/* mobile-menu */

.mobile-menu {
  display: none;
  position: fixed;
  width: 290px;
  height: calc(100% - 50px);
  top: -20px;
  left: 100%;
  padding: 0 0 70px;
  box-sizing: content-box;

  background: var(--color-white);
  opacity: 0;
  overflow: auto;
  transform: translateY(70px);

  transition: transform .35s ease-in-out, opacity .2s .05s ease-in-out;
  z-index: 3;

  @media (width < 1024px) {
    display: block;
  }

  .icon-small {
    fill: var(--color-accent);
  }

  .nav {
    padding: 0;
    margin: 0 0 20px;

    list-style: none;

    & li {
      display: block;
      margin-bottom: 10px;
    }

    & a {
      display: block;
      padding: 10px 30px;

      background: var(--color-grey-extra-light);
      border-bottom: 1px solid var(--color-grey-light);
      color: var(--color-black-light);
      font-size: 18px;
      text-align: center;
    }
  }
}

.mobile-menu__top {
  padding: 25px 20px;
}

.mobile-menu__address {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.mobile-menu__address-text {
  color: var(--color-black-extra-light);
  font-size: 18px;
  font-weight: 500;
}

.mobile-menu__work {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-menu__work-text {
  color: var(--color-black-extra-light);
  font-size: 14px;
}

.mobile-menu__phones {
  margin-bottom: 25px;

  line-height: 1.2;
}

.mobile-menu__phones-tel {
  color: var(--color-black-extra-light);
  font-size: 18px;
  font-weight: 700;
}

.mobile-menu__phones-text {
  margin-left: 27px;
  font-size: 14px;
}

.mobile-menu__btn {
  width: calc(100% + 40px);
  padding: 11px 10px 12px;
  margin: 0 -20px;
}

#toggleMobileMenu:checked ~ .mobile-menu {
  transform: translate(-100%, 70px);
  opacity: 1;
}

/* header-mobile */

.header-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 0 4px;
  z-index: 9;

  background: var(--color-white);
  box-shadow: 0 -2px 6px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;

  @media (width < 1024px) {
    display: block;
  }
}

.header-mobile__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;

  @media (width < 480px) {
    padding: 0 10px;
  }
}

.header-mobile__logo-svg {
  width: 130px;
  fill: var(--color-black-extra-light);
}

.header-mobile__tel {
  margin: 0 25px 0 auto;

  animation: rotat 4s infinite;
}

.header-mobile__tel-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: var(--color-accent);
}

.header-mobile__toggle-svg {
  display: block;
  margin-right: -9px;
}

.header-mobile__toggle-svg path {
  stroke-width: 30;
  stroke-linecap: round;
  stroke: var(--color-accent);
  fill: none;
  transition: all .5s ease-in-out;
}

.header-mobile__toggle-top,
.header-mobile__toggle-middle,
.header-mobile__toggle-bottom {
  stroke-dasharray: 240px 800px;
}

#toggleMobileMenu:checked ~ .header-mobile .header-mobile__toggle-top,
#toggleMobileMenu:checked ~ .header-mobile .header-mobile__toggle-middle,
#toggleMobileMenu:checked ~ .header-mobile .header-mobile__toggle-bottom {
  stroke-dashoffset: -650px;
}

@keyframes rotat {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-15deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* top-line */

.top-line {
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  margin: 0 0 4px;

  & a {
    display: block;
    color: var(--color-white);
    padding: 4px 20px;
  }
}
