/*----------------- Real Estate Styles START -----------------*/

:root {
  --re-fs: clamp(14px, 1.5vw, 23px);
  --re-gray: #f2f2f2;
}

body:has(.re-hero) {
  .navbar_hidd {
    display: none;
  }
  
  .navbar_top {
    position: fixed;
  }

  .checkbox-container {
    > input[type="checkbox"]:not(:checked) ~ .checkmark {
      background-color: transparent;
    }
  }
  
  footer {
    margin-top: 0;
  }
}

body:has(.re-hero):not(.header_is_minim) {
  .navbar_top {
    background: transparent;
    color: #fff;
  }
  
  .navbar-brand {
    color: inherit !important;
  }
  
  .nav-link:not(:hover) {
    color: inherit !important;
  }
  
  .search-head-link:not(:hover) {
    border-color: #fff;
    color: #fff;
    filter: brightness(0) invert(1);
  }
  
  .btn_hd_calc:not(:hover) {
    border-color: #fff !important;
    color: #fff !important;
  }
  
  .navbar-toggler:not(:hover) {
    border-color: #fff;
    color: #fff;
    
    .nav-icon span {
      background-color: #fff;
    }
  }
}

/* Меню шапки — якоря на блоки страницы (чанк real_estate_nav.tpl) и бургер с разделами сайта.
   От 1366px якоря стоят в шапке, а бургер справа от «заявки» открывает разделы сайта. На 769–1365px
   8 пунктов в строку не помещаются: якоря уходят в бургер, над разделами сайта, как на телефоне */
body:has(.re-hero) {
  #navbarCollapse_top .navbar-nav .nav-link {
    /* 8px на 1366px → 20px (как на всём сайте) к 1700px: с бургером справа иначе меню подходит к логотипу вплотную */
    padding: 0 clamp(8px, calc((100vw - 1366px) / 28 + 8px), 20px);
  }
  
  /* main.js прокручивает к блоку с отступом 80px под шапку и затем ставит на блок фокус —
     без scroll-margin браузер при фокусе доводит высокий блок вплотную к верху окна */
  main > section[id] {
    scroll-margin-top: 80px;
  }
  
  /* бургер на этой странице есть на всех ширинах; на телефоне он и его панель штатные, шире — приводим к их виду */
  @media (min-width: 769px) {
    /* бургер как на телефоне: три полоски из span (белые на первом экране — правило выше) вместо старой картинки menu.svg */
    .navbar .navbar_toggler_open {
      display: block !important;
      width: 38px;
      height: 25px;
      margin-right: 0;
      padding: 4px 12px;
      border: 0;
    }
    
    .navbar .navbar_toggler_open:before,
    .navbar .navbar_toggler_open:after {
      display: none;
    }
    
    .navbar .navbar_toggler_open .nav-icon {
      display: block;
      position: relative;
      width: 18px;
      height: 12px;
    }
    
    .navbar .navbar_toggler_open .nav-icon span {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 1.71px;
      background-color: #000;
      transition: .25s ease-in-out;
    }
    
    .navbar .navbar_toggler_open .nav-icon span:nth-child(2) {
      top: 5.13px;
    }
    
    .navbar .navbar_toggler_open .nav-icon span:nth-child(3) {
      top: 10.26px;
    }
    
    .navbar .navbar_toggler_open:hover .nav-icon span {
      background-color: #ED1430;
    }
    
    /* панель бургера: на этих ширинах у сайта остались старые стили (пункты по 70px) — приводим к виду телефона */
    .navbar-collapse.right {
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(24px);
    }
    
    /* кнопка «заявка» — сразу под пунктами, а не внизу панели */
    .navbar-collapse.right .navbar-collapse-inn {
      align-content: flex-start;
    }
    
    .navbar_top .navbar-collapse.right .navbar-nav {
      width: 100%;
      margin: 0 0 40px;
      padding: 0;
      gap: 0;
      transform: none;
    }
    
    .navbar_top .navbar-collapse.right .navbar-nav .nav-link {
      margin: 0;
      padding: 0;
      font-size: 34px;
      line-height: 1.12;
      white-space: nowrap;
    }
    
    .navbar-collapse.right .navbar-nav-menu .nav-item {
      margin-bottom: 10px;
    }
  }
  
  @media (min-width: 769px) and (max-width: 1365px) {
    #navbarCollapse_top {
      display: none !important;
    }
    
    .navbar_top .js__search_head_link {
      margin-left: auto;
    }
  }
  
  /* якоря уже в шапке — в бургере остаются только разделы сайта */
  @media (min-width: 1366px) {
    .navbar-collapse.right .re-nav-page {
      display: none;
    }
  }
  
  /* в бургере два меню: сверху якоря страницы, под линией — разделы сайта, мельче */
  @media (max-width: 1365px) {
    .navbar_top .navbar-collapse.right .re-nav-page {
      margin-bottom: 25px;
    }
    
    .navbar_top .navbar-collapse.right .navbar-nav-menu:not(.re-nav-page) {
      padding-top: 25px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar_top .navbar-collapse.right .navbar-nav-menu:not(.re-nav-page) .nav-link {
      font-size: 23px;
      line-height: 1.3;
    }
    
    .navbar-collapse.right .navbar-nav-menu:not(.re-nav-page) .nav-item {
      margin-bottom: 8px;
    }
  }
}

main:has(.re-hero) {
  max-width: none;
  margin: 0;
  font-size: var(--re-fs);
  line-height: 1.43478;
  font-weight: 500;
  
  @media (max-width: 991px) {
    font-weight: 400;
  }
  
  .order-btn:after {
    translate: 0 1px;
  }
}

/*----------------------------*/

.re-h3 {
  font-size: clamp(18px, 3vw, 48px);
  font-weight: inherit;
  line-height: 1.2;
}

