*{margin: 0px; padding: 0px;}
html, body {width:100%; overflow-x: hidden;}

/* 320px — мобильники (портретный режим).
480px — смартфоны (ландшафтный режим).
768px — планшеты (портретный режим).
1024px — планшеты (ландшафтный режим).
1200px */

body{
    font-family: "Manrope", Arial, sans-serif;
    background-color: white;
    z-index: 1;
    text-align: justify;
}
h1, h2{
    font-family: "Prata", serif;
}
h2{
    color: #dda16b;
    margin-left: 50px;
    margin-top: 60px;
    font-size: 40px;
    text-align: left;

}
.underline{
    background-color: lightgray; height: 3px; width: 90%; margin: 20px 0px;
}


.contentHeaderStatic{
    padding: 5px 0 10px 0;
    border-bottom: 1px solid white;
    height: 60px;
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* Скрытое стартовое состояние (готово к анимации) */
    pointer-events: auto;
}
.contentHeaderStatic #logo{
    pointer-events: none;
}

/* Главная шапка */
header {
    position: relative;
    height: 100vh;
    margin: 0;
    padding: 0 10px 20px 10px;
    text-align: left;
    overflow: hidden;
  }
  
  /* Фон-видео */
  #bg-video-mobile{
    display: none;
  }
  #bg-video-lap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы видео растягивалось как фон */
    z-index: -1; /* Чтобы было позади контента */
  }
  
  /* Остальной стиль без изменений */
  .contentHeader{
    padding: 5px 0 10px 0;
    border-bottom: 1px solid white;
    height: 80px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: height .35s ease, background-color .35s ease;
    /* Скрытое стартовое состояние (готово к анимации) */
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  
  /* Показываем (когда пользователь прокрутил ниже hero) */
  .contentHeader.is-visible{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    animation: headerDrop .45s ease-out both;
  }
  
  @keyframes headerDrop{
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }
  


.upPart .menu{
    width: 100px;
    height: 20px;
    padding:20px 15px 20px 15px ;
    border: 1px solid white;
    border-radius: 40px;
    color: white;
    align-items: center;
    text-align: center;
    cursor: pointer;
    margin-right: 60px;
}
.upPart{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

#logo{
    width: unset;
    height: 40px;
    margin-left: 60px;
    margin-right: 180px;
    cursor: pointer;
}
.upPart{
    width: 100%;
    font-size: larger;
}
.upPart img{
    width: 30px;
    height: 30px;
    margin: 0px 15px;
}
.upPart .cont a{
    position: relative;
    bottom: 0px;
}
.upPart .cont {
    align-items: center;
    font-size: 23px;
    display: flex;
    justify-content: center;
}
.upPart .cont img{
    margin: 0px 20px 0px 0px;
    padding-top: 10px;
}
.upPart .cont img:last-child(){
    margin: 0px 30px;
}
.sl_house, a{
    color: white;
    text-decoration: none;
    align-items: center;
    text-align: center;
    position: relative;
    bottom: 13px;
}
.sl_house img{
    /* position: relative;
    bottom: 7px; */
    margin:20px 10px 10px 10px;
    width: 12%;
}
.sl_house{
    /* background-color: rgba(0, 0, 0, 0.4); */
    width: 20%;
    /* padding:20px 15px 20px 15px ; */
    color: white;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.middle {
    margin: 10px 0px 50px 20px;
    font-size: 40px;
    margin-top: 50px;
    position: absolute;
    bottom: 40px;
    align-items: center;
    color: white;
}
.middle span{
    font-size: 80px;
}

.middle .info {
    width: 100%;
    margin: 0px;
}

.decorate{
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 2;
    width: 100%;
    height: 40px;
    padding: 20px 0px 0px 0px;
    color: white;
    align-items: center;
    font-size: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.menu-container{
    width: 100%;
    height: 100vh;
    display: none;
}
.half-menu{
    width: 60%;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
    display: none;
    z-index: 1050;
}
.menu-content{
    width: 40%;
    padding: 10px 30px;
    color: black;
    transition: 0.5s ease-in-out;
    z-index: 1100;
    position: fixed;
    top: 0px;
    right: 0px;
    background-color: white;
    height: 100vh;
    z-index: 1100;
}
.menu-content .menu_head{
    width: 100%;
    height: 300px;
}
.menu_head img{
    width: 40%;
    height: auto;
    float: left;
}
.menu_head .back{
    width: 70px;
    height: 70px;
    border: 1px solid #001E5D;
    float: right;
    border-radius: 20px;
    cursor: pointer;
}
.menu-content nav a{
    color: black;
    text-decoration: none;
    font-size: 30px;
    text-align: left;
    display: flex;
}
.menu-content nav a:hover{
   color: #001E5D;
    text-decoration: none;
    font-size: 30px;
    
}
.menu-content .contacts{
    margin-top: 150px;
}
.menu-content .contacts a{
    color: black;
    text-decoration: none;
    bottom: unset;
    position: relative;
    bottom: 0px;
}
.menu_head .back img{
    width: 100%;
    border-radius: 20px;
}



.select_house_btn2{
    padding: 30px 60px;
    border: 5px solid white;
    border-radius: 10px;
    margin: 0px 0px 0px 100px;
    align-items: center;
    display: none;
}
.select_house_btn a{
    text-decoration: none;
    margin: 10px 10px 50px 10px;
}

/* видео — фоновое (необязательно, но обычно так удобнее) */
.statisticInfo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    height: 100vh;
    color: black;
    background-position: center;
    overflow: hidden; /* чтобы анимации не вылезали */
  }
  
  /* если видео внутри секции — уложим его под контент */
  .statisticInfo > video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(.85); /* немного приглушим, чтобы текст читался */
  }
  
  /* вертикальная линия: «рисуем» scaleY */
  .statisticInfo .line{
    position: absolute;
    left: 360px;
    top: 0; bottom: 0;
    width: 2px;
    background: black;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .8s ease;
  }
  
  /* карточки: стартовое состояние (невидимы, чуть ниже) */
  .stat-item{
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    left: 150px;
    backdrop-filter: blur(5px);
    border: 1px solid black;
    margin: 100px 30px 0 0;
    background: rgba(0,0,0,.3);
  
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
  }
  
  /* квадрат и текст — как у тебя */
  .stat-item .square{
    border: 2px solid black;
    width: 120px; height: 80px;
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    color:#fff; background: rgba(0,0,0,.6);
  }
  .stat-item .square b{ font-size:35px; line-height:1; }
  .stat-item .square p{ margin:0; font-size:18px; line-height:1; }
  .stat-item .desc{ font-size:30px; font-weight:500; color:#fff; margin-right:30px; }
  
  /* ——— состояние "в поле зрения" ——— */
  .statisticInfo.in-view .line{ transform: scaleY(1); }
  .statisticInfo.in-view .stat-item{ opacity:1; transform:none; }
  
  /* уважение к пользователям с reduced-motion */
  @media (prefers-reduced-motion: reduce){
    .statisticInfo .line,
    .stat-item{
      transition: none !important;
      transform: none !important;
      opacity: 1 !important;
    }
  }



.panorama {
    background-image: url(../imgs/panorama.png);
    background-size: cover;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.panorama .panoramaBTN{
    width: 450px;
    height: 20px;
    padding: 20px 20px 35px 20px;
    border: 3px solid white;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 1); /* Объемный эффект в нормальном положении */
    transition: all 0.2s ease-in-out;
}
.panorama .panoramaBTN:hover {
    transform: scale(1.05); /* Немного увеличиваем масштаб */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Усиливаем глубину тени */
}
.panorama .panoramaBTN:active{
    transform: translateY(3px); /* Опускаем кнопку чуть ниже */
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2);
}

.expand{
    width: 300px;
    height: 50px;
    padding-top: 20px;
    text-align: center;
    align-items: center;
    font-size: x-large;
    color: white;
    cursor: pointer;
    background-color: darkgrey;
    border-radius: 20px;
    margin: 10px auto;
}
.expand:hover{
    box-shadow: 0 0 20px rgba(216, 176, 140, 0.7); /* фирменный цвет #D8B08C */
    transform: scale(1.05);
    transition: all 0.3s ease;
}
.blurred-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; /* Размер зоны размытия */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(255, 255, 255));
    pointer-events: none; /* Позволяет кликам проходить сквозь маску */
}
.houses{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0px;
    height: 1000px;
    overflow: hidden;
    position: relative;
    text-align: left;
    transition: height 0.5s ease-in-out; /* Добавляем переход высоты */
}
.houses figure{
    width: 400px;
    height: 450px;
    /* height: max-content; */
    border: 1px solid black;
    border-radius: 30px;
    color: #dda16b;;
    box-sizing: border-box;
    margin: 40px 50px;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow 0.5s ease;
}
.houses figure p{
    font-size: large;
}
.houses figure img{
    border-radius: 30px;
    width: 100%;
    max-height: 200px;
}
.houses figure h2{
    margin: 0px 15px;
    font-size: 20px;
}
.houses figure hr{
    width: 100%;
    background-color: #dda16b;;
    margin: 10px 0px;
}
.houses figure figcaption{
    padding: 0px 15px 10px 15px;
    display: flex;
    color: black;
} 
.houses figure figcaption .house-info{
    width: 60%;
}
.houses figure figcaption sup{
    font-size: small;
}
.houses figure .priceBox{
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #dda16b;
}
.houses figure .priceBox .price{
    margin: 40px 0px;
}

