/**
 * Стили для Header и Footer темы ricchEstate
 * Основано на макете maintest/index.html
 */

/* Переменные цветов из cards/global.css */
:root {
  --color-primary: #1e2144;
  --color-primary-light: #f2f4ff;
  --color-primary-dark-alt: #1e2144;
  --color-text-primary: #1e2144;
  --color-text-secondary: rgba(30, 33, 68, 0.4);
  --color-white: #ffffff;
}
.property-address span {
    position: absolute;
    left: 44px;
}
/* Предотвращаем горизонтальную прокрутку */
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', sans-serif!important;
}
p, span {
  font-family: 'Helvetica Neue', sans-serif!important;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: 1px;
  background-color: #FFF;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Стили для страниц карточек лотов (как в cards/) */
.single-lot .header {
  position: sticky;
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(30, 33, 68, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.main-nav a {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 19.2px;

  text-decoration: none;
}

/* Стили для страниц карточек лотов */
.single-lot .main-nav a {
  color: var(--color-text-primary);
}



.logo img {
  display: block;
  width: 68.75px;
  height: 50.93px;
}

/* Отладочные стили для меню */
.main-nav {
  min-height: 50px;
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}
a.logo {
  margin-right: 3rem;
}

.main-nav li {
  /* Убираем отладочную рамку */
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 19.2px;
  color: #1e2144;
  text-decoration: none;
  transition: opacity 0.3s;
  padding: 5px 10px;
  display: block;
}

.main-nav a:hover {
  opacity: 0.8;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 30px;
}
li.menu-item a:hover{
  background: #1E2143;
  color: #fff !important;
  border-radius: 1em;

}
.phone-number {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-white);
  text-decoration: none;
}

/* Стили для страниц карточек лотов */
.single-lot .phone-number {
  color: var(--color-text-primary);
}

/* Мобильное меню */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1e2144;
  transition: all 0.3s ease;
}

/* Стили для страниц карточек лотов */
.single-lot .mobile-nav-toggle span {
  background-color: var(--color-text-primary);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .main-nav a {
    color: var(--color-text-primary) !important;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

@media (max-width: 768px) {
  .header-contact .phone-number {
    display: none;
  }
  .quote-author {
    display: flex
  ;
    flex-direction: row;
    gap: 4px;
    align-items: flex-end;
  }
  a.btn.btn-dark {
    width: 90%;
  }



}

.icon-card:hover{
  background: #1E2143;
}
.icon-card:hover .attachment-thumbnail{
  filter: brightness(1000%)
}
.icon-card:hover .icon-title{
  color: #fff;
}
.icon-card:hover .icon-text{
  color: #fff;
}

/* ===== СТИЛИ ДЛЯ СЛАЙДЕРА ===== */
.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content h1 {
  font-family: 'Helvetica', sans-serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -1.8px;

  color: var(--color-white);
}

.hero-content .h1-bold {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  display: block;
}

.hero-content p {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  max-width: 678px;
  color: var(--color-white);
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
  .hero-content {
    margin-top: 200px;
  }
  .lot-header-top {
    justify-content: space-between !important;
    flex-wrap: nowrap!important;
    padding: 60px 0 30px !important;
  }
  .lot-sleepy-info {
    gap: 2px!important;
    flex-direction: column;
  }
  .hero-content h1 {
    font-size: 40px;
    letter-spacing: -1.2px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-content p {
    font-size: 14px;
  }
}

/* ===== FOOTER STYLES ===== */
.footer-section, .site-footer {
  background-color: var(--color-primary-dark-alt);
  color: var(--color-white);
  padding: 120px 0;
}

.footer-section .container, .site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 139px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col li {
  margin: 0;
  padding: 0;
}

.footer-col nav {
  width: 100%;
}

.footer-col a, .footer-col address {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 24px;
  line-height: 28.8px;
  font-style: normal;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-col a:hover {
  opacity: 0.8;
}

.footer-col address {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 18px;
  font-style: normal;
  margin: 0;
}

.footer-logo-col img {
  width: 205px;
  height: 40px;
  display: block;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 21.6px;
}

.footer-bottom a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

.footer-bottom span {
  color: var(--color-white);
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 21.6px;
}

/* Стили для страниц карточек лотов (как в cards/) */
.single-lot .footer-section, .single-lot .site-footer {
  background-color: var(--color-primary);
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .footer-bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .footer-section, .site-footer {
    padding: 80px 0;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .footer-section .container, .site-footer .container {
    gap: 60px;
  }
}

/* ===== СТИЛИ ДЛЯ АДМИН ПАНЕЛИ ===== */
.ricchestate-meta-box {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}

.ricchestate-meta-box h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #1d2327;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.slider-slide-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin: 15px 0;
  position: relative;
}

.slider-slide-item h5 {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #1d2327;
  background: #0073aa;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
}

.image-upload-container {
  margin: 15px 0;
}

.image-preview {
  margin: 10px 0;
  min-height: 100px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 4px;
}

.no-image {
  color: #666;
  font-style: italic;
}

.ricchestate-meta-box label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #1d2327;
}

.ricchestate-meta-box input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.ricchestate-meta-box input[type="text"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
  outline: none;
}

.ricchestate-meta-box .button {
  margin: 5px 5px 5px 0;
}

.add-slide {
  background: #0073aa !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

.add-slide:hover {
  background: #005a87 !important;
}

.remove-slide {
  background: #dc3232 !important;
  color: white !important;
  border: none !important;
  padding: 8px 15px !important;
  border-radius: 4px !important;
  position: absolute;
  top: 15px;
  right: 15px;
}

.remove-slide:hover {
  background: #a00 !important;
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ РЕКОМЕНДАЦИЙ (ЛОТЫ) ===== */
.recommendations-section {
  background-color: var(--color-white);
  padding: 60px 0;
}

.recommendations-section .container {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 64px;
}

.recommendations-section h2 {
  font-family: 'Helvetica', sans-serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 56.5px;
  letter-spacing: -1.22px;
  color: var(--color-primary-dark-alt);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 93px 63px;
  width: 100%;
}

.rec-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: none;
  box-shadow: none;
}

.rec-card-link-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rec-card-link-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rec-card-img {
  width: 100%;
  height: 288px;
  object-fit: cover;
  border-radius: 10px;
}

.rec-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rec-card-header h3 {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-primary-dark);
  margin: 0;
  flex: 1;
}

.rec-card-header .tag {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 10px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 10.83px;
  line-height: 12px;
  white-space: nowrap;
}

.rec-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.rec-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rec-card-details .detail-item {
  display: block;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica', sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.4px;
  color: var(--color-primary-dark);
}

.rec-card-details .detail-item img {
  width: 16px;
  height: 16px;
}

.rec-card-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}

.rec-card-price {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 22.1px;
  color: var(--color-primary-dark);
  margin: 0;
}

.rec-card-link {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: -0.24px;
  color: rgba(30, 33, 68, 0.4);
  text-decoration: none;
  cursor: pointer;
}

/* Адаптивность для секции рекомендаций */
@media (max-width: 1200px) {
  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }
}

@media (max-width: 768px) {
  .recommendations-section {
    padding: 80px 0;
  }
  .recommendations-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .recommendations-section h2 {
    font-size: 36px;
  }
}

/* Стили для второго блока ипотеки */


.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1e2144;
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #161a35;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 33, 68, 0.3);
}

.btn-secondary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.btn-light {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.phone-number {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: opacity 0.3s;
}

.phone-number:hover {
  opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 10px;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.9);
  color: #1e2143;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-light:hover {
  background-color: transparent;
  color: #1e2143;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-dark {
  background-color: #1e2143;
  color: #fff;
  border-color: #1e2143;
}

.btn-dark:hover {
  background-color: #161a35 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(30, 33, 68, 0.3) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }


}

@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
  }
}

