@media screen and (max-width: 480px) {
  .main-screen {
    min-height: calc(100vh - 110px);
    margin-top: 42px;
    /* min-height: -webkit-fill-available; */
  }
}

@media screen and (min-width: 481px) {
  .safari-wrap header {
    background-color: transparent;
  }
}

.main-screen canvas {
  /* filter: brightness(0.75); */
}

.gallery__content {
  background: none;
}

@media screen and (min-width: 1720px) {
  .contact-developer .text {
    margin-top: auto;
  }
}

.breadcrumbs-block {
  z-index: 5;
}

@media screen and (min-width: 769px) {
  #advantages .breadcrumbs-block .title {
    position: static;
    width: 100%;
    transform: none;
    text-align: center;
  }
  #choose-flat .subtitle {
    width: calc(20% - 20px);
  }
  #choose-flat .build-tabs > *:not(:last-child) {
    margin-right: 20px;
    flex-shrink: 0;
  }
  #choose-flat .build-tabs {
    justify-content: flex-start !important;
  }
}

@media screen and (max-width: 769px) {
  #choose-flat .subtitle {
    margin-bottom: 10px;
  }
}

#choose-flat .subtitle {
  color: var(--blue);
  display: flex;
  align-items: center;
  font-size: 24px;
}

#choose-flat .incrementor-js {
  background: var(--blue);
  color: var(--white);
  border: 1px solid #f7f5fb;
  margin-left: auto;
  margin-right: auto;
  transition: 0.5s;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: 45px;
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  padding: 7px 35px;
  color: var(--white);
}

#choose-flat .incrementor-js:after {
  display: none;
}

.lang-block:after {
  /* top: calc(50% - 4.5px) !important; */
}

@media screen and (min-width: 769px) {
  .lang-block:hover:after {
    /* transform: rotate(180deg) translateY(0px) !important; */
  }
  menu header.header {
    padding: calc(var(--side-fields) + 40px)
      calc((var(--side-fields) * 2) + 40px) 0 calc(var(--side-fields) + 40px) !important;
  }
  .title {
    white-space: nowrap;
  }
}

menu {
  /* transform: none !important; */
  transform-origin: right top;
  overflow: hidden;
  /* opacity: 0; */
  transition: opacity 0.5s !important;
}

menu.opened {
  /* opacity: 1; */
  transition: opacity 1s !important;
}

.adv-grid {
  overflow: hidden;
}

.location-last-section {
  overflow: hidden;
}

@media screen and (min-width: 769px) {
  .menu__content:after {
    content: "" !important;
    width: 100% !important;
    height: 100vh !important;
    background: linear-gradient(
      90deg,
      rgba(253, 241, 211, 0) 80%,
      rgba(22, 140, 248, 0.99) 90%
    ) !important;
    bottom: 0 !important;
    right: 0 !important;
    pointer-events: none !important;
  }
  .contacts__info-blocks-wrapper {
    justify-content: center;
    justify-content: space-between;
  }
  #flat .contacts__info-blocks-wrapper {
    justify-content: flex-start;
  }
  #flat .flat-img {
    object-position: center;
  }
  .contacts__info-block-column:not(.double) {
    width: calc(33% - 20px);
  }
  .contacts__info-block-column.double {
    width: calc(66% - 20px);
  }
}

@media screen and (max-width: 768px) {
  #advantages .breadcrumbs-block .title,
  #choose-flat .breadcrumbs-block .title {
    transform: none;
    position: static;
    width: 100%;
    text-align: center;
  }
  #flat .flat-img {
    max-height: 50vh !important;
  }
  .footer-menu__group-links a {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .footer-menu__group-links li {
    white-space: nowrap;
  }
  .genplan {
    --svg-side-coeficient: 0.565 !important;
  }
}

@media screen and (max-width: 575px) {
  .about-text-block {
    --about-text-block-padding-top: 23% !important;
  }
  .menu-button > span {
    bottom: 1px;
  }
}

@media screen and (max-width: 769px) and (min-width: 576px) {
  menu header.header {
    margin-left: 0;
  }
}

