*{margin: 0px; padding: 0px;}
body{
    background-color: rgb(255, 255, 255);
    color: black;;
    font-family: Arial, sans-serif;

}

header {
    height: 150px;
    margin: 0px;
    padding: 0px 10px 20px 10px;
    position: relative;
}


.contentHeader{
    padding: 20px 0px;
    border-bottom: 1px solid white;
    height: 50px;
    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(0);
    opacity: 1;
    pointer-events: auto;
    animation: headerDrop .45s ease-out both;
}

.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;
}
.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-right:20px;
}
.sl_house{
    width: 200px;
    height: 20px;
    padding:20px 15px 20px 15px ;
    border: 1px solid white;
    border-radius: 40px;
    color: white;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    bottom: 0px;
}
.menu-conteiner{
    width: 100%;
    height: 100vh;
    display: none;
}
.half-menu{
    width: 60%;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
    display: none;
}
.menu-content{
    display: none;
    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;
}
.menu-content .menu_head{
    width: 100%;
    height: 300px;
}
.menu_head .back{
    width: 70px;
    height: 70px;
    border: 1px solid #001E5D;
    float: right;
    border-radius: 20px;
    cursor: pointer;
}
.menu_head .back img{
    width: 100%;
    border-radius: 20px;
}
.menu_head img{
    width: 40%;
    height: auto;
    float: left;
}

.menu-content nav a{
    color: black;
    text-decoration: none;
    font-size: 30px;
    text-align: left;
    display: flex;
    margin: unset;
}
.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;
}


main{
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}
h1{
    text-align: center;
    font-size: 50px;
    color: #dda16b;
    margin-bottom: 40px;
}
h2{
    color: black;
}
.right-side{
    flex: 1;
    width: 40%;
    position: relative;
    right: 0px;
}
.right-side p{
    margin: 40px 20px;
    font-size: 20px;
}
p b{
    float: right;
}


.slider-box {
    display: flex;
    flex-direction: column;
    /* height: 500px; */
    margin: 0 auto;
    position: relative;
    border: unset;
}
.slider {
    transition: transform 1s ease-in-out;
    position: relative;
    margin-bottom: 20px;
    width: 60%;
    /* height: auto; */
    
}
.slider img {
    width: 100%;
    height: auto;
    margin-right: 0px;
    object-fit: cover;
    margin-bottom: 10px;
    border: unset;
    flex-shrink: 0;
}

.plans {
    position: absolute;
    bottom: 0px;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    gap: 20px;
  }
  
  .plan-card img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .plan-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Модальное окно */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: hidden;
  }
  
  /* Картинка внутри модалки */
  .modal-content {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 12px;
    animation: zoomIn 0.4s ease;
  }
  
  /* Текст под картинкой */
  #caption {
    text-align: center;
    color: #ddd;
    font-size: 18px;
    margin-top: 15px;
  }
  
  /* Крестик */
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
  }
  .close:hover { color: #D8B08C; }
  
  /* Стрелки */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-size: 40px;
    user-select: none;
    transition: 0.3s;
  }
  .prev { left: 20px; }
  .next { right: 20px; }
  
  .prev:hover, .next:hover {
    color: #D8B08C;
  }
  
  /* Анимация появления */
  @keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }




.consultation{
    display: flex;
    color: #001E5D;
    margin-top: 40px;
}
.consultation .manager{
    margin-right: 20px;
    width: 30%;
    align-items: center;
    text-align: center;
}
.manager figure{
    width: 100%;
    height: auto;
    text-align: center;
}
.manager img:nth-child(2), .manager img:nth-child(3){
    width: 50px;
    height: 50px;
    cursor: pointer;
}
.manager img{
    width: 50%;
}
.consultation form h2{
    margin: unset;
    color: #dda16b;
}
.consultation form input{
    width: 150px;
    height: 30px;
    background-color: lightgray;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 20px 10px 20px 0px;
    /* border-color: lightgray; */
}
.consultation form button{
    width: 200px;
    height: 50px;
    background-color: darkgrey;
    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;
}

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;
    text-align: left;
}
.customer nav a{
    color: white;
    text-decoration: none;
    font-size: x-large;
    text-align: left;
    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;
}


.expand{
    width: 300px;
    height: 50px;
    padding-top: 20px;
    text-align: center;
    align-items: center;
    font-size: x-large;
    color: #001E5D;
    cursor: pointer;
    border: 2px solid #001E5D;
    border-radius: 20px;
    margin: 10px 20px;
}