@media (max-width: 768px) {
  .header-contact .phone-number {
    display: none;
  }

  .btn {
    padding: 12px 24px;
    font-size: 16px;
  }
}





.btn {
  padding: 12px 24px;
  font-size: 16px;
  line-height: 22px;
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* ===== UTILITY CLASSES ===== */
.container {
  margin: 0 auto;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
  position: relative;
  height: 900px;
  background-image: linear-gradient(90deg, rgba(30, 33, 67, 0.5) 0%, rgba(30, 33, 67, 0) 63.44%), url('../maintest/images/3ac0796b5f87b5caaa8879349b66542b41553a3d.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content h1 {
  font-family: 'Helvetica', sans-serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  font-weight:700;
  margin: 0;
}

.hero-content .h1-bold {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  display: block;
}

.hero-content p {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 28px;
  line-height: 1.03;
  max-width: 678px;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-section {
    height: 600px;
  }

  .hero-content {
    margin-top: 200px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 20px;
  }
}

/* ===== СТИЛИ ДЛЯ ЛОТОВ ===== */

/* Заголовок лота в стиле hero-section из cards/ */
.lot-header {
  padding: 20px 0 0;
  background-color: var(--color-white);
}

.lot-header-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 60px 0 0;
}

.lot-title-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lot-title {
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0;
}

.lot-price {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-text {
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.2;
  color: var(--color-text-secondary);
	width: max-content;
}

.premium-badge {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4.9px 9.13px;
  border-radius: 10px;
  font-size: 17px;
  letter-spacing: 1.78px;
  text-transform: uppercase;
  line-height: 90%;
  font-weight: 400;
}
.lot-sleepy-info {
  display: flex;
  gap: 24px;
}
.live-camera-btn {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: none;
  font-size: 17px;
  padding: 13px 16.7125px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  bottom: 36px;
  transition: all 0.2s
  ease;
}

.lot-details-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;

}

.detail-item {
  display: flex;
  
  gap: 8px;
  font-size: 17px;
  line-height: 22px;
  color: var(--color-text-primary);
  flex-direction: row;
}

.detail-item i {
  color: var(--color-primary);
  font-size: 16px;
}

/* Адаптивность для заголовка лота */
@media (max-width: 992px) {
  .lot-title {
    font-size: 40px;
  }
  .price-text {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .lot-header {
    padding: 0;
  }



  .lot-title {
    font-size: 32px;
  }

  .price-text {
    font-size: 32px;
  }

  .lot-details-bar {
    gap: 8px;
    width: 70%;
    justify-content: flex-start;
    justify-items: stretch;
  }
  .live-camera-btn {

    font-size: 12px;
    padding: 8.58px 10.16px;
    border-radius: 10px;
    width: 103.3px;
  }


  .premium-badge {
    padding: 5.1px 9.35px;
    font-size: 15px;

  }
  .lot-details-bar.detail-item span{
    flex-direction: row!important;
  }

}

/* Галерея лота в стиле hero-gallery */
.lot-gallery-section {
  padding: 31.2px 0 31.2px;
  background-color: var(--color-white);

}

.lot-gallery-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: var(--color-text-primary);
  font-weight: 500;
  padding: 0 20px;
}

.hero-gallery {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;

}

.gallery-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1330 / 468;

}
.gallery-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: inherit;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-image.active {
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 53px;
  height: 53px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-nav svg {
  color: var(--color-text-primary);
}

/* Адаптивность для hero-gallery */
@media (max-width: 768px) {
  .hero-gallery {
    padding: 0 15px;
  }
  .gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1080;
    min-height: 31vh;
  }

  .surroundings-gallery-wrapper{
    padding: 0!important;
  }
  .cta-box {
    background-color: var(--color-white);

    padding: 18px 18px!important;

  }
  .surroundings-navigation {
    position: absolute;
    bottom: 30vh!important;
    top: unset !important;
    left:20px!important;
    right:20px!important;
  }
  .gallery-nav {
    width: 45px;
    height: 45px;
  }

  .gallery-nav.prev {
    left: 15px;
  }

  .gallery-nav.next {
    right: 15px;
  }

  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero-gallery {
    padding: 0 10px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .gallery-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* Стили для основной галереи лота */
.lot-gallery-section .gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lot-gallery-section .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lot-gallery-section .gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Карточки контента */
.content-cards-section {
  padding: 60px 0;
}

.content-cards-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #333;
}

.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.card-media {
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card-media video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card-body p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Адаптивность для карточек */
@media (max-width: 768px) {
  .icon-cards,
  .content-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .icon-card,
  .content-card {
    padding: 20px;
  }

  .icon-cards-section h2,
  .content-cards-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .icon-image img {
    width: 60px;
    height: 60px;
  }
}

/* ===== СТИЛИ ДЛЯ УСЛОВИЙ ПРИОБРЕТЕНИЯ ===== */

.acquisition-conditions {
  background-color: var(--color-white);
}

.acquisition-conditions .container {
  margin: 0 auto;
}

.acquisition-conditions h2 {
  font-size: 45px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 56.5px;
  letter-spacing: -1.22px;
  margin-bottom: 16px;
}

.acquisition-conditions .section-subtitle-light {
  font-size: 20px;
  line-height: 22px;
  color: var(--color-text-secondary);
 max-width: 825px;
  margin-bottom: 40px;
}

.purchase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.purchase-card {
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;

}

.purchase-card.light {
  background-color: var(--color-primary-light);
}

.purchase-card.dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.purchase-card-title {
  font-size: 32px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: -0.48px;
  margin-bottom: 40px;
	    height: 5rem;
}

.purchase-details {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.detail-item .detail-label {
  display: block;
  font-size: 14px;
  line-height: 19.2px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.purchase-card.dark .detail-label {
  color: var(--color-white);
}

.detail-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.detail-item i {
  color: var(--color-primary);
  font-size: 18px;
}

/* Форма обратной связи */
.purchase-form-wrapper {
  padding-left: 32px;
}

.form-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  margin-bottom: 16px;
}

.form-subtitle {
  font-size: 14px;
  line-height: 19.2px;
  opacity: 0.5;
  margin-bottom: 22px;
}

.purchase-form .form-group {
  margin-bottom: 10px;
}

.purchase-form label {
  display: block;
  font-size: 12px;
  line-height: 19.2px;
  letter-spacing: -0.24px;
  opacity: 1;
  margin-bottom: 10px;
}

.purchase-form input {
  width: 100%;
  background-color: var(--color-primary-light);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 20px;
  line-height: 28px;
}

.purchase-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.form-disclaimer {
  font-size: 12px;
  line-height: 19.2px;
  opacity: 0.5;
  margin-top: 20px;
}

.form-disclaimer a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Кнопки */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #1e2144;
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #161a35;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 33, 68, 0.3);
}

.btn-primary:hover {
  background-color: #161a35;
}

.btn-secondary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.btn-light {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background-color: #e8ecff;
}

/* Адаптивность для лотов */
@media (max-width: 992px) {
  .icon-cards-section h2,
  .content-cards-section h2,
  .acquisition-conditions h2 {
    font-size: 40px;
  }
}
.lot-header-bottom {
  display: flex;
  align-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .icon-cards-section,
  .content-cards-section,
  {
    padding: 60px 10px 0!important;
  }

  .about-gallery {
    padding: 0 15px;
  }

  .icon-cards-section h2,
  .content-cards-section h2,
  .acquisition-conditions h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
 .acquisition-conditions {
        padding: 60px 10px 60px !important;
    }
  .icon-cards,
  .content-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  .icon-card,
  .content-card {
    padding: 20px;
    min-height: 180px;
  }

  .purchase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .purchase-card {
    padding: 24px;
  }

  .purchase-form-wrapper {
    padding-left: 0;
    padding-top: 20px;
  }

  .icon-image img {
    width: 40px;
    height: 40px;
  }
}

/* Удаляем дублирующийся hover эффект */

/* Иконки лотов (feature cards) */
.icon-cards-section {
  background-color: var(--color-white);
  padding: 0 0 60px;
}

.icon-cards-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 45px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 56.5px;
  letter-spacing: -1.22px;
}

.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1360px;
  margin: 0 auto;

}

