/*
Theme Name: Московский Берег
Theme URI: https://wordpress.org/themes/mbereg.ru
Author: admin
Author URI: https://example.com
Description: Лендинг для Московский Берег. 
Requires at least: 6.7
Version: 1.0
*/

:root {
  --accent-color: #466f44;
  --bg-light-color: #f3f0e8;
  --bg-dark-color: #111111;
  --text-dark: #111111;
  --text-gray: rgba(17, 17, 17, 0.5);
  --text-light: rgba(243, 240, 232, 0.5);
  --text-extra-light: rgba(243, 240, 232, 0.6);
  --text-light-accent: #f3f0e8;
  --first-font: "Involve-Medium", sans-serif;
  --regular-font: "Involve-Regular", sans-serif;
  --semibold-font: "Involve-SemiBold", sans-serif;
  --bold-font: "Involve-Bold", sans-serif;
  --italic-font: "Involve-Oblique", sans-serif;
  --second-font: "Gogol", sans-serif;
  --third-font: "Inter", sans-serif;
  --fourth-font: "Montserrat", sans-serif;

  --transition: 0.5s all ease;

  /* Масштаб относительно 1440px */
  --base-width: 1440px;
  --scale: calc(100vw / var(--base-width));
  --scale-factor: clamp(0.5, var(--scale), 2);

  --free: #47b43f;
  --booked: #ffd777;
  --sold: #f3f0e8;
}