.re-h2 {
  margin-bottom: 60px;
  font-size: clamp(24px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.1;
  
  @media (max-width: 991px) {
    margin-bottom: 35px;
    line-height: 1.20833;
    letter-spacing: -0.01em;
  }
}

.re-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.re-subtitle {
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.56667;
  
  @media (max-width: 991px) {
    line-height: 1.38889;
    letter-spacing: -0.01em;
  }
}

.re-hero {
  min-height: 719px;
  padding: 187px 0 100px;
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  
  @media (max-width: 991px) {
    min-height: 0;
    padding: 90px 0 60px;
  }
}

.re-hero__content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-right: 360px;
  position: relative;
  z-index: 1;
  
  @media (max-width: 991px) {
    gap: 28px;
    padding-right: 0;
  }
}

.re-hero__title {
  margin: 0;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.05714;
  font-weight: normal;
  color: inherit;
  
  @media (max-width: 991px) {
    line-height: 1;
    letter-spacing: -0.01em;
  }
}

.re-hero__desc {
  max-width: 740px;
  font-weight: 500;
  font-size: var(--re-fs);
  line-height: 1.43478;
  
  @media (max-width: 991px) {
    font-weight: 400;
  }
}

/* текст приходит из introtext: визуальный редактор оборачивает его в <p> */
.re-hero__desc p {
  margin: 0 0 0.6em;
}

.re-hero__desc p:last-child {
  margin-bottom: 0;
}

.re-hero__btn {
  max-width: 356px;
  margin-top: 28px;
  padding-inline: 16px;
  white-space: nowrap;
  background: #ed1430;
  transition: 0.3s;
  
  &:hover {
    background: #b40000;
  }
  
  @media (max-width: 991px) {
    margin-top: 2px;
  }
  
  @media (max-width: 768px) {
    max-width: none;
  }
}

.re-hero__rate {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  z-index: 2;
  width: 100%;
  max-width: 339px;
  padding: 14px 23px 25px;
  right: 0;
  top: 213px;
  background: #ed1430;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35294;
  color: #fff;
  overflow: hidden;
  
  @media (max-width: 991px) {
    flex-direction: row;
    gap: 15px;
    width: auto;
    max-width: 357px;
    margin-left: -2.4rem;
    margin-bottom: 25px;
    padding: 20px 18px 23px;
    font-size: 12px;
    position: relative;
    right: auto;
    top: auto;
  }
  
  @media (max-width: 768px) {
    margin-left: -18px;
  }
  
  @media (max-width: 575px) {
    max-width: none;
  }
}

.re-hero__rate-num {
  font-weight: normal;
  font-size: 100px;
  line-height: 1;
  letter-spacing: -0.06em;
  
  @media (max-width: 991px) {
    font-size: 70px;
  }
}

.re-hero__rate-desc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  
  @media (max-width: 991px) {
    padding-top: 10px;
  }
  
  small {
    max-width: 60px;
    position: absolute;
    left: 140px;
    top: 27px;
    font-size: 12px;
    line-height: 1.33333;
    
    @media (max-width: 991px) {
      max-width: none;
      position: static;
      opacity: 0.75;
    }
  }
  
  p {
    max-width: 240px;
    padding-left: 6px;
    margin: 0;
    
    @media (max-width: 991px) {
      max-width: none;
      padding-left: 0;
    }
  }
}

.re-hero__video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  
  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  }
  
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }
}

/*----------------------------*/

.re-sites {
  padding: 110px 0 130px;
  
  @media (max-width: 991px) {
    padding: 50px 0 55px;
  }
}

.re-sites__title {
  margin-bottom: 60px;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.30556;
  letter-spacing: 0.01em;
  
  @media (max-width: 991px) {
    margin-bottom: 34px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
}

.re-sites__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  
  @media (max-width: 991px) {
    gap: 35px;
  }
}

.re-site {
  display: grid;
  grid-template-columns: 1fr 485px;
  gap: 32px;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr 300px;
    gap: 15px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.re-site__img {
  position: relative;
  aspect-ratio: 1003 / 566;
  background: #ccc;
  overflow: hidden;
  
  img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.re-site__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  
  @media (max-width: 991px) {
    gap: 5px;
  }
  
  h3 {
    margin: 0;
  }
}

/*----------------------------*/

.re-tasks {
  padding: 100px 0 110px;
  
  @media (max-width: 991px) {
    padding: 50px 0 55px;
  }
}

.re-tasks__title {
  max-width: 1164px;
}

.re-tasks__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 35px;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.re-task {
  display: flex;
  gap: 20px;
}

.re-task__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  
  @media (max-width: 991px) {
    gap: 5px;
  }
  
  .re-text {
    max-width: 625px;
    color: #303035;
  }
}

/*----------------------------*/

.re-cases {
  padding: 100px 0 130px;
  
  @media (max-width: 991px) {
    padding: 50px 0 60px;
  }
}

.re-cases__inner {
  position: relative;
  
  @media (max-width: 1279px) {
    padding-bottom: 120px;
  }
  
  @media (max-width: 768px) {
    padding-bottom: 90px;
  }
}

.re-cases__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
  
  @media (max-width: 991px) {
    gap: 0;
    margin-bottom: 35px;
  }
}

.re-cases__title {
  margin: 0;
}

.re-cases__more {
  margin: 0;

  /* Совмещаем верх кнопки с верхом букв первой строки, учитывая метрики заголовка. */
  @media (min-width: 1280px) {
    transform: translateY(min(1vw, 14px));
  }
  gap: 13px;
  padding-inline: 49px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #1c1c1c !important;
  outline: none !important;
  transition: 0.3s;
  white-space: nowrap;
  
  &:after {
    filter: invert(1);
    transition: 0.3s;
  }
  
  &:hover {
    border-color: transparent;
    background: var(--red);
    color: #fff !important;
    
    &:after {
      filter: none;
    }
  }

  @media (max-width: 1279px) {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
  }
}