.icon-card {
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 224px;
  background-color: var(--color-primary-light);
  color: var(--color-text-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.icon-image {
  width: 49px;
  height: 49px;
  margin-bottom: auto;
}

.icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.icon-title {
  font-size: 20px;
  line-height: 22px;
  letter-spacing: -0.38px;
  margin-top: 20px;
  font-weight: 500;
}

.icon-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 19.2px;
  letter-spacing: -0.28px;
  margin-top: 14px;
  color: var(--color-text-secondary);
}

/* ===== ABOUT GALLERY ===== */
.about-gallery-section {
  padding: 60px 0;
  background-color: var(--color-white);
}

.about-gallery {

  margin: 0 auto;

}

/* Строка в галерее */
.gallery-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 334px;
}

/* Система 12 колонок для flexbox */
.gallery-item.col-1 { flex: 0 0 calc(8.333333% - 6px); }
.gallery-item.col-2 { flex: 0 0 calc(16.666667% - 6px); }
.gallery-item.col-3 { flex: 0 0 calc(25% - 6px); }
.gallery-item.col-4 { flex: 0 0 calc(33.333333% - 6px); }
.gallery-item.col-5 { flex: 0 0 calc(41.666667% - 6px); }
.gallery-item.col-6 { flex: 0 0 calc(50% - 6px); }
.gallery-item.col-7 { flex: 0 0 calc(58.333333% - 6px); }
.gallery-item.col-8 { flex: 0 0 calc(66.666667% - 6px); }
.gallery-item.col-9 { flex: 0 0 calc(75% - 6px); }
.gallery-item.col-10 { flex: 0 0 calc(83.333333% - 6px); }
.gallery-item.col-11 { flex: 0 0 calc(91.666667% - 6px); }
.gallery-item.col-12 { flex: 0 0 calc(100% - 6px); }