.houses figure .lookHouse{
    width: 230px;
    /* height: ; */
    color: white;
    border: 1px solid rgb(0, 30, 93);
    color: black;
    font-size: 20px;
    padding: 10px 10px 15px 10px;
    text-align: center;
    margin-top: 30px;

}
.houses figure .lookHouse:hover{
    background-color: rgba(0, 30, 93, 1);
    box-shadow: 0px 0px 5px;
    color: white;
}
.houses figure a{
    text-decoration: none;
}
  
.houses figure:hover {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* контейнер */

canvas { position: absolute; top: 0; left: 0; z-index: -1; }

.slider-box{
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 0 auto;
    max-height: 80vh;
    /* background-image: url(../imgs/sliderbg.png);
    background-size: cover; */
  }
  
  /* лента */
  .slider{
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
  }
  
  /* слайд – на весь вьюпорт */
  .slide{
    display: flex;
    flex-direction: column-reverse;
    flex-shrink: 0;
    text-align: center;
    width: 100vw;
    padding: 0 50px;
    box-sizing: border-box;
    gap: 30px;
    align-items: flex-start;
  }
  .slide img{
    max-width: 100%;
    margin: auto;
    height: 500px;
    object-fit: cover;
    border-radius: 25px;
  }
  .slider-info{
    width: 100%;
    color: #000;
    line-height: 30px;
  }
  .slider-info hr{
    margin-bottom: 0px;
  }
  
  /* кнопка */
  .slider-info .call-btn{
    display: inline-block;
    text-decoration: none;
    font-size: 30px;
    padding: 10px 24px 15px;
    background-color: #dda16b;;
    color: white;
    border: 1px solid transparent;
    position: absolute;
    bottom: 10px;
    width: max-content;
  }
  .call-btn:hover{
    color: #dda16b;;
    background: transparent;
    border-color: #001E5D;
  }
  /* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1; /* На переднем плане */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
  }
  
  /* Контейнер модального окна */
  .modal-content {
    position: relative;
    top: 10%;
    left: 15%;
    padding: 20px;
    width: 100%;
    max-width: 700px;
  }
  
  /* Закрывающая кнопка */
  .close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Изображение в модальном окне */
  .modal-img {
    width: 150%;
    height: auto;
  }
  /* === ТОЧКИ ПОД КАРТИНКОЙ === */
  /* ставим ниже слайдера и ограничиваем шириной картинки (60%) */
  .points{
    position: relative;
    width: 100%;
    margin: 24px 0 0 0px;   /* 50px = левый паддинг слайда */
    height: 48px;
  
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    overflow: visible;
  }
  
  /* светлый трек */
  .points::before{
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    height: 8px;
    background: #efe7e1;
    border-radius: 999px;
  }
  
  /* кружки */
  .points .point{
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    user-select: none;
    text-indent: -9999px; /* цифру скрываем, но оставляем в DOM */
    border: 6px solid transparent;
    transition: background .25s ease;
  }
  
  /* анимация активной точки:
     - заливка из центра
     - мягкий пульс */
  .points .point::after{
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #D8B08C;
    transition: width .35s ease, height .35s ease;
  }
  .points .point.active{
    border-color: #ead8c9;
    background: transparent;
  }
  .points .point.active::after{
    width: 28px;
    height: 28px;
  }
  .points .point.active::before{
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0 solid rgba(216,176,140,.6);
    animation: pointPulse 1.1s ease-out forwards;
  }
  
  @keyframes pointPulse{
    0%   { transform: scale(1);   opacity: .9; border-width: 0; }
    70%  { transform: scale(1.8); opacity: .2; border-width: 10px; }
    100% { transform: scale(2.1); opacity: 0;  border-width: 12px; }
  }
  
  /* адаптив */
  @media (max-width: 992px){
    .slide{
      flex-direction: column;
      align-items: center;
      padding: 20px;
    }
    .slide img, .slider-info{ width: 100%; }
    .points{
      width: calc(100% - 40px); /* 20px паддинги слева/справа */
      margin: 16px 0 0 0;
    }
  }