.re-cases__list {
  display: flex;
  flex-direction: column;
  gap: 42px;
  
  @media (max-width: 991px) {
    gap: 35px;
  }
}

.re-case__link {
  display: block;
  width: fit-content;
  margin-bottom: 15px;
  padding: 1px 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  opacity: 0.4;
  transition: 0.3s;
  text-decoration: none !important;
  color: var(--black);
  
  @media (max-width: 991px) {
    margin-bottom: 5px;
  }
  
  &:hover {
    opacity: 1;
    color: var(--red);
  }
}

.re-case__box {
  display: grid;
  grid-template-columns: 1fr 483px;
  gap: 34px;
  text-decoration: none !important;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr 300px;
    gap: 15px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
  
  &:hover {
    .re-case__media {
      img, video {
        scale: 1.05; 
      }
    }
  }
}

.re-case__media {
  position: relative;
  aspect-ratio: 1003 / 566;
  background: #ccc;
  overflow: hidden;
  
  img, video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    pointer-events: none;
  }
}

.re-case__desc {
  margin-top: auto;
  color: #303035;

  @media (min-width: 769px) {
    margin-bottom: -.264em;
  }
}

/*----------------------------*/

.re-offer {
  margin-bottom: 100px;
  padding: 100px 0;
  position: relative;
  background: var(--re-gray);
  
  @media (max-width: 991px) {
    margin-bottom: 50px;
    padding: 0 0 50px;
  }
}

.re-offer__inner {
  display: grid;
  grid-template-columns: 48% 1fr;
  align-items: center;
  gap: 45px;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.re-offer__img {
  display: flex;
  translate: 0 16px;
  
  @media (max-width: 991px) {
    margin-top: -24px;
    translate: none;
  }
  
  img {
    aspect-ratio: 1466 / 755;
    max-width: 100%;
  }
}

.re-offer__title {
  margin-bottom: 40px;
  font-size: clamp(24px, 3vw, 48px);
  
  @media (max-width: 991px) {
    margin-bottom: 10px;
  }
}

.re-offer__desc {
  color: #303035;
}

.re-offer__form {
  margin-top: 40px;
  padding: 0;
  
  @media (max-width: 991px) {
    margin-top: 30px;
  }
  
  .submit-button {
    white-space: nowrap;
    
    i {
      flex-shrink: 0;
    }
  }
  
  .after_button {
    @media (max-width: 991px) {
      margin: 10px 0 0;
      font-size: 11px;
    }
    
    .checkbox-text {
      @media (max-width: 991px) {
        max-width: 300px;
      }
    }
  }
}

.re-offer--secondary {
  max-width: 1520px;
  margin: -314px auto 0;
  position: relative;
  
  @media (min-width: 992px) {
    padding: 100px 30px 85px;
  }
  
  .container-fluid {
    max-width: none;
  }
  
  .re-offer__inner {
    @media (min-width: 992px) {
      grid-template-columns: 43.7% 1fr;
    }
  }
  
  .re-offer__img {
    @media (min-width: 992px) {
      aspect-ratio: 1247 / 889;
      translate: 0 -8px;
    }
  }
}

/*----------------------------*/

.re-structure {
  margin-bottom: 120px;
  
  @media (max-width: 991px) {
    margin-bottom: 46px;
  }
}

.re-structure__title {
  max-width: 850px;
  letter-spacing: -0.01em;
  line-height: 1.14286;
  
  @media (max-width: 991px) {
    line-height: 1.20833;
  }
}

.re-structure__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 34px;
  
  @media (max-width: 991px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.re-str-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  
  @media (max-width: 991px) {
    gap: 15px;
  }
}

.re-str-card__img {
  display: flex;
  aspect-ratio: 484 / 272;
  overflow: hidden;
  background: #ccc;
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.re-str-card__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  
  /* заголовок плотнее, а отступ до текста больше на разницу половин интерлиньяжа:
     (1.56667 − 1.1) / 2 и (1.38889 − 1.1) / 2 — видимый зазор между заголовком и текстом прежний */
  .re-subtitle {
    line-height: 1.1;
    margin-bottom: 0.23333em;
    
    @media (max-width: 991px) {
      margin-bottom: 0.14444em;
    }
  }
}

/*----------------------------*/

.re-tempo {
  padding-bottom: 120px;
  
  @media (max-width: 991px) {
    padding-bottom: 55px;
  }
  
  .re-text {
    max-width: 585px;
  }
}

.re-tempo__title {
  max-width: 635px;
}

/*----------------------------*/

.re-work {
  padding: 110px 0 90px;
  background: var(--re-gray);
  
  @media (max-width: 991px) {
    padding: 50px 0 36px;
  }
}

.re-work__title {
  max-width: 765px;
  margin-bottom: 75px;
  padding-bottom: 3px;
  
  @media (max-width: 991px) {
    margin-bottom: 34px;
    padding-bottom: 0;
  }
}

.re-work__group {
  display: grid;
  grid-template-columns: 33% 1fr;
  gap: 16px;
  
  &:last-child {
    .re-accordion__item:last-child {
      border-bottom: none;
    }
  }
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 15px;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
}

.re-work__group-head {
  margin-top: -14px;
  
  @media (max-width: 991px) {
    margin-top: 0;
  }
}

.re-work__group-stage {
  margin-bottom: 4px;
  font-size: clamp(14px, 2vw, 23px);
  line-height: 1.43478;
  color: #87878a;
  
  @media (max-width: 991px) {
    margin-bottom: 7px;
    color: #303040;
  }
}

.re-work__group-title {
  margin: 0;
  color: #e30f24;
}

.re-accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #303035;
  
  @media (max-width: 991px) {
    &:last-child {
      border-bottom: none;
    }
  }
}