/* Стили для about-gallery изображений */
.about-gallery .gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 10px;
}

/* Стили для overlay-text в about-gallery */
.about-gallery .overlay-text {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: var(--color-white);
  font-size: 20px;
  line-height: 22px;
  letter-spacing: -0.38px;
  background: linear-gradient(0deg, rgba(37, 37, 56, 0.8) 10%, rgba(37, 37, 56, 0) 100%);
}

/* Адаптивность для about-gallery */
@media (max-width: 992px) {
  .gallery-row {
    flex-wrap: wrap;
  }

  .gallery-item.col-7,
  .gallery-item.col-8,
  .gallery-item.col-9,
  .gallery-item.col-10,
  .gallery-item.col-11,
  .gallery-item.col-12 {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
	.gallery-item.col-3,
	.gallery-item.col-4,
  .gallery-item.col-5,
  .gallery-item.col-6,
  .gallery-item.col-7,
  .gallery-item.col-8,
  .gallery-item.col-9,
  .gallery-item.col-10,
  .gallery-item.col-11,
  .gallery-item.col-12 {
    flex: 0 0 100%;
  }
	.surroundings-image{
		aspect-ratio:auto!important;
	}
}

@media (max-width: 480px) {
  .about-gallery {
    padding: 0 10px;
  }

  .gallery-item.col-1,
  .gallery-item.col-2,
  .gallery-item.col-3,
  .gallery-item.col-4,
  .gallery-item.col-5,
  .gallery-item.col-6,
  .gallery-item.col-7,
  .gallery-item.col-8,
  .gallery-item.col-9,
  .gallery-item.col-10,
  .gallery-item.col-11,
  .gallery-item.col-12 {
    flex: 0 0 100%;
  }
}

/* ===== SURROUNDINGS SECTION ===== */
.surroundings-section {
    padding: 0 0 60px 0;
    background-color: var(--color-white);
    overflow: visible !important;
}
acquisition-conditions{
  padding: 60px 0;
}
.surroundings-gallery-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  overflow: visible; /* Позволяем кнопкам выходить за пределы */
}

