.footer {
  background-color: #ededee;
  padding: 56px 0 64px;
  margin: 50px 0 0;
  min-height: 296px;
  position: relative;
}
.footer__layout {
  margin: 0 auto;
  max-width: 1176px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
}
.footer__col:nth-child(1),
.footer__col:nth-child(2) {
  width: 200px;
}
.footer__col:nth-child(2) {
  margin-right: 88px;
}
.footer__col a:hover {
  text-decoration: none;
}
.footer__logo {
  width: 120px;
  height: 48px;
  display: inline-block;
  background: url(../img/header/otpusk-logo-black.svg) no-repeat center / contain;
}
[lang="lv"] .footer__logo,
[lang="lt"] .footer__logo {
  background-image: url(../img/header/logo-white-dot.svg);
}
.footer__button-link {
  display: flex;
  align-items: center;
  width: 200px;
  height: 48px;
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600; font-family: 'Proxima Nova Lt', sans-serif;
  color: #404a51;
  padding-left: 48px;
  transition: background-color .2s;
  position: relative;
}
.footer__button-link:not(:last-child) {
  margin-bottom: 16px;
}
.footer__button-link i {
  position: absolute;
  left: 15px;
  opacity: .5;
}
.seo-links {
  margin-left: -12px;
}
.seo-link,
.footer__col:nth-child(n+3) .footer__link {
  font-size: 15px;
  font-weight: 600; font-family: 'Proxima Nova Lt', sans-serif;
  line-height: 1;
  color: #404a51;
  white-space: nowrap;
  height: 40px;
  border-radius: 5px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  transition: background-color .2s;
}
.footer__col:nth-child(n+3) {
  padding-top: 4px;
  margin-right: 70px;
}
.footer__col:last-child {
  margin-right: 0;
}
.seo-link:hover,
.footer__col:nth-child(n+3) .footer__link:hover,
.footer__button-link:hover {
  background-color: #dedfe1;
  text-decoration: none;
}
.footer__col:nth-child(n+3) i {
  margin-right: 8px;
}
.footer__link-phone-tablet,
.footer__link-desktop {
  display: none;
}
.modal_overlay,
.modal_overlay * {
  box-sizing: border-box;
  line-height: normal;
}
.modal_overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal_body {
  background: #fff;
  width: 700px;
  border-radius: 5px;
  padding: 40px;
}
.modal_title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}
.modal_buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}
.modal_button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 2px solid #dadbdd;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #474f55;
  border-radius: 3px;
  width: calc((100% - 48px)/3);
}
.modal_button:hover {
  border-color: #ededee;
  background: #ededee;
  text-decoration: none;
}
.footer__socials {
  display: flex;
}
.footer__social {
  margin-right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 767px) {
  .footer__social:hover {
    background-color: #dedfe1;
  }
}
.footer__social i {
  display: flex;
  width: 24px;
  height: 24px;
  background: no-repeat center / contain;
}
.footer__social:last-child {
  margin-right: 0;
}
.footer__social i {
  margin-right: 0 !important;
}
.footer__social.mail i {
  filter: brightness(50%);
}

/*desktop*/
@media (min-width: 1177px) {
  .footer__link-desktop {
    display: block;
  }
}
@media (max-width: 1176px) {
  .footer__link-phone-tablet {
    display: block;
  }
}

/*tablet*/
@media (max-width: 1176px) and (min-width: 768px) {
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .footer__socials {
    position: relative;
    left: 200px;
    top: 20px;
  }
}
@media (min-width: 768px) and (max-width: 980px) {
  .footer__col:nth-child(1) {
    width: 180px;
  }
  .footer__col:nth-child(2) {
    width: 250px;
    margin-right: 0;
  }
  .footer__col:nth-child(n+3) {
    width: calc((100% - 430px)/2);
    margin-right: 0;
  }
}
@media (min-width: 768px) and (max-width: 840px) {
  .footer__col:nth-child(1) {
    width: 150px;
  }
  .footer__col:nth-child(2) {
    width: 220px;
  }
  .footer__col:nth-child(n+3) {
    width: calc((100% - 380px)/2);
  }
}

/*mobile*/
@media (max-width: 767px) {
  .footer {
    padding: 25px 20px;
    min-height: 82px;
  }
  .footer__row {
    justify-content: center;
  }
  .footer__col {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .footer__col:nth-child(1),
  .footer__col:nth-child(2) {
    width: 100% !important;
  }
  .footer__col:nth-child(2) {
    text-align: center;
  }
  .footer__col:nth-child(2) {
    margin: 20px 0 15px;
  }
  .footer__col:nth-child(n+3) {
    width: 50% !important;
  }
  .footer__col:nth-child(5) {
    text-align: center;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .footer__col:nth-child(n+3) .footer__link {
    padding: 0;
  }
  .footer__button-link {
    width: 100%;
    justify-content: center;
    padding-left: 0;
  }
  .footer__button-link i {
    position: static;
    margin-right: 8px;
  }
  .modal_body {
    width: calc(100vw - 40px);
    padding: 20px;
  }
  .modal_title {
    font-size: 28px;
    margin-bottom: 0;
  }
  .modal_buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .modal_button {
    margin: 20px 0 0;
    width: 100%;
  }
  .footer__social {
    margin: 0 3px !important;
  }
  .footer__socials {
    position: absolute;
    top: 28px;
    right: 9px;
  }
}
@media (max-width: 320px) {
  [lang="lv"] .footer__logo,
  [lang="lt"] .footer__logo {
    width: 100px;
  }
}
/*MEDIA DONE*/