@media screen and (max-width: 1720px) and (min-width: 960px) {
  .about .right .text {
    padding-right: 45%;
  }
  .about .right .bg-image {
    object-position: 63% 30%;
  }
}

/* .callback-form .input-group input {
    height: 3.6em;
    margin-bottom: -1.8em;
}

.forms .input-group input {
    line-height: 3em;
    margin-bottom: -1.6em;
}

.input-group .decor-icon {
    margin-right: 20px;
    align-self: flex-end;
    margin-bottom: 10px;
}

.forms .input-group .decor-icon {
    position: relative;
    top: 1.2em;
} */

.choose-flat {
  overflow: hidden;
}

.choose-flat .wave {
  z-index: 2;
}

.choose-flat .choose-flat__content {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.choose-flat-bg {
  position: absolute;
  left: 0;
  top: -7%;
  width: 110%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

@media screen and (max-width: 575px) {
  .choose-flat-bg {
    display: none;
  }
}

.callback-js {
  display: flex;
  align-items: flex-end;
  line-height: 1em;
}

.map-link-block {
  max-width: 99%;
  /* box-shadow: -3px 39px 16px -42px rgba(0, 0, 0, 0.75); */
  position: relative;
  z-index: 0;
}

.map-link-block:after {
  background: rgb(158 153 169 / 55%);
  content: "";
  width: 50%;
  position: absolute;
  top: 0;
  height: 12px;
  top: 96%;
  filter: blur(16px);
  z-index: -1;
}

@media screen and (max-width: 1720px) and (min-width: 769px) {
  .map-link-block .link {
    max-width: 250px;
    line-height: 1.25em;
  }
  .map-link-block .decor-pin-icon {
    /* margin-right: 0; */
  }
  .location-first-section {
    padding-right: calc(62.66667% + 10px);
  }
  .contacts__mini-group-text {
    font-size: 14px;
  }
  .location-separator-block {
    --vertical-padding: 45px;
  }
  .about-text-block__main-subtitle {
    padding-top: 40px;
  }
  .about-text-block {
    padding-bottom: 60px;
  }
}

@media screen and (max-height: 600px) and (min-width: 769px) {
  .flat-page-left-block {
    width: calc(33.33333% - 20px);
    padding: 35px var(--side-fields) 35px var(--side-fields);
  }
}

@media screen and (max-width: 480px) {
  .sales-link {
    /* top: var(--header-height); */
    top: 35px;
    width: 65px;
    height: 65px;
  }
  .sngl-adv__text {
    padding-left: 10px;
  }
  #home canvas {
    pointer-events: none;
  }
  .about-section-with-bg.first {
    height: calc(100vh - 50px);
  }
  .about-separator-block {
    font-size: 14px;
  }
  .footer > a {
    margin-left: auto;
    margin-right: auto;
  }
  .news-article .link:last-of-type {
    padding-left: 0;
    margin-left: auto;
  }
  .news-article-wave > .link {
    font-size: 14px;
  }
}

@media screen and (max-width: 575px) and (min-width: 374px) {
  #home .text {
    font-size: 15px;
  }
}

.mobile-gradient {
  pointer-events: none;
}

