.formhid{display:none;}
.loft-card__main-desc p a{
    color: #000080;
    text-decoration: underline;
}

.loft-card .vi-text-area ul {
    text-align: left;
}
.loft-card .vi-text-area {
    max-width: 105rem;
    margin: 0 auto;
    text-align: center;
}
.loft-card .vi-text-area.loftVideo {
    display: grid;
    grid-template-columns: 55% 45%;
    max-width: 120rem;
    text-align: left;
    padding: 2rem 0;
    align-items: center;
}
.loft-card .vi-text-area.loftVideo h4 {
    text-align: left;
}
.loft-card .vi-text-area.loftVideo .product-video-item {
    height: 28rem;
    position:relative;
    display:flex;
}
.loftVideo .product-video-item:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(13 13 13 / 40%);
}
.loftVideo .product-video-item__play {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -41px;
    margin-left: -41px;
    width: 82px;
    height: 82px;
}
.loftVideo .product-video-item__play:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: rgb(255 255 255 / 75%);
    border-radius: 100%;
}
.loftVideo .product-video-item__play span {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    background-image: url(../images/icon-play.png);
    z-index: 10;
    filter: grayscale(1);
    height: 25px;
    background-size: 100% 100%;
    width: 25px;
}

.card__models-grid-open-btn.btn {
    margin: 2.5rem auto 0;
    max-width:26rem;
    padding: 1rem 2.5rem;
}
.card__models-grid-item:nth-child(n+7) {
    height: 0;
    visibility: hidden;
    opacity: 0;
    transition: .3s;
}
.card__models-grid.visible .card__models-grid-item:nth-child(n+7) {
    height: auto;
    visibility: visible;
    opacity: 1;
}
@media (max-width:460px){
    .card__models-grid-item:nth-child(n+5) {
        height: 0;
        visibility: hidden;
        opacity: 0;
    }
    .card__models-grid.visible .card__models-grid-item:nth-child(n+5) {
        height: auto;
        visibility: visible;
        opacity: 1;
    }
}
@media (min-width:767px){
    .card__models-grid{
        gap: 0 4rem;
    }
    .card__models-grid.visible {
        gap: 4rem;
    }
}
.loft-card__variants.loft-card_bottomgallery {
    margin: -3rem 0;
}
.card__models-grid b {
    text-align: center;
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.5rem;
}
.swiper-slide .main-links__slider-text,.main-links__hover{
    z-index:2;
}
.swiper-slide .--white-color .main-links__hover-photo:before {
    background: linear-gradient(90deg, #00000030, transparent);
    width: 70%;
}
.swiper-slide .main-links__hover-photo:before {
    content: '';
    background: linear-gradient(90deg, #ffffff38, transparent);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.header_adress button {
    border: 0;
    background: none;
    cursor: pointer;
}
ul#cityChoose li:hover {
    transform: scale(1.05);
}
ul#cityChoose li {
    padding: 0.4rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    transition: .3s;
    font-size: 2rem;
}
ul#cityChoose .active a{
    color: white;
}
ul#cityChoose .active {
    border: 1px solid;
    background-color: #bc9e7b;
    color: white;
}
ul#cityChoose {
    list-style: none;
    display: flex;
    gap: 5rem;
    margin: 2rem 0;
    padding: 0;
}

.card__sticky {
    max-width: 33rem;
}
.card__sticky {
    max-width: 30.3rem;
    padding-top: 0.8rem;
    width: 100%;
}
.card__variants-tab b.title {
    margin: 1rem 0;
    display: block;
}
.card__variants-colors-item.custom-fancy .bg {
    height: 9rem;
    width: 9rem;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
}
.card-2-mini-item__photo img {
    height: 26.5rem;
    width: 13.6rem;
}
.framuga__row-4-items-row {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    display: grid;
    grid-template-columns: repeat(6,auto);
    justify-content: space-between;
    margin-bottom: 5.8rem;
    flex-wrap: wrap;
    gap: 3rem 5rem;
}
@media (max-width: 767px){
    .loft-card__variants.loft-card_bottomgallery{
        margin:3rem auto;
    }
    .framuga__row-4-items-row {
        -ms-grid-columns: 1fr 0 1fr;
        -ms-grid-rows: auto;
        display: -ms-grid;
        display: grid;
        gap: 20px 0;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        margin-bottom: 20px;
    }
}
.framuga__row-4-items-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: end;
}
#doorPrice{
    font-weight:500;
}
label.half {
    display: grid;
    width: 100%;
    grid-template-columns: 35% 65%;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}
