@media (max-width: 1600px) {
    header.header .container {
        width: calc(100% - 40px);
        gap: 32px;
    }

    .left .logo {
        display: none;
    }

    .left, .right {
        width: 45%;
    }
}

@media (max-width: 1320px) {
    .address__list, .social, .address-popup-wrapper {
        display: none;
    }


}

@media (max-width: 1200px) {
    header.header .container, .container {
        width: calc(100% - 60px);
        gap: 48px;
    }

    main {
        overflow: hidden;
    }

    .logo img {
        width: 24px;
        height: 24px;
    }

    body {
        font-size: 15px;
    }

    .left {
        gap: 24px;
        width: 360px;
    }

    nav.main ul {
        gap: 24px;
    }

    a.brand__logo img {
        height: 14px;
    }

    .right {
        width: 360px;
        gap: 32px;
    }

    .header {
        padding: 15px 0;
    }

    section {
        margin-bottom: 110px;
    }
    
    img.model__img {
        max-width: 70%;
    }
    
    h2.section__title {
        font-size: 42px;
    }
    
    h3.model__name {
        font-size: 44px;
    }
    
    .model__info__left {
        gap: 48px;
    }
    
    p.value {
        font-size: 20px;
    }
    
    .model__params {
        gap: 28px 44px;
    }
    
    .model__price, .model__price span {
        font-size: 28px;
    }
    
    span.small__price {
        font-size: 13px;
    }
    
    .benefits {
        padding: 20px 32px;
        gap: 24px;
    }
    
    span.benefits__value {
        font-size: 18px;
    }
    
    .benefits__item {
        gap: 10px;
    }
    
    .benefits__item p {
        font-size: 11px;
    }
    
    .benefits__item img {
        width: 28px;
        height: 28px;
    }
    
    .model {
        gap: 40px;
    }
    
    .gallery {
        padding-top: 40px;
        gap: 16px;
    }
    
    .gallery a:nth-child(1), .gallery a:nth-child(4) {
        max-height: 320px;
    }
    
    .gallery a {
        max-height: 180px;
    }
    
    p.instock__title {
        font-size: 32px;
    }
    
    p.intock__count {
        font-size: 16px;
    }
    
    .instock__slider.swiper {
        padding: 8px 6px;
    }
    
    p.offers__item__name {
        font-size: 28px;
    }
    
    .offers__item {
        gap: 24px;
    }
    
    .offers__item__img img {
        height: 260px;
    }
    
    .offers__grid {
        gap: 24px;
    }
    
    .section__content {
        gap: 24px;
    }
    
    .section__description {
        font-size: 20px;
    }
    
    section.rus .section__header .section__description {
        max-width: 615px;
    }
    
    .rus__item {
        padding: 40px;
        gap: 12px;
        height: 206px;
    }
    
    p.rus__item__title {
        font-size: 28px;
    }
    
    p.rus__item__text {
        font-size: 18px;
    }
    
    .col:nth-child(1) .rus__item:nth-child(1) {
        height: 380px;
    }
    
    .col:nth-child(1) .rus__item:nth-child(2) {
        height: 260px;
    }
    
    .credit__item img {
        width: 64px;
        height: 64px;
    }
    
    .credit__item {
        padding: 28px 20px;
    }
    
    p.credit__item__title {
        font-size: 28px;
        margin-top: 10px;
    }
    
    .banks__item img {
        max-width: 200px;
        max-height: 46px;
    }
    
    .credit__fos {
        padding: 40px 64px;
        gap: 32px;
    }
    
    p.credit__fos__title {
        font-size: 28px;
        line-height: 34px;
    }
    
    .credit__fos form.fos__form {
        gap: 20px;
    }
    
    .credit__fos form.fos__form .row input.fos__input {
        font-size: 15px;
    }
    
    .avilon__benefits__item img {
        width: 54px;
        height: 54px;
    }
    
    .avilon__benefits__item {
        padding: 20px;
    }
    
    p.fos__title {
        font-size: 30px;
    }
    
    .fos__wrapper {
        gap: 10px;
    }
    
    section.avilon .fos__wrapper p.fos__title {
        font-size: 28px;
        line-height: 34px;
    }
    
    section.avilon .fos__wrapper {
        gap: 24px;
    }
    
    section.avilon form.fos__form .row {
        gap: 12px;
    }
    
    section.avilon form.fos__form {
        gap: 8px;
    }
    
    .fos__container img {
        max-height: 100%;
        height: 100%;
    }

    .map__info {
        left: 80px;
        max-width: 380px;
        padding: 20px;
        gap: 20px;
    }
    
    .map__info > img {
        height: 180px;
    }
    
    p.place__name {
        font-size: 20px;
    }
    
    p.metro img {
        width: 20px;
        height: auto;
    }
    
    p.metro {
        font-size: 14px;
    }
    
    .contact__list__item__content .row p, .contact__list__item__content .row a {
        font-size: 14px;
    }
    
    .contact__list__item__content {
        gap: 10px;
    }
    
    .contacts__list {
        gap: 24px;
    }
    
    footer {
        padding: 40px 20px;
    }
    
    .footer__info {
        gap: 28px;
    }
    
    nav.footer__nav ul {
        gap: 16px;
    }

    .instock__card.swiper-slide {
        box-shadow: 0px 0px 8px 0px #0000001a;
    }

    .instock .arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .instock .arrow.prev {
        left: -24px;
    }
    
    .instock .arrow.next {
        right: -24px;
    }
}

