.footer {
  background-color: #ededee;
  padding: 56px 0 64px;
}
@media (max-width: 980px) {
  .footer {
    padding: 24px 0;
  }
}
.footer__layout {
  margin: 0 auto;
  max-width: 1216px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto auto minmax(auto, 1fr) minmax(auto, 1fr) minmax(auto, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-template-areas:
    "logo footer-nav footer-links-left footer-links-center footer-links-right"
    "logo footer-socials footer-links-left footer-links-center footer-links-right";
  column-gap: 93px;
}

@media (max-width: 1300px) {
  .footer__layout {
    column-gap: 20px;
  }
}

@media (max-width: 980px) {
  .footer__layout {
    grid-template-columns: repeat(4, minmax(auto, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
    "logo footer-socials footer-socials footer-socials"
    "footer-nav footer-nav footer-nav footer-nav"
    "footer-links-mobile-left footer-links-mobile-left footer-links-mobile-right footer-links-mobile-right";
    gap: 32px 13px;
  }
}
.footer__logo:not(.footer__logo--rebranding):not(.footer__logo--pl) {
  width: 120px;
  height: 48px;
  display: inline-block;
  background: url(../img/header/otpusk-logo-black.svg) no-repeat center / contain;
}
.footer__logo--rebranding {
  grid-area: logo;
  width: 118px;
}
@media (max-width: 767px) {
  .footer__logo--rebranding {
    width: 88px;
  }
}
.footer__logo--rebranding img,
.footer__logo--rebranding > svg {
  width: 100%;
  height: auto;
}

.footer__logo--pl {
	grid-area: logo;
	display: block;
}
.footer__logo-full {
	display: block;
	width: 187px;
}
.footer__logo-small {
	display: none;
}
@media (max-width: 424px) {
	.footer__logo-full {
		display: none;
	}
	.footer__logo-small {
		display: block;
	}
}
.footer__logo-full svg,
.footer__logo-small svg {
	max-width: 100%;
	height: auto;
}

[lang="lv"] .footer__logo,
[lang="lt"] .footer__logo {
  background-image: url(../img/header/logo-white-dot.svg);
}
[lang="pl"] .footer__logo--rebranding {
  width: 82px;
}
@media (max-width: 767px) {
  [lang="pl"] .footer__logo--rebranding {
    width: 62px;
  }
}
[lang="pl"] .footer__link,
[lang="pl"] .footer__button-link {
  color: #2A004A;
}
[lang="pl"] .footer__link {
  line-height: 1.35;
}
[lang="pl"] .footer__button-link {
  min-width: 200px;
  padding: 12px 16px;
  gap: 12px;
  border-radius: 12px;
}
.footer-nav {
  grid-area: footer-nav;
}
.footer-nav__item:not(:first-child) {
  margin-top: 16px;
}
.footer-socials {
  margin-top: 24px;
  grid-area: footer-socials;
  display: flex;
  gap: 24px;
}

@media (max-width: 980px) {
  .footer-socials {
    justify-content: right;
    margin-top: 0;
    align-self: center;
  }
}
.footer__button-link {
  display: flex;
  align-items: center;
  background: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  color: #0D0F10;
  transition: background-color .2s;
  position: relative;
  padding: 12px 12px 12px 19px;
  gap: 11px;
  border-radius: 12px;
}
.footer-nav .footer__button-link {
  text-decoration: none;
}
.footer__button-link:not(:last-child) {
  margin-bottom: 16px;
}
.footer__button-link i {
  opacity: .5;
  color: #404A51;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 981px) {
  .footer-links--mobile {
    display: none;
  }
}
@media (max-width: 980px) {
  .footer-links {
    gap: 24px;
  }
  .footer-links:not(.footer-links--mobile) {
    display: none;
  }
}
.footer-links__item {
  display: inline-block;
  border-radius: 12px;
  transition: background-color .2s;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
}

.footer__link {
  font-size: 17px;
  font-weight: 700;
  color: #0D0F10;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 767px) {
  .footer__link {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    white-space: normal;
    min-height: 30px;
  }
  .footer-links__item{
    white-space: normal;
  }
  .footer-links {
    gap: 16px;
  }
}

.footer__link:not(.footer__link--merged) {
  padding: 16px 16px 16px 16px;
}
.footer__link--merged:first-child {
  padding: 16px 0 16px 16px;
}
.footer__link--merged:last-child {
  padding: 16px 16px 16px 0;
}
@media (hover: hover) {
  .footer-links__item:hover,
  .footer__button-link:hover {
    background-color: #dedfe1;
    text-decoration: none;
  }

  .footer-links__item:hover a {
    text-decoration: none;
  }
}
@media (max-width: 980px) {
  .footer__link:not(.footer__link--merged),
  .footer__link--merged:not(:first-child),
  .footer__link--merged:not(:last-child) {
    padding: 0;
  }
}
@media (hover: hover) and (max-width: 980px) {
  .footer-links__item:hover,
  .footer__button-link:hover {
    background: none;
  }
}
.footer-links--left {
  grid-area: footer-links-left;
  margin-left: -16px;
}
.footer-links--center {
  grid-area: footer-links-center;
  margin-left: -25px;
}
.footer-links--right {
  grid-area: footer-links-right;
}
.footer-links--mobile-right {
  grid-area: footer-links-mobile-right;
}
.footer-links--mobile-left {
  grid-area: footer-links-mobile-left;
}

.footer__social {
  min-width: 24px;
  min-height: 24px;
  display: block;
  border-radius: 12px;
  position: relative;
}

.footer__social svg {
  display: block;
  width: 24px;
  height: 24px;
}
.footer__button-icon {
  display: inline-block;
}
.footer__social.mail svg {
  color: #ACAFB2;
}

@media (max-width: 320px) {
  [lang="lv"] .footer__logo,
  [lang="lt"] .footer__logo {
    width: 100px;
  }
}

[lang="pl"] .footer__button-link i {
  color: #2A004A;
  opacity: 1;
}
[lang="pl"] .footer__social.mail svg {
  color: #2A004A;
}
@media (min-width: 981px) {
  [lang="pl"] .footer-socials {
    margin-top: 16px;
  }
  [lang="pl"] .footer__link:not(.footer__link--merged) {
    padding: 13px 16px;
  }
}
@media (max-width: 980px) {
  [lang="pl"] .footer__button-link {
    width: 100%;
    justify-content: center;
  }
  [lang="pl"] .footer-socials {
    gap: 42px;
  }
}

@media (max-width: 425px) {
  [lang="pl"] .footer-socials {
    gap: 16px;
  }
}