/* Bootstrap Carousel стили */
#surroundingsCarousel {
  border-radius: 10px;
  overflow: visible !important; /* Позволяем кнопкам выходить за пределы карусели */

}

#surroundingsCarousel .carousel-item {
  background-color: var(--color-white);
}

/* Текст над изображением */
#surroundingsCarousel .surroundings-intro {
  padding: 40px 0px 20px 0px;
  background-color: var(--color-white);
}

#surroundingsCarousel .section-subtitle {
  font-size: 45px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 41px;
  letter-spacing: -1.22px;
  margin-bottom: 16px;
}

#surroundingsCarousel .section-title {
  font-size: 45px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 56.5px;
  letter-spacing: -1.22px;
}

#surroundingsCarousel .section-title.large-leading {
  line-height: 40.5px;
}

#surroundingsCarousel .surroundings-text {
  font-size: 17px;
  line-height: 22.1px;
  color: #363744;
  margin: 0;
}

/* Изображение */
#surroundingsCarousel .surroundings-image {
  position: relative;
}

#surroundingsCarousel .surroundings-image img {
  width: 100%;

  object-fit: cover;
	    object-position: center;
  display: block;
  border-radius:10px;
}
.surroundings-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1330 / 468;
    display: block;
    overflow: hidden; /* На случай, если содержимое выходит за пределы */
	border-radius: 10px;
}
.surroundings-image img {
  width: 100%;

  object-fit: cover;
  display: block;
  border-radius:10px;
}
/* Кнопки навигации - по краям секции */
.surroundings-navigation {
  position: absolute;
  top: 50%;
  left: -40px;
  right: -40px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.surroundings-navigation .carousel-control-prev,
.surroundings-navigation .carousel-control-next {
  position: static;
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.surroundings-navigation .carousel-control-prev:hover,
.surroundings-navigation .carousel-control-next:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.surroundings-navigation .carousel-control-prev img,
.surroundings-navigation .carousel-control-next img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(0); /* Черные стрелки */
}

/* Скрываем индикаторы - используем только кнопки */
#surroundingsCarousel .carousel-indicators {
  display: none;
}

