
@media (max-width: 960px) {
  .footer__main {
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
  }
  .footer__nav {
    order: 3;
    width: 100%;
  }
  .footer__contacts-block:nth-child(1) {
    width: 185px;
  }
  .footer__contacts-block:nth-child(2) {
    width: 185px;
  }
  .form-house__form-wrapper .title {
    width: 430px;
    font-size: 30px;
    line-height: 110%;
  }
  .form-house__form-wrapper .form__input, .form-house__form-wrapper .form__submit {
    width: 100%;
    max-width: 320px;
  }
  .form-house__form-wrapper .form__label {
    max-width: 320px;
  }
  .form-house__image-wrapper {
    width: clamp(500px, 60vw, 650px);
  }
  .form-house_type2 .form-house__image-wrapper {
    right: -45%;
  }
  .form-image .container {
    gap: 45px;
  }
  .form-image__form-wrapper .form__input {
    max-width: 216px;
  }
  .form-image__form-wrapper .form__submit {
    max-width: 216px;
  }
  .form-section .container {
    flex-direction: column;
    gap: 30px;
  }
  .form-section .form {
    flex-direction: row;
    width: auto;
  }
  .form-section .title, .form-section__subtitle {
    max-width: unset;
    text-align: center;
  }
  .form-section .title {
    font-size: clamp(20px, 5vw, 34px);
    line-height: 120%;
  }
  .form-section__subtitle {
    font-size: clamp(14px, 5vw, 20px);
    line-height: 160%;
  }
  .form-section .form__input {
    max-width: 288px;
  }
  .form-section .form__submit {
    order: 2;
  }
  .form-section .form__submit.button {
    max-width: 288px;
  }
  .form-section .form__label {
    order: 3;
  }
  .form {
    column-gap: 12px;
    row-gap: 15px;
  }
  .header__nav ul {
    gap: 25px;
  }
  .header__nav ul a {
    font-size: 14px;
  }
  .header__right-content .button-secondary {
    display: none;
  }
  .header__phone a {
    font-size: 22px;
    line-height: 26px;
  }
  .header__phone div {
    font-size: 12px;
  }
  .location__content {
    flex-direction: column;
  }
  .location .contacts {
    flex-direction: column;
  }
  .location .flex-row {
    column-gap: 30px;
    row-gap: 30px;
  }
  .location .flex-row .location__info-row:nth-child(1) {
    min-width: 305px;
  }
  .location .flex-row .location__info-row {
    flex: 1;
  }
  .location__image-wrapper {
    flex-basis: 220px;
  }
  .location__info .title {
    margin-bottom: 30px;
  }
  .location__info {
    flex-basis: fit-content;
  }
  .about-page {
    gap: 30px;
  }
  .about-page__images_type1 {
    margin-top: 30px;
    flex-direction: column;
  }
  .about-page__images_type1 .about-page__image-wrapper span {
    width: 60%;
  }
  .about-page__images_type2 {
    margin-top: 30px;
  }
  .about-page__image-wrapper {
    margin-top: 24px;
  }
  .apartments {
    padding-top: 70px;
  }
  .apartments__subtitle {
    row-gap: 14px;
    align-items: flex-start;
    flex-direction: column;
  }
  .contacts.container {
    padding-top: 70px;
  }
  .contacts__info h1, .contacts__info .title {
    margin-bottom: 30px;
  }
  .contacts .partners .flex-row {
    margin-top: 30px;
    gap: 16px;
  }
  .contacts .partners .flex-row div {
    width: calc(33.3333333333% - 11px);
    height: 70px;
    padding: 10px 0;
  }
  .detail {
    padding-top: 70px;
  }
  .detail__tabs-slider .swiper-wrapper {
    height: fit-content;
  }
  .detail__tabs-slider .swiper-wrapper .swiper-slide {
    flex-direction: column;
  }
  .detail__image-wrapper {
    flex: none;
    height: 300px;
  }
  .detail__tabs-slider-content {
    flex-basis: fit-content;
    padding: 50px;
  }
  .detail__slider {
    flex: none;
    width: 100%;
  }
  .detail .block-color-bg {
    padding: 90px 0;
  }
  .detail__advantages .text-wrapper {
    margin-top: 30px;
  }
  .detail__advantages-items {
    margin-top: 30px;
  }
  .detail__about-content {
    flex-direction: column;
    height: fit-content;
    row-gap: 48px;
    margin-top: 30px;
    border-left: 1px solid #3A3330;
  }
  .detail__about-content-item {
    border: none;
    flex-direction: row;
    width: 100%;
  }
  .banner {
    height: 480px;
  }
  .banner__content h1 {
    font-size: clamp(30px, 3vw, 60px);
  }
  .banner__tags {
    margin-top: 20px;
  }
  .banner__labels {
    position: static;
    padding: 0;
    flex-wrap: wrap;
    row-gap: 7px;
    column-gap: 30px;
  }
  .banner .form {
    display: none;
  }
  .index-catalog .flex-row {
    margin-top: 30px;
  }
  .index-catalog .button-arrow {
    max-width: 350px;
    margin: 40px 0 0;
  }
  .quiz {
    margin-top: 30px;
  }
  .under-banner {
    display: block;
  }
  .collage-type-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 220px;
    grid-template-areas: "item3 item3" "item1 item2";
    gap: 12px;
    margin-top: 24px;
  }
  .collage-type-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 220px;
    grid-template-areas: "item1 item1" "item2 item3";
    gap: 12px;
    margin-top: 24px;
  }
  .collage-type-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 220px;
    grid-template-areas: "item3 item3" "item1 item2";
    gap: 12px;
    margin-top: 24px;
  }
  .collage-type-5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, clamp(200px, 50vw, 250px));
    grid-template-areas: "item1 item2" "item3 item4";
    gap: 6px;
  }
  .filter-input {
    min-width: 218px;
  }
  .filter-input:nth-child(2) {
    flex: 1;
  }
  .filter-input:nth-child(3) {
    flex: 1;
  }
  .filter .button-primary {
    max-width: unset;
    width: calc(50% - 6px);
    margin-left: auto;
  }
  .filter__form {
    flex-wrap: wrap;
    row-gap: 20px;
  }
  .input-item {
    width: calc(50% - 6px);
  }
  .input-item__label {
    margin-bottom: 8px;
  }
  .hypothec-calculator__info {
    column-gap: 30px;
    row-gap: 16px;
    flex-wrap: wrap;
  }
  .hypothec-calculator__info-elem div {
    font-size: 24px;
    line-height: 28px;
  }
  .hypothec-calculator__info-elem div span {
    font-size: 28px;
    line-height: 32px;
  }
  .hypothec-calculator__bank {
    width: calc(33.3333333333% - 11px);
  }
  .hypothec .flex-row .hypothec-card {
    height: 460px;
  }
  .hypothec .flex-row .hypothec-card__content {
    padding: 20px;
  }
  .map {
    height: fit-content;
  }
  .map #map {
    height: clamp(450px, 70vw, 600px);
  }
  .map__info {
    position: static;
    max-width: unset;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    column-gap: 26px;
    row-gap: 20px;
    max-height: 278px;
    padding: 30px 20px;
  }
  .map__info-block {
    width: calc(50% - 13px);
    margin-bottom: 0;
  }
  .map__info-block:nth-child(3) {
    order: 4;
  }
  .map__info-block:nth-child(4) {
    order: 3;
  }
  .map__info-column div {
    font-size: 22px;
  }
  .ymaps-2-1-79-controls__control {
    inset: 137px auto auto 10px !important;
  }
}