.re-accordion__head {
  display: flex;
  justify-content: space-between;
  gap: 20%;
  padding: 31px 0 33px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 23px;
  
  @media (max-width: 991px) {
    gap: 20px;
    padding: 19px 0;
    font-size: 18px;
  }
  
  &:after {
    content: '';
    width: 21px;
    height: 12px;
    filter: brightness(0);
    flex-shrink: 0;
    translate: 0 12px;
    transition: 0.3s;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMSIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDIxIDEyIj48cGF0aCBmaWxsPSIjZWQwMDAwIiBkPSJNMTguNDQuNDRhMS41IDEuNSAwIDEgMSAyLjEyIDIuMTJsLTkgOWExLjUgMS41IDAgMCAxLTIuMTIgMGwtOS05QTEuNSAxLjUgMCAxIDEgMi41Ni40NGw3Ljk0IDcuOTM5eiIvPjwvc3ZnPg==);
  
    @media (max-width: 991px) {
      width: 14px;
      height: 8px;
      translate: 0 10px;
    }
  }
}

/* шаг без текста (заполнен только заголовок): строка без стрелки и без раскрытия */
.re-accordion__head--static {
  cursor: default;
}

.re-accordion__head--static:after {
  display: none;
}

.re-accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s;
}

.re-accordion__content {
  max-width: 900px;
  overflow: hidden;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.58824;
}

/* ответ может прийти из визуального редактора абзацами <p> */
.re-accordion__content p {
  margin: 0 0 0.6em;
}

.re-accordion__content p:last-child {
  margin-bottom: 0;
}

.re-accordion__item.active {
  .re-accordion__head {
    &:after {
      transform: rotate(180deg);
    }
  }
  
  .re-accordion__body {
    grid-template-rows: 1fr;
    margin-top: -20px;
    padding-bottom: 33px;
    
    @media (max-width: 991px) {
      margin-top: -11px;
      padding-bottom: 18px;
    }
  }
}

/*----------------------------*/

.re-cost {
  padding: 110px 0 435px;
  background: #1c1c1c;
  color: #fff;
  
  @media (max-width: 991px) {
    padding: 50px 0 370px;
  }
}

.re-cost__title {
  max-width: 1000px;
  margin-bottom: 20px;
  line-height: 1.14286;
  letter-spacing: -0.015em;
  
  @media (max-width: 991px) {
    margin-bottom: 15px;
    line-height: 1.20833;
    letter-spacing: -0.01em;
  }
}

.re-cost__item {
  display: grid;
  grid-template-columns: 32% 1fr 32%;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 20px 0;
  }
  
  &:last-child {
    border-bottom: none;
  }
  
  @media (max-width: 991px) {
    font-size: 18px;
    line-height: 1.38889;
    letter-spacing: -0.01em;
  }
}

.re-cost__item-desc {
  color: rgba(255, 255, 255, 0.4);
  
  @media (max-width: 991px) {
    font-size: 14px;
    line-height: 1.4;
  }
}

.re-cost__item-val {
  text-align: right;
  white-space: nowrap;
  
  @media (max-width: 991px) {
    margin-top: 5px;
    text-align: left;
  }
}

.re-cost__desc {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(11px, 1.5vw, 17px);
  line-height: 1.58824;
  
  @media (max-width: 991px) {
    margin-top: 15px;
    line-height: 1.4;
  }
}

/*----------------------------*/

.re-faq {
  padding: 100px 0 80px;
  
  @media (max-width: 991px) {
    padding: 50px 0 36px;
  }
}

.re-faq__title {
  margin-bottom: 30px;
  line-height: 1.05714;
  
  @media (max-width: 991px) {
    margin-bottom: 15px;
    line-height: 1.20833;
  }
}

.re-faq__inner {
  max-width: 1003px;
  margin-left: auto;
  
  .re-accordion__item {
    &:last-child {
      border-bottom: none;
    }
  }
}

.ft25_btn {
  @media (max-width: 768px) {
    min-height: 55px;
    font-size: 15px;
    font-weight: 600;
  }
}

/*----------------- Real Estate Styles END -----------------*/


/* ========================================================= */
/* Merged from real-estate-custom.css (new layout developments) */
/* ========================================================= */

/*----------------- Real Estate Styles START -----------------*/

:root {
  --re-fs: clamp(14px, 1.5vw, 23px);
  --re-gray: #f2f2f2;
}

body:has(.re-hero) {
  .navbar_hidd {
    display: none;
  }
  
  .navbar_top {
    position: fixed;
  }
  
  footer {
    margin-top: 0;
  }
}

body:has(.re-hero):not(.header_is_minim) {
  .navbar_top {
    background: transparent;
    color: #fff;
  }
  
  .navbar-brand {
    color: inherit !important;
  }
  
  .nav-link:not(:hover) {
    color: inherit !important;
  }
  
  .search-head-link:not(:hover) {
    border-color: #fff;
    color: #fff;
    filter: brightness(0) invert(1);
  }
  
  .btn_hd_calc:not(:hover) {
    border-color: #fff !important;
    color: #fff !important;
  }
  
  .navbar-toggler:not(:hover) {
    border-color: #fff;
    color: #fff;
    
    .nav-icon span {
      background-color: #fff;
    }
  }
}

main:has(.re-hero) {
  max-width: none;
  margin: 0;
  font-size: var(--re-fs);
  line-height: 1.43478;
  font-weight: 500;
  
  @media (max-width: 991px) {
    font-weight: 400;
  }
  
  .order-btn:after {
    translate: 0 1px;
  }
}