/* Адаптивность для кнопок и текста */
@media (max-width: 768px) {
  .surroundings-navigation {
    left: 10px;
    right: 10px;
  }

  .surroundings-navigation .carousel-control-prev,
  .surroundings-navigation .carousel-control-next {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 992px) {
  #surroundingsCarousel .surroundings-intro {
    padding: 30px 15px 15px 15px;
  }

  #surroundingsCarousel .section-subtitle,
  #surroundingsCarousel .section-title {
    font-size: 36px;
    line-height: 45px;
  }

  #surroundingsCarousel .section-title.large-leading {
    line-height: 32px;
  }
}

@media (max-width: 768px) {
  .surroundings-section {
    padding: 60px 10px 0;
  }

  #surroundingsCarousel .surroundings-intro {
    padding: 20px 10px 10px 10px;
  }

  #surroundingsCarousel .section-subtitle,
  #surroundingsCarousel .section-title {
    font-size: 28px;
    line-height: 36px;
  }

  #surroundingsCarousel .surroundings-text {
    font-size: 16px;
    line-height: 20px;
  }

}

.cta-section {
  background-color: var(--color-primary-light);
  padding: 120px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: var(--color-primary-light);
  z-index: -1;
}
.cta-box {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 48px 64px;
  max-width: 1344px;
  margin: 0 auto;
  box-shadow: 0px 0px 1px 0px rgba(40, 45, 60, 0.14), 0px 0px 2px 0px rgba(40, 45, 60, 0.11), 0px 4px 8px 0px rgba(40, 45, 60, 0.1);
  text-align: center;
}

.cta-header {
  margin-bottom: 72px;
}

.cta-header .form-title {
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 22px;
}

.form-message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.cta-form .form-group {
  text-align: left;
}

.cta-form label {
  display: block;
  font-size: 14px;
  line-height: 19.2px;
  letter-spacing: -0.28px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.cta-form input {
  width: 100%;
  background-color: var(--color-primary-light);
  border: none;
  border-radius: 10px;
  padding: 24px;
  font-size: 20px;
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--color-text-secondary);
  box-sizing: border-box;
}

.cta-form input:focus {
  outline: none;
  background-color: #e8ecff;
}

.cta-form button[type="submit"],
.purchase-form button[type="submit"],
.cta-form .btn.btn-primary,
.purchase-form .btn.btn-primary,
button.btn.btn-primary {

  padding: 15px 20px;
  margin-bottom: 20px;
  background-color: #1e2144 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.cta-form button[type="submit"]:hover,
.purchase-form button[type="submit"]:hover,
.cta-form .btn.btn-primary:hover,
.purchase-form .btn.btn-primary:hover,
button.btn.btn-primary:hover {
  background-color: #161a35 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(30, 33, 68, 0.3) !important;
}

.cta-box .form-disclaimer {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-secondary);
}

.cta-box .form-disclaimer a {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .cta-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-form button,
  .purchase-form button {
    height: auto;
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
  .cta-header {
    margin-bottom: 40px;
  }
}

/*@media (max-width: 768px) {*/
/*  .cta-section {*/
/*    padding: 60px 0;*/
/*  }*/
/*  .cta-box {*/
/*    padding: 32px 24px;*/
/*    margin: 0 20px;*/
/*    max-width: calc(100% - 40px);*/
/*  }*/
/*}*/

/* ===== LOCATION SECTION ===== */
.location-section {
  padding: 60px 0;
  background-color: var(--color-white);
}


.location-header .section-title {
  margin-bottom: 24px;
  font-size: 45px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 56.5px;
  letter-spacing: -1.22px;
}

.location-header .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-header .hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 22px;
  color: var(--color-text-primary);
}

.location-header .hero-meta img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.location-map {
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f5f5;
  min-height: 400px;
}

.location-map .lot-map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}


/* Адаптивность для блока карты */
@media (max-width: 768px) {
  .location-section {
    padding: 60px 10px 0;
  }

  .location-header .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }



  #surroundingsCarousel .surroundings-image img {

    aspect-ratio: 1920 / 1080!important;
    object-fit: cover!important;
    display: block!important;
    height: 60vh!important;
  }


}

/* Принудительные стили для кнопок */
button[type="submit"].btn.btn-primary,
.cta-form button[type="submit"],
.purchase-form button[type="submit"] {
  background-color: #1e2144 !important;
  color: #ffffff !important;
  border: none !important;
}

