
.text-container p, .text-container li {
  font-weight: 400;
  padding-bottom: 10px;
}
.text-container h2,
.text-container h3,
.text-container h4,
.text-container h5,
.text-container h6 {
  margin-bottom: 20px;
}

.text-container ol, .text-container  ul {
  padding-bottom: 6px;
}

.text-container  li {
  padding-bottom: 12px;
  position: relative;
  padding-left: 20px;
  list-style-type: none;
}

.text-container li::before {
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 7px;
  border-radius: 50%;
  background-color: #a38c73;
  content: "";
}

.text-container a {
  color: #a38c73 !important;
}

.text-container iframe {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}
.header__popup-location span {
  padding-left: 15px;
}
.header__popup-location {
  gap: 10px;
  justify-content: space-between;
}
span.header__popup-location--name {

}
@media (max-width: 1919px) {
    .header__popup._projects {
        min-width: 620px;
    }
}
.agencies-modal__inner .ps__rail-x,
.agencies-modal__inner .ps__rail-y{
  display: none !important;
  position: relative !important;
}
/* .agencies-modal__inner {
  overflow: auto !important;
} */
.header__phone .phone-number::after {
  display: none;
}
.header__phone--links {
  display: flex;
  flex-direction: column;
}
.header__phone .phone-number {
  font-size: 18px;
}
.header__phone .phone-number span{
  font-size: 18px;
  font-weight: 600;
}
.menu__phone {
  align-items: flex-start;
}
.menu__phone--link {
  display: flex;
  flex-direction: column;
}
.menu__phone--links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menu__phone--link span{
  color: #fff;
  font-size: 12px;
  font-weight: 300;
}
.menu__phone .phone-number::after {
  display: none;
}
.menu__phone .phone-number {
  font-size: 18px;
}
.menu__phone .phone-number span{
  font-weight: 600;
  font-size: 18px;
}
.header__phone--links span {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
}
header._glina .header__phone--links span,
header._glina .header__phone--links span{
  color: #a38c73;
}
@media (max-width: 1279px) {
    .header__phone--links {
        display: none;
    }
}

.contacts-body__accordeon-item._show .contacts-body__accordeon-head:after {
  display: none;
}
.contacts-body__accordeon-head:after {
  display: none;
}
.contacts-body__accordeon-head--svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Первая иконка (минус) - показана по умолчанию */
.contacts-body__accordeon-head--svg svg:first-of-type {
  display: none;
}

/* Вторая иконка (плюс) - скрыта по умолчанию */
.contacts-body__accordeon-head--svg svg:last-of-type {
  display: block;
}

/* Когда у родителя есть класс _show */
.contacts-body__accordeon-item._show .contacts-body__accordeon-head--svg svg:first-of-type {
  display: block;
}

.contacts-body__accordeon-item._show .contacts-body__accordeon-head--svg svg:last-of-type {
  display: none;
}

.region-wrapper {
  position: relative;
  cursor: pointer;
  width: fit-content;
}

.region-select {
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  position: relative;
  background-color: transparent;
  color: #e1d7c8;
  font-family: "Montserrat";
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  max-width: fit-content;
  cursor: pointer;
}
.region-wrapper::after {
    content: "";
    display: inline-flex;
    background-image: url(/self-assets/svg/arrow-glina.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    object-fit: contain;
    transition: all .3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(-100%, -50%) rotate(-90deg);
    cursor: pointer;
    pointer-events: none;
  z-index: 10; /* Поднимаем над другими элементами */
}

.agencies-modal__inner .ps__rail-x,
.agencies-modal__inner .ps__rail-y{
  display: none !important;
  position: relative !important;
}

@media (max-width: 767px) {
    .contacts-body__top {
      display: flex; 
      margin-bottom: 40px; 
    }
}

.flat-card__operation {
  font-family: "Montserrat";
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1;
  padding: 9px 10px;
  border-radius: 40px;
}
.flat-card__operation--sale {
  color: rgba(66, 67, 69, 1);
  background-color: rgba(163, 140, 115, 1);
}
.flat-card__operation--rent {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(66, 67, 69, 1);
}
.flat-card__info--comm {
  gap: 30px;
  justify-content: flex-start;
}

.choose-body__cards {
grid-auto-rows: 1fr;
}
.flat-card-gift {
  min-height: 767px;
}

.header__popup-info {
  margin-right: initial;
  width: 100%;
}
.header__popup-head {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

.header__popup-location span:before {
  width: 6px;
  height: 6px;
  top: 50%;

}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #a38c73;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease;
    transform: translateY(20px);
}

.scroll-to-top._visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #8d7760;
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 24px;
    height: 25px;
}

/* Адаптив */
@media (max-width: 767px) {
    .scroll-to-top {
      bottom: 16px;
      right: 16px;
    }
}

.project-features__card._active .project-features__card-tooltip{
  opacity: 1;
  visibility: visible;
}

/* Основной попап - без скролла, с border-radius */
.header__popup._projects {
    overflow: hidden;
    border-radius: 20px;
}

/* Обертка со скроллом */
.header__popup-scroll {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Кастомный скроллбар для Firefox */
    scrollbar-width: thin;
    scrollbar-color: #a38c73 transparent;
}

/* Webkit scrollbar стилизация */
.header__popup-scroll::-webkit-scrollbar {
    width: 6px;
}

.header__popup-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.header__popup-scroll::-webkit-scrollbar-thumb {
    background: #a38c73;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.header__popup-scroll::-webkit-scrollbar-thumb:hover {
    background: #8d7760;
}

.header__popup-location {
  gap: 4px;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
}
.header__popup-location--value::before {
  display: none;
}
.header__popup-location--value {
  font-size: 10px !important;
}
.header__popup-location--value {
  opacity: 0.6;
}
.region-select {
  max-width: none;
}
.region-wrapper {
  width: 100%;
}

/* Стили для кнопки агентского кабинета */
#MacroCabinetBtn button {
  background: #a38c73 !important;
  color: #fff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 56px !important;
  border: 1px solid #a38c73 !important;
  border-radius: 50px !important;
  height: 60px !important;
  width: max-content !important;
  font-size: 14px !important;
  line-height: 17px !important;
  font-weight: 500 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
  position: relative !important;
  -webkit-transition: all 0.2s ease-in-out !important;
  -moz-transition: all 0.2s ease-in-out !important;
  -ms-transition: all 0.2s ease-in-out !important;
  -o-transition: all 0.2s ease-in-out !important;
  transition: all 0.2s ease-in-out !important;
  outline: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
}

#MacroCabinetBtn button:hover {
  background: #8f7a63 !important;
  border-color: #8f7a63 !important;
  transform: translateY(-1px) !important;
}

/* Адаптивные стили */
@media (max-width: 1919px) {
  #MacroCabinetBtn button {
      padding: 0 25px !important;
      height: 52px !important;
  }
}

@media (max-width: 1279px) {
  #MacroCabinetBtn button {
      padding: 0 29px !important;
      height: 48px !important;
      font-size: 13px !important;
      line-height: 16px !important;
  }
}

#MacroCabinetBtn {
  margin-bottom: 0px !important;
  margin-top: 0px !important;
}