/*----------------------------*/

.re-h3 {
  font-size: clamp(18px, 3vw, 48px);
  font-weight: inherit;
  line-height: 1.2;
}

.re-h2 {
  margin-bottom: 60px;
  font-size: clamp(24px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.1;
  
  @media (max-width: 991px) {
    margin-bottom: 35px;
    line-height: 1.20833;
    letter-spacing: -0.01em;
  }
}

.re-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.re-subtitle {
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.56667;
  
  @media (max-width: 991px) {
    line-height: 1.38889;
    letter-spacing: -0.01em;
  }
}

.re-hero {
  min-height: 719px;
  padding: 187px 0 100px;
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  
  @media (max-width: 991px) {
    min-height: 0;
    padding: 90px 0 60px;
  }
}

.re-hero__content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-right: 360px;
  position: relative;
  z-index: 1;
  
  @media (max-width: 991px) {
    gap: 28px;
    padding-right: 0;
  }
}

.re-hero__title {
  margin: 0;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.05714;
  font-weight: normal;
  color: inherit;
  
  @media (max-width: 991px) {
    line-height: 1;
    letter-spacing: -0.01em;
  }
}

.re-hero__desc {
  max-width: 740px;
  font-weight: 500;
  font-size: var(--re-fs);
  line-height: 1.43478;
  
  @media (max-width: 991px) {
    font-weight: 400;
  }
}

.re-hero__btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  max-width: 742px;
  gap: 10px 30px;
  margin-top: 28px;
  
  @media (max-width: 991px) {
    max-width: none;
    margin-top: 2px;
  }
  
  @media (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.re-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-inline: 16px;
  white-space: nowrap;
  background: #ed1430;
  transition: 0.3s;
  
  &:hover {
    background: #b40000;
  }
  
  @media (max-width: 768px) {
    max-width: none;
    width: 100%;
  }
}

.re-hero__btn--tg {
  gap: 6px;
  min-height: 65px;
  border: 2px solid #fff;
  border-radius: 70px;
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none !important;
  transition: 0.3s;
  
  &:visited {
    color: #fff !important;
  }
  
  &:hover {
    background: #fff;
    color: #000 !important;
  }
  
  @media (max-width: 768px) {
    max-width: none;
    width: 100%;
    min-height: 55px;
  }
}

.re-hero__btn-ico {
  display: inline-flex;
  
  svg {
    width: 16px;
    height: 15px;
    fill: currentColor;
  }
}

.re-hero__rate {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  z-index: 2;
  width: 100%;
  max-width: 339px;
  padding: 14px 23px 25px;
  right: 0;
  top: 213px;
  background: #ed1430;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35294;
  color: #fff;
  overflow: hidden;
  
  @media (max-width: 991px) {
    flex-direction: row;
    gap: 15px;
    width: auto;
    max-width: 357px;
    margin-left: -2.4rem;
    margin-bottom: 25px;
    padding: 20px 18px 23px;
    font-size: 12px;
    position: relative;
    right: auto;
    top: auto;
  }
  
  @media (max-width: 768px) {
    margin-left: -18px;
  }
  
  @media (max-width: 575px) {
    max-width: none;
  }
}

.re-hero__rate-num {
  font-weight: normal;
  font-size: 100px;
  line-height: 1;
  letter-spacing: -0.06em;
  
  @media (max-width: 991px) {
    font-size: 70px;
  }
}

.re-hero__rate-desc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  
  @media (max-width: 991px) {
    padding-top: 10px;
  }
  
  small {
    max-width: 60px;
    position: absolute;
    left: 140px;
    top: 27px;
    font-size: 12px;
    line-height: 1.33333;
    
    @media (max-width: 991px) {
      max-width: none;
      position: static;
      opacity: 0.75;
    }
  }
  
  p {
    max-width: 240px;
    padding-left: 6px;
    margin: 0;
    
    @media (max-width: 991px) {
      max-width: none;
      padding-left: 0;
    }
  }
}

.re-hero__video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  
  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  }
  
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }
}

/*----------------------------*/

.re-sites {
  padding: 110px 0 120px;
  
  @media (max-width: 991px) {
    padding: 50px 0 55px;
  }
}

.re-sites__title {
  margin-bottom: 60px;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.30556;
  letter-spacing: 0.01em;
  
  @media (max-width: 991px) {
    margin-bottom: 34px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
}

.re-sites__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  
  @media (max-width: 991px) {
    gap: 35px;
  }
}

.re-site {
  display: grid;
  grid-template-columns: 1fr 485px;
  gap: 32px;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr 300px;
    gap: 15px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.re-site__img {
  position: relative;
  aspect-ratio: 1003 / 566;
  background: #ccc;
  overflow: hidden;
  
  img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.re-site__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  
  @media (max-width: 991px) {
    gap: 5px;
  }
  
  h3 {
    margin: 0;
  }

  /* Верх заголовка и низ описания выравниваем по видимым границам букв, а не строк */
  @media (min-width: 769px) {
    h3 {
      margin-top: -.232em;
    }

    .re-site__text {
      margin-bottom: -.334em;
    }
  }
}

/*----------------------------*/

.re-tasks {
  padding: 100px 0 110px;
  
  @media (max-width: 991px) {
    padding: 55px 0 55px;
  }
}

.re-tasks__title {
  max-width: 1164px;
}

.re-tasks__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 35px;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.re-task {
  display: flex;
  gap: 20px;
}

.re-task__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  
  @media (max-width: 991px) {
    gap: 5px;
  }
  
  .re-text {
    max-width: 625px;
    color: #303035;
  }
}

/*----------------------------*/

.re-cases {
  padding: 100px 0 130px;
  
  @media (max-width: 991px) {
    padding: 50px 0 60px;
  }
}