@font-face {
  font-family: "Involve-Regular";
  src: url("assets/fonts/Involve-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Involve-Medium";
  src: url("assets/fonts/Involve-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Involve-SemiBold";
  src: url("assets/fonts/Involve-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Involve-Bold";
  src: url("assets/fonts/Involve-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Involve-Oblique";
  src: url("assets/fonts/Involve-Oblique.ttf") format("truetype");
}

@font-face {
  font-family: "Gogol";
  src: url("assets/fonts/Gogol/gogol_regular.otf") format("opentype");
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
   box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--first-font);
  background-color: var(--bg-light-color);
  color: var(--text-dark);
  overflow-x: hidden;
}

html,
body {
  height: 100%;
  margin: 0;
  font-size: clamp(14px, calc(1vw * var(--scale-factor)), 18px);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

.h2-title {
  font-family: var(--semibold-font);
  font-size: 42px;
  line-height: 100%;
}

.title_accent {
  font-family: var(--second-font);
  color: var(--accent-color);
  font-size: 62px;
  font-weight: 400;
}

img {
  width: 100%;
  display: block;
  image-rendering: -moz-crisp-edges; /* Для Firefox */
  image-rendering: -webkit-optimize-contrast; /* Для Chrome, Edge, Opera */
}

a {
  text-decoration: none;
  color: var(--text-dark);
}

/* .container {
  width: 100%;
  max-width: 1440px; 
  padding: 0 20px;
  margin: 0 auto;
} */

.scale-wrapper {
  width: 100%;
  overflow: visible;
  margin-bottom: 0;
  position: relative;
}

.container {
  min-width: 320px;
  max-width: 100vw;
  padding: 0 20px;
  margin: 0 auto;
  transform: scale(var(--scale-factor));
  -webkit-transform: scale(var(--scale-factor));
  -ms-transform: scale(var(--scale-factor));
  transform-origin: top center;
  width: calc(100% / var(--scale-factor));
  min-height: unset;
  height: auto;
}

/* Унифицированные отступы между секциями */
section {
  padding-bottom: calc(var(--scale-factor) * 1px); /* Базовый отступ снизу */
  margin-bottom: calc(
    var(--scale-factor) * 120px
  ); /* Добавили margin для разделения, чтобы избежать наездов */
}

.main {
  margin-bottom: 0;
} /* Специфично для main */
.about .scale-wrapper {
  margin-bottom: calc(var(--scale-factor) * 120px);
}

.about {
  padding-bottom: calc(var(--scale-factor) * 20px);
}
.slider .scale-wrapper {
  margin-bottom: calc(var(--scale-factor) * 120px);
}
.village .scale-wrapper {
  margin-bottom: calc(var(--scale-factor) * 120px);
}
.rent .scale-wrapper {
  margin-bottom: calc(var(--scale-factor) * 235px);
}
.advantages {
  margin-bottom: calc(var(--scale-factor) * 80px);
} /* Специфично */
.footer .scale-wrapper {
  margin-bottom: 0;
}
.footer .scale-wrapper .container {
  padding-bottom: calc(var(--scale-factor) * 30px);
}
.footer__content .scale-wrapper {
  margin-bottom: 0;
}
.footer__content .footer__copyright .container {
  padding-bottom: 0;
}

.main,
.about,
.slider,
.village,
.rent,
.advantages {
  position: relative;
  z-index: 1;
}

.main {
  min-height: calc(var(--scale-factor) * 692px);
}
.about {
  min-height: calc(var(--scale-factor) * 570px);
}
.slider {
  min-height: calc(var(--scale-factor) * 700px);
}
.village {
  min-height: calc(var(--scale-factor) * 705px);
}
.rent {
  min-height: calc(var(--scale-factor) * 1136px);
}
.advantages {
  min-height: calc(var(--scale-factor) * 448px);
}
.footer {
  min-height: calc(var(--scale-factor) * 785px);
}
.village-genplan {
  min-height: calc(var(--scale-factor) * 885px);
}
.village-map {
  min-height: calc(var(--scale-factor) * 500px);
}
.village-advantages {
  min-height: calc(var(--scale-factor) * 435px);
}
.policy {
  min-height: calc(var(--scale-factor) * 1000px);
}
.sidenav {
  display: none;
}

.button {
  font-family: var(--semibold-font);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-dark-color);
  height: 36px;
  transition: var(--transition);
  cursor: pointer;
}

.button_border:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.button_border:hover a {
  color: var(--text-light-accent);
}

.button_dark:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.section_info {
  display: none;
  font-family: var(--italic-font);
  font-size: 16px;
  line-height: 110%;
  margin-bottom: 40px;
}

.section_info_light {
  color: var(--text-light);
}

.section_info_dark {
  color: var(--text-gray);
}

.section_info .section_info_accent {
  display: block;
  margin-top: 20px;
}

.section_info_light .section_info_accent {
  color: var(--text-light-accent);
}

.section_info_dark .section_info_accent {
  color: var(--text-dark);
}

.header {
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.header_desktop {
  min-height: 68px;
}

.header_tablet {
  display: none;
  height: 100px;
}

.header__callback {
  height: 36px;
  background-color: var(--accent-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__callback a {
  font-family: var(--bold-font);
  color: var(--text-light-accent);
}

.header_tablet .nav {
  padding: 10px 0;
}

.header_tablet .header__tablet-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header_tablet .header__logo {
  width: 286px;
  height: 38px;
  margin-right: 0;
}

.burger {
  width: 64px;
  height: 24px;
  cursor: pointer;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  margin-right: 0;
}

.burger__line {
  width: 64px;
  height: 3px;
  background-color: var(--accent-color);
  margin-bottom: 18px;
}

.burger__line:last-child {
  margin-bottom: 0;
}

/* Крестик при открытом меню */
.burger.active .burger__line:nth-child(1) {
  width: 32px;
  transform: translateY(8px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  width: 32px;
  transform: translateY(-13px) rotate(-45deg);
}

.burger.active {
  width: 32px;
  height: 32px;
}

.site-header {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.site-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-light-color);
  backdrop-filter: blur(8px);
}

.header__callback p {
  font-size: 14px;
  font-family: var(--semibold-font);
  color: var(--text-light-accent);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  width: auto;
  height: auto;
  margin-right: auto;
}

.custom-logo {
	width: 218px;
	height: auto;
}

.header__menu-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  list-style: none;
  font-weight: 500;
  font-size: 14px;
  margin-right: 30px;
}

.header__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__button_email {
  width: 135px;
}

.header__button_tel,
.main__button_tel {
  background-color: var(--bg-dark-color);
  width: 162px;
}

.header__button_tel a,
.main__button_tel a {
  color: var(--bg-light-color);
}

/* === ОСНОВНОЙ БЛОК СЛАЙДЕРА === */
.main--slider {
  position: relative;
  overflow: hidden;
  height: 100vh;
/*   max-height: 700px; */
  padding: 0 0;
}

.main__slide-bg {
	position: absolute;
	top: 0; 
	left: 0;
	right: 0;	
	background-repeat: no-repeat;
	background-position: center center; 
	background-size: cover;
	z-index: -1;
	height: 100%; 
	opacity: 0;
	transition: opacity 1.2s ease;
	transform: scale(1.05); 
	will-change: transform;
	transform-origin: center center;
  			
}

.main__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 735px;
  padding-left: 60px;
  margin-top: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main__title {
  width: 735px;
  font-family: var(--semibold-font);
  font-size: 42px;
  line-height: 100%;
  margin-bottom: 40px;
  position: relative;
}

.main_accent {
  color: var(--text-gray);
}

.main__info {
  width: 100%;
  max-width: 515px;
  margin-bottom: 40px;
}

.main__info p {
  font-size: 14px;
  line-height: 100%;
}

.main__info p:first-child {
  margin-bottom: 14px;
}

.main__offer {
  font-family: var(--semibold-font);
  font-size: 22px;
  line-height: 100%;
  margin-bottom: 40px;
}

.main__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 129px;
}

.main__button_offer {
  width: 170px;
}

.main__slider {
  position: relative;
  z-index: 2;
  border-radius: 1px;
  width: 514px;
  height: 2px;
  background: var(--text-gray);
  margin-top: 20px;
}

.main-slider_title_accent {
  width: 100%;
  position: absolute;
  left: 10%;
  top: 40px;
}

.main__info_slide {
  margin-top: 80px;
}

.main__info_slide ul {
  list-style: none;
}

.main__info_slide ul > li {
  font-size: 14px;
}

.main__slide-button {
  width: 100%;
  background-color: var(--bg-light-color);
  border-color: transparent;
}

.main__slide-button:hover {
  background-color: transparent;
  border-color: var(--bg-light-color);
}

.main__slide-button a {
  color: var(--accent-color);
}

.main__buttons,
.main__buttons * {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.mainSwiper {
  height: 100%;
}

.mainSwiper .swiper-slide {
  pointer-events: none;
}

.mainSwiper .swiper-slide-active {
  pointer-events: auto;
}

.mainSwiper .swiper-pagination {
  bottom: 30px;
}

.mainSwiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 10px;
  height: 10px;
}
.mainSwiper .swiper-pagination-bullet-active {
  background: white;
}

.mainSwiper .swiper-slide-active .main__slide-bg {
  opacity: 1;
  transition: opacity 1.2s ease, transform 10s ease;
}

.mainSwiper .swiper-slide-active .main__content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.mainSwiper .main__content_village {
	width: 100%;
	max-width: 100%;
	display: flex;
	justify-content: space-between;
	top: 250px;
}

.main__slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: inherit;
    background-size: cover;
    background-position: center center;
    transform: scale(1.05); 
    z-index: -1;
    filter: blur(0);
}

.main__slide-bg_village::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(243, 240, 232, 0) 0%, rgba(243, 240, 232, 0.6) 47.39%, #f3f0e8 100%);
    z-index: 0;
}

.main__content_village .main__slide-info {
	width: 50%;
}

.main__content_village .main__title {
	width: 100%;
}

.main__slide-box {
  width: 45%;
  background-color: var(--accent-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.main-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 110%;
  color: rgba(17, 17, 17, 0.5);
}

.main-pagination__progress {
  width: 514px;
  height: 2px;
  background: rgba(17, 17, 17, 0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.main-pagination__fill {
  width: 128px;
  height: 100%;
  background: #111;
  border-radius: 1px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.3s ease;
  transform-origin: left;
}

.main-pagination-wrapper {
  position: absolute;
  bottom: 40px;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
  z-index: 10;
}


/* Навигация */
.main-navigation {
  display: flex;
  gap: 12px;
}

.main-navigation__prev,
.main-navigation__next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.main-navigation__prev:hover,
.main-navigation__next:hover {
  background: rgba(17, 17, 17, 0.05);
}

.main-navigation__prev svg,
.main-navigation__next svg {
  width: 24px;
  height: 24px;
}

.main__slide-box-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 23px;
	color: var(--text-light-accent);
	border-bottom: 1px solid rgba(243, 240, 232, 0.2);
}

.main__slide-box-number {
	font-family: var(--semibold-font);
	font-size: 42px;  
}

.main__slide-box-info {
	font-size: 20px;
    line-height: 100%;
}

.main__slide-box-adv {
	padding-top: 24px;
	margin-bottom: 30px;
}

.main__slide-box-adv ul {
	list-style-type: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	column-gap: 32px;
	row-gap: 12px;
}

.main__slide-box-adv ul> li {
	color: var(--text-light-accent);
	display: flex;
	align-items: center;
	gap: 12px;
    font-size: 14px;
	color: rgba(243, 240, 232, 0.8);
    line-height: 100%;
}

.main__slide-box-icon {
	width: 24px;
	height: 24px;
}
.main__bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.main__bg-layer {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    animation: slowZoom 80s linear infinite;
}

@keyframes slowZoom {
    0%   { transform: scale(1.08) translateY(0); }
    100% { transform: scale(1.30) translateY(-10%); }
}


.main__bg-prev  { opacity: 1; z-index: 1; }
.main__bg-next  { opacity: 0; z-index: 2; transition: opacity 3.2s ease; }
.main__bg-next.active { opacity: 1; }

.about {
  background-color: var(--accent-color);
}

.about__info {
  padding: 119px 0 133px 0;
  display: flex;
  gap: 105px;
}

.about__header {
  width: 100%;
  max-width: 663px;
}

.about__title {
  line-height: 100%;
  color: var(--text-light-accent);
}

.about_accent {
  color: var(--text-light);
}

.about__text {
  width: 571px;
}

.about__text p {
  font-size: 22px;
  color: var(--text-light);
}

.about__box {
  padding: 40px 60px 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--text-light-accent);
}

.about__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
}

.about__number {
  font-family: var(--semibold-font);
  font-size: 42px;
  color: var(--text-light-accent);
}

.about__desc {
  font-size: 20px;
  line-height: 100%;
  color: var(--text-light);
  max-width: 230px;
}

/* === Счётчики === */
.about__number.counter {
  font-family: var(--semibold-font);
  font-size: 42px;
  color: var(--text-light-accent);
  font-variant-numeric: tabular-nums;
  position: relative;
}

.about__number {
  transition: var(--transition);
}

.slider__box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 10px;
}

.slider__photo {
  width: 50%;
}

.slider__thumbnails {
  padding-left: 5px;
  padding-bottom: 24px;
}

.slider__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 120px;
  padding-top: 10px;
}