label.half .input {
    margin-bottom: 0;
}
.card-2-descr .card-2-mini-item__color {
    font-size: 1.3rem;
}
.card-2-descr span {
    font-size: 1.6rem;
    line-height: 1.25;
}
.card-2-descr {
    display: flex;
    flex-direction: column;
}
.doorsModel.noPortals .doorsItem:nth-child(1n+13) {
    display: none;
}
.doorsModel.noPortals.showAll .doorsItem:nth-child(1n+13) {
    display: block;
}
#showMoreDoors:hover {
    color: #353a46;
}
#showMoreDoors {
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-position: under;
    margin: 2rem auto 0;
    display: block;
    cursor: pointer;
    transition: .3s;
}
.card__about{
    margin-top:3rem;
}
.card-2 .card__variants-grid {
    gap: 3.9rem 3.2rem;
}
.card__variants-colors-item {
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    font-size: 1.4rem;
}
@media (min-width: 300px){
    .card__variants-colors {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 460px){
    .card__variants-colors{
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 767px){
    .card__variants-colors {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 1100px){
    .card__variants-colors {
        gap: 2.5rem;
        grid-template-columns: repeat(8, 1fr);
    }
    .official-dealer__text{
        padding:4rem 10rem 4rem 6.4rem;
    }
}
.rezidentDoor .doorimgbl .doorPortal{
    width: 33rem;
    height: 66.6rem;
    left: -2.2rem;
    top: -5rem;
}
.card-oniks__big-photo-item {
    background-position: 40%;
}
.doorimgbl .doorPortal {
    width: 40rem;
    height: 76.4rem;
    left: -3.5rem;
    top: -5.8rem;
}
.rezidentDoor .doorimgbl.card-oniks__big-photo {
    padding: 2.3rem 0 0;
    max-width: 30rem;
    height: 60rem;
}
.doorimgbl.card-oniks__big-photo {
    padding: 0;
    max-width: 33rem;
    height: 70.7rem;
}
.card__big {
    max-width: 33rem;
}
.card:not(.rezidentDoor) .card-oniks__big-photo-item {
    background-position: bottom;
    background-size: 37.5rem;
}
.rezidentDoor .door_model_portal {
    width: 102%;
    height: 107%;
    transition: .4s;
    left: -.1rem;
    top: -1.1rem;
}
.door_model_portal{
    background-repeat: no-repeat;
    width: 100%;
    height: 107%;
    transition: .4s;
    background-position: top center;
    left: 0px;
    top: 0;
    background-size: 11rem;
}
.rezidentDoor .card-oniks__item img {
    width: 8.4rem;
    height: 19.5rem;
    transform:none;
}
.card-oniks__item img {
    width: 9.2rem;
    height: 19.6rem;
    transform: scale(1.2);
    position: relative;
    z-index: -1;
}

.resident-models__others-mini-item img {
  height: 36.5rem;
  -o-object-fit: cover;
  object-fit: cover;
}
.resident-models__others-mini-item {
  display: none;
}
.resident-models__others-mini-item.active {
  display: flex;
}
.resident-models__others-ral-item .bg {
  border-radius: 0.4rem;
  height: 8.9rem;
  margin-bottom: 1.2rem;
  -o-object-fit: cover;
  object-fit: cover;
  outline: 1px solid transparent;
  outline-offset: 0.2rem;
  -webkit-transition: all 0.45s cubic-bezier(0.39, 0.575, 0.565, 1);
  -o-transition: all 0.45s cubic-bezier(0.39, 0.575, 0.565, 1);
  transition: all 0.45s cubic-bezier(0.39, 0.575, 0.565, 1);
  width: 100%;
  width: 8.9rem;
}
.resident-models__others-ral-item:hover .bg {
  outline: 1px solid #bc9e7b;
}
.resident-models__main-photo-bg {
  transition: 0.3s;
  background-size: 100% auto;
}

.resident-models__others-ral-item.active .bg {
  outline: 1px solid #bc9e7b;
}
.bg[data-color='RAL 7036'] {
  background-color: #9d9c9a;
}
.bg[data-color='RAL 7044'] {
  background-color: #bebeb2;
}
.bg[data-color='RAL 8017'] {
  background-color: #514642;
}
.bg[data-color='RAL 9010'] {
  background-color: #ffffff;
}
.bg[data-color='Бьянко'] {
  background-color: #f1ead0;
}
.bg[data-color='Капучино'] {
  background-color: #c9baa4;
}
.bg[data-color='Олива'] {
  background-color: #b9baa8;
}
.bg[data-color='Слоновая кость'] {
  background-color: #f4eed8;
}
.bg[data-color='Айс-крим'] {
  background-color: #fefbf4;
}
.bg[data-color='Лаккато'] {
  background-color: #d7d3c8;
}
.bg[data-color='Серый'] {
  background-color: #a79d94;
}
.card__variants-colors-item .bg{
    transition: .5s;
    height: 8.5rem;
    width: 8.5rem;
    border-radius: 0.4rem;
    outline: 1px solid transparent;
    outline-offset: 0.2rem;
}
.card__variants-colors-item .bg:hover,.card__variants-colors-item.active .bg {
    outline: 1px solid #bc9e7b;
}
.doorsItem,.portalItem{
    display:none;
}
.doorsItem.active,.portalItem.active,.noPortals .doorsItem {
    display:block;
}
.door_model_image {
    padding: 1.4rem 0 0;
}
 .card__variants-grid{
    gap: 1.2rem 4rem;
 }
.resident-filling__item .custom-fancy img {
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
.resident-filling__item .custom-fancy {
  height: 264px;
  margin-bottom: 10px;
}


@media (max-width: 1620px) {
  .resident-models__others-ral-item .bg {
    height: 5.5rem;
    width: 5.5rem;
  }
  .resident-models__others-ral {
    gap: 1rem;
  }
  .resident-models__others-mini-item img {
    height: 24rem;
    object-fit: contain;
  }
  .resident-models__others-mini {
    gap: 1.5rem;
  }
}
@media (max-width: 1440px) {
    .card__big {
        max-width: 30rem;
    }
    .doorimgbl.card-oniks__big-photo {
        max-width: 27rem;
        height: 58.1rem;
    }
    .doorimgbl .doorPortal {
        width: 31rem;
        height: 63.4rem;
        left: -2rem;
        top: -5rem;
    }
    .card:not(.rezidentDoor) .card-oniks__big-photo-item {
        background-size: 31rem;
    }
  .resident-models__others-ral {
    gap: 1rem;
    grid-template-columns: repeat(6, 1fr);
  }
    .resident-models__main {
        max-width: 38.5rem;
    }
  .resident-models__main-photo-bg {
    background-size: contain;
  }
  .resident-models__main-photo {
    height: 43rem;
    margin-right: 2.5rem;
    max-width: 15rem;
  }
  .resident-models__main-desc p {
    font-size: 1.4rem;
  }
}
@media (max-width: 1200px) {
  .resident-models__others-ral-item .bg {
    height: 7rem;
    width: 7rem;
  }
  .resident-models__others-ral {
    grid-template-columns: repeat(4, 1fr);
  }
  .contacts__col-1 {
    max-width: 30.2rem;
    margin-right: 4.4rem;
  }
}

.contacts__info p:last-of-type {
  margin-top: 0;
}


@media (max-width:767px){
    .card__big {
    max-width: 100%;
}
.card:not(.rezidentDoor) .card-oniks__big-photo-item {
    background-size: 14rem;
}
.doorimgbl .doorPortal {
    width: 19.6rem;
    height: 28.8rem;
    left: -2rem;
    top: 0rem;
}
    .doorimgbl.card-oniks__big-photo {
        height: 300px;
        padding: 5px 0 14px;
        max-width: unset;
    }
    .resident-models__others-ral-item span {
        font-size: 12px;
    }
    .resident-models__others {
        width: 100%;
    }
  .contacts__info p{
    max-width: 90%;
  }
  .contacts__info p br{
    display: block;
  }
}

@media (max-width:460px){
    .card__models-grid{
        grid-template-columns: repeat(4, 1fr);
    }
    .card__models-grid-item img{
        height:17rem;
    }
    .resident-models__others-ral {
        border-bottom: 1px solid #d7d7d7;
        border-top: 1px solid #d7d7d7;
        padding: 20px 0;
    }
    .resident-models__main-photo {
        height: 32rem;
        margin-right: 2rem;
        max-width: 10rem;
    }
    .resident-models__others-mini,.resident-models__others-ral  {
        grid-template-columns: repeat(3, 1fr);
    }
    .resident-filling__grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