button[type="submit"].btn.btn-primary:hover,
.cta-form button[type="submit"]:hover,
.purchase-form button[type="submit"]:hover {
  background-color: #161a35 !important;
}


li.current-menu-item a {
  background: #1E2143;
  color: #fff!important;
  border-radius: 1em;
}
.purchase-card.light:hover {
  background: #1E2143;
}
.purchase-card.light:hover .purchase-card-title {
  color: #FFFFFF;
}
.purchase-card.light:hover .detail-label {
  color: #FFFFFF;
}
.purchase-card.light:hover .detail-value {
  color: #FFFFFF;
}



.surroundings-section {
  position: relative;
  width: 100%;
}

.surroundings-gallery-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.surroundings-gallery {
  position: relative;
  width: 100%;
}

.gallery-slides {
  position: relative;
  width: 100%;
}

.gallery-slide {
  display: none; /* Скрываем все слайды по умолчанию */
  width: 100%;
}

.gallery-slide.active {
  display: block; /* Показываем активный слайд */
}

.surroundings-intro {
  padding: 20px;
}

.surroundings-col {
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.section-title.large-leading {
  font-size: 18px;
  line-height: 1.5;
  margin: 10px 0;
}

.surroundings-text {
  font-size: 16px;
  color: #666;
}

.slide-image {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f0f0f0; /* Явный цвет для видимости */
  border: none;
  border-radius: 50%;
  width: 53px;
  height: 53px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 10;
  pointer-events: auto;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-nav img {
  width: 24px;
  height: 24px;
  transition: filter 0.3s ease;
}

.gallery-nav:hover img {
  filter: brightness(1000%); /* Белый SVG при наведении */
}



a.btn.btn-light:hover {
  background: #1e2144;
  color: #fff;
}
.text-drack.gallery-item {
  background: #F2F4FF;
}
.overlay-text.text-drack {
  background: transparent;
  color: #1E2144;
}

/* Стили для галочек согласия */
.consent-group {
  margin-top: 15px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.consent-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.consent-label input[type="checkbox"]:checked + .checkmark {
  background: #1e2144;
  border-color: #1e2144;
}

.consent-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;

  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-link {
  color: #1e2144;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #0f1224;
  text-decoration: none;
}

/* Стили для consultation-section-2 */
.consultation-section-2 {
  background-color: #f2f4ff;
  padding: 60px 0;

}

/* Стили для wide-consultation-form */
.wide-consultation-form {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  box-shadow: 0px 0px 1px 0px rgba(40, 45, 60, 0.14), 0px 0px 2px 0px rgba(40, 45, 60, 0.11), 0px 4px 8px 0px rgba(40, 45, 60, 0.1);
}

.wide-consultation-form .form-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.text-drack.gallery-item {
    justify-content: center;
}
.wide-consultation-form .form-text h4 {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  color: #1e2144;
  margin: 0;
}

.wide-consultation-form .form-text p {
  font-size: 17px;
  color: rgba(30, 33, 68, 0.4);
  margin: 0;
}

.wide-consultation-form .form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  width: 100%;
  align-items: end;
}

.wide-consultation-form .form-group {
  gap: 10px;
}

.wide-consultation-form .form-group label {
  font-size: 14px;
  opacity: 1;
}

.wide-consultation-form .form-group input {
  background-color: #f2f4ff;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 20px;
  color: #1e2144;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.wide-consultation-form .form-group input::placeholder {
  color: rgba(30, 33, 68, 0.4);
}

.wide-consultation-form .form-group input:focus {
  outline: none;
  background-color: #e8ecff;
}

.wide-consultation-form .btn {
  padding: 15px 20px;
  height: fit-content;
  margin-bottom: 20px;
  background-color: #1e2144 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.wide-consultation-form .privacy-notice {
  font-size: 12px !important;
  color: rgba(30, 33, 68, 0.4);
}

/* Адаптивность для wide-consultation-form */
@media (max-width: 992px) {
  .wide-consultation-form .form-fields {
    grid-template-columns: 1fr;
  }

  .wide-consultation-form .btn {
    align-self: stretch;
  }

  .wide-consultation-form {
    padding: 18px;
  }
}


.property-card-content {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-grow: 1;
  position: relative;
}

.surroundings-image img {
  height: 100%;
}
.property-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 60%;
}

.property-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0;
}
.location-item, .property-address {
  display: flex
;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-primary);
  letter-spacing: -0.4px;
}
.location-item, .property-address {
  display: flex
;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-primary);
  letter-spacing: -0.4px;
}
.location-item img, .property-address img
{
  width: 16px;
  height: 16px;
}