.calendar{
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    flex-direction: row;
    background-color: lightgrey;
}
.calendar .date{
    width: 250px;
    height: 30px;
    border-radius: 15px;
    padding: 20px 20px 10px 20px ;
    background-color: white;
    color: #dda16b;;
    cursor: pointer;
    margin: 20px 20px;
    text-align: center;
    align-items: center;
}
.timelapse{
    transition: transform 1s ease-in-out;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    display: flex;

}
.timelapse img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.forLive {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    overflow: hidden;
  }
  
  .forLive figure {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 80px 0;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  
  /* каждый второй блок выезжает с другой стороны */
  .forLive figure:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(-100px); /* выезжает с другой стороны */
  }
  
  /* При появлении — плавный выезд */
  .forLive figure.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* для плавного выезда контента внутри */
  .forLive figure div,
  .forLive figure img {
    transition: transform 0.8s ease, opacity 0.8s ease;
  }
/* Контент внутри */
.forLive figure div {
    width: 40%;
    margin: 10px 40px;
  }
  .forLive figure img {
    width: 40%;
    border-radius: 20px;
    height: auto;
    margin-bottom: 20px;
  }

.consultation{
    display: flex;
    justify-content: center;
}
.consultation form{
    margin-right: 20px;
    align-items: center;
    background-color: rgb(234, 234, 234);
    padding: 10px 40px;
}
.consultation form h2{
    margin: unset;
}
.consultation form input{
    width: 150px;
    height: 30px;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 20px 10px 20px 0px;
    /* border-color: lightgray; */
}
.consultation form button{
    width: 250px;
    height: 50px;
    background-color: darkgray;
    border: 0px;
    color: white;
    font-size: larger;
    border-radius: 15px;
    
}
.consultation form p {
    font-size: x-large;
    color: black;
    margin-top: 20px;
}
.consultation form p:last-child{
    font-size: x-small;
}
.consultation form a{
    color: black;;
    position: unset;
}

