/* Compatibility/enhancement layer extracted from the former tail of style.css.
   Kept separate so base styles and later targeted adjustments are no longer interleaved. */

/* Hero background video */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* Transparent header over the hero video, solid on scroll */
.header {
  transition: background-color .3s ease, box-shadow .3s ease
}

.header__logo-icon_white {
  display: none
}

body.has-hero-header .wrapper {
  padding-top: 0
}

body.has-hero-header .header {
  background-color: transparent;
  box-shadow: none
}

body.has-hero-header .header:not(.header--scrolled) .header__logo-icon_dark {
  display: none
}

body.has-hero-header .header:not(.header--scrolled) .header__logo-icon_white {
  display: block
}

body.has-hero-header .header:not(.header--scrolled) .header__burger span {
  background-color: #fff
}

body.has-hero-header .header:not(.header--scrolled) .header__mobile .header__nav-link,
body.has-hero-header .header:not(.header--scrolled) .header__mobile .header__phone,
body.has-hero-header .header:not(.header--scrolled) .header__mobile .header__lang-toggle {
  color: #fff
}

body.has-hero-header .header.header--scrolled {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08)
}

body.has-hero-header .header.header--scrolled .header__burger span {
  background-color: #153D40
}

.header.menu-open .header__burger span {
  background: #153D40 !important
}

/* Mobile bottom tab bar */
.tabbar {
  display: none
}

@media (max-width: 61.99875em) {
  :root {
    --tabbar-height: calc(60px + env(safe-area-inset-bottom))
  }

  .wrapper {
    padding-bottom: var(--tabbar-height)
  }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    background-color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }

  .tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    background: none;
    border: none;
    color: #153D40;
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .02em;
    transition: color .2s ease;
  }

  .tabbar__item:hover {
    color: #A58B64
  }

  .tabbar__icon {
    display: inline-flex;
    width: 22px;
    height: 22px
  }

  .tabbar__icon svg {
    width: 100%;
    height: 100%
  }
}

@media (max-width: 29.99875em) {
  .tabbar {
    padding-left: 2px;
    padding-right: 2px
  }

  .tabbar__item {
    font-size: 9px
  }

  .tabbar__icon {
    width: 20px;
    height: 20px
  }
}

body:has(.header.menu-open) .tabbar {
  display: none
}

.property-template-default .stats p,
.property-template-default .listing-about__price-label p {
  color: #fff !important;
}


.hero__subtitle {
    display: flex;
    gap: 20px;
}

.hero__subtitle-left img {
    width: 150px;

}

.hero__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.hero__star {
    width: 18px;
    height: 18px;
    fill: #A58B64;
} 

/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ И ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

.listing-hero__thumb {
  width: 64px;
}

.listing-hero__meta-item + .listing-hero__meta-item:before {
  content: "·";
}

.catalog-filter__action .button--reset {
  margin-top: 10px;
}

/* Global button geometry now lives in assets/css/style.css. */

/* ==========================================================================
   3. ГЛАВНАЯ СТРАНИЦА: HERO SECTION & BEIJES (HERO PILLS)
   ========================================================================== */
/* Таблетки / Бейджи (Pills) */
.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0 25px 0;
}

.hero-pill {
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 18px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

/* Кнопки Hero в стиле Apple Glass */
.home .hero__actions .button,
.home .hero__actions a,
.page-template-home .hero__actions .button,
.page-template-home .hero__actions a {
  background-color: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(165, 139, 100, 0.6);
  border-radius: 50px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.home .hero__actions .button:hover,
.home .hero__actions a:hover,
.page-template-home .hero__actions .button:hover,
.page-template-home .hero__actions a:hover {
  background-color: #a58b64;
  color: #000000;
}

/* Кнопки Hero (акцентные) */
.hero-section .btn,
.hero .btn-primary {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 40px;
  background-color: #A58B64;
  color: #FFFFFF;
  border-radius: 30px;
  border: 1px solid #A58B64;
  box-shadow: 0 6px 20px rgba(165, 139, 100, 0.3);
  transition: all 0.3s ease;
}

.hero-section .btn:hover,
.hero .btn-primary:hover {
  background-color: #8C734D;
  border-color: #8C734D;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(165, 139, 100, 0.4);
}

/* ==========================================================================
   4. ДЕСКТОРНЫЕ СТИЛИ (Экраны от 768px / 769px / 992px)
   ========================================================================== */
@media (min-width: 768px) {
  /* Hero Pills */
  .hero-badges {
    flex-direction: row;
    justify-content: center;
  }
  .hero-pill {
    width: auto;
    max-width: none;
    font-size: 14px;
  }

  /* Hero Actions */
  .home .hero__actions .button,
  .home .hero__actions a,
  .page-template-home .hero__actions .button,
  .page-template-home .hero__actions a {
    padding: 16px 36px;
    font-size: 16px;
    min-width: 160px;
  }

  /* About Section */
  .page-template-home .about__image,
  .home .about__image {
    display: block;
    max-width: 100%;
  }

  .page-template-home .about__image img,
  .home .about__image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
  }

  .page-template-home .about__text p,
  .home .about__text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .page-template-home .about__actions--desktop .button,
  .home .about__actions--desktop .button {
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 30px;
    display: inline-block;
  }

  /* Offers Section */
  .page-template-home .offers .section__header,
  .page-template-home .offers .section__eyebrow,
  .page-template-home .offers .section__title,
  .page-template-home .offers .section__subtitle,
  .page-template-home .offers h2,
  .home .offers .section__header,
  .home .offers .section__eyebrow,
  .home .offers .section__title,
  .home .offers .section__subtitle,
  .home .offers h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) {
  /* Фоновое видео Hero */
  .hero video,
  .hero_image video,
  .hero-bg-video {
    object-fit: cover;
    object-position: center 30%;
    height: 100%;
    width: 100%;
  }
}

@media (min-width: 992px) {
  /* Двухколоночный FAQ */
  .faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    align-items: start;
  }
}