.slider__title {
  width: 317px;
  margin-left: -25px;
  position: relative;
  text-align: right;
}

.slider__title_accent {
  position: absolute;
  right: -97px;
  top: 80px;
}

.slider__navigation {
  display: flex;
  gap: 3px;
  padding-top: 10px;
}

.slider__text {
  font-family: var(--italic-font);
  width: 379px;
  font-size: 14px;
  line-height: 100%;
  text-align: right;
  margin: 0 0 40px auto;
}

.slider__item {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  width: calc(50% - 10px);
  height: auto;
  overflow: hidden;
}

.slider__item:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.slider__photo_big {
  object-fit: cover;
  display: block;
}

/* --- Планшет --- */
.slider_tablet {
  display: none;
}

.slider_tablet .slider__header {
  margin-bottom: 90px;
}

.slider_tablet .slider__photo {
  width: 541px;
  max-width: 100%;
  height: 470px;
}

.slider_tablet .slider__item {
  width: 335px;
  height: 291px;
}

.slider_tablet .slider__box {
  align-items: flex-end;
  margin-bottom: 20px;
}

.slider_tablet .slider__pagination {
  border-radius: 2px;
  width: 100%;
  height: 4px;
  background: rgba(70, 111, 68, 0.2);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.slider_tablet .pagination-slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 87px;
  background: rgba(70, 111, 68, 0.5);
  border-radius: 2px;
  transition: left 0.3s ease;
}

.slider_tablet .slider__text {
  font-family: var(--italic-font);
  font-size: 16px;
  line-height: 100%;
  text-align: right;
  color: var(--text-gray);
}

.slider__content {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.slider__photo {
  width: 50%;
}


.slider__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 120px;
  padding-top: 10px;
}

.slider__title {
  width: 317px;
  margin-left: -25px;
  position: relative;
  text-align: right;
}

.slider__title_accent {
  position: absolute;
  right: -97px;
  top: 80px;
}

.slider__navigation {
  display: flex;
  gap: 3px;
  padding-top: 10px;
}

.slider__text {
  font-family: var(--italic-font);
  width: 379px;
  font-size: 14px;
  line-height: 100%;
  text-align: right;
  margin: 0 0 40px auto;
}

