/* Баннер главной: ротатор заголовка */
#js-bs-h, #js-bs-bold { opacity: 0; }
.dp-bs__sub { min-height: 1.5em; opacity: 0; }
#js-bs-h.dp-in, #js-bs-bold.dp-in { animation: dp-slideUp .55s cubic-bezier(.22,.68,0,1.2) forwards; }
#js-bs-bold.dp-in { animation-delay: .12s; }
.dp-bs__sub.dp-in { animation: dp-fadeIn .6s ease .35s forwards; }
.dp-bs { transition: opacity .35s ease; }
.dp-bs.dp-out { opacity: 0; }
@keyframes dp-slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dp-fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Главная: фоновое видео баннера — cover на весь блок */
.th-main-banner {
  position: relative;
  overflow: hidden;
}

.th-main-banner__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.th-main-banner .th-section-inner {
  position: relative;
  z-index: 1;
}

/* Outdoor catalog stubs — доп. стили к main.min.css */

/* Главная: баннер — размеры как на dlya-testa.ru (main2.min.css + fullpage).
   В main.min.css часть брейкпоинтов по высоте экрана завязана на .js-fullpage;
   дублируем для .th-home-main без этой зависимости + снимаем фикс. 30px у подзаголовка. */
.th-main-banner .dp-bs__sub {
  margin: 0 0 75px;
  margin-left: 10px;
}

@media (min-width: 1280px) and (max-height: 980px) and (min-height: 660px) {
  .th-home-main .th-main-banner h1,
  .th-home-main .th-main-banner h2,
  .th-home-main .th-main-banner #js-bs-h {
    font-size: 110px;
    margin-bottom: 32px;
  }

  .th-home-main .th-main-banner h1 b,
  .th-home-main .th-main-banner h2 b,
  .th-home-main .th-main-banner #js-bs-bold {
    font-size: 60px;
  }

  .th-home-main .th-main-banner .dp-bs__sub,
  .th-home-main .th-main-banner p {
    font-size: 28px;
    margin-bottom: 60px;
  }
}

@media (min-width: 1280px) and (max-height: 830px) and (min-height: 660px) {
  .th-home-main .th-main-banner h1,
  .th-home-main .th-main-banner h2,
  .th-home-main .th-main-banner #js-bs-h {
    font-size: 90px;
    margin-bottom: 30px;
  }

  .th-home-main .th-main-banner h1 b,
  .th-home-main .th-main-banner h2 b,
  .th-home-main .th-main-banner #js-bs-bold {
    font-size: 42px;
  }

  .th-home-main .th-main-banner .dp-bs__sub,
  .th-home-main .th-main-banner p {
    font-size: 22px;
    margin-bottom: 55px;
  }
}
.th-outdoor-catalog {
  margin-top: 2rem;
  overflow-x: auto;
}

.th-outdoor-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.th-outdoor-catalog__filters label {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
  color: #666;
}

.th-outdoor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.th-outdoor-table th,
.th-outdoor-table td {
  border: 1px solid #e8e8e8;
  padding: 0.65rem 0.75rem;
  vertical-align: top;
}

.th-outdoor-table th {
  background: #f7f7f7;
  font-weight: 600;
  text-align: left;
}

.th-outdoor-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
}

.th-outdoor-table a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

.th-outdoor-table a:hover {
  text-decoration-color: currentColor;
}

.th-outdoor-table .__icons {
  white-space: nowrap;
  text-align: center;
  color: #888;
  font-size: 0.8125rem;
}

.th-outdoor-table__status {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #666;
}

.th-outdoor-table__cart {
  display: block;
  margin-top: 0.35rem;
}

.th-outdoor-table__cart .th-btn.__btn-small {
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
}

.th-outdoor-detail__params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.th-outdoor-detail__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: 0.875rem;
}

.th-outdoor-detail__back {
  margin: 1rem 0 1.5rem;
}

.th-outdoor-detail__sides h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.th-outdoor-catalog__filters-more {
  grid-column: 1 / -1;
}