.re-cases__inner {
  position: relative;
  
  @media (max-width: 991px) {
    padding-bottom: 120px;
  }
  
  @media (max-width: 768px) {
    padding-bottom: 90px;
  }
}

.re-cases__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
  
  @media (max-width: 991px) {
    gap: 0;
    margin-bottom: 35px;
  }
}

.re-cases__title {
  margin: 0;
}

.re-cases__more {
  margin: 0;

  /* Совмещаем верх кнопки с верхом букв первой строки, учитывая метрики заголовка. */
  @media (min-width: 1280px) {
    transform: translateY(min(1vw, 14px));
  }
  gap: 13px;
  padding-inline: 49px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #1c1c1c !important;
  outline: none !important;
  transition: 0.3s;
  white-space: nowrap;
  
  &:after {
    filter: invert(1);
    transition: 0.3s;
  }
  
  &:hover {
    border-color: transparent;
    background: var(--red);
    color: #fff !important;
    
    &:after {
      filter: none;
    }
  }
  
  @media (max-width: 991px) {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
  }
}

.re-cases__list {
  display: flex;
  flex-direction: column;
  gap: 42px;
  
  @media (max-width: 991px) {
    gap: 35px;
  }
}

.re-case__link {
  display: block;
  width: fit-content;
  margin-bottom: 15px;
  padding: 1px 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  opacity: 0.4;
  transition: 0.3s;
  text-decoration: none !important;
  color: var(--black);
  
  @media (max-width: 991px) {
    margin-bottom: 5px;
  }
  
  &:hover {
    opacity: 1;
    color: var(--red);
  }
}

.re-case__box {
  display: grid;
  grid-template-columns: 1fr 483px;
  gap: 34px;
  text-decoration: none !important;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr 300px;
    gap: 15px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
  
  &:hover {
    .re-case__media {
      img, video {
        scale: 1.05; 
      }
    }
  }
}

.re-case__media {
  position: relative;
  aspect-ratio: 1003 / 566;
  background: #ccc;
  overflow: hidden;
  
  img, video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    pointer-events: none;
  }
}

.re-case__desc {
  margin-top: auto;
  color: #303035;

  @media (min-width: 769px) {
    margin-bottom: -.264em;
  }
}

/*----------------------------*/

.re-offer {
  margin-bottom: 100px;
  padding: 100px 0;
  position: relative;
  background: var(--re-gray);
  
  @media (max-width: 991px) {
    margin-bottom: 50px;
    padding: 0 0 50px;
  }
}

.re-offer__inner {
  display: grid;
  grid-template-columns: 48% 1fr;
  align-items: center;
  gap: 45px;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.re-offer__img {
  display: flex;
  translate: 0 16px;
  
  @media (max-width: 991px) {
    margin-top: -24px;
    translate: none;
  }
  
  img {
    aspect-ratio: 1466 / 755;
    max-width: 100%;
  }
}

.re-offer__title {
  margin-bottom: 40px;
  font-size: clamp(24px, 3vw, 48px);
  
  @media (max-width: 991px) {
    margin-bottom: 10px;
  }
}

.re-offer__desc {
  color: #303035;
}

.re-offer__form {
  margin-top: 40px;
  padding: 0;
  
  @media (max-width: 991px) {
    margin-top: 30px;
  }
  
  .submit-button {
    white-space: nowrap;
    
    i {
      flex-shrink: 0;
    }
  }
  
  .after_button {
    @media (max-width: 991px) {
      margin: 10px 0 0;
      font-size: 11px;
    }
    
    .checkbox-text {
      @media (max-width: 991px) {
        max-width: 300px;
      }
    }
  }
}

.re-offer--secondary {
  max-width: 1520px;
  margin: -314px auto 0;
  position: relative;
  
  @media (min-width: 992px) {
    padding: 100px 30px 85px;
  }
  
  .container-fluid {
    max-width: none;
  }
  
  .re-offer__inner {
    @media (min-width: 992px) {
      grid-template-columns: 43.7% 1fr;
    }
  }
  
  .re-offer__img {
    @media (min-width: 992px) {
      aspect-ratio: 1247 / 889;
      translate: 0 -8px;
    }
  }
}

/*----------------------------*/

.re-structure {
  margin-bottom: 120px;
  
  @media (max-width: 991px) {
    margin-bottom: 46px;
  }

  & + .re-audit {
    margin-top: -10px;

    @media (max-width: 991px) {
      margin-top: 55px;
    }
  }
}

.re-structure__title {
  max-width: 850px;
  letter-spacing: -0.01em;
  line-height: 1.14286;
  
  @media (max-width: 991px) {
    line-height: 1.20833;
  }
}

.re-structure__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 34px;
  
  @media (max-width: 991px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.re-str-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  
  @media (max-width: 991px) {
    gap: 15px;
  }
}

.re-str-card__img {
  display: flex;
  aspect-ratio: 484 / 272;
  overflow: hidden;
  background: #ccc;
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.re-str-card__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/*----------------------------*/

.re-tempo {
  margin-top: 105px;
  padding-bottom: 120px;
  
  @media (max-width: 991px) {
    margin-top: 55px;
    padding-bottom: 55px;
  }
  
  .re-text {
    max-width: 585px;
  }
}

.re-tempo__title {
  max-width: 635px;
}

/*----------------------------*/

.re-work {
  padding: 110px 0 90px;
  background: var(--re-gray);
  
  @media (max-width: 991px) {
    padding: 50px 0 36px;
  }
}

.re-work__title {
  max-width: 765px;
  margin-bottom: 75px;
  padding-bottom: 3px;
  
  @media (max-width: 991px) {
    margin-bottom: 34px;
    padding-bottom: 0;
  }
}

.re-work__group {
  display: grid;
  grid-template-columns: 33% 1fr;
  gap: 16px;
  
  &:last-child {
    .re-accordion__item:last-child {
      border-bottom: none;
    }
  }
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 15px;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
}

.re-work__group-head {
  margin-top: -14px;
  
  @media (max-width: 991px) {
    margin-top: 0;
  }
}

.re-work__group-stage {
  margin-bottom: 4px;
  font-size: clamp(14px, 2vw, 23px);
  line-height: 1.43478;
  color: #87878a;
  
  @media (max-width: 991px) {
    margin-bottom: 7px;
    color: #303040;
  }
}

.re-work__group-title {
  margin: 0;
  color: #e30f24;
}

.re-accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #303035;
  
  @media (max-width: 991px) {
    &:last-child {
      border-bottom: none;
    }
  }
}

.re-accordion__head {
  display: flex;
  justify-content: space-between;
  gap: 20%;
  padding: 31px 0 33px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 23px;
  
  @media (max-width: 991px) {
    gap: 20px;
    padding: 19px 0;
    font-size: 18px;
  }
  
  &:after {
    content: '';
    width: 21px;
    height: 12px;
    filter: brightness(0);
    flex-shrink: 0;
    translate: 0 12px;
    transition: 0.3s;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMSIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDIxIDEyIj48cGF0aCBmaWxsPSIjZWQwMDAwIiBkPSJNMTguNDQuNDRhMS41IDEuNSAwIDEgMSAyLjEyIDIuMTJsLTkgOWExLjUgMS41IDAgMCAxLTIuMTIgMGwtOS05QTEuNSAxLjUgMCAxIDEgMi41Ni40NGw3Ljk0IDcuOTM5eiIvPjwvc3ZnPg==);
  
    @media (max-width: 991px) {
      width: 14px;
      height: 8px;
      translate: 0 10px;
    }
  }
}