@media screen and (min-width: 769px) and (max-width: 1719px) {
  .lang-block {
    height: 1em;
  }
  .lang-block a {
    line-height: 1em;
  }
  .lang-block:after {
    top: 50%;
  }
  .lang-block {
    width: 52px;
  }
  .menu-button > span {
    vertical-align: text-bottom;
  }
  .menu-button {
    height: 0.8em;
  }
  menu.opened .close-svg {
    width: 1em;
    transform: translateY(-4px);
    transition: 0.5s ease-out;
  }
  .genplan .genplan-list li:not(.page-link-group) {
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 769px) {
  .menu-button:hover .close-svg {
    transform: translateY(-4px) scale(1.1);
  }
}

.scroll-ms {
  animation-name: scroll;
  animation-duration: 1.5s;
  animation-timing-function: cubic-bezier(0.65, -0.55, 0.25, 1.5);
  animation-iteration-count: infinite;
  transform-origin: 50% 20.5px;
  will-change: transform, opacity;
  opacity: 1;
}

@keyframes scroll {
  0%,
  20% {
    transform: translateY(0) scaleY(1);
  }
  100% {
    transform: translateY(36px) scaleY(2);
    opacity: 0;
  }
}

@media screen and (max-width: 575px) {
  .genplan {
    height: auto;
  }
  .genplan .genplan__content {
    display: none;
  }
  .genplan .genplan-svg {
    /* height: calc(100vh - 90px); */
    height: calc(50vh - 90px);
    width: 100vw;
    overflow-x: scroll;
    overflow-y: hidden;
    z-index: 2;
  }
  .genplan .genplan-svg svg {
    height: 100%;
    width: auto;
  }
}

@media screen and (max-width: 1100px) {
  .header-telephone,
  .form-call-button,
  .menu-button {
    margin-right: 15px;
  }
}

@media screen and (max-width: 1025px) and (max-height: 768px) {
  .main-screen-layout canvas,
  .gallery canvas {
    pointer-events: none;
  }
}

.mouse rect {
  stroke-width: 6;
}

.location-separator-block .subtitle {
  margin-bottom: 0;
  line-height: 1.67em;
}

.about-separator-block__text p {
  line-height: 1.6em;
}

.mfp-bg {
  background: #40484e;
  opacity: 0.5 !important;
  z-index: 80;
}

@media screen and (min-width: 769px) {
  .sngl-adv__image-background {
    object-position: center;
  }
  button:hover,
  .form-call-button-js:hover,
  .menu-button:hover *,
  .menu-button:hover,
  .scene-nav:hover,
  .scene-nav svg:hover,
  .scene-nav svg:hover path,
  .scene-nav svg:hover rect,
  .lang-block:hover,
  .logo:hover,
  a[href].breadcrumbs-block__item:hover:not(.breadcrumbs-block__item-current)
    span,
  .sales-link:hover *,
  .reasons-to-choose__block:hover *,
  .video-block video:hover,
  rect:hover,
  .header-telephone:hover,
  .header-telephone:hover span,
  .card:hover *,
  .menu__content-image-link:hover *,
  .article:hover *,
  .tab:hover,
  .reasons-to-choose__block:hover,
  #build-progress ul > li:hover {
    cursor: url(../images/cursor-big.png), auto !important;
  }
  .gallery canvas:hover {
    cursor: url(../images/common/cursor-gray.png), auto !important;
  }
  .contacts__info-blocks-wrapper a:hover {
    transition: 0.5s;
    color: var(--blue);
  }
  .reasons-to-choose__block:hover .wave-bottom-white__title,
  .reasons-to-choose__block:hover .wave-bottom-white__subtitle {
    transition: 0.7s;
    color: var(--blue);
  }
  .news-article .article__title:hover {
    color: var(--gray);
  }
  .breadcrumbs-block__item-current:hover {
    cursor: url(../images/cursor.png), auto !important;
  }
}

.video-block-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sales-link path:last-child {
  transform-origin: center;
  transform-box: fill-box;
  transition: 1s ease-out;
  transform: scale(0.8);
}

.sales-link:hover path:last-child {
  transform: scale(1);
}

@media screen and (max-width: 768px) {
  .main-screen {
    min-height: calc(100vh - 90px);
  }
}

@media screen and (max-width: 575px) {
  .lang-block:after {
    height: 8px;
    width: 16px;
    content: "";
    top: calc(50% - 0px);
    margin-left: 1.5ch;
  }
  .lang-block {
    line-height: 1em;
  }
  .header-telephone {
    margin-right: 20px;
  }
  .logo {
    margin-right: auto;
  }
  .menu-button {
    margin-right: 0;
  }
  .menu-button > span {
    line-height: 1.2em;
  }
  .genplan-legend-mobile .genplan-list li:not(.page-link-group) {
    height: 20px;
  }
  .genplan-legend-mobile .genplan-list li:not(.page-link-group):before {
    height: 100%;
    max-height: none;
  }
}

.about .left {
  overflow: hidden;
}

