/* FIX_PHONE_ICON 20260910d */
/* ========== TOPBAR (desktop) ========== */
.trv-topbar {
  background: #f5f5f5;
  font-size: 13px;
  line-height: 1.3;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
}

.trv-topbar .topbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 8px 0;
  min-height: 40px;
}

/* Joomla оборачивает модуль в .mod-custom — иначе адрес+соцсети в одном флекс-блоке */
.trv-topbar .topbar-inner > .mod-custom,
.trv-topbar .site-ratings-desktop,
.trv-topbar .site-ratings-desktop > .mod-custom {
  display: contents;
}

.trv-topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  order: 1;
}

.trv-topbar .topbar-pin {
  display: inline-flex;
  flex-shrink: 0;
}

.trv-topbar .topbar-pin img {
  display: block;
  width: 14px;
  height: 14px;
}

.trv-topbar .topbar-address {
  color: #333;
}

/* Один модуль рейтингов — вид на ПК как раньше в плашке */
.trv-topbar .site-ratings {
  display: flex;
  align-items: center;
  gap: 15px;
  order: 2;
  margin-left: auto;
  flex-shrink: 0;
}

.trv-topbar .site-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trv-topbar .site-rating__stars {
  color: #FFCC00;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
}

.trv-topbar .site-rating__score {
  color: #1D1D1B;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.trv-topbar .site-rating__name {
  color: #7E858B;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* Мобильный слот под лого/телефонами — на ПК скрыт */
.site-ratings-mobile {
  display: none;
}

.trv-topbar .topbar-messengers {
  display: flex;
  align-items: center;
  gap: 5px;
  order: 3;
  flex-shrink: 0;
}

.trv-topbar .topbar-soc {
  width: 28px;
  height: 28px;
  background: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s linear;
}

.trv-topbar .topbar-soc:hover {
  transform: scale(1.1);
}

.trv-topbar .topbar-soc img {
  display: block;
  width: 28px;
  height: 28px;
}

/* ========== REQUEST BTN PC: как в превью Tourvisor (без иконки темы, текст по центру) ========== */
@media screen and (min-width: 992px) {
  .trv-header__request .TVBButtonCaption::before,
  .trv-header__request a::before {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .trv-header .trv-header__request .TVBButton,
  .trv-header__request .TVBMediumSize {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .trv-header__request .TVBButtonCaption {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    color: #1d1d1b !important;
  }

  /* текст кнопки в ::after — не прятать, только нормальный вид */
  .trv-header__request .TVBButtonCaption::after {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    color: inherit !important;
    float: none !important;
  }
}

/* ========== PHONES (desktop) ========== */
.trv-header__phone,
.trv-header__phone-address {
  text-align: left;
}

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.trv-header__phone .header-phones__main,
.trv-header__phone .header-phones__main:link,
.trv-header__phone .header-phones__main:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1D1D1B !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.header-phones__icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.trv-header__phone .header-phones__second,
.trv-header__phone .header-phones__second:link,
.trv-header__phone .header-phones__second:visited {
  color: #6E7276 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  margin-left: 24px;
}

.trv-header__phone .header-phones__second:hover {
  text-decoration: underline !important;
}

/* Отключаем старые псевдо-иконки темы на наших телефонах (desktop) */
.trv-header__phone .header-phones a::before {
  display: none !important;
  content: none !important;
}

/* ========== TABLET ≤1199 ========== */
@media screen and (max-width: 1199px) {
  .trv-topbar .topbar-inner {
    gap: 12px;
  }

  .trv-topbar .topbar-right {
    gap: 16px;
  }

  .trv-topbar .site-ratings {
    gap: 10px;
  }

  .trv-header__phone .header-phones__main,
  .trv-header__phone .header-phones__main:link,
  .trv-header__phone .header-phones__main:visited {
    font-size: 14px !important;
  }

  .trv-header__phone .header-phones__second,
  .trv-header__phone .header-phones__second:link,
  .trv-header__phone .header-phones__second:visited {
    font-size: 12px !important;
    margin-left: 22px;
  }

  .trv-header__logo img {
    max-height: 44px !important;
    width: auto !important;
  }
}

/* ========== COMPACT HEADER ≤991 (планшет + моб) ========== */
@media screen and (max-width: 991px) {
  /* Плашка: только адрес + соцсети. Рейтинги — ниже, под лого/телефонами */
  .trv-topbar .topbar-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 35px !important;
    padding: 6px 0 !important;
  }

  .trv-topbar .topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    order: 1 !important;
  }

  .trv-topbar .topbar-address {
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .trv-topbar .topbar-messengers {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  /* прячем рейтинги из топа на мобилке */
  .site-ratings-desktop {
    display: none !important;
  }

  /* плашки под лого + телефонами, над меню-иконками */
  .site-ratings-mobile {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 20px !important;
  }

  .site-ratings-mobile .site-ratings {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .site-ratings-mobile .site-rating {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f3f3f3 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  .site-ratings-mobile .site-rating__stars {
    color: #FFCC00 !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
  }

  .site-ratings-mobile .site-rating__score {
    color: #1D1D1B !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .site-ratings-mobile .site-rating__name {
    color: #7E858B !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }

  .trv-topbar .topbar-soc,
  .trv-topbar .topbar-soc img {
    width: 35px !important;
    height: 35px !important;
  }

  /* Ряд шапки */
  .trv-header__top-line {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 20px 0 !important;
  }

  .trv-header__logo {
    flex: 0 0 auto !important;
    max-width: 110px !important;
    margin-right: 0 !important;
    order: 1 !important;
  }

  .trv-header__logo img {
    max-height: 32px !important;
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
  }

  .trv-header__name {
    display: none !important;
  }

  .trv-header__phone-address {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 0 4px !important;
    padding: 0 0 0 8px !important;
    border: 0 !important;
    order: 2 !important;
  }

  .trv-header__phone {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
  }

  .header-phones {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
  }

  /* Сброс синих кнопок темы + нормальный мелкий текст */
  .trv-header__phone .header-phones a,
  .trv-header__phone .header-phones a:link,
  .trv-header__phone .header-phones a:visited,
  .trv-header__phone .header-phones a:hover,
  .trv-header__phone .header-phones a:active,
  .trv-header__phone .header-phones a:focus {
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6E7276 !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  .trv-header__phone .header-phones a::before,
  .trv-header__phone .header-phones a::after {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .trv-header__phone .header-phones__main,
  .trv-header__phone .header-phones__main:link,
  .trv-header__phone .header-phones__main:visited,
  .trv-header__phone .header-phones__main:hover {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1D1D1B !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
  }

  .trv-header__phone .header-phones__main span {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1D1D1B !important;
    line-height: 1 !important;
  }

  .trv-header__phone .header-phones__main img,
  .trv-header__phone .header-phones__icon {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    flex: 0 0 14px !important;
    position: static !important;
    float: none !important;
  }

  .trv-header__phone .header-phones__second,
  .trv-header__phone .header-phones__second:link,
  .trv-header__phone .header-phones__second:visited,
  .trv-header__phone .header-phones__second:hover {
    display: block !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6E7276 !important;
    margin: 0 0 0 20px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  .trv-header__request {
    display: none !important;
  }

  .trv-header__menu-burger {
    display: block !important;
    flex: 0 0 auto !important;
    order: 3 !important;
    margin: 0 !important;
  }

  /* Второй бургер у нижнего меню — скрыть */
  .trv-header__bottom-line .trv-header__menu-burger {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  .trv-header__logo {
    max-width: 96px !important;
  }

  .trv-header__logo img {
    max-height: 28px !important;
  }

  .trv-header__phone .header-phones__main,
  .trv-header__phone .header-phones__main span,
  .trv-header__phone .header-phones__second {
    font-size: 14px !important;
  }

  .trv-topbar .topbar-address {
    font-size: 10px !important;
  }
}


/* ===== PHONES FIX 20260910k ===== */
.header-phones {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.header-phones__main {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  color: #1D1D1B !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.header-phones__main img.header-phones__icon,
.header-phones__icon {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 16px !important;
  position: static !important;
  float: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.header-phones__second {
  color: #6E7276 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  margin-left: 24px !important;
  line-height: 1.2 !important;
}

.header-phones__free {
  display: inline !important;
}

.trv-header__phone .header-phones a::before,
.trv-header__phone .header-phones a::after {
  content: none !important;
  display: none !important;
}

@media screen and (max-width: 991px) {
  .trv-header__top-line {
    gap: 12px !important;
    padding: 20px 0 !important;
  }

  .trv-header__phone-address {
    margin-left: 4px !important;
    padding-left: 8px !important;
  }

  .header-phones {
    gap: 1px !important;
  }

  .trv-header__phone .header-phones a,
  .trv-header__phone .header-phones a:link,
  .trv-header__phone .header-phones a:visited,
  .trv-header__phone .header-phones a:hover {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: 1.2 !important;
  }

  .trv-header__phone .header-phones__main,
  .trv-header__phone .header-phones__main:link,
  .trv-header__phone .header-phones__main:visited,
  .trv-header__phone .header-phones__main:hover,
  .header-phones__main {
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1D1D1B !important;
  }

  .trv-header__phone .header-phones__main span {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1D1D1B !important;
  }

  .header-phones__main img.header-phones__icon,
  .header-phones__icon {
    width: 14px !important;
    height: 14px !important;
    flex-basis: 14px !important;
  }

  .trv-header__phone .header-phones__second,
  .trv-header__phone .header-phones__second:link,
  .trv-header__phone .header-phones__second:visited,
  .trv-header__phone .header-phones__second:hover,
  .header-phones__second {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6E7276 !important;
    margin: 0 0 0 20px !important;
  }

  /* только на мобилке/планшете убираем хвост */
  .header-phones__free {
    display: none !important;
  }
}

/* ========== HEADER SITE SEARCH (mockup) ========== */
.trv-header__search {
  display: flex;
  align-items: center;
  flex: 1 1 420px;
  max-width: 560px;
  min-width: 240px;
  margin: 0 20px;
  order: 3;
  margin-left: auto;
}

.trv-header__phone-address {
  order: 4;
  margin-left: 0 !important;
}

.trv-header__request {
  order: 5;
}

.trv-header__menu-burger {
  order: 6;
}

.bot-header-search {
  width: 100%;
}

.bot-header-search__field {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 44px;
  padding: 4px 4px 4px 0;
  border: 1px solid #d9dce0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bot-header-search__field:focus-within {
  border-color: #c8ccd0;
  box-shadow: 0 0 0 3px rgba(231, 48, 57, 0.12);
}

.bot-header-search__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  color: #9aa0a6;
  pointer-events: none;
}

.bot-header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 8px 0 0;
  color: #1d1d1b;
  font-size: 15px;
  line-height: 1.2;
}

.bot-header-search__input::placeholder {
  color: #9aa0a6;
}

.bot-header-search__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 96px;
  height: auto;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #e73039;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bot-header-search__btn:hover,
.bot-header-search__btn:focus {
  background: #d0212a;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Search results page */
.com-finder.finder,
.bot-search-page .com-finder,
.bot-search-page .search {
  max-width: none;
  clear: both;
  float: none !important;
  width: 100%;
  padding-bottom: 32px;
}

.com-finder > h1 {
  margin: 0 0 20px;
  color: #1d1d1b;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.com-finder__form {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.com-finder__form .form-inline,
.com-finder__form .input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.com-finder__form label {
  margin: 0;
  color: #6e7276;
  font-size: 14px;
  font-weight: 600;
}

.com-finder__form .form-control,
.com-finder__form input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d9dce0;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1b;
  font-size: 15px;
  box-shadow: none;
}

.com-finder__form .btn,
.com-finder__form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #e73039;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.com-finder__form .btn:hover,
.com-finder__form button[type="submit"]:hover {
  background: #d0212a;
}

.com-finder__explained {
  margin: 0 0 16px;
  color: #6e7276;
  font-size: 14px;
  line-height: 1.45;
}

.com-finder__explained a {
  color: #e73039;
  font-weight: 600;
  text-decoration: none;
}

.com-finder__explained a:hover {
  text-decoration: underline;
}

.com-finder__results-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  float: none !important;
  clear: both;
  max-width: 100%;
}

.com-finder .result__item {
  list-style: none !important;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(29, 29, 27, 0.05);
  float: none !important;
  clear: both;
  max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.com-finder .result__item:hover {
  border-color: #d5d8dc;
  box-shadow: 0 8px 24px rgba(29, 29, 27, 0.08);
}

.com-finder .result__title {
  margin: 0 0 8px;
  float: none !important;
  clear: both;
  max-width: 100%;
}

.com-finder .result__title-link {
  display: inline;
  color: #1d1d1b;
  text-decoration: none;
}

.com-finder .result__title-text {
  color: #1d1d1b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.com-finder .result__item:hover .result__title-text {
  color: #e73039;
}

.com-finder .result__description {
  margin: 0;
  color: #4e5459;
  font-size: 14px;
  line-height: 1.55;
  float: none !important;
  clear: both;
  max-width: 100%;
}

.com-finder .result__date {
  display: inline-block;
  margin: 0 8px 0 0;
  color: #9aa0a6;
  font-size: 13px;
  font-weight: 600;
}

.com-finder .result__description mark,
.com-finder .result__title-text mark,
.com-finder mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #fecc0f;
  color: inherit;
}

.com-finder .pagination,
.com-finder__pagination,
.com-finder__results > p,
#search-results > p {
  margin: 16px 0 0;
  color: #6e7276;
  font-size: 13px;
}

.com-finder .result__taxonomy,
.com-finder .result__title-url {
  display: none !important;
}

@media (max-width: 767px) {
  .com-finder > h1 {
    font-size: 26px;
  }

  .com-finder .result__item {
    padding: 14px 16px;
  }

  .com-finder .result__title-text {
    font-size: 16px;
  }
}


/* Search page: less chrome */
.com-finder__explained,
.com-finder__suggested-query,
#search-query-explained {
  display: none !important;
}

.com-finder__form label[for="q"],
.com-finder__search-legend,
.com-finder__form .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.com-finder__form {
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f7f8f9;
}

.com-finder__form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.com-finder__form .form-inline,
.com-finder__form .input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #d9dce0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.com-finder__form .form-control,
.com-finder__form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  font-size: 15px;
}

.com-finder__form .btn,
.com-finder__form button[type="submit"] {
  flex: 0 0 auto;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #e73039;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}

.com-finder__form .btn .icon-search,
.com-finder__form button .icon-search {
  display: none;
}

/*
  Тема coraltravel: .trv-page-content--empty { height:0 }
  Контент (поиск/статьи) при этом рисуется «поверх», а форма/подвал
  стартуют сразу под шапкой и перекрывают блок. Чиним.
*/
.trv-page-content.trv-page-content--empty:has(.com-finder),
.trv-page-content.trv-page-content--empty:has(.item-page),
.trv-page-content.trv-page-content--empty:has(.blog),
.trv-page-content.trv-page-content--empty:has(.bot-breadcrumbs),
.trv-page-content.trv-page-content--empty:has(.com-content),
.trv-page-content.trv-page-content--empty:has(#search-results) {
  height: 100% !important;
  min-height: 0 !important;
  padding-top: 0;
  padding-bottom: 40px;
  overflow: visible;
}

#trv-pc.trv-page-content,
.trv-page-content {
  display: flow-root;
  clear: both;
  width: 100%;
  position: relative;
  z-index: 1;
  height: 100%;
}

.lead-form-section,
#lead-form {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  position: relative !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.bot-header-search__toggle {
  display: none;
}

.bot-header-search__panel {
  width: 100%;
}

.bot-header-search__panel-head,
.bot-header-search__close {
  display: none;
}

@media (max-width: 1199px) {
  .trv-header__search {
    max-width: 420px;
    min-width: 200px;
    margin: 0 12px;
  }

  .bot-header-search__btn {
    min-width: 84px;
    padding: 0 16px;
  }
}

/* Mobile: только иконка + всплывающий поиск */
@media (max-width: 991px) {
  .trv-header__top-line {
    position: relative;
  }

  .trv-header__search {
    order: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 4px 0 auto !important;
    position: static;
    z-index: 40;
  }

  .trv-header__phone-address {
    order: 2 !important;
    margin-left: 4px !important;
  }

  .trv-header__menu-burger {
    order: 4 !important;
  }

  .bot-header-search {
    width: auto;
  }

  .bot-header-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1d1d1b;
    cursor: pointer;
  }

  .bot-header-search__toggle:hover,
  .bot-header-search__toggle:focus {
    background: rgba(0, 0, 0, 0.05);
    color: #e73039;
  }

  .bot-header-search.is-open .bot-header-search__toggle {
    color: #e73039;
    background: rgba(231, 48, 57, 0.08);
  }

  .bot-header-search__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 50;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(29, 29, 27, 0.16);
  }

  .bot-header-search.is-open .bot-header-search__panel {
    display: block;
  }

  .bot-header-search__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

  .bot-header-search__panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #6e7276;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .bot-header-search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6e7276;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .bot-header-search__field {
    height: 44px;
  }

  .bot-header-search__btn {
    min-width: 84px;
    padding: 0 16px;
    font-size: 14px;
  }
}