.property-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}


.premium-tag{
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 10px;
}
.price {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
  display: inline-flex
;
  flex-direction: row;
  flex-wrap: nowrap;
}


.icon-card:hover .icon-image img{
  filter: brightness(0) invert(1);
}

.gallery-item.col-1{
  aspect-ratio: 1 / 3;
}
.gallery-item.col-2{
  aspect-ratio: 2 / 3;
}
.gallery-item.col-3{
  aspect-ratio: 3 / 3;
}
.gallery-item.col-4{
  aspect-ratio: 4 / 3;
}
.gallery-item.col-5{
  aspect-ratio: 5 / 3;
}
.gallery-item.col-6{
  aspect-ratio: 6 / 3;
}
.gallery-item.col-7{
  aspect-ratio: 7 / 3;
}
.gallery-item.col-8{
  aspect-ratio: 8 / 3;
}
.gallery-item.col-9{
  aspect-ratio: 9 / 3;
}
.gallery-item.col-10{
  aspect-ratio: 10 / 3;
}
.gallery-item.col-11{
  aspect-ratio: 11 / 3;
}
.gallery-item.col-12{
  aspect-ratio: 12 / 3;
}

@media(max-width:460px){
	    .value-image-wrapper {
        max-width: 189px;
    
    }
}
.wpcf7 {
  width: 100%;
}
/* Contact Form 7 - Стилизация форм */
.wpcf7-form {
    font-family: inherit;
    color: var(--color-text-primary);
}

/* Контейнеры полей */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

/* Общие стили для всех полей ввода */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="password"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(30, 33, 68, 0.2);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Фокус состояние */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
    outline: none;
}

/* Плейсхолдеры */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 1;
}

/* Текстовые области */
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Выпадающие списки */
.wpcf7 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231e2144' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Чекбоксы и радиокнопки */
.wpcf7-checkbox,
.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-checkbox input[type="checkbox"],
.wpcf7-radio input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.wpcf7-checkbox input[type="checkbox"]:focus,
.wpcf7-radio input[type="radio"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Кнопка отправки */
.wpcf7-submit {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus {
    background-color: var(--color-primary-dark-alt);
    border-color: var(--color-primary-dark-alt);
    color: var(--color-white);
    outline: none;
}

.wpcf7-submit:active {
    transform: translateY(1px);
}

/* Сообщения о статусе формы */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    border-width: 1px !important;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border-color: #c3e6cb !important;
    color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background-color: #f8d7da;
    border-color: #f5c6cb !important;
    color: #721c24;
}

.wpcf7-spam-blocked {
    background-color: #fff3cd;
    border-color: #ffeaa7 !important;
    color: #856404;
}

.wpcf7-validation-errors {
    background-color: #cce5ff;
    border-color: #b8daff !important;
    color: #004085;
}

/* Спиннер загрузки */
.wpcf7-spinner {
    background-color: var(--color-primary) !important;
    margin-left: 10px;
}

/* Сообщения об ошибках валидации */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

/* Стилизация обязательных полей (опционально) */
.wpcf7-form-control.required {
    background-color: var(--color-primary-light);
}

/* Группировка полей (если используется) */
.wpcf7-form-group {
    margin-bottom: 24px;
}

.wpcf7-form-group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

/* Кастомные стили для файловых загрузок */
.wpcf7-file {
    padding: 10px;
    background-color: var(--color-primary-light);
    border: 1px dashed rgba(30, 33, 68, 0.3);
    border-radius: 4px;
    cursor: pointer;
}

.wpcf7-file:hover {
    border-color: var(--color-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="url"],
    .wpcf7 textarea,
    .wpcf7 select {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .wpcf7-submit {
        width: 100%;
        padding: 12px 24px;
    }
    
    .wpcf7-checkbox,
    .wpcf7-radio {
        flex-direction: column;
        gap: 8px;
    }
}

/* Анимация фокуса */
@keyframes ricchestate-input-focus {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 33, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(30, 33, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 33, 68, 0);
    }
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    animation: ricchestate-input-focus 0.6s ease-out;
}

/* Стили для скрытых полей */
.wpcf7 input[type="hidden"] {
    display: none;
}