/**
 * Boardak compact footer — denser desktop, accordion on mobile.
 * Colors / brand green unchanged. Load after theme style.css.
 *
 * Also: text links in article / information bodies → brand green, no underline.
 * Buttons (.button) and CTA with background stay as-is.
 */

/* ——— Article / info page text links ——— */
main#content .information__content a:not(.button):not([style*="background"]),
main#content .information__content a:not(.button):not([style*="background"]):visited,
main#content .information__content a:not(.button):not([style*="background"]):hover,
main#content .information__content a:not(.button):not([style*="background"]):focus,
main#content .information__content a:not(.button):not([style*="background"]):active,
main#content .news-article__content a:not(.button):not([style*="background"]),
main#content .news-article__content a:not(.button):not([style*="background"]):visited,
main#content .news-article__content a:not(.button):not([style*="background"]):hover,
main#content .news-article__content a:not(.button):not([style*="background"]):focus,
main#content .news-article__content a:not(.button):not([style*="background"]):active {
  color: var(--hover, #A9CE40) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* ——— Desktop / tablet landscape ——— */
.footer__container {
  padding: 28px 0 0;
}

.footer__content {
  margin: 0 0 28px;
  gap: 24px 28px;
  align-items: start;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.15fr) repeat(3, minmax(110px, 1fr));
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .footer__content {
    gap: 20px 24px;
  }
}

.footer__item_1 {
  align-content: flex-start;
  gap: 14px 0;
  border-right-color: rgba(255, 255, 255, 0.28);
  padding-right: 8px;
}

.footer__heading {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.footer-menu__item {
  margin: 0 0 8px;
}

.footer-menu__link {
  padding: 0 18px 0 0;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.footer-menu__link:hover:after {
  top: 7px;
}

.footer-menu__link:hover:before {
  top: 4px;
}

.footer__logo img {
  max-height: 48px;
  width: auto;
}

.footer__telephone {
  margin: 0 0 8px;
}

.footer-menu__link_telephone {
  letter-spacing: 0.08em;
  font-size: 14px;
}

.footer-menu__link_email {
  font-size: 13px;
}

.footer__heading_b2b {
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.footer__subscribe {
  margin: 0;
}

.footer-powered__content {
  padding: 16px 0;
}

.footer-social__item {
  height: 36px;
  width: 36px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 14px 14px;
}

/* Яндекс Маркет: полная ширина SVG, без обрезки «Маркет» */
.footer-social__item_1 {
  margin: 0 16px 0 0;
  height: 36px;
  width: 172px;
  max-width: 100%;
  background: url("../image/footer/social_1.svg") no-repeat center left / contain transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.footer-social__vk {
  background-image: url("../image/footer/social_5.svg");
}

.footer-social__tg {
  background-image: url("../image/footer/social_3.svg");
}

.footer-social__fb {
  background-image: url("../image/footer/social_2.svg");
}

.footer-social__x {
  background-image: url("../image/footer/social_x.svg");
}

.footer-social__threads {
  background-image: url("../image/footer/social_threads.svg");
  background-size: 14px 14px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.footer-social__tiktok {
  background-image: url("../image/footer/social_tiktok.svg");
}

/* details/summary: look like plain headings on desktop */
.footer-acc {
  margin: 0;
  border: 0;
}

.footer-acc > .footer__heading {
  list-style: none;
  cursor: default;
}

.footer-acc > .footer__heading::-webkit-details-marker,
.footer-acc > .footer__heading::marker {
  display: none;
  content: "";
}

.footer-acc > .footer__heading::after {
  display: none;
}

@media (min-width: 992px) {
  .footer-acc > .footer__heading {
    pointer-events: none;
  }

  .footer-acc[open] > .footer__menu,
  .footer-acc > .footer__menu {
    display: block;
  }
}

/* ——— Mobile / tablet ——— */
@media (max-width: 991px) {
  .footer__container {
    padding: 20px 0 0;
  }

  .footer__content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 0 16px;
  }

  .footer__item {
    flex: 0 0 auto !important;
    width: 100%;
  }

  .footer__item_1 {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 16px;
    border: 0;
    padding: 0 0 16px;
    margin: 0 0 4px;
  }

  .footer__logo {
    grid-column: 1 / -1;
    margin: 0 0 4px !important;
    flex: none;
  }

  .footer__logo img {
    max-height: 40px;
  }

  .footer__contact {
    grid-column: 1 / -1;
  }

  .footer__item_2 {
    padding: 0 0 16px;
    margin: 0 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer__heading_b2b {
    font-size: 12px;
    letter-spacing: 0.03em;
    line-height: 1.35;
    margin: 0 0 10px;
  }

  .subscribe__input {
    height: 44px;
    padding: 8px 48px 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 14px;
  }

  .subscribe__button {
    height: 44px;
    width: 44px;
  }

  .footer-acc {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer-acc > .footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 0;
    font-size: 13px;
    letter-spacing: 0.06em;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
  }

  .footer-acc > .footer__heading::after {
    display: block;
    content: "+";
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    opacity: 0.85;
  }

  .footer-acc[open] > .footer__heading::after {
    content: "\2212";
  }

  .footer-acc > .footer__menu {
    padding: 0 0 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }

  .footer-menu__item {
    margin: 0;
  }

  .footer-menu__link {
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }

  /* Long privacy / gift links: span full width */
  .footer-menu__item:last-child {
    grid-column: 1 / -1;
  }

  .footer__item_4 .footer-menu__item:last-child,
  .footer__item_3 .footer-menu__item:nth-child(n + 5) {
    grid-column: 1 / -1;
  }

  .footer-powered__content {
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-powered__text {
    margin: 0;
    font-size: 12px;
  }

  .footer__social {
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .footer-social__item_1 {
    margin: 0;
    width: 168px;
    height: 32px;
    background: url("../image/footer/social_1.svg") no-repeat center left / contain transparent !important;
  }

  .footer-social__item {
    height: 34px;
    width: 34px;
  }
}

@media (max-width: 575px) {
  .footer__item_1 {
    flex-direction: unset;
  }
}
