/* This blog-container is temporary */
.blog-container { 
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

body {
  background-color: var(--mp-color-gray);
}

.el-header {
  position: fixed;
  min-width: 100%;
  z-index: 10;
  padding: 40px 0;
  background-color: var(--mp-color-gray);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.el-header__inner {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.el-header__logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  
  @media (max-width: 767px) {
    width: 70%;
  }
}

.el-header__right {
  display: flex;
  align-items: center;
  gap: 70px;
}

.el-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-header__nav a {
  display: block;
  font-family: var(--mp-font-body) !important;
  font-size: 20px !important;
  font-weight: var(--mp-weight-regular);
  line-height: 1;
  text-transform: uppercase !important;
  text-decoration: none;
  color: var(--mp-color-black-100);
  transition: color 0.3s ease;
}

.el-header__nav .mega-sub-menu a {
  font-size: 15px !important;
  padding: 5px 10px !important;
  
}

.el-header__menu a:focus,
.el-header__menu .current-menu-item a {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-header__menu a:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.el-header__phone:focus {
  opacity: 0.7;
}

@media (min-width: 992px) {
  .el-header__phone:hover {
    opacity: 0.7;
  }
}

.el-header__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--mp-color-white);
  background-color: var(--mp-color-red-secondary);
}

.el-header__phone-label {
  font-family: var(--mp-font-heading);
  font-size: 30px;
  line-height: 1;
  color: var(--mp-color-red-secondary);
}

.el-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.el-header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--mp-color-black-100);
}

/* Mobile/Tablet nav
   ========================================================================== */
@media screen and (max-width: 991px) {
  .el-header__nav .mega-sub-menu {
    margin-bottom: 30px !important;
  }

  #mega-menu-wrap-header #mega-menu-header > li.mega-menu-item > a.mega-menu-link {
    font-size: 18px !important;
  }

  #mega-menu-wrap-header #mega-menu-header > li.mega-menu-item.mega-mega-el-close > a.mega-menu-link {
    font-size: 14px !important;
  }

  .el-header__nav .mega-menu {
    padding: 0 10px !important;
  }
}

.el-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.el-mobile-nav-open .el-mobile-nav {
  visibility: visible;
  opacity: 1;
}

.el-mobile-nav__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(20, 22, 27, 0.6);
}

.el-mobile-nav__panel {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  padding: 90px 40px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  background-color: var(--mp-color-black-100);
  transition: transform 0.3s ease;
}

.el-mobile-nav-open .el-mobile-nav__panel {
  transform: translateX(0);
}

.el-mobile-nav__close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.el-mobile-nav__close-line {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--mp-color-white);
}

.el-mobile-nav__close-line:first-child {
  transform: rotate(45deg);
}

.el-mobile-nav__close-line:last-child {
  transform: rotate(-45deg);
}

.el-mobile-nav__menu {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-mobile-nav__menu a {
  display: block;
  font-family: var(--mp-font-body);
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mp-color-white);
  transition: color 0.3s ease;
}

.el-mobile-nav__menu a:focus,
.el-mobile-nav__menu .current-menu-item a {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-mobile-nav__menu a:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-mobile-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 45px;
  text-decoration: none;
}

.el-mobile-nav__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--mp-color-white);
  background-color: var(--mp-color-red-primary);
}

.el-mobile-nav__phone-label {
  font-family: var(--mp-font-heading);
  font-size: 25px;
  line-height: 1;
  color: var(--mp-color-white);
}

.mega-menu.mega-menu-horizontal {
  display: flex;
  gap: 10px;
}

@media (min-width: 992px) and (max-width: 1200px) {
  #mega-menu-wrap-header #mega-menu-header > li.mega-menu-item > a.mega-menu-link {
    font-size: 16px !important;
  }

  .el-header__logo {
    height: 35px;
  }

  .el-header__phone-label {
    font-size: 20px;
  }
}

/* Tablet
   ================ */
@media (max-width: 991px) {
    .mega-menu.mega-menu-horizontal {
        padding-top: 80px !important;
    }
    .mega-el-close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
    }

  .el-header {
    padding: 25px 0;
  }

  .el-header__right {
    gap: 30px;
    flex-direction: row-reverse;
  }


  .el-header__burger {
    display: flex;
  }

  .el-header__logo-image {
    height: 40px;
  }

  .el-header__phone-label {
    font-size: 25px;
  }
}

/* Mobile
   ================ */
@media (max-width: 767px) {
  .el-header {
    padding: 20px 0;
  }

  .el-header__inner {
    gap: 20px;
  }

  .el-header__right {
    gap: 20px;
  }

  .el-header__logo-image {
    height: 30px;
  }

  .el-header__phone-label {
    display: none;
  }

  .el-mobile-nav__panel {
    max-width: 100%;
    padding: 80px 25px 30px;
  }
}



/* ==========================================================================
   Footer
   ========================================================================== */
.el-footer {
  overflow: hidden;
}

.el-footer__gototop {
  display: flex;
  justify-content: flex-end;
  border-bottom: 5px solid var(--mp-color-red-primary);
  background-color: var(--mp-color-gray);
}

