/* Footer menu: «Скоро» items match the other titles; desktop row; tablet list alignment. */
.footer-menu__title .site-nav-soon {
  padding: 0;
}

.footer-menu__models > summary {
  cursor: pointer;
}

.footer-menu__models[open] .footer-menu__list {
  display: flex;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.footer-meta__summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 44px;
  color: rgba(230, 233, 237, 1);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  list-style: none;
  cursor: pointer;
}

.footer-meta__summary::-webkit-details-marker {
  display: none;
}

.footer-meta__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.footer-meta__requisites[open] > .footer-meta__summary::after {
  transform: translateY(2px) rotate(225deg);
}

.footer-meta__requisites > .footer-meta__text {
  overflow-wrap: anywhere;
}

/* Desktop: model lists stay open (script in site_footer.html), all columns in one row, meta line below. */
@media (min-width: 1101px) {
  .footer-menu {
    display: grid;
    grid-template-columns: repeat(8, auto);
    column-gap: 24px;
    row-gap: 32px;
  }

  .footer-menu__item {
    width: auto;
  }

  .footer-meta {
    grid-column: 1 / -1;
    justify-self: end;
    margin-left: 0;
  }

  .footer-menu__models > summary {
    list-style: none;
    pointer-events: none;
  }

  .footer-menu__models > summary::-webkit-details-marker {
    display: none;
  }

  .footer-menu__models[open] .footer-menu__list {
    gap: 8px;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
  }
}

/* Tablet: model names left-aligned under their section title. */
@media (min-width: 641px) and (max-width: 1100px) {
  .footer-menu__link {
    text-align: left;
  }

  .footer-meta__requisites {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: start;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .footer-meta__summary {
    justify-content: center;
  }
}