@media screen and (min-width: 769px) {
  .footer-menu__group-links a {
    width: max-content;
  }
  .about .left__content {
    padding-bottom: 80px;
  }
  .contact-developer .link {
    margin-bottom: 0;
  }
  .contact-developer .left__content {
    padding-bottom: 80px;
  }
  .contact-developer .right {
    align-content: flex-start;
    flex-direction: column;
    padding-bottom: 80px;
  }
  .col-2 .contacts__mini-group {
    padding-right: var(--side-fields);
  }
  .location-last-section .subtitle:before {
    width: 13px;
    height: 30px;
  }
  .about-separator-block__text p,
  .about-separator-block__text {
    line-height: 1.6em;
    font-weight: 500;
    font-size: 18px;
  }
  #flat .flat-img {
    max-height: calc(100vh - var(--header-height) - 110px);
  }
  .genplan .genplan-list li:not(.page-link-group):before {
    transition: 0.5s;
    position: absolute;
    left: 0;
    content: "◼";
    margin-right: 5px;
    color: var(--white);
    font-size: 9px;
    line-height: 1.1vw;
    max-height: 1.3vw;
    padding-right: 10px;
  }
  .genplan .page-link-group {
    margin-top: 2em;
  }
}

@media screen and (min-width: 1719px) {
  .about .left__content {
    padding-bottom: calc(var(--side-fields) + 81px);
  }
  .developers-first-block .text-standart {
    font-size: 18px;
    line-height: 1.5em;
  }
  .developer-logo {
    margin-top: auto;
    margin-bottom: auto;
  }
}

@media screen and (max-width: 575px) {
  .arrows > div {
    background-color: var(--blue);
  }
  .arrows .arrow-prev,
  .arrows .arrow-next {
    border: 2px solid var(--blue);
  }
  #build-progress .arrows.blue path {
    stroke: var(--white) !important;
  }
  #build-progress .arrows svg {
    stroke: white;
  }
  .footer-menu__group-links a {
    line-height: 2.1em;
  }
}

.slick-slide img {
  display: block;
  max-height: 50vh;
  object-fit: contain;
}

.callback-form {
  align-content: flex-start;
  flex-direction: column;
}

.callback-form button[type="submit"] {
  margin-top: 0;
}

.callback-form .input-group {
  margin: auto;
  padding-bottom: 15px;
}

@media screen and (min-width: 769px) {
  .close-svg:hover path {
    stroke: #aaaaaa;
    /* transform: scale(1.1); */
  }
}

.header-telephone > .header-telephone:before {
  display: none;
  margin-right: 0;
}

.header-telephone > .header-telephone {
  pointer-events: all;
}

.header-telephone {
  /* pointer-events: none; */
}

.article__date {
  max-width: 4.3ch;
}

@media screen and (max-width: 575px) {
  span.istat_1 a {
    width: 15px;
    pointer-events: all;
  }
  span.istat_1 {
    pointer-events: none;
  }
  .documents-page-wrapper {
    min-height: calc(100vh - 40px);
  }
}

#choose-flat .tabs {
  flex-wrap: wrap;
}

#choose-flat .tabs > .tab {
  margin-bottom: 10px;
}

.header .form-call-button {
  display: none;
}

.banner-link {
  position: absolute;
  z-index: 3;
  left: calc(var(--side-fields) + 30px);
  /* left: 7%; */
  top: calc(var(--side-fields) + var(--header-height) + 15px);
}

.banner-img {
  width: auto;
  height: 315px;
  vertical-align: middle;
}

@media screen and (max-width: 1720px) {
  .banner-link {
    left: calc(var(--side-fields) + 30px);
  }
}

@media screen and (max-width: 768px) {
  .banner-link {
    left: calc(var(--side-fields) + 22px);
  }
}

@media screen and (max-width: 576px) {
  .safari-wrap header {
    margin-top: 8px !important;
  }
}

@media screen and (max-width: 480px) {
  .banner-link {
    height: 250px;
    top: 35px;
    left: calc(var(--side-fields) + 20px);
  }

  .banner-img {
    height: 200px;
  }
}