/* ==========================================================================
   5. МОБИЛЬНАЯ АДАПТАЦИЯ (Экраны до 767px / 768px)
   ========================================================================== */
.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .7) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center / 28px;
}

@media (max-width: 767px) {
  /* Hero Section Container & Mobile Heights */
  .page-template-home section.hero,
  .page-template-home .hero,
  .home section.hero,
  .home .hero {
    height: 100vh;
    min-height: 100vh;
    max-height: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .page-template-home .hero__video,
  .page-template-home .hero__bg,
  .page-template-home .hero__video-wrapper,
  .page-template-home .hero video,
  .page-template-home .hero iframe,
  .home .hero__video,
  .home .hero__bg,
  .home .hero__video-wrapper,
  .home .hero video,
  .home .hero iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
  }


  .page-template-home .hero__image,
  .page-template-home .hero__video,
  .page-template-home .hero video,
  .home .hero__image,
  .home .hero__video,
  .home .hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    transform: translateY(-50px);
  }

  .page-template-home .hero__container,
  .home .hero__container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 60px;
    box-sizing: border-box;
  }

  .page-template-home .hero__content,
  .home .hero__content {
    margin: 0 auto;
    transform: translateY(10px);
  }

  /* Блок доверия */
  .hero__subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .hero__subtitle-left img,
  .hero__subtitle-left svg {
    height: 20px;
    width: auto;
  }

  .hero__stars img,
  .hero__stars svg {
    height: 10px;
    width: auto;
  }

  .hero__subtitle-right p {
    font-size: 10px;
    line-height: 1.1;
    margin: 0;
    opacity: 0.85;
  }

  /* Заголовок Hero */
  .hero__title h1,
  .hero__title {
    text-transform: none;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.35;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 5px auto;
    word-break: keep-all;
  }

  /* Кнопки Hero */
  .hero__actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .page-template-home .hero__actions .button,
  .page-template-home .hero__actions a,
  .home .hero__actions .button,
  .home .hero__actions a {
    padding: 10px 24px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 30px;
    min-width: 130px;
    height: auto;
  }

  /* About Section Mobile */
  .page-template-home .hide-on-mobile,
  .home .hide-on-mobile {
    display: none;
    height: 0;
    overflow: hidden;
  }

  .page-template-home .about__text p,
  .home .about__text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .page-template-home .about__actions--mobile .button,
  .page-template-home .about__actions--desktop .button,
  .home .about__actions--mobile .button,
  .home .about__actions--desktop .button {
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 14px;
  }

  /* Offers Section Mobile */
  .page-template-home .offers .section__header,
  .page-template-home .offers .section__eyebrow,
  .page-template-home .offers .section__title,
  .page-template-home .offers .section__subtitle,
  .page-template-home .offers h2,
  .page-template-home .offers p,
  .home .offers .section__header,
  .home .offers .section__eyebrow,
  .home .offers .section__title,
  .home .offers .section__subtitle,
  .home .offers h2,
  .home .offers p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
  }

  /* Mobile Tabbar (Нижняя панель навигации) */
  nav.tabbar,
  .tabbar {
    background-color: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #A58B64;
  }

  .tabbar__item {
    position: relative;
  }

  .tabbar__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #A58B64;
    opacity: 0.6;
  }

  .tabbar__item,
  .tabbar__item span,
  .tabbar__item p {
    color: #ffffff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    max-width: 65px;
    margin: 0 auto;
    display: block;
    white-space: normal;
  }
}


/* Small reusable presentation helpers kept out of template markup. */
.icon--flip-x {
  transform: scaleX(-1);
}
.calculator__disclaimer {
  max-width: 1100px;
  margin: 24px auto 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.4;
}
