.shell-footer {
  padding: 50px 20px 32px;
  background: var(--color-footer);
  color: var(--color-white);
}

.shell-footer > .shell-container {
  width: min(1200px, 100%);
}

.shell-footer__padding {
  display: none;
}

.shell-footer__grid {
  display: flex;
  flex-direction: column;
}

.shell-footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}

.shell-footer__logo-link {
  order: 0;
  width: 74px;
  height: 40px;
  overflow: visible;
}

.shell-footer__logo-link img {
  width: 74px;
  height: 40px;
}

.shell-footer__socials {
  order: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  margin-top: 0;
}

.shell-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

.shell-footer__socials a:hover {
  opacity: 0.6;
}

.shell-footer__socials img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}

.shell-footer__slogan {
  order: 2;
  width: 100%;
  margin: 30px 0 40px;
  color: var(--color-white);
  font-size: 14px;
  line-height: 18px;
}

.shell-footer__content {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 45px;
}

.shell-footer__menu-groups {
  display: flex;
  flex: 0 0 auto;
  gap: 30px;
}

.shell-footer__group {
  width: auto;
}

.shell-footer__group h2,
.shell-footer__contact-block h2 {
  margin: 0 0 20px;
  color: var(--color-brand-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.shell-footer__group ul,
.shell-footer__phone-list {
  display: grid;
  gap: 14px;
}

.shell-footer__phone-list {
  gap: 16px;
}

.shell-footer__group a,
.shell-footer__contact-block > a,
.shell-footer__phone-list a,
.shell-footer__legal a {
  color: var(--color-white);
  text-decoration: none;
}

.shell-footer__group a {
  display: inline-block;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  transition: border-bottom-color 0.2s ease;
  white-space: nowrap;
}

.shell-footer__group a:hover,
.shell-footer__group a:focus-visible {
  border-bottom-color: var(--color-white);
}

.shell-footer__contacts {
  flex: 1 1 auto;
  min-width: 0;
}

.shell-footer__contact-block--email {
  margin-bottom: 48px;
}

.shell-footer__contact-block > a {
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.shell-footer__phone-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.shell-footer__phone-list img {
  width: 20px;
  height: 20px;
}

.shell-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.shell-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.shell-footer__bottom p {
  margin: 0;
  font-size: 14px;
  line-height: 16px;
  color: #8fb0b8;
}

.shell-footer__legal a {
  color: #8fb0b8;
}

@media (min-width: 768px) {
  .shell-footer {
    padding-inline: var(--container-gutter-desktop);
  }

  .shell-footer__grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .shell-footer__brand {
    flex: 0 0 38%;
    max-width: 38%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    padding-right: 10px;
  }

  .shell-footer__logo-link {
    width: 103px;
    height: 70px;
  }

  .shell-footer__logo-link img {
    width: 103px;
    height: 70px;
  }

  .shell-footer__socials {
    gap: 30px;
    margin-left: 0;
    margin-top: 0;
    order: 2;
  }

  .shell-footer__slogan {
    order: 1;
    margin-bottom: 42px;
    font-size: 16px;
    line-height: 20px;
  }

  .shell-footer__content {
    flex: 0 0 62%;
    max-width: 62%;
    justify-content: flex-start;
    gap: 80px;
    padding-top: 13px;
    margin-bottom: 0;
  }

  .shell-footer__group a {
    font-size: 18px;
    line-height: 21px;
  }

  .shell-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .shell-footer__phone-list a {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (min-width: 1200px) {
  .shell-footer__contact-block--email,
  .shell-footer__contact-block--phone {
    display: flex;
    gap: 0;
  }

  .shell-footer__contact-block--email {
    align-items: center;
    margin-bottom: 48px;
  }

  .shell-footer__contact-block--phone {
    align-items: flex-start;
  }

  .shell-footer__contact-block h2 {
    flex: 0 0 72px;
    margin-bottom: 0;
    padding-top: 0;
  }

  .shell-footer__padding {
    display: block;
    padding-top: 252px;
  }
}

@media (min-width: 1360px) {
  .shell-footer__padding {
    padding-top: 352px;
  }
}

@media (max-width: 375px) {
  .shell-footer__contact-block > a {
    font-size: 16px;
    line-height: 18px;
  }

  .shell-footer__phone-list a {
    font-size: 14px;
    line-height: 14px;
  }
}

@media (max-width: 414px) {
  .shell-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