.re-accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s;
}

.re-accordion__content {
  max-width: 900px;
  overflow: hidden;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.58824;
}

.re-accordion__item.active {
  .re-accordion__head {
    &:after {
      transform: rotate(180deg);
    }
  }
  
  .re-accordion__body {
    grid-template-rows: 1fr;
    margin-top: -20px;
    padding-bottom: 33px;
    
    @media (max-width: 991px) {
      margin-top: -11px;
      padding-bottom: 18px;
    }
  }
}

/*----------------------------*/

.re-cost {
  padding: 110px 0 435px;
  background: #1c1c1c;
  color: #fff;
  
  @media (max-width: 991px) {
    padding: 50px 0 370px;
  }
}

.re-cost__title {
  max-width: 1000px;
  margin-bottom: 20px;
  line-height: 1.14286;
  letter-spacing: -0.015em;
  
  @media (max-width: 991px) {
    margin-bottom: 15px;
    line-height: 1.20833;
    letter-spacing: -0.01em;
  }
}

.re-cost__item {
  display: grid;
  grid-template-columns: 32% 1fr 32%;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 20px 0;
  }
  
  &:last-child {
    border-bottom: none;
  }
  
  @media (max-width: 991px) {
    font-size: 18px;
    line-height: 1.38889;
    letter-spacing: -0.01em;
  }
}

.re-cost__item-desc {
  color: rgba(255, 255, 255, 0.4);
  
  @media (max-width: 991px) {
    font-size: 14px;
    line-height: 1.4;
  }
}

.re-cost__item-val {
  text-align: right;
  white-space: nowrap;
  
  @media (max-width: 991px) {
    margin-top: 5px;
    text-align: left;
  }
}

.re-cost__desc {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(11px, 1.5vw, 17px);
  line-height: 1.58824;
  
  @media (max-width: 991px) {
    margin-top: 15px;
    line-height: 1.4;
  }
}

/*----------------------------*/

.re-audit {
  padding: 120px 0 373px;
  background: var(--re-gray);
  
  @media (max-width: 991px) {
    padding: 60px 0 55px;
  }
}

.re-audit__content {
  margin-top: -10px;

  @media (max-width: 991px) {
    margin-top: 0;
  }
}

.re-audit__inner {
  display: grid;
  grid-template-columns: minmax(0, 49%) minmax(0, 1fr);
  gap: 60px 32px;
  align-items: start;
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.re-audit__title {
  margin-bottom: 41px;
  
  @media (max-width: 991px) {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.20833;
    letter-spacing: -0.01em;
  }
}

.re-audit__desc {
  max-width: 640px;
  color: #303035;
}

.re-audit__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 32px;
  padding: 0;
  margin-top: 30px;

  .you-know-todo__btn {
    width: 100%;
    max-width: 356px;
  }

  .after_button {
    margin: 15px 0 0;

    @media (max-width: 991px) {
      font-size: 11px;
    }
  }
}

.re-audit__fields {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 13px 32px;
  margin-bottom: 30px;
  
  @media (max-width: 991px) {
    flex-direction: column;
  }
  
  .you-know-todo__input {
    flex: 1;
  }
}

