/* ============================================================
   HOW-TO-GET.CSS — Страница «Как добраться»
   Театр на Таганке

   Подключается последним:
     fonts → tokens → style → page → menu → search-desktop
     → how-to-get.css

   Десктоп: двухколоночный grid —
     левая:  .htg__photos (фото + табы с названиями сцен)
     правая: .htg__info (заголовок, адрес, карта, подразделы)
   ============================================================ */


/* ══════════════════════════════════════════════════
   НАВИГАЦИЯ «← ПОСЕТИТЕЛЯМ»
   ══════════════════════════════════════════════════ */
.htg__nav {
  padding: 32px 10px 0;
}

.htg__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: var(--color-black-soft-40);
  text-decoration: none;
}

.htg__nav-link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.htg__nav-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: currentColor;
}

.htg__nav + .page__intro {
  padding-top: 24px;
}


/* ══════════════════════════════════════════════════
   РАЗДЕЛИТЕЛЬ
   ══════════════════════════════════════════════════ */
.htg__divider {
  width: 100%;
  height: 1px;
  background: var(--color-black-soft);
  margin-top: 24px;
}


/* ══════════════════════════════════════════════════
   КОНТЕЙНЕР
   ══════════════════════════════════════════════════ */
.htg__content {
  padding: 48px 10px 0;
}


/* ══════════════════════════════════════════════════
   РАЗДЕЛ (ЗДАНИЕ)
   ══════════════════════════════════════════════════ */
.htg__building {
  padding-bottom: 96px;
  border-bottom: 1px solid var(--color-black-soft);
  margin-bottom: 48px;
}
.htg__building:last-child {
  border-bottom: none;
  margin-bottom: 0;
}


/* ══════════════════════════════════════════════════
   ФОТО + ТАБЫ (левая колонка на десктопе)
   Табы: названия сцен, первый — чёрный фон.
   ══════════════════════════════════════════════════ */
.htg__photos {
  margin-bottom: 40px;
}

.htg__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--card-radius);
  display: block;
}

.htg__photo[hidden] {
  display: none;
}

.htg__photo-tabs {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.htg__photo-tab {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.005em;
  color: var(--color-black-soft);
  background: none;
  border: 1px solid #DFDFDF;
  cursor: pointer;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}
.htg__photo-tab:first-child {
  border-radius: 0;
}
.htg__photo-tab:not(:first-child) {
  border-left: none;
}
.htg__photo-tab:last-child {
  border-radius: 0;
}

.htg__photo-tab.is-active {
  color: var(--color-black-soft);
  background: #DFDFDF;
  
}


.htg__photo-tab:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}


/* ══════════════════════════════════════════════════
   ЗАГОЛОВОК РАЗДЕЛА (правая колонка)
   Паттерн vhub__card-title: квадратик + Extended Black.
   ══════════════════════════════════════════════════ */
.htg__building-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: var(--font-weight-black);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--color-black-soft);
}

.htg__building-title::before {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--color-black-soft);
  /* Центр первой строки: (28px × 0.9) / 2 − 12px ≈ 0.6px */
  margin-top: 1px;
}

.htg__building-subtitle {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-black-soft-40);
  margin-top: 12px;
  padding-left: 36px;
}

.htg__building-address {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-black-soft);
  margin-top: 16px;
  padding-left: 36px;
}


/* ══════════════════════════════════════════════════
   КНОПКА «ОТКРЫТЬ НА КАРТЕ»
   ══════════════════════════════════════════════════ */
.htg__map-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: calc(50% - 18px);
  height: 48px;
  padding: 0 20px;
  background: var(--color-black-soft);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: opacity var(--duration-fast) ease;
  margin-top: 24px;
  margin-left: 36px;
}
.htg__map-link:hover {
  opacity: 0.85;
}

.htg__map-link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.htg__map-link-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-white);
  transition: transform var(--duration-fast) var(--ease-out-smooth);
}

.htg__map-link:hover .htg__map-link-arrow {
  transform: translateX(4px);
}


/* ══════════════════════════════════════════════════
   ПОДРАЗДЕЛЫ
   Паттерн sevent__accordion-btn.
   ══════════════════════════════════════════════════ */
.htg__subs {
  margin-top: 80px;
}

.htg__sub {
  border-top: 1px solid var(--color-black-soft);
}
.htg__sub:last-child {
  border-bottom: none;
}

.htg__sub-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--color-black-soft);
  text-align: left;
}
.htg__sub-summary::-webkit-details-marker {
  display: none;
}
.htg__sub-summary::marker {
  content: '';
}

.htg__sub-summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.htg__sub-title {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.htg__sub-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-black-soft-40);
  transition: transform var(--duration-base) var(--ease-out-smooth);
}

.htg__sub[open] .htg__sub-chevron {
  transform: rotate(180deg);
}