.th-outdoor-catalog__filters-more summary {
  cursor: pointer;
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.th-outdoor-catalog__filters-more-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Карточки каталога outdoor */
.th-outdoor-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.th-outdoor-catalog__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.th-outdoor-catalog-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}

.th-outdoor-catalog-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.th-outdoor-catalog-item__code {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.th-outdoor-catalog-item__code:hover {
  color: #c9a227;
}

.th-outdoor-catalog-item__metrics,
.th-outdoor-catalog-item__price {
  font-size: 0.8125rem;
  color: #666;
}

.th-outdoor-catalog-item__addr {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.th-outdoor-catalog-item__coords {
  display: inline-block;
  font-size: 0.75rem;
  color: #888;
  text-decoration: none;
}

.th-outdoor-catalog-item__photos {
  display: flex;
  gap: 0.35rem;
}

.th-outdoor-catalog-item__photos img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.th-outdoor-catalog-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.th-outdoor-catalog-item__share,
.th-outdoor-catalog-item__pdf {
  font-size: 0.8125rem;
  color: #666;
  text-decoration: none;
}

.th-outdoor-catalog-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #888;
}

/* Детальная карточка щита */
.th-outdoor-detail__rating .__star {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 2px;
  background: #ddd;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.th-outdoor-detail__rating .__star.__active {
  background: #c9a227;
}

.th-outdoor-detail__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.th-outdoor-detail-side-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.th-outdoor-detail-side-card__pick {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: rgba(255,255,255,0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.th-outdoor-detail-side-card__img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.th-outdoor-detail-side-card__body {
  padding: 0.75rem;
}

.th-outdoor-detail-side-card__specs {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8125rem;
  margin: 0.5rem 0;
}

.th-outdoor-detail-side-card__specs div {
  display: flex;
  gap: 0.5rem;
}

.th-outdoor-detail-side-card__specs dt {
  color: #888;
  min-width: 3rem;
}

.th-outdoor-detail__specs-block dl.th-outdoor-detail__specs {
  display: grid;
  gap: 0.5rem;
}

.th-outdoor-detail__specs div {
  display: flex;
  gap: 0.75rem;
}

.th-outdoor-detail__specs dt {
  color: #888;
  min-width: 8rem;
}

.th-outdoor-nearby__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.th-outdoor-nearby__item {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.th-outdoor-nearby__item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.th-outdoor-nearby__item span {
  display: block;
  padding: 0.5rem;
  font-size: 0.8125rem;
}

/* Панель «Ваш выбор» */
.th-outdoor-selection-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10040;
  background: #1a1a1a;
  color: #fff;
  padding: 0.75rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.th-outdoor-selection-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.th-outdoor-selection-bar__label strong {
  color: #c9a227;
}

/* Баллун карты: вкладки */
.th-outdoor-map-balloon__tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.th-outdoor-map-balloon__tabs .__tab {
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 4px;
}

.th-outdoor-map-balloon__tabs .__tab.__active {
  background: #c9a227;
  border-color: #c9a227;
  color: #fff;
}

.th-outdoor-map-balloon__panel {
  display: none;
}

.th-outdoor-map-balloon__panel.__active {
  display: block;
}

.th-outdoor-map-balloon__side {
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.th-outdoor-map-balloon__side img {
  max-width: 100%;
  height: auto;
  margin: 0.35rem 0;
}

.th-catalog-news-more {
  text-align: center;
  margin-top: 2rem;
}

.th-news-meta {
  color: #888;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
  .th-outdoor-catalog-item {
    grid-template-columns: 1fr;
  }

  .th-outdoor-catalog-item__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  body.th-has-selection-bar {
    padding-bottom: 72px;
  }
}

.th-form-page-search {
  max-width: 640px;
  margin-bottom: 2rem;
}

.th-search-results__group {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}

.th-search-results__item {
  margin-bottom: 1rem;
}

.th-search-results__excerpt {
  color: #666;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.th-outdoor-recent {
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

.th-outdoor-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.th-outdoor-recent__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.th-outdoor-recent__thumb {
  flex: 0 0 96px;
  display: block;
}

.th-outdoor-recent__thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #f3f3f3;
}

.th-outdoor-recent__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9375rem;
}

.th-outdoor-recent__meta {
  color: #666;
}

.th-outdoor-recent__addr {
  color: #444;
}

.th-outdoor-stub-note {
  padding: 1rem 1.25rem;
  background: #fffbe6;
  border: 1px solid #f0e6b3;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* Матрица /outdoor — единая CSS Grid как page-adreses.html, динамическое число колонок */

/* меньше отступ от подзаголовка до таблицы (как в эталоне) */
.th-section-inner + .th-adreses-page {
  margin-top: 0;
}

.th-section-inner:has(+ .th-adreses-page) .th-page-title {
  margin-bottom: 20px;
}

.th-adreses-matrix.th-adreses-page-wrap {
  padding-top: 10px;
}

.th-adreses-page .th-section-inner {
  width: max-content;
  1min-width: 100%;
  max-width: none;
  overflow: visible;
}

/* ≥1200: без overflow — иначе position:sticky не работает (main.min тоже без overflow) */
@media (min-width: 1200px) {
  .th-adreses-page {
    overflow: visible;
    max-width: none;
  }

  body.th-outdoor-matrix {
    overflow-x: auto;
  }
}

/* ≤1199: горизонтальная прокрутка как в main.min.css, sticky top:0 внутри блока */
@media (max-width: 1199.98px) {
  .th-adreses-page {
    overflow: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

.th-adreses-matrix {
  --matrix-cols: 1;
  --matrix-col-w: 52px;
  --matrix-city-w: 250px;
  --matrix-grid-cols: var(--matrix-city-w) repeat(var(--matrix-cols), var(--matrix-col-w));
  --matrix-track-w: calc(var(--matrix-city-w) + var(--matrix-cols) * var(--matrix-col-w));
}

/* шапка и строки — одна сетка колонок */
.th-adreses-matrix .th-adreses-head,
.th-adreses-matrix .th-adreses-item {
  display: grid;
  grid-template-columns: var(--matrix-grid-cols);
  justify-content: start;
  align-items: stretch;
  box-sizing: border-box;
  width: max-content;
  min-width: max(100%, var(--matrix-track-w));
}

.th-adreses-matrix .th-adreses-head {
  height: 300px;
  overflow: hidden;
  padding: 20px 40px;
}

.th-adreses-matrix .th-adreses-head__city {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  flex: none;
  padding-right: 25px;
}

.th-adreses-matrix .th-adreses-head__city .th-form-input-wrap {
  width: 100%;
  max-width: 100%;
  margin: auto 0 0;
}

.th-adreses-matrix .th-adreses-head__city .th-form-input-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* вложенная сетка вместо display:contents (ломает sticky и высоту шапки) */
.th-adreses-matrix .th-adreses-head__types {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: var(--matrix-types-grid);
  min-width: 0;
  width: auto;
  flex: none;
}

@supports (grid-template-columns: subgrid) {
  .th-adreses-matrix .th-adreses-head__types {
    grid-template-columns: subgrid;
  }
}

.th-adreses-matrix .th-adreses-head__types .__cell {
  position: relative;
  min-width: 0;
  width: auto;
  flex: none;
  min-height: 100%;
}

.th-adreses-matrix .th-adreses-head__types .__title {
  left: 5px;
  top: 0;
  z-index: 1;
}

/* main.min: -webkit-transform:-60deg + transform:-90deg — в Chromium побеждает -90deg (вертикально).
   Эталон diz/custom.css и Firefox: -60deg. Явно задаём один угол для всех движков. */
.th-adreses-matrix .th-adreses-head__types .__cell span {
  transform: rotate(-60deg);
  -webkit-transform: rotate(-60deg);
  transform-origin: top left;
  -webkit-transform-origin: top left;
}

.th-adreses-matrix .th-adreses-body {
  padding-top: 10px;
  position: relative;
  z-index: 0;
}

.th-adreses-matrix .th-adreses-item {
  padding: 3px 40px;
  align-items: center;
}

.th-adreses-matrix .th-adreses-item .__city {
  grid-column: 1;
  width: auto;
  flex: none;
  min-width: 0;
  padding-right: 25px;
}

.th-adreses-matrix .th-adreses-item .__cell {
  width: auto;
  flex: none;
  min-width: 0;
  text-align: center;
  padding: 0 3px;
}

.th-adreses-matrix .th-adreses-item .__cell a {
  border-radius: 6px;
  font-weight: 600;
  min-width: 40px;
  height: auto;
  min-height: 28px;
  padding: 4px 6px;
}

@media (min-width: 1200px) {
  .th-adreses-matrix .th-adreses-head {
    position: sticky;
    top: 120px;
    z-index: 3;
    background: #fff;
  }
}

@media (max-width: 1199.98px) {
  .th-adreses-matrix .th-adreses-head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
  }
}

@media (max-width: 1599.98px) {
  .th-adreses-matrix {
    --matrix-city-w: 210px;
  }

  .th-adreses-matrix .th-adreses-head {
    height: 165px;
    padding: 16px 15px;
  }

  .th-adreses-matrix .th-adreses-item {
    padding: 3px 15px;
  }
}

@media (max-width: 959.98px) {
  .th-adreses-matrix .th-adreses-head {
    position: static;
    top: auto;
    height: 135px;
    padding: 10px;
  }

  .th-adreses-matrix .th-adreses-item {
    padding: 3px 10px;
  }

  .th-adreses-matrix .th-adreses-head__types .__cell span {
    font-size: 11px;
    transform: rotate(-55deg);
    -webkit-transform: rotate(-55deg);
  }
}

/* Карта каталога */
.th-outdoor-map {
  margin-top: 1.5rem;
}

.th-outdoor-map__layout {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.th-outdoor-map__sidebar {
  flex: 0 0 280px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #fafafa;
}

.th-outdoor-map__sidebar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.th-outdoor-map__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-outdoor-map__list-item {
  margin: 0;
  border-bottom: 1px solid #eee;
}

.th-outdoor-map__list-item:last-child {
  border-bottom: 0;
}

.th-outdoor-map__list-link {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.th-outdoor-map__list-item.active .th-outdoor-map__list-link,
.th-outdoor-map__list-link:hover {
  color: #c9a227;
}

.th-outdoor-map__canvas {
  flex: 1 1 auto;
  min-width: 0;
  height: 500px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.th-outdoor-map-balloon {
  max-width: 280px;
  font-size: 0.875rem;
}

.th-outdoor-map-balloon__photos img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5rem;
}

.th-quiz-form .th-quiz-option {
  cursor: pointer;
}

.th-quiz-form label {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
  color: #666;
}

.drim-arenda-status {
  font-size: 0.8125rem;
  color: #666;
}

.drim-arenda-status.__sold {
  color: #c0392b;
}

.drim-arenda-status.__reserve {
  color: #e67e22;
}

.drim-arenda-status.__free {
  color: #27ae60;
}

.th-cart-badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #c9a227;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-align: center;
}

.th-btn.__btn-small {
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
}

@media (max-width: 767.98px) {
  .th-outdoor-map__layout {
    flex-direction: column;
  }

  .th-outdoor-map__sidebar {
    display: none;
  }

  .th-outdoor-map__canvas {
    height: 420px;
  }
}

/* Баннер согласия на cookies / обработку ПДн (152-ФЗ) */
.drim-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
}

.drim-cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.drim-cookie-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  flex: 1;
}

.drim-cookie-consent__text a {
  color: #1a73e8;
  text-decoration: underline;
}

.drim-cookie-consent__btn {
  flex-shrink: 0;
  border: none;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  white-space: nowrap;
}

.drim-cookie-consent__btn:hover {
  background: #222;
}

.checkmark {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.drim-arenda-status--map {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #666;
}

.th-outdoor-map-balloon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 767.98px) {
  .drim-cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .drim-cookie-consent__btn {
    width: 100%;
  }
}
