.footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  padding: 2rem 0 3.2rem;
  background-color: var(--color-footer);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  display: block;
  max-height: 5rem;
  max-width: 12rem;
  width: 100%;
  height: 100%;
}

.footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
}

.footer__contacts-title {
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 100%;
  margin-bottom: 0.3rem;
}

.footer__contact {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 100%;
  color: var(--color-contact);
  text-decoration: none;
}

.footer__contact:hover {
  color: hsla(0, 0%, 100%, 0.9);
}

.footer__links {
  padding-top: 2rem;
  border-top: 0.1rem solid hsla(0, 0%, 100%, 0.2);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer__legal-link {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--color-legal);
  text-decoration: underline;
}

.footer__legal-link:hover {
  color: hsla(0, 0%, 100%, 0.7);
}
.locations {
  margin-block: 8rem 7rem;
}

.locations__title {
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 120%;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}

.locations__list {
  background-color: var(--color-dark);
  border-radius: 2rem;
}

.locations__item {
  padding: 1.9rem 1rem;
  border-top: 3px solid var(--color-bg);
  border-radius: 2rem 2rem 0 0;
}

@supports (interpolate-size: allow-keywords) {
  .locations__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size var(--duration) ease,
      content-visibility var(--duration) allow-discrete;
  }

  .locations__item[open]::details-content {
    block-size: auto;
  }
}

.locations__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 120%;
  text-transform: uppercase;
  color: var(--color-white);
  padding-inline: 1rem;
  scroll-margin-top: 5rem;
}

/* Вводный пункт «Порталы в прошлое»: заголовок без номера, крупнее строк. */
.locations__item--intro .locations__name {
  font-size: 1.8rem;
  line-height: 140%;
  letter-spacing: 0.01em;
}

.locations__item--instant::details-content,
.locations__item--instant .locations__content {
  transition: none !important;
}

.locations__summary::-webkit-details-marker {
  display: none;
}

.locations__num {
  flex-shrink: 0;
  color: var(--color-muted-soft);
  font-size: 1.8rem;
}

.locations__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locations__status {
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: var(--color-muted-faint);
}

.locations__status--active {
  background-color: var(--color-accent);
}

.locations__content {
  margin-top: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration) ease;
}

.locations__item[open] .locations__content {
  opacity: 1;
}

.locations__media {
  border-radius: 1rem;
}

.locations__img {
  width: 100%;
  height: auto;
  aspect-ratio: 338 / 290;
  object-fit: cover;
  object-position: center;
}

.locations__caption {
  margin: 1.5rem 1rem 0;
}
.header {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.header__link {
  background-color: var(--color-white);
  padding-block: 2rem 1rem;
  position: absolute;
  top: 0;
  left: 25px;
}

.header__logo {
  max-width: 11.5rem;
  max-height: 11rem;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero__img {
  position: relative;
  margin: 0 auto;
  max-width: var(--max-width);
  max-height: 48rem;
  width: 100%;
  height: 100%;
  border-radius: 0 0 2rem 2rem;
  overflow: hidden;
}

.hero__media,
.hero__media picture {
  display: block;
  height: 100%;
}

.hero__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 390 / 489;
  object-fit: cover;
  /* Как в макете: рендер прижат к верху, по горизонтали по центру. */
  object-position: 50% 0;
}

.hero__badge {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  z-index: 1;
  transform: translateX(-50%);
}

.hero__content {
  margin-top: 3rem;
}

.hero__title {
  font-weight: 700;
  font-size: 3rem;
  line-height: 120%;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}

.hero__description {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 120%;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.hero__button {
  margin-top: 4rem;
}

.how {
  margin-block: 6rem;
}

.how__item {
  background-color: var(--color-dark);
  border-radius: 2rem;
}

@supports (interpolate-size: allow-keywords) {
  .how__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size var(--duration) ease,
      content-visibility var(--duration) allow-discrete;
  }

  .how__item[open]::details-content {
    block-size: auto;
  }
}

.how__summary {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.6rem 2rem;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 120%;
  text-align: center;
  color: var(--color-white);
}

.how__summary::-webkit-details-marker {
  display: none;
}

.how__toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.triangle {
  display: block;
  color: var(--color-white);
  transition: transform var(--duration-fast) ease;
}

.how__item[open] .triangle {
  transform: rotate(180deg);
  margin-top: -4px;
}

.how__content {
  margin: 0;
  padding: 0 2rem 2rem 2rem;
  opacity: 0;
  transition: opacity var(--duration) ease;
}

.how__item[open] .how__content {
  opacity: 1;
}

.how__content li + li {
  margin-top: 1rem;
}

.footer__buy {
  margin-block: 2.4rem 2rem;
}