.main-slide {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider__photo_big {
  object-fit: cover;
  display: block;
}

.slider__item:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.slider__photo,
.slider__item {
  transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Большой слайдер */
.big-slider {
  width: 100%;
  overflow: hidden;
}

.big-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Миниатюры */

.thumbs-slider .swiper-slide {
  width: calc(50% - 10px) !important;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.thumbs-slider .swiper-slide:hover {
  opacity: 1;
  transform: scale(1.02);
}

.thumbs-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.thumbs-slider .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #466f44;
}

/* Стрелки */
.swiper-button-prev,
.swiper-button-next {
  width: 24px;
  height: 24px;
  margin-top: 0;
  top: 10px;
  cursor: pointer;
}

.swiper-button-prev: hover,
.swiper-button-next:hover {
  opacity: 1;
  transform: scale(1.02);
}

.swiper-button-prev:after,
.swiper-button-next:after {
  display: none;
}

/* Пагинация SVG */
.pagination-line {
  transition: fill-opacity 0.3s ease;
}
.village {
  margin-bottom: 120px;
}

.village-swiper {
  width: 100%;
}

.swiper-slide {
  height: auto;
}
/* === Заголовок === */
.slider_tablet .slider__header {
  margin-bottom: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Контент === */
.slider_tablet .slider__box {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.slider_tablet .slider__photo {
  width: 541px;
  max-width: 100%;
  height: 470px;
  flex-shrink: 0;
  overflow: hidden;
}

.slider_tablet .slider__photo_big {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Миниатюры === */
.slider_tablet .tablet-thumbs-swiper {
  flex: 1;
  max-width: 670px;
}

.slider_tablet .tablet-thumbs-swiper .swiper-slide {
  width: calc(50% - 10px) !important;
  height: 291px;
  opacity: 0.7;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slider_tablet .tablet-thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider_tablet .tablet-thumbs-swiper .swiper-slide:hover,
.slider_tablet .tablet-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  transform: scale(1.02);
}

/* === Пагинация === */
.slider_tablet .slider__pagination {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(70, 111, 68, 0.2);
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}

.slider_tablet .pagination-slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 87px;
  background: rgba(70, 111, 68, 0.5);
  border-radius: 2px;
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tablet-swiper-prev:after,
.tablet-swiper-next:after {
  display: none;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 654px;
  background-color: var(--bg-dark-color);
  padding: 10px 20px;
  color: var(--text-light-accent);
  height: 100%;
  box-sizing: border-box;
}

.card__title {
  font-family: var(--semibold-font);
  font-size: 36px;
  margin-bottom: 18px;
}

.card__img {
  height: 200px;
  margin-bottom: 20px;
}
.card__img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.card__subtitle {
  font-size: 22px;
  line-height: 100%;
  margin-bottom: 20px;
}

.card__info {
  font-family: var(--regular-font);
  font-size: 14px;
  line-height: 100%;
  margin-bottom: 20px;
}

.card__advantages {
  margin-bottom: 20px;
}

.card__advantages ul {
  list-style: none;
  padding-left: 0;
}

.card__advantages ul > li {
  position: relative;
  font-size: 14px;
  color: var(--text-extra-light);
  margin-bottom: 20px;
  padding-left: 36px;
  display: flex;
  align-items: center;
}

.card__advantages ul > li:last-child {
  margin-bottom: 0;
}

.advantage-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__button {
  background-color: var(--bg-light-color);
  color: var(--text-dark);
}

.card__button:hover {
  background-color: var(--bg-dark-color);
  border-color: var(--bg-light-color);
}

.card__button:hover a {
  color: var(--text-light-accent);
}

.village-swiper .swiper-slide {
  width: calc(
    (100% - 40px) / 3
  ); /* 100% минус 2 отступа по 20px, деленные на 3 слайда */
}
.rent__content.rent_tablet {
  display: none;
}

.rent .container .rent__content.rent_tablet {
  padding-left: 20px;
}

.rent__content.rent_tablet .rent__title {
  margin-bottom: 40px;
}

.rent__content.rent_tablet .rent__img {
  width: 100%;
  height: 764px;
  margin-bottom: 40px;
}

.rent__content.rent_tablet .rent__img img {
  height: 100%;
}

.rent__content.rent_tablet .rent__desc {
  font-size: 16px;
  width: 433px;
}

.rent__content.rent_tablet + .container .section_info {
  padding-left: 20px;
}

.rent__box {
  display: flex;
  gap: 0;
}

.rent__content {
  display: flex;
  justify-content: space-between;
  min-height: 394px;
  gap: 139px;
  margin-bottom: 120px;
}

.rent .container {
  padding-left: 0;
}

.rent__title {
  text-indent: 58px;
  position: relative;
  margin-bottom: 154px;
}

.rent__title_accent {
  position: absolute;
  left: 69px;
  top: 37px;
}

.rent__subtitle {
  font-family: var(--semibold-font);
  font-size: 22px;
  line-height: 100%;
  margin-bottom: 30px;
  width: 336px;
}

.rent__img {
  width: 711px;
}

.rent__info {
  flex: 1;
}

.rent__desc {
  width: 379px;
  font-size: 14px;
  font-family: var(--italic-font);
  color: var(--text-gray);
  line-height: 100%;
}

.container .rent__box {
  padding-left: 20px;
}
.rent__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%;
  width: 100%;
  height: 622px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  padding: 20px;
}

.rent__item-img {
  height: 260px;
  margin-bottom: 7px;
}

.rent__item-img img {
  height: 100%;
  object-fit: cover;
}

.rent__item-title {
  font-family: var(--semibold-font);
  font-size: 36px;
  margin-bottom: 15px;
}

.rent__item-desc p {
  width: 70%;
}

.rent__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rent__quantity-title {
  font-family: var(--italic-font);
  font-size: 14px;
  color: var(--text-gray);
}

.rent__quantity-number {
  font-size: 14px;
}

.rent__item-desc {
  font-size: 14px;
  line-height: 100%;
  margin-bottom: 17px;
}

.rent__add ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.rent__add ul > li {
  position: relative;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
  padding-left: 20px;
}

.rent__add ul > li:last-child {
  margin-bottom: 0;
}

.rent__add ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='3.5' transform='matrix(1 0 0 -1 0 8)' stroke='%23111111' stroke-opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.rent__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rent__price-name {
  font-family: var(--italic-font);
  font-size: 14px;
  color: var(--text-gray);
}

.rent__price-cost {
  font-family: var(--semibold-font);
  font-size: 22px;
}

.rent__button {
  background-color: var(--bg-dark-color);
}

.rent__button a {
  color: var(--text-light-accent);
}

/* Стили для Swiper слайдера аренды */
.rent-swiper {
  width: 100%;
  overflow: hidden;
}

.rent-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.rent-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.rent-swiper .swiper-slide {
  width: calc((100% - 40px) / 3);
  flex-shrink: 1;
}

.advantages {
  margin-bottom: 118px;
}

.advantages__title_tablet {
  display: none;
}

.advantages__title {
  position: relative;
  margin-bottom: 68px;
}

/* Owl Carousel стили */
.advantages__slider .owl-stage-outer {
  overflow: hidden;
}

.advantages__slider .owl-stage {
  display: flex;
}

.advantages__slider .owl-item {
  display: flex;
  align-items: stretch;
}

/* Карточка преимуществ */
.advantages-item {
  width: 335px;
  height: 254px;
  background-color: var(--accent-color);
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.advantages-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 15px var(--text-gray);
  z-index: 10;
}

.advantages-item:hover .advantages-item__img {
  transform: translateY(-4px);
}

.advantages-item__img {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  border: 1px solid rgba(243, 240, 232, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.advantages-item__img img {
  width: 44px !important;
  height: auto;
}

.advantages-item__title {
  font-family: var(--bold-font);
  font-size: 22px;
  color: var(--text-light-accent);
  margin-bottom: 20px;
}

.advantages__title_accent {
    position: absolute;
    top: 30px;
    left: 407px;
}

.advantages-item__info {
  font-family: var(--regular-font);
  font-size: 16px;
  line-height: 100%;
  color: rgba(243, 240, 232, 0.8);
  min-width: 273px;
  max-width: 100%;
}

/* Навигация */
.advantages__navigation {
  display: flex;
  gap: 8px;
}

.slider__navigation_left,
.slider__navigation_right {
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.slider__navigation_left:hover,
.slider__navigation_right:hover {
  opacity: 0.7;
}

.footer {
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.footer__nav {
  padding: 26px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  width: 218px;
  height: 42px;
}

.footer__menu-list {
  display: flex;
  gap: 40px;
  list-style: none;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 100%;
}

.footer__content {
  background-color: var(--bg-dark-color);
}

.footer__contacts {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 35px 0 32px;
}

.footer__information {
  display: flex;
  gap: 80px;
}

.element_title {
  font-size: 14px;
  line-height: 120%;
  color: var(--text-light);
  margin-bottom: 15px;
}

.element_desc {
  font-family: var(--bold-font);
  color: var(--text-light-accent);
  font-size: 14px;
}

.footer__phone {
  display: flex;
  flex-direction: column;
}

.footer__socials .element_title {
  margin-bottom: 17px;
}

.footer__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__icon {
  width: 32px;
  height: 32px;
}

.footer__hours {
  text-align: right;
}

.footer__hours .element_title {
  margin-bottom: 16px;
}

.footer__img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.footer__img img {
  height: 100%;
}

.footer__copy {
  font-family: var(--italic-font);
  padding: 35px 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy-info {
  font-size: 14px;
  line-height: 110%;
  color: var(--text-light);
}

.footer__copy-policy a {
  font-size: 14px;
  line-height: 110%;
  color: var(--text-light);
}

.footer__copy-policy a:first-child::after {
  content: " |";
}

.footer__content a:hover {
  color: rgba(243, 240, 232, 0.8);
  text-decoration: underline;
}

.error {
  height: auto;
  min-height: 600px;
  padding: 133px 0 80px;
  background-repeat: no-repeat;
  background-size: cover;
}

.error__content {
  width: 455px;
  margin: 0 auto;
}

.error_404 {
  margin-bottom: 55px;
}

.error__message {
  font-family: var(--third-font);
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 60px;
}

.error__button {
  font-family: var(--fourth-font);
  padding: 12px 24px;
  width: 219px;
  height: 32px;
  background-color: var(--accent-color);
  border: none;
  margin: 0 auto;
  font-weight: 700;
  font-size: 14px;
  line-height: 110%;
  color: #fff;
}

.error__button:hover {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.policy {
  padding: 40px 20px;
}

.policy__title {
  font-size: 42px;
  line-height: 100%;
  margin-bottom: 60px;
  width: 60%;
}

.policy__content {
  width: 60%;
  line-height: 120%;
}

.policy .wp-block-list {
  list-style-position: inside;
  padding-left: 20px;
}

.village-genplan {
  height: auto;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 38px;
  position: relative;
}

.village-genplan__content {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.village-genplan_desktop .village-genplan__content {
  width: 100%;
}

.village-genplan_desktop .village-genplan__content .container {
  padding: 0 0 10% 0;
}

.village-genplan__content svg {
  width: 100%;
  height: 100%;
  aspect-ratio: 1440 / 700;
}

.village-genplan_desktop .village-legend {
  width: 50%;
}

#plot-tooltip {
  z-index: 99;
  pointer-events: none;
  transition: var(--transition);
}

.village-genplan_desktop .village-tooltip {
  position: absolute;
  width: 30%;
  bottom: 10px;
  left: 20px;
}

.village-genplan__title {
  position: relative;
  z-index: 3;
}

.village-genplan__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.village-genplan_accent {
  left: -170px;
  position: relative;
  top: 20px;
}

.village-genplan_accent_br {
  left: 335px;
  top: -30px;
  position: relative;
}

.village-tooltip__info {
  background-color: var(--bg-dark-color);
  color: var(--text-light-accent);
  padding: 32px;
  margin-bottom: 20px;
}

.village-tooltip__header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(116, 116, 116, 0.4);
}
.village-tooltip__header-header {
  font-size: 24px;
}

.village-tooltip__circle {
  width: 18px;
  height: 18px;
  border-radius: 100%;
  border: 1px solid rgba(243, 240, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.village-tooltip__circle_inside {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  border: 1px solid var(--free);
  background-color: var(--free);
}

.village-tooltip__desc {
  padding: 20px 0;
  border-bottom: 1px solid rgba(116, 116, 116, 0.4);
}

.village-tooltip__square,
.village-tooltip__price,
.village-tooltip__st {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.village-tooltip__price {
  margin-bottom: 0;
}

.village-tooltip__square p,
.village-tooltip__price p,
.village-tooltip__st p {
  font-family: var(--italic-font);
  font-size: 16px;
  color: var(--text-light);
}

.village-tooltip__square-square,
.village-tooltip__st-st {
  font-size: 16px;
}

.village-tooltip__price-price {
  font-size: 20px;
}

.village-tooltip__add {
  font-family: var(--italic-font);
  font-size: 16px;
  color: var(--text-light);
  padding-top: 20px;
}

.village-legend {
  background: rgba(17, 17, 17, 0.8);
  padding: 24px 32px;
}

.village-legend__title {
  font-family: var(--semibold-font);
  font-size: 16px;
  color: var(--text-light-accent);
  margin-bottom: 26px;
}

.village-legend__box {
  display: flex;
  gap: 32px;
}

.village-legend__item {
  width: 33.3%;
  display: flex; 
  align-items: center;
  gap: 5px;
}

.village-legend__text {
  font-family: var(--italic-font);
  font-size: 14px;
  line-height: 100%;
  color: rgba(243, 240, 232, 0.5);
}

.outside {
  width: 18px;
  height: 18px;
  border-radius: 100%;
  border: 1px solid rgba(243, 240, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;  
}
.village-genplan.village-genplan_tablet,
.village-genplan.village-genplan_mobile {
  display: none;
}
.village-genplan.village-genplan_tablet,
.village-genplan.village-genplan_mobile {
  min-height: auto;
  background-image: none;
  margin-bottom: 120px;
}

.village-genplan_tablet .village-genplan__content,
.village-genplan_mobile .village-genplan__content {
  width: 100%;
  height: 738px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  position: relative;
}

.village-genplan_mobile .village-genplan__content {
  margin-top: -30px;
}

.village-genplan_tablet .village-genplan__content .container {
	height: 100%;
}

.village-genplan_tablet .village-genplan-container {
  position: absolute;
  width: 100%;
  padding-bottom: 0;
  overflow: hidden;
  margin: 0 auto;
  top: 0px;
  left: 0;
  height: 100%;
}

.village-genplan_mobile .village-genplan-container {
  position: absolute;
  width: 100%;
  padding-bottom: 0;
  overflow: hidden;
  margin: 0 auto;
  top: 0px;
  left: 5px;
  height: 100%;
}

.village-genplan.village-genplan_mobile .village-genplan__content {
  width: 100%;
  height: 260px;
}

.village-genplan_tablet .village-legend {
  width: 50%;
  position: absolute;
  bottom: 25px;
  left: 13px;	  
  padding: 20px;
}

.village-genplan_tablet .village-legend__box {
  gap: 24px;
}
.inside {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  border: 1px solid;
}

.free-inside {
  background-color: var(--free);
  border-color: var(--free);
}

.booked-inside {
  background-color: var(--booked);
  border-color: var(--booked);
}

.sold-inside {
  background-color: var(--sold);
  border-color: var(--sold);
}
.village-genplan-container {
  position: absolute;
  width: 100%;
  padding-bottom: 48.61%;
  overflow: hidden;
  margin: 0 auto;
  top: 0px;
  left: 0;
  aspect-ratio: 969 / 582;
}

.plot {
  transition: all 0.3s ease;
  stroke-width: 1;
  cursor: pointer;
}

.plot:hover {
  fill-opacity: 0.3;
  stroke: var(--free);
}

.plot-free {
  fill: var(--free);
}

.plot-free:hover {
  fill: rgba(0, 255, 0, 0.3);
}

.plot-booked {
  fill: var(--booked);
}

.plot-booked:hover {
  fill: rgba(255, 165, 0, 0.3);
}

.plot-sold {
  fill: var(--sold);
}

.village-tooltip__box {
  margin-bottom: 20px;
}

.village-map__content {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: stretch;
}

.village-map__info {
  width: 50%;
}

.village-map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.village-map__button {
  font-family: var(--fourth-font);
  font-weight: 700;
  width: 202px;
  background-color: var(--bg-dark-color);
  color: var(--text-light-accent);
}

.village-map__desc {
  background-color: var(--accent-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

.village-map__info,
.village-map__desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.village-map__map iframe {
  width: 100%;
}

.village-map__map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.village-map__info_mobile {
  display: none;
}

.village-map__desc-slider {
  flex: 1;
  background-color: var(--accent-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
}

.village-map__desc-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.village-map__desc {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 16px;
}

.village-map__desc .section_info_light {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0.9;
  line-height: 1;
}

.village-map-swiper {
  flex: 1;
  width: 100%;
  opacity: 0;
  transition: var(--transition);
}

.village-map__desc-slider .swiper-slide {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: auto;
}

.village-map__desc-title {
  font-family: var(--bold-font);
  color: var(--text-light-accent);
  margin-bottom: 32px;
}

.village-map__list ul {
  font-family: var(--first-font);
  color: var(--bg-light-color);
  list-style-position: inside;
  padding-left: 8px;
}

.village-map__list ul > li {
  font-size: 16px;
  margin-bottom: 12px;
}

.village-advantages__box {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.village-advantages__item {
  width: 25%;
  display: flex;
  flex-direction: column;
}

.village-advantages__item {
  width: 25%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.village-advantages__item:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
}

.village-advantages__img-wrapper {
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.village-advantages__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.village-advantages__item:hover .village-advantages__img-wrapper img {
  transform: scale(1.08);
}

.village-advantages__img-wrapper {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  overflow: hidden;
}

.village-advantages__item img {
  height: 100%;
  object-fit: cover;
}

.village-advantages__title {
  font-family: var(--semibold-font);
  font-size: 22px;
  margin-bottom: 12px;
}

.village-advantages__desc {
  font-size: 14px;
  line-height: 100%;
}

@media only screen and (max-width: 2900px) {
	
	.village-genplan {
	margin-top: 38px;
	padding-top: 0;
	}
	
	 .village-genplan__header {  
    margin-bottom: 150px;
}
	
	.village-genplan_desktop .village-genplan__content {
    min-height: 1355px;
}
  
}
@media only screen and (max-width: 2800px) {
	 .village-genplan__header {  
    margin-bottom: 140px;
}
    .footer__copyright {
    min-height: 180px;
  }
	.footer__contacts {
     min-height: 200px;
  }	
}

@media only screen and (max-width: 2600px) {
   .village-genplan__header {  
    margin-bottom: 140px;
}
}

@media only screen and (max-width: 2100px) {

	.village-genplan_desktop .village-genplan__content {
    min-height: unset;
}
  
}
@media only screen and (max-width: 1920px) {
	.village-genplan__header {  
    margin-bottom: 50px;
}
	.village-genplan {
    min-height: unset;
    margin-top: 0;
	padding-top: 38px;
}

	.footer__contacts {
     min-height: 180px;
  }
    .footer__copyright {
    min-height: 150px;
  }
}


@media only screen and (max-width: 1660px) {
  .village-genplan-container {
    top: -35px;
  }
	
}

@media (max-width: 1441px) {
  :root {
    --scale-factor: 1; /* Сброс масштаба — фиксируем на оригинальном размере */
  }

  .scale-wrapper {
    width: 100%; /* Фиксированная ширина, centered */
    max-width: 1440px;
    margin: 0 auto;
    margin-bottom: unset !important;
  }

  .about .scale-wrapper {
    margin-bottom: unset;
  }

  .container {
    transform: scale(1); /* Отключаем transform */
    width: 100%; /* Базовая ширина */
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Снимаем min-height с секций, делаем динамическими */
  .main,
  .about,
  .slider,
  .village,
  .rent,
  .advantages,
  .footer,
  .village-map,
  .village-advantages,
  .policy {
    min-height: auto !important;
  }

  section {
    margin-bottom: 120px;
  }

.mainSwiper .main__content_village {  
    top: 100px;
}
  .policy {
    padding: 40px 20px 80px;
  }

  .policy__title {
    width: 100%;
  }

  .policy__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.5;
  }

  .footer {
    z-index: 10;
    margin-top: 50px;
  }
	 .footer__copyright, .footer__contacts {
    min-height: auto;
  }

  .policy__content img,
  .policy__content figure {
    max-width: 100%;
    height: auto;
  }
  .village-genplan_desktop .village-genplan__content .container {
    padding-bottom: 0;
  }
}



@media only screen and (max-width: 1200px) {
  .header__logo {
    margin-right: 17px;
  }

  .header__menu-list {
    font-size: 10px;
  }
}

@media only screen and (max-width: 1099px) {
  .sidenav {
    display: block;
    background-color: var(--bg-light-color);
    width: 100vw;
    height: 100vh;
    padding: 40px 0;
    position: fixed;
    top: 100px;
    left: -100vw;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .sidenav.active {
    left: 0;
  }

  .sidenav .header__menu-list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 60px;
  }

  .sidenav .header__menu-list a {
    width: 100%;
    font-family: var(--first-font);
    font-size: 18px;
    line-height: 100%;
  }

  .sidenav .menu-item {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  }

  .sidenav .menu-item:first-child {
    border-top: 1px solid rgba(17, 17, 17, 0.1);
  }

  .sidenav .header__buttons {
    width: 100%;
    flex-direction: column-reverse;
    margin-bottom: 60px;
  }

  .sidenav .header__button {
    width: 100%;
  }

  .sidenav .header__socials {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 120%;
    color: rgba(17, 17, 17, 0.5);
  }

  .sidenav .header__icons {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidenav .element_title {
    font-size: 14px;
    line-height: 120%;
    color: var(--text-gray);
    margin-bottom: 0;
  }

  .section_info {
    display: block;
  }

  .header_desktop {
    display: none;
  }

  .header_tablet {
    display: block;
  }
	
  .custom-logo {
	width: 100%;
}

  .main {
    height: 735px;
  }

  .main__content {
    padding-left: 0;
    margin-top: 40px;
    margin-bottom: 12px;
  }

  .main__info .text {
    font-size: 16px;
  }

  .main__title {
    width: 100%;
  }

   .main__content_village .main__slide-info {
    width: 100%;
}
	.main__slide-box {
		width: auto;
		flex-grow: 1;
	}
  .main__slide-box-icon{
	  display: block;
		width: 24px;
		height: 24px;
	}
	
   .mainSwiper .main__content_village {   
    top: 0;
    flex-direction: column;
}

  .about {
    padding-top: 95px;
    padding-bottom: unset;
  }

  .about .section_info {
    margin-bottom: 75px;
  }

  .about__info {
    padding-top: 0;
    flex-wrap: wrap;
  }

  .about__box {
    gap: 120px;
    overflow: scroll;
    padding-left: 0;
  }

  .about__item {
    min-width: max-content;
  }

  .slider_desktop {
    display: none;
  }
  .slider_tablet {
    display: block;
    overflow: hidden;
  }

  .slider__header {
    padding-top: 0;
  }

  .village-swiper .swiper-wrapper {
    gap: 20px;
  }

  .village-swiper .swiper-slide,
  .rent-swiper .swiper-slide {
    width: 100%;
    flex-shrink: 0;
  }

  .rent__content.rent_desktop {
    display: none;
  }

  .rent__content.rent_tablet {
    display: block;
  }

  .rent__item {
    height: auto;
    max-height: 677px;
  }

  .rent__item-title {
    margin-bottom: 20px;
  }

  .rent_price {
    margin-bottom: 20px;
  }

  .rent__item-img {
    height: 316px;
  }

  .advantages__title_desktop,
  .advantages__navigation_desktop {
    display: none;
  }

  .advantages__title_tablet {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .advantages__title_tablet .advantages__title {
    width: 344px;
    text-indent: 58px;
  }

  .advantages__title_tablet .advantages__title_accent {
    top: 62px;
    left: 105px;
    text-align: right;
  }

  .advantages__navigation svg {
    width: 32px;
    height: 32px;
  }

  .advantages-item {
    width: 100%;
    height: 320px !important;
    padding-top: 60px !important;
  }

  .owl-item {
    padding-top: 0 !important;
  }

  .advantages__navigation_tablet {
    display: flex;
  }
  .advantages__navigation_desktop {
    display: none;
  }

  .footer__img {
    width: 100%;
  }

  .footer__phone {
    order: 1;
  }
  .footer__copy {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .policy__title {
    width: 100%;
  }

  .policy__content {
    width: 90%;
  }

  .village-genplan.village-genplan_tablet {
    display: block;
  }
  .village-genplan_desktop {
    display: none;
  }
  .village-genplan_mobile {
    display: none;
  }
  .village-genplan_tablet .village-genplan__content svg {
    transform: scale(1.55);
  }
  
  .village-legend__item {
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}
  .village-genplan.village-genplan_tablet,
  .village-map,
  .village-advantages {
    margin-bottom: calc(var(--scale-factor) * 100px);
  }

  .village-map__content {
    flex-direction: column;
  }

  .village-map__desc {
    gap: 150px;
  }

  .village-map__info {
    width: 100%;
  }

  .village-advantages__box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .village-advantages__item {
    width: auto;
  }
}

@media only screen and (max-width: 680px) {
.village-genplan_accent {
    left: 95px;   
    top: -8px;
}
}
@media only screen and (max-width: 540px)  {
  section {
    padding-bottom: 0px;
    margin-bottom: calc(var(--scale-factor) * 80px);
  }

  section {
    padding-bottom: 0;
  }

  .burger {
    width: 40px;
  }

  .burger__line {
    width: 100%;
    height: 3px;
  }

  .sidenav {
    top: 92px;
  }

  .header_tablet {
    height: auto;
  }
  .header_tablet .header__logo {
    width: 188px;
  }

  .main__title {
    font-size: 26px;
  }

  .main__box {
    padding: 12px;
    background-color: var(--bg-light-color);
    opacity: 0.8;
  }

  .main__info .text,
  .main__offer .text {
    font-size: 14px;
  }
  .main__info .text {
    width: 95%;
  }

  .main__offer {
    margin-bottom: 34px;
    line-height: 1;
  }

  .main_accent {
    display: inline-block;
  }

  .main__slider {
    display: none;
  }

  .main__buttons {
    flex-direction: column;
    margin-bottom: 0;
  }

  .main__button {
    width: 100%;
  }

  .main__content {
    margin-bottom: 90px;
  }
  .main-pagination-wrapper {
    left: 50%;
    transform: translateX(-50%);
	bottom: 10px;
  }
  .main-pagination {
    display: none;
  }
	
  .main__slide-box-adv ul {
    grid-template-columns: repeat(1, 1fr);
}
   .main__slide-box-adv ul> li {
    font-size: 12px;
}
  .about__info {
    gap: 40px;
    padding-bottom: 40px;
  }

  .about__title {
    font-size: 22px;
  }

  .about__text .text {
    font-size: 16px;
  }

  .about__box {
    gap: 82px;
  }

  .about .scale-wrapper {
    margin-bottom: 0;
  }

  .title_accent {
    font-size: 40px;
  }
	.main-slider_title_accent {
		left: 0;
  }
	
  .slider_tablet {
    min-height: auto;
  }

  .slider__title {
    font-size: 26px;
    width: 65%;
  }

  .slider__title_accent {
    top: 50px;
  }

  .slider_tablet .slider__header {
    margin-bottom: 50px;
  }

  .slider_tablet .slider__photo {
    width: 100%;
    height: auto;
  }

  .slider_tablet .slider__text {
    font-size: 14px;
    width: 79%;
  }
  .slider .scale-wrapper {
    margin-bottom: unset;
  }
  .slider_tablet .slider__box {
    width: 100%;
  }
  .village-swiper {
    overflow: visible !important;
  }

  .village-swiper .swiper-wrapper {
    transform: none !important;
    flex-direction: column;
    gap: 20px;
  }

  .village-swiper .swiper-slide {
    width: 100% !important;
    height: auto !important;
  }

  .card {
    height: auto;
  }
  .rent .scale-wrapper {
    margin-bottom: unset;
  }
  .rent__content.rent_tablet {
    margin-bottom: 80px;
  }

  .rent__content.rent_tablet .rent__title {
    font-size: 26px;
    order: 1;
    margin-bottom: 0;
  }

  .rent__title_accent {
    left: 20px;
    top: 23px;
  }

  .rent__content.rent_tablet .rent__subtitle {
    font-size: 20px;
  }
  .rent__content.rent_tablet .rent__desc {
    font-size: 14px;
    width: 100%;
  }
  .rent__content.rent_tablet {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }

  .rent__content.rent_tablet .rent__img {
    width: 100%;
    height: 244px;
    margin-bottom: 0;
  }
  .rent {
    margin-bottom: 80px;
  }
  .rent__box {
    flex-direction: column;
  }

  .rent-swiper {
    overflow: visible !important;
  }

  .rent-swiper .swiper-wrapper {
    transform: none !important;
    flex-direction: column;
    gap: 20px;
    padding-left: 10px;
  }

  .rent-swiper .swiper-slide {
    width: 100% !important;
    height: auto !important;
  }

  .rent__item-title {
    font-size: 20px;
  }

  .rent__item-img {
    height: 197px;
  }

  .rent__add ul > li {
    font-size: 12px;
  }

  .advantages {
    margin-bottom: 80px;
  }

  .advantages__box {
    overflow: auto;
  }

  .advantages__title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .advantages__title_tablet .advantages__title_accent {
    top: 40px;
    left: 0;
    right: 44px;
  }

  .advantages-item,
  .owl-item {
    width: 100% !important;
    height: 280px !important;
    padding: 20px !important;
  }

  .owl-item {
    padding: 0 !important;
  }

  .footer {
    border-top: none;
  }
  .footer__nav {
    flex-direction: column;
    align-items: start;
  }
  .footer__logo {
    margin-bottom: 20px;
  }

  .footer__menu {
    width: 100%;
  }

  .footer__menu-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .footer__menu-list li {
    width: 100%;
    font-size: 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  }

  .footer__menu-list li:first-child {
    border-top: 1px solid rgba(17, 17, 17, 0.1);
  }

  .footer__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding: 24px 0 !important;
  }

  .footer__phone {
    grid-column: 1;
    grid-row: 1;
  }

  .footer__socials {
    grid-column: 2;
    grid-row: 1;
  }

  .footer__email {
    grid-column: 1;
    grid-row: 2;
  }

  .footer__hours {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  .footer__information {
    display: contents !important;
  }

  .footer__information > * {
    margin: 0 !important;
  }

  .footer__icons {
    margin-top: 8px;
    gap: 12px;
  }

  .footer__copy {
    justify-content: flex-start;
  }

  .footer__copy-info,
  .footer__copy-policy a {
    font-size: 12px;
  }

  .footer__copy-policy {
	width: 100%;
    display: flex;
	flex-wrap: wrap;
	gap: 20px;
  }
	
  .footer__copy-policy a:first-child::after {
    content: "" !important;
    display: none !important;
  }

  .error__content {
    width: 100%;
    text-align: center;
  }
  .error_404 svg {
    width: 240px;
    height: auto;
  }

  .error__message {
    font-size: 16px;
  }

  .policy__title {
    font-size: 24px;
  }

  .policy__content {
    width: 100%;
  }
  .village-genplan.village-genplan_mobile {
    display: block;
  }
  .village-genplan.village-genplan_tablet,
  .village-genplan.village-genplan_desktop {
    display: none;
  }
  .village-genplan.village-genplan_mobile {
    margin-bottom: calc(var(--scale-factor) * 100px);
  }

  .village-genplan_accent {
    left: 25%;
    top: -20px;
  }
  .village-genplan_accent_br {
    left: 0;
    top: -50px;
  }
  .village-map__info_desktop {
    display: none;
  }

/*   .village-genplan_mobile .village-genplan__content svg {
    transform: scale(1.55);
  } */
  .village-map__info.village-map__info_mobile {
    display: flex;
    gap: 20px;
  }

  .village-map__info.village-map__info_mobile {
    display: flex;
    gap: 20px;
  }

  .village-map__info.village-map__info_mobile .village-map__button {
    width: 100%;
  }

  .village-map__map {
    height: 540px;
  }

  .village-map__map img {
    height: 100%;
  }

  .village-map__desc {
    gap: 130px;
  }

  .village-map__map iframe {
    width: 100%;
    height: 540px;
  }

  .village-advantages__box {
    grid-template-columns: repeat(1, 1fr);
  }

  .swiper-slide .scale-wrapper .container {
    width: auto;
  }
	.village-genplan__svg-wrapper .container {
	height: 100%;
}
}

@media only screen and (max-width: 375px) {
    .main {
        height: 768px;
    }
}

/* Фикс для хедера  */
.header_desktop {
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: var(--bg-light-color);
  min-height: calc(var(--scale-factor) * 68px);
  height: auto;
}

.plot:focus:not(:focus-visible) {
  outline: none;
}

.plot:focus {
  outline: none;
}
.plot:hover {
    fill-opacity:1; 
}

.genplan_zoomer {
    position: absolute;
    top: 15px;
    right: 15px;
    overflow: hidden;
    display: none; 
	flex-direction: column;
	gap: 5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08); 
}

.genplan_zoomer .zoom {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background-color: var(--accent-color); 
    color: #fff; 
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    text-align: center;  
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    user-select: none;
    transition: 
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
    position: relative;
}

.genplan_zoomer .zoom:last-child {
    margin-bottom: 0;
}


.genplan_zoomer .zoom:hover:not(.disable) {
    background-color: #5a8a55;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.genplan_zoomer .zoom.disable {
    pointer-events: none;
    background-color: var(--bg-light-color, #f0f0f0);
    color: var(--dark-grey, #999);
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.genplan_zoomer .zoom:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: -2px;
    box-shadow: 0 0 0 2px rgba(70, 111, 68, 0.4);
}

.village-genplan__svg-wrapper {
    position: relative;
    overflow: hidden;
    touch-action: pan-x pan-y;
    height: 100%;
}

.village-genplan_mobile .village-genplan__svg-wrapper svg {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.village-genplan.village-genplan_mobile .village-genplan__content {
    width: 100%;
    min-height: 260px; 
}

.village-genplan_tablet .village-genplan__content,
.village-genplan_mobile .village-genplan__svg-wrapper {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}


/* Улучшение рендеринга для Android */
.village-genplan__svg-wrapper svg {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
}

.to-main {
	display: flex;
    align-items: center;
	padding-top: 20px;
}