.htg__sub-body {
  padding: 0 0 24px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-black-soft);
}

.htg__sub-text p {
  margin-bottom: 12px;
}
.htg__sub-text p:last-child {
  margin-bottom: 0;
}


/* ══════════════════════════════════════════════════
   ВЛОЖЕННЫЕ БЛОКИ (ВХОДЫ, ТРАНСПОРТ)
   ══════════════════════════════════════════════════ */
.htg__entrance {
  border-top: 1px solid var(--color-black-soft-10);
}
.htg__entrance:first-child {
  border-top: none;
}

.htg__entrance-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: var(--font-weight-medium);
  color: var(--color-black-soft);
  transition: color var(--duration-fast) ease;
}
.htg__entrance-summary::-webkit-details-marker {
  display: none;
}
.htg__entrance-summary::marker {
  content: '';
}

.htg__entrance-summary:hover {
  color: var(--color-brand);
}

.htg__entrance-summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
}

.htg__entrance-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-black-soft-40);
  transition: transform var(--duration-base) var(--ease-out-smooth);
}

.htg__entrance[open] .htg__entrance-chevron {
  transform: rotate(180deg);
}

.htg__entrance-body {
  padding: 0 0 20px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-black-soft);
}

.htg__entrance-body p {
  margin-bottom: 12px;
}
.htg__entrance-body p:last-child {
  margin-bottom: 0;
}

.htg__entrance-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--card-radius);
  margin-top: 16px;
}


/* ══════════════════════════════════════════════════
   МЕТРО — цветные метки
   ══════════════════════════════════════════════════ */
.htg__metro-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
/*  margin-right: 12px;*/
}

.htg__metro-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════
   БЛОК «ДРУГИЕ СТРАНИЦЫ РАЗДЕЛА»
   ══════════════════════════════════════════════════ */
.htg__related {
  margin-top: 64px;
  padding: 48px 10px 64px;
  border-top: 1px solid var(--color-black-soft-10);
}

.htg__related-title {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-heading);
  color: var(--color-black-soft);
  margin-bottom: 24px;
}

.htg__related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.htg__related-link {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-base);
  color: var(--color-black-soft);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-smooth);
}
.htg__related-link:hover {
  color: var(--color-brand);
}

.htg__related-link[aria-current="page"] {
  color: var(--color-black-soft-25);
  pointer-events: none;
}


/* ══════════════════════════════════════════════════
   ПЛАНШЕТ (≥768)
   ══════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .htg__nav {
    padding: 40px 16px 0;
  }

  .htg__content {
    padding: 48px 16px 0;
  }

  .htg__building {
    padding-bottom: 112px;
    margin-bottom: 56px;
  }

  .htg__building-title {
    font-size: 30px;
  }

  .htg__related {
    padding: 48px 16px 80px;
  }

  .htg__related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ══════════════════════════════════════════════════
   ДЕСКТОП (≥1024) — двухколоночная сетка
   Левая: фото + табы. Правая: всё остальное.
   ══════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .htg__nav {
    padding: 48px var(--inner-pad-x) 0;
  }

  .htg__nav-link {
    font-size: 17px;
  }

  .htg__nav + .page__intro {
    padding-top: 32px;
  }

  .htg__content {
    padding: 80px var(--inner-pad-x) 0;
  }

  .htg__building {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--inner-col-gap);
    align-items: start;
    padding-bottom: 128px;
    margin-bottom: 64px;
  }

  /* Фото — левая колонка */
  .htg__photos {
    margin-bottom: 0;
  }

  /* Всё остальное — правая колонка */
  .htg__info {
    /* естественная правая колонка */
  }

  .htg__subs {
    margin-top: 96px;
  }

  .htg__building-title {
    font-size: 32px;
    gap: 16px;
    align-items: flex-start;
  }

  .htg__building-title::before {
    width: 20px;
    height: 20px;
    margin-top: 5px;
  }

  .htg__building-subtitle {
    font-size: 19px;
    padding-left: 36px;
  }

  .htg__building-address {
    font-size: 19px;
    padding-left: 36px;
  }

  .htg__map-link {
    margin-left: 36px;
    height: 52px;
    font-size: 17px;
  }

  .htg__sub-title {
    font-size: 22px;
  }

  .htg__sub-summary {
    padding: 22px 0;
  }

  .htg__related {
    margin-top: 80px;
    padding: 64px var(--inner-pad-x) 96px;
  }

  .htg__related-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .htg__related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 32px;
  }

  .htg__related-link {
    font-size: 17px;
  }
}


/* ══════════════════════════════════════════════════
   ШИРОКИЙ ДЕСКТОП (≥1440)
   ══════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  .htg__building-title {
    font-size: 34px;
  }

  .htg__building-title::before {
    margin-top: 6px;
  }
}