.re-audit__media {
  position: relative;
  width: 100%;
  aspect-ratio: 744 / 468;
  overflow: hidden;
  
  img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 992px) {
  .re-audit__inner {
    align-items: stretch;
  }

  .re-audit__media {
    align-self: start;
  }

  .re-audit__content {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .re-audit__title {
    margin-top: -.232em;
  }

  .re-audit__desc {
    margin-bottom: 30px;
  }

  .re-audit__form {
    margin-top: auto;
    translate: 0 .34em;
  }
}

/*----------------------------*/

.re-tgask {
  position: relative;
}

.re-tgask__panel {
  max-width: none;
  margin: -255px auto 0;
  padding: 105px max(100px, calc((100% - 1320px) / 2)) 120px;
  background: #1c1c1c;
  color: #fff;
  overflow: hidden;
  
  @media (max-width: 991px) {
    margin-top: 0;
    padding: 54px 0 0;
  }
}

@media (min-width: 992px) {
  .re-audit:not(:has(+ .re-tgask)) {
    padding-bottom: 120px;
  }

  .re-tgask:not(.re-audit + .re-tgask) .re-tgask__panel {
    margin-top: 0;
  }
}

.re-tgask__inner {
  display: block;
  position: relative;
}

.re-tgask__content {
  max-width: 55%;
  position: relative;
  z-index: 1;

  @media (max-width: 991px) {
    max-width: none;
  }
}

.re-tgask__title {
  max-width: 620px;
  margin-bottom: 40px;
  
  @media (max-width: 991px) {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -0.01em;
  }
}

.re-tgask__desc {
  max-width: 640px;
  margin-bottom: 45px;

  @media (max-width: 991px) {
    margin-bottom: 35px;
  }
}

.re-tgask__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 356px;
  max-width: 100%;
  min-height: 65px;
  padding: 15px 28px;
  border-radius: 70px;
  background: var(--red);
  color: #fff !important;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none !important;
  transition: 0.3s;
  
  &:visited {
    color: #fff !important;
  }
  
  &:hover {
    background: #b40000;
  }
  
  @media (max-width: 991px) {
    margin-top: 0;
  }
  
  @media (max-width: 768px) {
    width: 100%;
    min-height: 55px;
    padding: 10px 15px;
    font-size: 15px;
  }
}

.re-tgask__btn-ico {
  display: inline-flex;
  
  svg {
    width: 16px;
    height: 15px;
    fill: currentColor;
  }
}

.re-tgask__img {
  position: absolute;
  bottom: -120px;
  right: 18px;
  width: 100%;
  max-width: 35.6%;
  aspect-ratio: 449 / 505;
  overflow: hidden;
  
  @media (max-width: 991px) {
    position: relative;
    bottom: 0;
    right: auto;
    max-width: none;
    margin-top: 35px;
  }
  
  img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }
}

/*----------------------------*/

.re-faq {
  padding: 100px 0 80px;
  
  @media (max-width: 991px) {
    padding: 50px 0 36px;
  }
}

.re-faq__title {
  margin-bottom: 30px;
  line-height: 1.05714;
  
  @media (max-width: 991px) {
    margin-bottom: 15px;
    line-height: 1.20833;
  }
}

.re-faq__inner {
  max-width: 1003px;
  margin-left: auto;
  
  .re-accordion__item {
    &:last-child {
      border-bottom: none;
    }
  }
}

.ft25_btn {
  @media (max-width: 768px) {
    min-height: 55px;
    font-size: 15px;
    font-weight: 600;
  }
}

/*----------------- Real Estate Styles END -----------------*/

/* Нижняя фиксированная навигация лендингов. Граница 1366px совпадает с переходом меню в бургер. */
.re-sticky-nav {
  display: none;
}

@media (min-width: 1366px) {
  body:has(.re-sticky-nav) .navbar .navbar_toggler_open {
    display: none !important;
  }

  body:has(.re-sticky-nav):not(.header_is_minim) .navbar_top {
    padding: 26px 0 20px;
  }

  body:has(.re-sticky-nav):not(.header_is_minim) .navbar_top > .container-fluid {
    top: 0;
  }

  body:has(.re-sticky-nav) #navbarCollapse_top .navbar-nav .nav-link {
    padding-inline: 20px;
  }

  .re-sticky-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(12px, calc(12px + (100vw - 1366px) * .064), 20px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .re-sticky-nav .nav-link {
    padding: 0;
    color: inherit;
    font-size: clamp(16px, calc(16px + (100vw - 1366px) * .006), 18px);
    font-weight: 500;
    line-height: 26px;
    white-space: nowrap;
    text-decoration: none;
  }

  .re-sticky-nav .nav-link:hover {
    color: var(--red);
  }

  .re-sticky-nav {
    display: flex;
    position: fixed;
    inset: auto 20px 20px;
    z-index: 990;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, calc(20px + (100vw - 1366px) * .03), 30px);
    min-height: 74px;
    padding: 15px clamp(30px, calc(30px + (100vw - 1366px) * .096), 60px);
    border-radius: 50px;
    background: #fff;
    color: var(--black);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }

  .re-sticky-nav.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  @media (prefers-reduced-motion: reduce) {
    .re-sticky-nav {
      transition: none;
    }
  }

  .re-sticky-nav__actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
  }

  .re-sticky-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 clamp(24px, calc(24px + (100vw - 1366px) * .024), 32px);
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 50px;
    background: #fff;
    color: var(--black);
    font-family: inherit;
    font-size: clamp(16px, calc(16px + (100vw - 1366px) * .006), 18px);
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
  }

  .re-sticky-nav__button span,
  .re-sticky-nav__button svg {
    display: block;
    flex-shrink: 0;
  }

  .re-sticky-nav__button--offer {
    min-width: 207px;
    border-color: var(--red);
    background: var(--red);
    color: #fff;
  }

  .re-sticky-nav__button--offer svg {
    fill: currentColor;
  }

  .re-sticky-nav__button--tg:hover {
    border-color: var(--red);
    color: var(--red);
  }

  .re-sticky-nav__button--offer:hover {
    border-color: #b40000;
    background: #b40000;
    color: #fff;
  }

  .re-sticky-nav a:focus-visible,
  .re-sticky-nav button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px;
  }

  body:has(.re-sticky-nav.is-visible) .chat-buttons {
    bottom: 114px;
  }

  body:has(.re-sticky-nav) footer .ft25 {
    padding-bottom: 114px;
  }

  body.modal_open .re-sticky-nav {
    visibility: hidden;
  }
}