.news{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 50px;
    text-align: left;
    margin-bottom: 30px;
}
.news figure{
    height: 500px;
    width: 600px;
    color: #dda16b;;
    margin: 40px 40px;
}
.news figure img{
    width: 100%;
    border-radius: 20px;
}
.news figure h3{
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 200;
}
.news figure p{
    font-size: larger;
    color: black;
}

footer{
    background-color: #dda16b;;
}
.geo{
    display: flex;
    justify-content: center;
}
.geo img{
    width: 350px;
    height: 350px;
    margin: 40px 60px 40px 30px;
}
.geo iframe{
    margin: 20px 30px 40px 60px;

}

footer h3{
    font-size: 25px;
    margin-bottom: 30px;
}
.about{
    display: flex;
    justify-content: center;
    flex-direction: row;
    color: white;
}
.about .contacts{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    margin: 20px 90px;
}
.contacts p{
    margin: 10px 0px;
    font-size: x-large;
    
}
.about .contacts a{
    color: white;
    text-decoration: none;
}
.customer {
    margin: 20px 50px;
}
.customer nav{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.customer nav a{
    color: white;
    text-decoration: none;
    text-align: left;
    font-size: x-large;
    margin: 10px 0px;
}
footer hr{
    width: 80%;
    margin-left: 150px;
    background-color: rgba(0, 30, 93, 1)
}
.customer nav a:hover, .contacts p:hover{
    text-decoration:underline;
    cursor: pointer;
}

footer .policy{
    display: flex;
    color: white;
    padding: 40px 100px;
}
.links{
    width: 100%;
}
.links p{
    font-size: large;
}
.links nav a{
    color: white;
    margin: 20px;
    font-size: x-large;
}




@media (min-width: 320px) and (max-width: 480px){
    html, body {width:100%; overflow-x: hidden;}
    /* ======== 📱 АДАПТИВ ДЛЯ МОБИЛЬНЫХ (320–480px) ======== */

  body {
    text-align: left;
    font-size: 14px;
    padding: 0;
    margin: 0;
  }
  h2{
    color: #dda16b;
    margin-left: 20px;
    margin-top: 60px;
    font-size: 40px;
    text-align: left;
}
  /* ====== HEADER ====== */
  .contentHeader,
  .contentHeaderStatic {
    height: 50px;
    padding: 20px 10px 5px 10px;
    backdrop-filter: blur(6px);
  }

  #logo {
    height: 30px;
    margin: 0 10px;
  }
  .decorate .sl_house{
    display: none;
  }
  .upPart {
    flex-direction: row;
    justify-content: space-between;
    font-size: 14px;
    padding: 0 10px;
  }

  .upPart .menu {
    width: 70px;
    height: auto;
    padding: 15px 10px;
    font-size: 14px;
    border-radius: 20px;
    margin: 0;
  }

  .upPart .cont {
    font-size: 14px;
    display: none;
  }

  .middle {
    font-size: 24px;
    bottom: 80px;
    margin: 0 20px;
  }

  .middle span {
    font-size: 28px;
  }

  /* ====== HERO VIDEO ====== */
  header {
    height: 90vh;
  }
  #bg-video-lap{
    display: none;
  }
  #bg-video-mobile {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: block;
  }

  /* ====== STATISTIC INFO ====== */
  .statisticInfo {
    gap: 30px;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 40px 0;
  }

  .statisticInfo .line{
    position: absolute;
    left: 60px;
    top: 0; bottom: 0;
    width: 2px;
    background: black;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .8s ease;
  }

  .stat-item {
    flex-direction: row;
    left: 0;
    margin: 20px 0;
    gap: 10px;
    width: 90%;
  }

  .stat-item .square {
    width: 100px;
    height: 70px;
  }

  .stat-item .desc {
    font-size: 20px;
    margin: 0;
  }

  /* ====== SLIDER ====== */
  .slider-box {
    max-height: none;
  }

  .slide {
    flex-direction: column;
    padding: 10px 20px;
    align-items: center;
  }

  .slide img {
    width: 100%;
    height: 250px;
  }

  .slider-info {
    width: 100%;
    font-size: 14px;
  }

  .slider-info .call-btn {
    font-size: 20px;
    padding: 8px 14px;
    position: static;
  }

  .points {
    gap: 16px;
    height: 36px;
    margin: auto;
  }

  .points .point {
    width: 16px;
    height: 16px;
  }

  /* ====== FORLIVE ====== */
  .forLive{
    padding: 0 20px;
  }

  .forLive figure{
    /* колонка, центрируем */
    flex-direction: column !important;
    align-items: center;
    text-align: left;

    /* стартовое состояние (анимация ВКЛ на мобиле) */
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;

    /* компактнее отступы */
    margin: 28px 0;
  }
  /* при появлении */
  .forLive figure.visible{
    opacity: 1;
    transform: translateY(0);
  }

  /* контент внутри — на всю ширину, аккуратные отступы */
  .forLive figure img{
    width: 100%;
    height: auto;
    margin: 0 0 14px 0;
  }
  .forLive figure div{
    width: 100%;
    margin: 0;
  }

  /* лёгкий стагер: второй, третий, четвёртый — с задержкой */
  .forLive figure:nth-child(2){ transition-delay: .08s; flex-direction: column-reverse;}
  .forLive figure:nth-child(3){ transition-delay: .16s; }
  .forLive figure:nth-child(4){ transition-delay: .24s; flex-direction: column-reverse;}

  /* убираем горизонтальные анимации, заданные для десктопа */
  .forLive figure:nth-child(even){
    transform: translateY(18px);
  }

  /* ====== HOUSES ====== */
  .houses {
    height: auto;
    flex-direction: column;
    align-items: center;
    height: 1000px;
    overflow: hidden;
    position: relative; 
  }

  .houses figure {
    width: 90%;
    margin: 20px;
    height: auto;
  }

  .houses figure img {
    max-height: 200px;
  }

  .houses figure h2 {
    font-size: 18px;
  }

  .houses figure .lookHouse {
    width: 100%;
    font-size: 16px;
    padding: 8px 0;
  }
  .modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1; /* На переднем плане */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
  }
  
  /* Контейнер модального окна */
  .modal-content {
    position: relative;
    top: 30%;
    left: 0%;
    padding: 20px;
    width: 100%;
    max-width: 700px;
  }
  

  /* Закрывающая кнопка */
  .close {
    position: absolute;
    top: 10px;
    right: 60px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Изображение в модальном окне */
  .modal-img {
    width: 90%;
    height: auto;
  }


  /* ====== PANORAMA ====== */
  .panorama {
    height: 300px;
    background-position: center;
  }

  .panorama .panoramaBTN {
    width: 90%;
    font-size: 20px;
    padding: 12px;
  }



  /* ====== CONSULTATION ====== */
  .consultation {
    flex-direction: column;
    align-items: center;
  }

  .consultation form {
    width: 100%;
    text-align: center;
  }
  .consultation form h2{
    margin-left: 20px;
  }

  .consultation form input {
    width: 80%;
    margin: 2px 0;
    border-radius: 0px;
  }

  .consultation form button {
    width: 86%;
    font-size: 16px;
    margin: 2px 0;
    border-radius: 0px;
  }


  /* ====== NEWS ====== */
  .news {
    flex-direction: column;
    padding: 20px;
  }

  .news figure {
    width: 100%;
    height: auto;
    margin: 20px 0;
  }

  .news figure h3 {
    font-size: 20px;
  }

  .news figure p {
    font-size: 14px;
  }

  /* ====== MENU ====== */
  .menu-content {
    width:90%;
    height: 100vh;
    padding: 20px;
  }

  .menu_head img {
    width: 70%;
  }
  .menu_head{
    max-height: 100px;
  }
  .menu-content nav a {
    font-size: 24px;
    margin: 10px 0;
  }

  .menu-content .contacts {
    margin-top: 50px;
  }
    
    footer{
        color: white;
        background-color: #dda16b;;
    }
    .geo{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .geo img{
        width: 200px;
        height: 200px;
        margin: 40px 30px 40px 30px;
    }
    .geo iframe{
        margin: 20px 30px 40px 30px;
        width: 90%;
        height: auto;
    
    }
    
    footer h3{
        font-size: 25px;
        margin-bottom: 30px;
    }
    .about{
        display: flex;
        justify-content: center;
        flex-direction: column;
        color: white;

    }
    .about .contacts{
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        margin: 20px;
    }
    .contacts p{
        margin: 10px 0px;
        font-size: x-large;
    }
    .customer {
        margin: 20px;
    }
    .customer nav{
        display: flex;
        flex-direction: column;
    }
    .customer nav a{
        color: white;
        text-align: unset;
        text-decoration: none;
        font-size: large;
        margin: 10px 0px;
    }
    footer hr{
        width: 80%;
        margin-left: 50px;
        background-color: rgba(0, 30, 93, 1)
    }
    .customer nav a:hover, .contacts p:hover{
        text-decoration:underline;
        cursor: pointer;
    }
    
    footer .policy{
        display: flex;
        color: white;

        flex-direction: column;
        padding: 40px 20px 0px 20px;
    }
    .links{
        width: 100%;
    }
    .policy p{
        margin: 20px 0px;
        font-size: xx-small;
    }
    .links nav a{
        color: white;
        margin: 20px 0px 0px 0px;
        font-size: x-large;
    }
    

    .expand{
        width: 300px;
        height: 50px;
        padding-top: 20px;
        text-align: center;
        align-items: center;
        font-size: x-large;
        color: white ;
        cursor: pointer;
        border-radius: 20px;
        margin: 10px auto;
        display: block;
    }
    
}
    /* ======== 💻 АДАПТИВ ДЛЯ ПЛАНШЕТОВ (481px – 1024px) ======== */
@media (min-width: 481px) and (max-width: 1024px) {

    body {
      font-size: 16px;
      padding: 0;
      margin: 0;
    }
  
    /* ===== HEADER ===== */
    .contentHeader,
    .contentHeaderStatic {
      height: 70px;
      padding: 10px 20px;
    }
  
    #logo {
      height: 35px;
      margin: 0 20px;
    }
  
    .upPart {
      font-size: 16px;
      justify-content: space-between;
    }
  
    .upPart .menu {
      width: auto;
      padding: 10px 20px;
      font-size: 16px;
    }
  
    .middle {
      font-size: 32px;
      bottom: 60px;
      margin: 0 40px;
    }
  
    .middle span {
      font-size: 42px;
    }
  
    /* ===== HERO VIDEO ===== */
    header {
      height: 90vh;
    }
    #bg-video {
      object-fit: cover;
    }
  
    /* ===== STATISTIC INFO ===== */
    .statisticInfo {
      gap: 40px;
      text-align: center;
      height: auto;
      padding: 60px 0;
    }
  
    .statisticInfo .line {
      left: 220px;
    }
  
    .stat-item {
      flex-direction: row;
      width: 80%;
      margin: 40px 0px;
      gap: 15px;
    }
  
    .stat-item .square {
      width: 110px;
      height: 80px;
    }
  
    .stat-item .desc {
      font-size: 24px;
    }
  
    /* ===== SLIDER ===== */
    .slider-box {
      max-height: none;
    }
  
    .slide {
      flex-direction: column;
      align-items: center;
      padding: 20px 40px;
    }
  
    .slide img {
      width: 100%;
      height: 400px;
    }
  
    .slider-info {
      font-size: 18px;
      width: 100%;
      line-height: 28px;
    }
  
    .slider-info .call-btn {
      font-size: 24px;
      padding: 10px 20px;
      position: static;
    }
  
    .points {
      gap: 20px;
    }
  
    .points .point {
      width: 20px;
      height: 20px;
    }
  
    /* ===== FORLIVE ===== */
    .forLive {
      padding: 0 40px;
    }
  
    .forLive figure {
      flex-direction: row;
      text-align: left;
      align-items: center;
      justify-content: space-between;
      margin: 60px 0;
    }
  
    .forLive figure img {
      width: 45%;
    }
  
    .forLive figure div {
      width: 45%;
      margin: 0 20px;
    }
  
    /* ===== HOUSES ===== */
    .houses {
      flex-wrap: wrap;
      justify-content: center;
      height: auto;
      padding: 20px 0;
    }
  
    .houses figure {
      width: 45%;
      margin: 20px;
      height: auto;
    }
  
    .houses figure img {
      max-height: 200px;
    }
  
    .houses figure h2 {
      font-size: 20px;
    }
  
    .houses figure .lookHouse {
      font-size: 18px;
    }
  
    /* ===== PANORAMA ===== */
    .panorama {
      height: 400px;
      background-position: center;
    }
  
    .panorama .panoramaBTN {
      width: 60%;
      font-size: 26px;
      padding: 15px 20px;
    }
  
    /* ===== CONSULTATION ===== */
    .consultation {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-around;
      padding: 40px 20px;
    }
  
    .consultation .manager {
      width: 40%;
    }
  
    .manager img {
      width: 80%;
    }
  
    .consultation form {
      width: 55%;
    }
  
    .consultation form input {
      width: 80%;
      height: 35px;
    }
  
    .consultation form button {
      width: 80%;
      font-size: 18px;
    }
  
    /* ===== NEWS ===== */
    .news {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      padding: 20px;
    }
  
    .news figure {
      width: 45%;
      height: auto;
      margin: 20px;
    }
  
    .news figure h3 {
      font-size: 24px;
    }
  
    .news figure p {
      font-size: 16px;
    }
  
    /* ===== MENU ===== */
    .menu-content {
      width: 60%;
      padding: 30px;
    }
  
    .menu-content nav a {
      font-size: 24px;
      margin: 10px 0;
    }
  
    .menu-content .contacts {
      margin-top: 100px;
    }
}