.el-footer__gototop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(545px + var(--mp-container-padding));
  padding: 35px 60px;
  font-family: var(--mp-font-body);
  font-size: 20px;
  font-weight: var(--mp-weight-bold);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mp-color-white);
  background-color: var(--mp-color-black-100);
  transition: color 0.3s ease;
}

.el-footer__gototop-link:focus {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-footer__gototop-link:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-footer__gototop-arrow {
  flex: 0 0 auto;
}

.el-footer__main {
  background-color: var(--mp-color-white);
}

.el-footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto 545px;
  gap: 120px;
  align-items: start;
}

.el-footer__logo {
  display: block;
  padding: 85px 0 75px;
  line-height: 0;
}

.el-footer__logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 45px;
}

.el-footer__nav-heading {
  display: block;
  margin-bottom: 30px;
  font-family: var(--mp-font-body);
  font-size: 20px;
  font-weight: var(--mp-weight-bold);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-color-black-100);
}

.el-footer__nav {
  padding: 85px 0 75px;
}

.el-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-footer__menu a {
  display: block;
  font-family: var(--mp-font-body);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--mp-color-black-100);
  transition: color 0.3s ease;
}

.el-footer__menu a:focus {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-footer__menu a:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-footer__aside {
  position: relative;
  padding: 85px 60px 75px;
  background-color: var(--mp-color-black-100);
}

.el-footer__aside::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 100vw;
  background-color: var(--mp-color-black-100);
}

.el-footer__phones-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--mp-color-black-100);
  background-color: var(--mp-color-white);
}

.el-footer__phone {
  margin-bottom: 10px;
  font-family: var(--mp-font-heading);
  font-size: 20px;
  line-height: 1.4;
  color: var(--mp-color-white);
}

.el-footer__phone-name {
  margin-right: 5px;
}

.el-footer__phone-link {
  text-decoration: none;
  color: var(--mp-color-white);
  transition: color 0.3s ease;
}

.el-footer__phone-link:focus {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-footer__phone-link:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-footer__socials-heading {
  display: block;
  margin-top: 60px;
  margin-bottom: 20px;
  font-family: var(--mp-font-body);
  font-size: 20px;
  font-weight: var(--mp-weight-bold);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-color-white);
}

.el-footer__socials {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  color: var(--mp-color-white);
  transition: color 0.3s ease;
}

.el-footer__social-link:focus {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-footer__social-link:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-footer__bottom {
  padding: 30px 0;
  background-color: var(--mp-color-black-100);
}

.el-footer__bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.el-footer__copyright {
  font-family: var(--mp-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--mp-color-white);
}

.el-footer__legal {
  display: flex;
  align-items: center;
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-footer__legal-link {
  font-family: var(--mp-font-body);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--mp-color-white);
  transition: color 0.3s ease;
}

.el-footer__legal-link:focus {
  color: var(--mp-color-red-primary);
}

@media (min-width: 992px) {
  .el-footer__legal-link:hover {
    color: var(--mp-color-red-primary);
  }
}

.el-footer__credit {
  display: flex;
  align-items: center;
  gap: 20px;
}

.el-footer__credit-label {
  font-family: var(--mp-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--mp-color-white);
}

.el-footer__credit-link {
  display: block;
  line-height: 0;
  transition: opacity 0.3s ease;
}

.el-footer__credit-link:focus {
  opacity: 0.7;
}

@media (min-width: 992px) {
  .el-footer__credit-link:hover {
    opacity: 0.7;
  }
}

.el-footer__credit-logo {
  display: block;
  width: auto;
  height: 20px;
}
/* Tablet
   ================ */
@media (max-width: 991px) {
  .el-footer__gototop-link {
    width: calc(400px + var(--mp-container-padding));
    padding: 25px 40px;
    font-size: 18px;
  }

  .el-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: center;
  }

  .el-footer__logo {
    grid-column: 1 / -1;
    padding: 60px 0 0;
  }

  .el-footer__logo-image {
    margin: 0 auto;
  }

  .el-footer__nav {
    padding: 0;
  }

  .el-footer__aside {
    grid-column: 1 / -1;
    margin: 0 -30px;
    padding: 50px 30px;
  }

  .el-footer__aside::after {
    display: none;
  }

  .el-footer__phones-icon {
    margin: 0 auto 30px;
  }

  .el-footer__socials-heading {
    margin-top: 40px;
  }

  .el-footer__socials {
    justify-content: center;
  }

  .el-footer__bottom-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    text-align: center;
  }
}

/* Mobile
   ================ */
@media (max-width: 767px) {
  .el-footer__bottom-container {
    flex-direction: column;
  }
  
  .el-footer__gototop-link {
    width: 100%;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    font-size: 16px;
  }

  .el-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .el-footer__logo {
    padding: 40px 0 0;
  }

  .el-footer__logo-image {
    height: 35px;
  }

  .el-footer__aside {
    margin: 0 -20px;
    padding: 40px 20px;
  }

  .el-footer__legal {
    flex-direction: column;
    gap: 15px;
  }
}