@media (max-width: 992px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .burger {
        display: inline-flex;
        justify-self: end;
        order: 3;
    }

    .hero {
        min-height: 720px;
    }

    .left {
        display: none;
    }
    
    header.header .container, .container {
        width: calc(100% - 40px);
    }
    
    .right {
        width: max-content;
        gap: 40px;
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span {
        position: absolute;
        transform: rotate(45deg);
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .call__list {
        width: 300px;
        padding: 12px;
        gap: 12px;
    }
    
    .call__list__item p {
        font-size: 14px;
        gap: 4px;
    }
    
    .call__list__item svg {
        width: 14px;
        height: 14px;
    }

    .left {
        display: none;
    }
    
    header.header .container, .container {
        width: calc(100% - 40px);
        gap: 32px;
    }
    
    .right {
        width: max-content;
        gap: 40px;
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span {
        position: absolute;
        transform: rotate(45deg);
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .call__list {
        width: 300px;
        padding: 12px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .call__list__item p {
        font-size: 14px;
        gap: 4px;
    }
    
    .call__list__item svg {
        width: 14px;
        height: 14px;
    }
    
    section.models__list .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fos__wrapper {
        padding: 24px;
        max-width: 50%;
        width: 100%;
        gap: 8px;
    }
    
    .fos__container img {
        max-width: 50%;
    }
    
    p.fos__title {
        font-size: 24px;
    }
    
    input.fos__input {
        height: 50px;
        padding: 10px 16px;
    }
    
    button.fos__btn {
        height: 50px;
        padding: 10px 24px;
    }
    
    .model__info {
        flex-direction: column-reverse;
    }
    
    .model__info__left {
        max-width: 100%;
        width: 100%;
    }
    
    h3.model__name {
        text-align: center;
    }
    
    .model__params {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .price__wrapp {
        align-items: center;
    }
    
    .benefits {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery {
        gap: 10px;
    }
    
    p.instock__card__price {
        font-size: 20px;
    }
    
    .instock__card__img__nav {
        gap: 6px;
    }
    
    .instock__card.swiper-slide {
        padding: 20px;
        border-radius: 16px;
    }
    
    
    .offers__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
    
    section.offers .btn {
        width: 100%;
    }
    
    section.rus .section__header, .section__header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    h2.section__title {
        font-size: 36px;
    }
    
    section.rus .section__header .section__description {
        max-width: 80%;
        text-align: center;
    }
    
    .section__description {
        font-size: 18px;
    }
    
    .col {
        gap: 10px;
    }
    
    .rus__grid {
        gap: 10px;
    }

    p.offers__item__name {
        font-size: 24px;
    }
    
    .offers__item {
        gap: 20px;
    }
    
    p.instock__title {
        font-size: 28px;
    }
    
    .instock .arrow.prev {
        left: -6px;
    }
    
    .instock__list {
        padding: 0 16px;
    }
    
    .instock .arrow.next {
        right: -6px;
    }
    
    .instock__wrapper {
        gap: 8px;
    }
    
    .rus__item {
        padding: 28px;
        height: 156px;
    }
    
    p.rus__item__title {
        font-size: 24px;
    }
    
    p.rus__item__text {
        font-size: 16px;
    }
    
    .col:nth-child(1) .rus__item:nth-child(1) {
        height: 280px;
    }
    
    .col:nth-child(1) .rus__item:nth-child(2) {
        height: 200px;
    }
    
    section {
        margin-bottom: 80px;
    }
    
    .credit__items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .credit__item img {
        width: 48px;
        height: 48px;
    }
    
    p.credit__item__title {
        font-size: 24px;
    }
    
    .banks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .banks__item {
        height: 80px;
    }
    
    .credit__fos {
        padding: 32px 54px;
    }
    
    p.credit__fos__title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .credit__fos form.fos__form .row {
        gap: 10px;
    }
    
    .credit__fos form.fos__form {
        gap: 10px;
    }
    
    .avilon__benefits__item img {
        width: 48px;
        height: 48px;
    }
    
    section.avilon .fos__wrapper {
        max-width: 50%;
        margin-left: 0;
        padding: 20px;
        gap: 20px;
    }
    
    section.avilon .fos__wrapper p.fos__title {
        font-size: 24px;
        line-height: 32px;
    }
    
    section.avilon form.fos__form .row {
        gap: 10px;
    }
    
    section.avilon .fos__btn {
        font-size: 15px;
        margin-top: 8px;
    }
    
    section.avilon form.fos__form .row input.fos__input {
        font-size: 14px;
    }
    
    h2.section__title {
        width: 100%;
        text-align: center;
    }
    
    section.hero {
        margin-bottom: 80px;
        height: auto;
        max-height: 100vh;
    }
    
    .map__info {
        left: 20px;
        max-width: 360px;
        padding: 16px 16px 24px 16px;
    }
    
    .map__wrapper {
        border-radius: 20px 20px 0 0;
        height: 640px;
    }

    .swiper-slide.hero__slide img {
        min-height: 720px;
    }
}

@media (max-width: 768px) {


    .button_model{
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .button_model .btn{
        width: 100%;
    }

    .header {
        padding: 12px 0;
    }

    .hero {
        min-height: 600px;
    }

    header .social {
        display: none;
    }
    
    .call__wrapper > span {
        display: none;
    }
    
    .call__wrapper > svg {
        width: 20px;
        height: 20px;
    }
    
    .right {
        gap: 20px;
    }
    
    section.models__list .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    
    .fos__container {
        flex-direction: column;
    }
    
    .fos__container img {
        max-width: 100%;
    }
    
    .fos__wrapper {
        max-width: 100%;
        padding: 32px 24px;
    }
    
    form.fos__form {
        max-width: 100%;
    }
    
    .model__params {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    img.model__img {
        max-width: 100%;
    }
    
    h3.model__name {
        font-size: 36px;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .benefits {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
    }
    
    span.benefits__value {
        font-size: 16px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            'i1 i2'
            'i3 i4'
            'i5 i6';
    }
    
    p.offers__item__name {
        font-size: 20px;
    }
    
    .offers__grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
    }
    
    .offers__item__img img {
        max-width: 350px;
    }
    
    .offers__item {
        gap: 12px;
        width: 100%;
    }
    
    .credit__fos {
        padding: 24px;
        border-radius: 24px;
    }
    
    .fos__checks {
        flex-direction: column;
        gap: 6px;
    }
    
    .avilon__benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section.avilon .fos__wrapper {
        max-width: 100%;
        padding: 32px 24px;
    }
    
    .map__info {
        position: initial;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        background: var(--light-biege);
        border-top: 1px solid var(
        --biege);
        padding: 20px 20px 28px 20px;
    }
    
    .map__wrapper {
        height: auto;
        flex-direction: column-reverse;
    }
    
    .map__info > img {
        height: auto;
        max-height: 240px;
    }
    
    div#map {
        height: 500px;
    }
    
    footer .container {
        padding: 0;
    }

    p.intock__count {
        text-align: center;
    }

    .modal__nav__wrapper {
        padding: 80px 20px 32px 20px;
        justify-content: space-between;
    }

    .call__list {
        padding: 16px;
        top: 34px;
        width: 320px;
    }
    
    .call__list__item p {
        font-size: 15px;
        gap: 5px;
    }
    
    .call__list__item p a {
        font-size: 14px;
    }
}

@media (max-width: 540px) {
    section.hero {
        min-height: 140vw;
        height: 100%;
        margin-bottom: 60px;
    }
    
    section {
        margin-bottom: 72px;
    }
    
    section.models__list .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    a.models__list__item {
        gap: 10px;
    }
    
    .fos__wrapper {
        padding: 28px 20px;
    }
    
    .fos__container {
        border-radius: 20px;
    }
    
    input.fos__input {
        border-radius: 8px 0 0 8px;
    }
    
    button.fos__btn {
        border-radius: 0 8px 8px 0;
    }
    
    p.value {
        font-size: 18px;
    }
    
    .model__info__left {
        gap: 36px;
    }
    
    .benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
    
    .gallery {
        display: flex;
        flex-direction: column;
    }
    
    .gallery a, .gallery a:nth-child(1), .gallery a:nth-child(4) {
        max-height: 280px;
        height: 100%;
    }
    
    h2.section__title {
        line-height: 1;
    }
    
    .rus__grid {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .col {
        width: 100%;
    }
    
    .col:nth-child(1) .rus__item:nth-child(1) {
        height: 250px;
    }
    
    .col:nth-child(1) .rus__item:nth-child(2) {}
    
    .rus__item {
        height: auto;
        border-radius: 12px;
    }
    
    .credit__items {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .credit__item {
        padding: 24px 20px;
        gap: 10px;
    }
    
    .banks__item img {
        max-width: 120px;
        max-height: 26px;
    }
    
    .banks {
        gap: 0;
    }
    
    .credit__fos form.fos__form .row {
        flex-direction: column;
    }
    
    .credit__fos {
        padding: 24px 20px;
        gap: 20px;
    }
    
    .avilon__benefits {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    p.avilon__benefits__item__title {
        max-width: calc(100% - 64px);
    }
    
    section.avilon .fos__wrapper {
        padding: 24px 20px;
    }
    
    div#map {
        height: 400px;
    }
    
    footer .container {
        flex-direction: column;
    }
    
    
    a.brand__logo img {
        height: 12px;
    }
    
    .footer__logos img {
        height: 12px;
    }
    
    .burger {
        width: 24px;
        height: 24px;
    }

    .offers__item__img img {
        max-width: 100%;
    }

    .offers__item__img {
        width: 100%;
    }

    .swiper-slide.hero__slide img {
        min-height: 100%;
    }

    .call__wrapper a span {
        display: none;
    }
}