@media (min-width: 320px) and (max-width: 480px){
    html, body {width:100%; overflow-x: hidden;}
    h1{
        text-align: center;
        font-size: 40px;
        color: #001E5D;
        margin-bottom: 20px;
        margin-top: unset;
    }
    h2{
        color: #001E5D;
        margin-left: 15px;
        margin-top: 30px;
        font-size: 30px
    }
    header a{
        display: block;
    }
    header {
        height: 10vh;
        margin: 0px;
        padding: 0px 10px 20px 10px;
        position: relative;
    }
    .contentHeader{
        padding: 30px 0px 10px 0px;
        border-bottom: 1px solid white;
        height: 50px;
        position: fixed;
        top: 0px;
        left: 0px;
        right: 0px;
        transition: 0.5s ease-in-out; /* Добавляем плавный переход */
        z-index: 1000;
    }
    .upPart .menu{
        width: 70px;
        height: 20px;
        padding:15px 10px 10px 10px ;
        border-radius: 40px;
        color: white;
        align-items: center;
        text-align: center;
        cursor: pointer;
        margin-right: 20px;
        float: right;
    }
    .statisticInfo{
        flex-direction: column;
    }
    .upPart, .middle{
        display: flex;
        align-items: center;
        /* justify-content: space-between; */
        color: white;
    
    }
    .upPart .sl_house, .upPart .cont{
        display: none;
    }
    #logo{
        width: auto;
        height: 25px;
        margin: unset;
    }
    .upPart{
        padding: 0px 10px;
        width: 100%;
        font-size: smaller;
    }

    .menu-conteiner{
        width: 100%;
        height: 100vh;
        color: #dda16b;

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

    main {
        flex-direction: column;
      }
    
      h1 {
        font-size: 28px;
        margin: 20px 0;
        color: #dda16b;
      }
    
      .right-side {
        width: 100%;
      }
    
      .right-side p {
        margin: 10px 0;
        font-size: 16px;
      }
      .right-side .h_inf{
        width: 100%;
        padding: 10px;
      }
      .slider-box{
        flex-direction: row;
        overflow: scroll;
      }
      .slider {
        width: 100%;
      }
    
      .slider img {
        border-radius: 10px;
        margin: 0px 10px;
      }
      .slider img:first-child{margin-left: 0px;}
      .slider img:last-child{margin-right: 0px;}
    
      .plans {
        order: 3;
        position: relative;
        bottom: unset;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
      }
    
      .plan-card img {
        width: 95%;
        height: auto;
        border-radius: 8px;
      }
    
      .modal-content {
        max-width: 95%;
      }
    
      .close {
        font-size: 32px;
        right: 15px;
      }
    
      .prev, .next {
        font-size: 30px;
        padding: 10px;
      }
    
   
    .consultation{
        display: flex;
        flex-direction: column-reverse;
        margin-top: 40px;
    }
    .consultation .manager{

        margin-top: 20px;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .manager figure{
        width: 100%;
        height: auto;
        text-align: center;
    }
    .manager img:nth-child(2), .manager img:nth-child(3){
        width: 50px;
        height: 50px;
        cursor: pointer;
    }
    .manager img{
        width: 50%;
        border-radius: 50%;
    }
    .consultation form{
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px 30px;
    }
    .consultation form h2{
        margin: unset;
    }
    .consultation form input{
        width: 90%;
        height: 30px;
        background-color: lightgray;
        padding: 5px 10px;
        border-radius: 15px;
        margin: 20px 10px 20px 0px;
        /* border-color: lightgray; */
    }
    .consultation form button{
        width: 200px;
        height: 50px;
        background-color: #001E5D;
        color: white;
        font-size: larger;
        border-radius: 15px;
        margin: auto;
        
    }
    .consultation form p {
        font-size: x-large;
        color: #001E5D;
        margin-top: 20px;
    }
    .consultation form p:last-child{
        font-size: x-small;
    }
    footer{
        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-decoration: none;
        font-size: large;
        margin: 10px 0px;
        text-align: left;
    }
    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;
    }
}
@media (min-width: 481px) and (max-width: 1024px){
    h1{
        text-align: center;
        font-size: 35px;
        color: #001E5D;
        margin-bottom: 20px;
        margin-top: 15px;
    }
    html, body {width:100%; overflow-x: hidden;}
    h2{
        color: #001E5D;
        margin-left: 15px;
        margin-top: 30px;
        font-size: 30px
    }
    .underline{
        background-color: lightgray; height: 3px; width: 80%; margin: 20px 0px;
    }
    .contetnHeader{
        margin: unset;
        padding: 20px 10px;
        width: 100%;
    }
    .upPart, .middle{
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
    
    }
    #logo{
        width: unset;
        height: 30px;
    }
    .upPart{
        width: 90%;
        font-size: large;
        margin: 0px 20px;
    }

    main {
        flex-direction: column;
      }
    
      h1 {
        font-size: 38px;
      }
    
      .right-side {
        width: 90%;
        margin: 0 auto;
      }
    
      .right-side p {
        margin: 20px 0;
      }
      .right-side .h_inf{
        width: 100%;
        font-size: 30px;
      }
      .slider {
        width: 100%;
      }
    
      .plans {
        position: relative;
        bottom: unset;
        justify-content: center;
        gap: 20px;
      }
    
      .plan-card img {
        width: 100%;
        height: auto;
      }
    
      .modal-content {
        max-width: 90%;
      }
    
      .close {
        font-size: 36px;
      }
    .consultation{
        display: flex;
    }
    .consultation .manager{
        display: none;
        margin-right: 20px;
        width: 50%;
        align-items: center;
        text-align: center;
    }
    .manager figure{
        width: 100%;
        height: auto;
        text-align: center;
    }
    .manager img:nth-child(2), .manager img:nth-child(3){
        width: 25px;
        height: 25px;
        cursor: pointer;
    }
    .manager img{
        width: 50%;
    }
    .consultation form h2{
        margin: unset;
    }
    .consultation form{
        padding: 10px 30px;
    }
    .consultation form input{
        width: 150px;
        height: 30px;
        background-color: lightgray;
        padding: 5px 10px;
        border-radius: 15px;
        margin: 20px 10px 20px 0px;
        /* border-color: lightgray; */
    }
    .consultation form button{
        width: 200px;
        height: 50px;
        background-color: #001E5D;
        color: white;
        font-size: larger;
        border-radius: 15px;
        
    }
    .consultation form p {
        font-size: x-large;
        color: #001E5D;
        margin-top: 20px;
    }
    .consultation form p:last-child{
        font-size: x-small;
    }
    footer{
        background-color: #dda16b;
    }
    .geo{
        display: flex;
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }
    .geo img{
        width: 200px;
        height: 200px;
        margin: 40px 30px 40px 30px;
    }
    .geo iframe{
        margin: 20px 30px 40px 30px;
        width: 40%;
        height: auto;
    
    }
    
    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: center;
        flex-direction: column;
        margin:20px 40px;
        width: 230px;
    }
    .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-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: row;
        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: 200px;
        height: 30px;
        padding-top: 10px;
        text-align: center;
        align-items: center;
        font-size: large;
        color: #001E5D;
        cursor: pointer;
        border: 2px solid #001E5D;
        border-radius: 20px;
        margin: 10px 20px;
    }
}

/* === Slider additions (non-destructive) === */
.slider-box {
    position: relative;
  }
  
  .slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
  }
  
  .slider-track img {
    flex: 0 0 100%;
    max-width: 100%;
    height: auto;
  }
  
  .slider-btn {
    position: absolute;
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Корректировка для точного выравнивания */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #001E5D;
    background: rgba(255, 255, 255, 0.8);
    color: #001E5D;
    font-size: 22px;
    line-height: 42px;
    display: flex; /* Используем flexbox для выравнивания содержимого */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    user-select: none;
  }
  
  .slider-btn:hover {
    background: rgba(255, 255, 255, 0.95);
  }
  
  .slider-btn:active {
    transform: translateY(-50%) scale(0.98);
  }
  
  .slider-btn.prev {
    left: 12px;
  }
  
  .slider-btn.next {
    right: 12px;
  }

/* Larger tap targets on mobile */
@media (max-width: 480px) {
  .slider-btn { width: 40px; height: 40px; font-size: 20px; line-height: 38px; }
}

/* === Slider swipe additions === */
.slider-box { touch-action: pan-y; }

/* === Slider spacing-aware tweaks === */
.slider-track img { display: block; }
