/* EvoOnline footer R58 — scoped Lovable alignment, native UniShop2 data/behaviour. */
.footer.eo-r58-footer {
  --eo-r58-red: #e6362c;
  --eo-r58-red-dark: #c51f1a;
  --eo-r58-ink: #202228;
  --eo-r58-muted: #6f747d;
  --eo-r58-line: #e5e7ea;
  --eo-r58-soft: #f7f7f8;
  overflow: hidden;
  padding: 0;
  color: var(--eo-r58-ink);
  font-family: Montserrat, Arial, sans-serif;
  background: #fff !important;
  border-top: 1px solid var(--eo-r58-line);
  box-shadow: none;
}

.eo-r58-footer,
.eo-r58-footer * {
  box-sizing: border-box;
}

.eo-r58-footer .subscribe {
  padding: 30px 0 28px;
  color: var(--eo-r58-ink);
  background: #fff6f4;
  border-bottom: 1px solid #f3d9d5;
}

.eo-r58-footer .subscribe__info {
  align-items: center;
  margin: 0;
  color: var(--eo-r58-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.eo-r58-footer .subscribe__icon {
  margin-right: 14px;
  color: var(--eo-r58-red);
  font-size: 32px;
}

.eo-r58-footer .subscribe__block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 8px;
}

.eo-r58-footer .subscribe__inputs {
  position: relative;
  min-width: 0;
  width: 100%;
}

.eo-r58-footer .subscribe__input-email,
.eo-r58-footer .subscribe__input-password.show-pass {
  height: 52px !important;
  padding: 0 16px;
  color: var(--eo-r58-ink);
  background: #fff;
  border: 1px solid #dfe2e6;
  border-radius: 13px;
  box-shadow: none;
}

.eo-r58-footer .subscribe__input-email:focus,
.eo-r58-footer .subscribe__input-password.show-pass:focus {
  border-color: var(--eo-r58-red);
  box-shadow: 0 0 0 3px rgba(230, 54, 44, .1);
}

.eo-r58-footer .subscribe__input-password:not(.show-pass) {
  display: none;
  width: 0;
  height: 0 !important;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.eo-r58-footer .subscribe__input-password.show-pass {
  right: 0;
  width: 40%;
}

.eo-r58-footer .subscribe__btn,
.eo-r58-footer .subscribe__btn:hover,
.eo-r58-footer .subscribe__btn:focus {
  display: inline-flex;
  min-width: 206px;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: var(--eo-r58-red);
  border: 1px solid var(--eo-r58-red);
  border-radius: 13px;
  box-shadow: none;
  transform: none;
}

.eo-r58-footer .subscribe__btn:hover,
.eo-r58-footer .subscribe__btn:focus {
  background: var(--eo-r58-red-dark);
  border-color: var(--eo-r58-red-dark);
}

.eo-r58-footer .subscribe__btn i {
  margin: 0;
  flex: 0 0 auto;
}

.eo-r58-footer .subscribe__btn span {
  min-width: 0;
}

.eo-r58-footer .subscribe__input-email::placeholder {
  color: #858a92;
  opacity: 1;
}

.eo-r58-footer .subscribe__agree {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  color: var(--eo-r58-muted);
  font-size: 13px;
  line-height: 1.45;
}

.eo-r58-footer .subscribe__agree input[type="checkbox"] {
  margin: 3px 8px 0 0;
  flex: 0 0 auto;
}

.eo-r58-footer .subscribe__bottom {
  display: none;
}

.eo-r58-footer__main {
  padding-top: 52px;
  padding-bottom: 30px;
}

.eo-r58-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(0, 4fr);
  gap: clamp(38px, 4vw, 72px);
  align-items: start;
}

.eo-r58-footer__brand {
  min-width: 0;
}

.eo-r58-footer__logo {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
}

.eo-r58-footer__logo img {
  display: block;
  width: auto;
  max-width: min(100%, 252px);
  height: auto;
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
}

.eo-r58-footer__mobile-phone {
  display: none;
}

.eo-r58-footer__columns {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.1vw, 38px);
}

.eo-r58-footer .footer__column {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
}

.eo-r58-footer .footer__column-heading {
  display: flex;
  min-height: 24px;
  margin: 0 0 18px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  color: var(--eo-r58-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.eo-r58-footer .footer__column-ul {
  margin: 0;
}

.eo-r58-footer .footer__column-li {
  display: flex;
  min-width: 0;
  margin: 0 0 11px;
  align-items: flex-start;
  color: var(--eo-r58-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.eo-r58-footer .footer__column-li:last-child {
  margin-bottom: 0;
}

.footer.eo-r58-footer a,
.footer.eo-r58-footer .footer__column-a,
.footer.eo-r58-footer .footer__column-a:visited {
  color: var(--eo-r58-muted) !important;
  text-decoration: none;
  transition: color .18s ease;
}

.footer.eo-r58-footer a:hover,
.footer.eo-r58-footer a:focus-visible,
.footer.eo-r58-footer .footer__column-a:hover,
.footer.eo-r58-footer .footer__column-a:focus-visible {
  color: var(--eo-r58-red) !important;
  text-decoration: none;
}

.eo-r58-footer .footer__contacts-li {
  gap: 8px;
}

.eo-r58-footer .footer__contacts-icon {
  min-width: 18px;
  margin: 3px 0 0;
  color: var(--eo-r58-red);
  font-size: 14px;
  text-align: center;
}

.eo-r58-footer .footer__contacts-img {
  width: 18px;
  max-height: 18px;
  margin: 2px 0 0;
  object-fit: contain;
}

.eo-r58-footer .footer__column--contacts .footer__contacts-li:first-child .footer__column-a {
  color: var(--eo-r58-ink) !important;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.eo-r58-footer .footer__text {
  max-width: none;
  margin: 36px 0 0;
  padding: 24px 0 0;
  color: var(--eo-r58-muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
  border-top: 1px solid var(--eo-r58-line);
}

.eo-r58-footer .footer__text > * {
  margin: 0 !important;
  color: var(--eo-r58-muted) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  opacity: 1 !important;
}

.eo-r58-footer .footer__text p {
  display: inline;
  margin: 0 !important;
}

.eo-r58-footer .footer__text p + p::before {
  content: ' ';
}

.eo-r58-footer .footer__socials-payments {
  padding: 17px 0;
  background: var(--eo-r58-soft);
  border-top: 1px solid var(--eo-r58-line);
  border-bottom: 1px solid var(--eo-r58-line);
}

.eo-r58-footer__media-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eo-r58-footer .footer__media,
.eo-r58-footer .footer__payments {
  display: flex;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.eo-r58-footer .footer__socials-icon,
.eo-r58-footer .footer__socials-icon.fa-vk,
.eo-r58-footer .footer__socials-icon.fa-odnoklassniki,
.eo-r58-footer .footer__socials-icon.fa-telegram-plane {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--eo-r58-ink);
  font-size: 15px;
  line-height: 1 !important;
  background: #fff;
  border: 1px solid #dfe2e6;
  border-radius: 50%;
  opacity: 1;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.eo-r58-footer img.footer__socials-icon {
  padding: 7px;
  object-fit: contain;
}

.eo-r58-footer .footer__socials-icon:hover,
.eo-r58-footer .footer__socials-icon:focus-visible {
  color: var(--eo-r58-red);
  background: #fff4f2;
  border-color: #efa9a4;
}

.eo-r58-footer .footer__payments {
  justify-content: flex-end;
}

.eo-r58-footer .footer__payments-icon {
  width: 54px;
  height: 32px;
  margin: 0;
  background-color: #fff;
  border: 1px solid #e0e2e5;
  border-radius: 8px;
}

.eo-r58-footer__bottom {
  padding: 18px 0;
  color: #858a92;
  background: #fff;
}

.eo-r58-footer__copyright {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .eo-r58-footer .footer__column-ul.collapse {
    display: block !important;
    height: auto !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .eo-r58-footer__grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
  }

  .eo-r58-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }
}

@media (max-width: 991px) {
  .footer.eo-r58-footer.mobile-menu-bottom {
    padding-bottom: calc(var(--eo-r21-bottom-nav, 72px) + env(safe-area-inset-bottom));
  }

  .eo-r58-footer .subscribe {
    padding: 24px 0;
  }

  .eo-r58-footer__main {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .eo-r58-footer__grid {
    display: block;
  }

  .eo-r58-footer__brand {
    padding-bottom: 24px;
  }

  .eo-r58-footer__logo img {
    max-width: 226px;
    max-height: 75px;
  }

  .eo-r58-footer__mobile-phone {
    display: flex;
    width: fit-content;
    min-height: 46px;
    margin-top: 18px;
    padding: 0 15px;
    align-items: center;
    gap: 9px;
    color: var(--eo-r58-ink) !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    background: #fff4f2;
    border: 1px solid #f0cbc7;
    border-radius: 12px;
  }

  .eo-r58-footer__mobile-phone i {
    color: var(--eo-r58-red);
  }

  .eo-r58-footer__columns {
    display: block;
    border-top: 1px solid var(--eo-r58-line);
  }

  .eo-r58-footer .footer__column,
  .eo-r58-footer .footer__column:not(:first-child) {
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--eo-r58-line);
  }

  .eo-r58-footer .footer__column-heading {
    min-height: 52px;
    margin: 0;
    padding: 0 2px;
    cursor: pointer;
    font-size: 15px;
  }

  .eo-r58-footer .footer__column-heading .visible-xs {
    display: inline-flex !important;
    color: #9a9fa7;
    font-size: 11px;
    transition: transform .18s ease;
  }

  .eo-r58-footer .footer__column-heading.open .fa-chevron-down {
    transform: rotate(180deg);
  }

  .eo-r58-footer .footer__column-ul.collapse:not(.in) {
    display: none !important;
    height: 0 !important;
    overflow: hidden;
  }

  .eo-r58-footer .footer__column-ul.collapse.in {
    display: block !important;
    height: auto !important;
  }

  .eo-r58-footer .footer__column-ul {
    padding: 2px 2px 18px;
  }

  .eo-r58-footer .footer__column-li {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .eo-r58-footer .footer__text {
    margin-top: 26px;
    padding-top: 20px;
  }
}

@media (max-width: 767px) {
  .eo-r58-footer > .container,
  .eo-r58-footer .subscribe > .container,
  .eo-r58-footer .footer__socials-payments > .container,
  .eo-r58-footer__bottom > .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .eo-r58-footer .subscribe__info {
    font-size: 15px;
  }

  .eo-r58-footer .subscribe__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 10px;
  }

  .eo-r58-footer .subscribe__inputs,
  .eo-r58-footer .subscribe__input-email {
    width: 100%;
  }

  .eo-r58-footer .subscribe__btn,
  .eo-r58-footer .subscribe__btn:hover,
  .eo-r58-footer .subscribe__btn:focus {
    width: 100%;
    min-width: 0;
  }

  .eo-r58-footer__media-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .eo-r58-footer .footer__payments {
    justify-content: flex-start;
  }

  .eo-r58-footer__bottom {
    padding: 16px 0;
  }

  .eo-r58-footer__copyright {
    padding-right: 48px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eo-r58-footer *,
  .eo-r58-footer *::before,
  .eo-r58-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
