header {
    display: none;
}
.absolut_header_mobile.show{
    display: none!important;
}
footer {
    display: none;
}

body

@font-face {
    font-family: 'Helvetica-Regular';
    src: url('/mebel_na_zakaz/raspashnye_shkafy_na_zakaz/fonts/helvetica-regular.eot'); /* IE 9 Compatibility Mode */
    src: url('/mebel_na_zakaz/raspashnye_shkafy_na_zakaz/fonts/helvetica-regular.eot?#iefix') format('embedded-opentype'), /* IE < 9 */ url('/mebel_na_zakaz/raspashnye_shkafy_na_zakaz/fonts/helvetica-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('/mebel_na_zakaz/raspashnye_shkafy_na_zakaz/fonts/helvetica-regular.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */ url('/mebel_na_zakaz/raspashnye_shkafy_na_zakaz/fonts/helvetica-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('/mebel_na_zakaz/raspashnye_shkafy_na_zakaz/fonts/helvetica-regular.svg#helvetica-regular') format('svg'); /* Chrome < 4, Legacy iOS */
}

body {
    font-family: 'Helvetica-Regular', serif;
    background: #F4F4F4;

}

main{
    max-width: 1920px;
    margin: 0 auto;
}

.header {
    padding: 15px 310px 17px 280px;
    display: flex;
    justify-content: space-between;
}

.header p:not(.small, .big) {
    padding: 32px 0 13px 0;
    font-size: 24px;
}

.header img {
    object-fit: contain;
}

.header a {
    color: black;
}

.header p.small {
    line-height: 1;
    font-size: 17px;
}

.header p.big {
    line-height: 1;
    font-size: 30px;
}

@media (max-width: 1470px) {
    body  div.header  div:nth-child(6) {
        display: none;
    }

    .header {
        padding: 17px 55px;
    }
}

@media (max-width: 850px) {
    .header p:not(.small, .big) {
        padding: 28px 0 22px 0;
        font-size: 12px;
    }

    .header img {
        height: 25px;
        margin: 19px 0;
    }
}

@media (max-width: 500px) {
    body  div.header  div:nth-child(4) {
        display: none;
    }

    .header {
        padding: 17px 20px;
    }
}

.mz-picture {
    padding: 0 265px;
    --btn-bg-h: #b2b2e8;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: stretch;

    aspect-ratio: auto;
}

/* левая половина */
.mz-left {
    position: relative;
    overflow: hidden;
    background: url("/mebel_na_zakaz/src/img/background.webp") no-repeat;
    background-size: cover;
    border-radius: 74px;
    height: 894px;
    padding: 100px 0;
    display: flex;
}

.mz-text {
    height: auto;
    color: #fff;
    margin: 0 auto;
}

.mz-text h1 {
    font-weight: bold;
    font-size: 111px;
    margin-bottom: 98px;
    line-height: 95%;
}

.mz-text h1 small {
    line-height: 95%;
    font-weight: bold;
    font-size: 90px;
}

.mz-text h5 {
    margin-bottom: 112px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 49px;
}

/* кнопка */
.mz-btn {
    display: inline-block;
    width: fit-content;
    min-width: 260px;
    padding: 42px 75px;
    font-size: 39px;
    line-height: .5;
    border: 0;
    border-radius: 18px;
    background: #C4C4EC;
    color: #111;
    font-weight: 400;
}

.mz-btn:hover {
    background: var(--btn-bg-h);
    transform: translateY(-1px);
}

.mz-btn:active {
    transform: translateY(0);
}

/* правая половина */
.mz-right {
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 74px;
}

.mz-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1550px) {
    .mz-picture {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mz-left,
    .mz-right {
        height: auto;
    }

    .mz-text {
        padding: 120px 55px 80px 55px;
    }

    .mz-right img {
        height: auto;
    }
}

@media (max-width: 1100px){
    .mz-picture {
        padding: 0 17px;
    }
}

@media (max-width: 710px) {

    .mz-text {
        padding: 35px 49px 28px 49px;
    }

    .mz-right img {
        height: auto;
    }

    .mz-text h1 {
        font-size: 56px;
        margin-bottom: 18px;
    }

    .mz-text h1 small {
        font-size: 46px;
    }

    .mz-text h5 {
        margin-bottom: 20px;
        text-transform: uppercase;
        font-weight: 400;
        font-size: 15px;
    }

    .mz-btn {
        display: inline-block;
        width: 100%;
        min-width: auto;
        padding: 14px 60px;
        font-size: 15px;
        border-radius: 6px;
    }

    .mz-left,
    .mz-right {
        background-position: center;
        border-radius: 23px;
        height: 341px;
        padding: 0;
    }

    .mz-right img {
        height: 100%;
        border-radius: 23px;
    }

    .mz-picture {
        padding: 0 17px;
    }
}

/* контейнер */
.adv-grid {
    --radius: 18px;
    --violet: #57577D;
    --text: black;

    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-auto-rows: minmax(220px, auto);
    gap: 28px 58px;
    align-items: start;
    padding: 80px 271px 50px;
    background: url("/mebel_na_zakaz/src/img/знакомство.webp") no-repeat center;
    border-radius: 28px;
}

/* фото */
.adv-photo {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #e9e9ef;
    height: 100%;
}

.adv-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* верхняя левая фотка занимает только левый столбец верхом */
.adv-photo--tl {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* правый столбец со списком (верх) */
.adv-list {
    display: grid;
}

.adv-list:not(.adv-list--left) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: relative;
}

/* левый нижний список */
.adv-list--left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

/* нижнее правое фото */
.adv-grid > .adv-photo:not(.adv-photo--tl) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* пункты */
.adv-item h3 {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--violet);
    font-size: 50px;
    line-height: 1;
}

.adv-item p {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text);
    font-size: 25px;
    line-height: 1;
}

/* звёздочки-декор (как в макете) */
.adv-list::before,
.adv-list::after {
    content: "";
    position: absolute;
    width: 84px;
    height: 84px;
    filter: blur(0.2px);
    background: radial-gradient(closest-side, rgba(196, 196, 236, .55), rgba(196, 196, 236, 0) 70%);
    mask: radial-gradient(20px 20px at 50% 0, #0000 98%, #000) top,
    radial-gradient(20px 20px at 0 50%, #0000 98%, #000) left,
    radial-gradient(20px 20px at 100% 50%, #0000 98%, #000) right,
    radial-gradient(20px 20px at 50% 100%, #0000 98%, #000) bottom;
    mask-composite: exclude;
    opacity: .55;
}

.adv-list::before {
    top: -8px;
    right: 24px;
    transform: scale(1.1);
}

.adv-list::after {
    top: 88px;
    right: -8px;
    transform: scale(.8);
}

@media (max-width: 1275px) {
    .adv-grid {
        display: flex;
        flex-direction: column;
    }

    body  section.adv-grid  figure:nth-child(4) {
        display: none;
    }

    body  section.adv-grid  figure.adv-photo.adv-photo--tl {
        order: 2;
    }

    body  section.adv-grid  div:nth-child(2) {
        order: 0;
    }

    body  section.adv-grid  div.adv-list.adv-list--left {
        order: 1;
    }
}

@media (max-width: 1000px) {
    .adv-grid {
        padding: 60px 55px;
        gap: 0;
    }

    .adv-photo.adv-photo--tl {
        width: 100%;
    }
}

@media (max-width: 710px) {
    .adv-grid {
        padding: 13px 17px;
        gap: 0;
    }

    .adv-item h3 {
        font-size: 20px;
    }

    .adv-item p {
        font-size: 14px;
    }
}

.ps {
    background: url("/mebel_na_zakaz/src/img/портфолио.png");
    padding: 48px 0 24px 0;
    position: relative;
    overflow: hidden;
}
.left_shtorka, .right_shtorka{
    pointer-events:none;
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(196, 196, 236, 0) 0%, #C4C4EC 67.34%);
    z-index: 10;
}
.right_shtorka{
    right: 0;
    width: 20%;
}
.left_shtorka{
    left: 0;
    width: 20%;
    transform: rotate(180deg);
}

/* Внутренняя обёртка */
.ps__inner {
    margin: 0 auto;
}

/* Заголовок-плашка */
.ps__title{ text-align:center; position: relative; width: max-content; display: flex; margin: 0 auto 40px; }
.bubble{
    --bg:#fff;                       /* цвет плашки */
    --shadow: rgba(76,74,112,.12);   /* тень снизу */
    display:inline-block;
    padding: 14px 20px 20px;
    background:var(--bg);
    color:#58527f;
    font-weight:bold;
    line-height:1.04;
    font-size: 75px;
    position: relative;

    /* маска из SVG — растягивается под размер блока */
    -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox=\'0 0 855 168\'>\
<path fill=\'black\' d=\'M24 22C24 9.84973 33.8498 0 46 0H805C817.15 0 827 9.84973 827 22V68.0096C827 75.7416 833.268 82.0096 841 82.0096C848.732 82.0096 855 88.2776 855 96.0096V145.5C855 157.65 845.15 167.5 833 167.5H22C9.84971 167.5 0 157.65 0 145.5V92.0001C0 85.3726 5.3726 80 12 80C18.6275 80 24 74.6274 24 68V22Z\'/>\
</svg>') no-repeat center / 100% 100%;
    mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox=\'0 0 855 168\'>\
<path fill=\'black\' d=\'M24 22C24 9.84973 33.8498 0 46 0H805C817.15 0 827 9.84973 827 22V68.0096C827 75.7416 833.268 82.0096 841 82.0096C848.732 82.0096 855 88.2776 855 96.0096V145.5C855 157.65 845.15 167.5 833 167.5H22C9.84971 167.5 0 157.65 0 145.5V92.0001C0 85.3726 5.3726 80 12 80C18.6275 80 24 74.6274 24 68V22Z\'/>\
</svg>') no-repeat center / 100% 100%;

    /* тень по форме маски */
    filter: drop-shadow(0 8px 0 var(--shadow));
}
.ps__title::before, .ps__title::after{
    background: url("/mebel_na_zakaz/src/img/star.png");
    position: absolute;
    top: 35%;
    z-index: 1;
    content: "";
    width: 40px;
    height: 40px;
}
.ps__title::after{
    left: 0;
}
.ps__title::before{
    transform: rotate(25deg);
    right: 0;
}
/* Карусель */
.ps__carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.ps__viewport {
    overflow: auto hidden;
    scroll-snap-type: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 18px;
    position: relative;
    padding: 10px 4px; /* чтобы карточки не прилипали к краю при тумане */
}

.ps__viewport::-webkit-scrollbar{ display:none; }

.ps__track {
    display: flex;
    gap: 20px;
    padding: 25px;
    width: max-content!important;
    overflow: hidden;
}

.ps-card {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.ps-card__img {
    margin: 0;
    min-height: 288px;
    height: 288px;
    overflow: hidden;
}

.ps-card__body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 54%;
}

.ps-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ps-card__title {
    margin: 18px 0 11px;
    color: #595489;
    font-size: 33px;
    font-weight: 700;
}

.ps-card__body .ps-card__specs {
    height: 100%;
    margin-bottom: 12px;
    list-style: none;
    color: #57577D;
    font-size: 20px;
}

.ps-card__body .ps-card__specs li{
    line-height: 1.2;
}

.ps-card__btn {
    width: 100%;
    display: block;
    margin-top: auto;
    border: 0;
    line-height: 1;
    border-radius: 12px;
    padding: 12px 14px;
    background: #6666CCC2;
    font-size: 25px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.ps-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    color: white;
}

/* Навигация */
.ps__nav {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: #6666CCC2;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(56, 48, 128, .35);
    cursor: pointer;
    transition: .2s ease;
}

.nav_carousel {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ps__nav:disabled {
    opacity: .4;
    cursor: not-allowed;
    filter: grayscale(.2);
}

.ps__nav:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* CTA */
.ps__cta {
    display: flex;
    justify-content: center;
}

.ps__cta-btn {
    display: inline-block;
    margin: 0 25px;
    padding: 20px 100px;
    border-radius: 14px;
    background: #7D7DD3;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(56, 48, 128, .35);
}

.ps__cta-btn:hover{
    color: white;
}

/* ====== Адаптив ====== */
@media (max-width: 1100px) {
    .ps{
        padding: 22px ;
    }
    .ps__title{
        margin: 0 auto;
    }
    .bubble {
        font-size: 40px;
    }

    .ps__title::before, .ps__title::after {
        top: 22%;
        width: 30px;
        height: 30px;
        background-size: cover;
    }
}

@media (max-width: 860px) {
    .bubble {
        font-size: 40px;
    }

    .ps__title::before, .ps__title::after {
        top: 22%;
    }

    .ps-card{
        flex: 0 0 179px;
        height: auto;
        padding: 9px 11px;
    }

    .left_shtorka, .right_shtorka{
        width: 15%;
    }
    .ps{
        padding: 15px;
    }

    .ps-card__img{
        min-height: 127px;
        height: 127px;
    }

    .ps-card__title{
        font-size: 16px;
        margin: 7px 0;
    }

    .ps-card__body .ps-card__specs{
        font-size: 12px;
    }

    .ps-card__btn{
        font-weight: 400;
        font-size: 12px;
    }

    .ps__cta-btn{
        font-size: 12px;
    }

    .ps__nav{
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 590px) {
    .bubble {
        font-size: 24px;
    }

    .ps__track{
        gap: 8px;
    }

    .ps-card__btn{
        padding: 6px;
    }

    .ps__cta-btn{
        padding: 12px 50px;
    }

    .ps__nav{
        width: 40px;
        height: 40px;
    }

    .ps__title::before, .ps__title::after{
        width: 20px;
        height: 20px;
        top: 29%;
    }
}

@media (max-width: 430px){
    .ps__cta-btn{
        margin: 0 8px;
    }
}

.reviews-section {
    padding: 40px 20px;
}

/* 3 видео сверху */
.reviews-videos {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.video-card {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}
.video-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Карусель */
.reviews-carousel {
    position: relative;
    overflow: visible;
}
.reviews-track {
    display: flex;
    transition: transform 0.4s ease;
}
.rc-viewport{
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior: contain;
    padding: 0 0 0 0; /* если нужен отступ слева — поставь */
    user-select: none;
}
.rc-viewport::-webkit-scrollbar{ display:none; }
.review-card {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.avatar {
    background: #fff;
    border-radius: 17px;
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #00000029;
    font-size: 23px;
}
.stars {
    display: flex;
    gap: 5px;
    margin-left: auto;
    color: gold;
}
.review-text{
    font-size: 20px;
}
.name{
    font-size: 23px;
}
.reviews-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}
.reviews-dots button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 4px solid #7D7DD3;
    background: white;
    cursor: pointer;
}
.reviews-dots button:focus {
    outline: none;
    box-shadow: none;
}
.ps__nav:focus{
    outline: none;
    box-shadow: none;
}
.reviews-dots button.active {
    border: none;
    width: 26px;
    height: 26px;
    background: #7D7DD3;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
}
.reviews-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    touch-action: pan-y;
    gap: 20px;
}
.review-card {
    flex: 0 0 415px;
    margin: 20px 0;
    background: #F4F4F4;
    border-radius: 22px;
    line-height: 1.1;
    padding: 14px 17px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reviews-section_main{
    background: white;
    padding: 60px 290px;
}

.reviews-title{
    color: #57577D;
    font-size: 75px;
    font-weight: bold;
    line-height: 1;
    width: 100%;
    text-align: center;
}

.reviews-videos img{
    cursor: pointer;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.video-modal-content {
    position: relative;
    height: 95%;
    margin: auto;
}
.video-modal video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.video-modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

@media (max-width: 1450px) {
    .reviews-title{
        font-size: 50px;
    }
}

@media (max-width: 1200px) {
    .reviews-title{
        font-size: 30px;
    }

    .reviews-section_main{
        padding: 21px 16px 15px;
    }

    .reviews-dots button{
        width: 12px;
        height: 12px;
        padding: 0;
        border: 2px solid #7D7DD3;
    }

    .reviews-dots button.active{
        width: 12px;
        height: 12px;
    }

    .review-card{
        padding: 10px;
        flex: 0 0 251px;
        margin: 14px 0;
    }

    .avatar{
        width: 31px;
        height: 31px;
        padding: 10px;
        font-size: 13px;
        line-height: 1;
        border-radius: 10px;
    }

    .name{
        font-size: 13px;
    }

    .stars img{
        width: 15px;
        height: 15px;
    }

    .review-text{
        font-size: 12px;
    }
}

@media (max-width: 550px) {
    .review-card{
        margin: 0;
    }
    .reviews-track{
        gap: 10px;
    }
    .video-card img{
        height: 233px;
    }
    .reviews-videos{
        gap: 5px;
        margin-bottom: 14px;
    }
    .reviews-section{
        padding: 14px 0;
    }
    .reviews-title{
        font-size: 19px;
    }
}

/* КВИЗ */
.quiz_container{
    background: #C4C4EC;
    padding: 60px 270px;
}
#quiz{
    background: white;
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 0 7px 9px #00000021;
}
#quiz h3{
    color: #57577D;
    font-size: 86px;
    font-weight: bold;
}
#quiz h4{
    color: #57577D;
    font-weight: 400;
    font-size: 36px;
    display: flex;
    align-items: flex-end;
    line-height: 1;
}
.purple_had{
    background: #7D7DD3;
    padding: 11px 18px 16px;
    border-radius: 11px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 34px;
}
#quiz h4 img{
    margin-right: 10px;
}
#quiz-title{
    line-height: 1;
    color: white;
    font-size: 37px;
}
#quiz-step{
    line-height: 1;
    color: white;
    font-size: 37px;
}
.quiz-progress {
    height: 9px;
    border: 2px solid #7D7DD3;
    background: white;
    margin: 3px 0 16px;
    border-radius: 11px;
}
#quiz-progress-bar {
    height: 100%;
    background: #7D7DD3;
    width: 0;
    transition: width 0.3s;
}
.quiz-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.quiz-option {
    font-size: 37px;
    width: 24%;
    cursor: pointer;
    text-align: center;
}
#quiz .quiz-content .quiz-option[style*="text-align:left"]{
    justify-content:flex-start;
    align-items:center;
}
.quiz-option img{
    width: 100%;
}
#quiz-content div.quiz-option div{
    font-size: 37px;
}
.quiz-option.selected img {
    border: 2px solid #6c63ff;
    border-radius: 22px;
}
.quiz-nav {
    display: flex;
    justify-content: space-between;
}
.quiz-nav button {
    padding: 22px 32px;
    font-size: 37px;
    background: #7D7DD3;
    color: white;
    line-height: 1;
    border-radius: 11px;
    border: none;
}

.quiz-nav button:disabled {
    background: white;
    border: 3px solid #7D7DD3;
    border-radius: 11px;
    color: #7D7DD3;
}

.check_contact{
    width: 56px;
    height: 56px;
    border: 4px solid #C4C4EC;
    border-radius: 11px;
    margin-right: 27px
}

.quiz-option.selected .check_contact{
    background: #C4C4EC;
}

#quiz .legal-consents--quiz{
    width:100%;
    align-items:flex-start;
    margin:0;
}

#quiz .legal-consents--quiz .legal-consent{
    color:#000;
    font-size:31px;
    line-height:1.12;
}

#quiz .legal-consents--quiz .legal-consent span{
    color:#000;
    font-size:31px;
    line-height:1.12;
}

#quiz .legal-consents--quiz .legal-consent a{
    color:#76A1FF;
}

#quiz .legal-consents--quiz .legal-consent__box{
    width:34px;
    height:34px;
    border-color:#C7C7EC;
    border-radius:6px;
}

#quiz .legal-consents--quiz input:checked + .legal-consent__box::after{
    background:#C7C7EC;
}

#contact-input, .quiz-content textarea, #contact-name{
    margin-top: 10px;
    width: 100%;
    padding: 20px 26px 79px;
    border: none;
    background: #EAEAEA;
    border-radius: 22px;
    font-size: 37px;
}

#contact-input, #contact-name{
    height: 97px;
    padding: 33px 0 25px 28px;
}

#contact-input::placeholder, .quiz-content textarea::placeholder{
    font-size: 37px;
    color: #000000;
    line-height: 1;
    opacity: .24;
}

@media (max-width: 1866px) {
    #quiz h4{
        font-size: 30px;
    }
}

@media (max-width: 1790px){
    #quiz h3{
        font-size: 80px;
    }
}

@media (max-width: 1710px) {
    #quiz h3{
        font-size: 70px;
    }
}
@media (max-width: 1667px) {
    #quiz h4{
        font-size: 20px;
    }
    #quiz-content div.quiz-option div{
        font-size: 25px;
    }
}
@media (max-width: 1580px){
    #quiz h3{
        font-size: 40px;
    }
}
@media  (max-width: 1385px) {
    .quiz-option{
        width: 43%;
    }
}
@media (max-width: 1170px){
    .quiz_container{
        padding: 30px 16px;
    }
}
@media (max-width: 850px){
    #quiz{
        padding: 14px 20px;
    }
}

@media (max-width: 615px){
    #quiz h3{
        font-size: 22px;
    }
    #quiz h4, #quiz-title, #quiz-step, #quiz-content div.quiz-option div{
        font-size: 12px;
    }
    #quiz-title, #quiz-step{
        margin: 0;
    }
    .purple_had{
        padding: 8px;
        margin-top: 17px;
    }
    .quiz-content{
        gap: 14px;
    }
    .quiz-nav button{
        font-size: 12px;
        padding: 8px 18px;
    }
    .quiz-nav button:disabled{
        border: 1px solid #7D7DD3;
    }
    #quiz h4 img{
        width: 18px;
        height: 25px;
    }
    .quiz-option{
        font-size: 12px;
    }
    .check_contact{
        width: 18px;
        height: 18px;
        border: 1px solid #C4C4EC;
        border-radius: 3px;
        margin-right: 3px;
    }
    #quiz .legal-consents--quiz .legal-consent,
    #quiz .legal-consents--quiz .legal-consent span{
        font-size:12px;
        line-height:1.1;
    }
    #quiz .legal-consents--quiz .legal-consent__box{
        width:14px;
        height:14px;
    }

    #contact-input, .quiz-content textarea, #contact-name{
        padding: 10px 10px 19px;
        font-size: 12px;
        border-radius: 7px;
    }
    #contact-input::placeholder, .quiz-content textarea::placeholder{
        font-size: 12px;
    }

    #contact-input, #contact-name{
        height: 31px;
        padding: 11px 14px;
    }
}

.block_personal-project{
    padding: 80px 270px 0;
    background: white;
}

.personal-project {
    display: flex;
    align-items: stretch;
    border-radius: 74px;
    overflow: hidden;
    color: white;
}

.personal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-image {
    flex: 1 1 50%;
}

.personal-content {
    flex: 1 1 50%;
    padding: 127px 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: url("/mebel_na_zakaz/src/img/right_picture.webp") no-repeat right center;
    background-size: cover;
    align-items: flex-start;
}

.personal-content h3 {
    font-size: 70px;
    margin-bottom: 72px;
    font-weight: bold;
}

.personal-content p {
    font-size: 37px;
    margin-bottom: 72px;
}

.personal-btn {
    background: white;
    color: black;
    border: none;
    padding: 30px 160px;
    font-size: 37px;
    border-radius: 9px;
    cursor: pointer;
    line-height: 1;
    max-width: 650px;
}

.personal-btn:hover {
    background: #f0f0f0;
}

@media (max-width: 1600px){
    .personal-content h3{
        font-size: 35px;
        margin-bottom: 35px;
    }
    .personal-content p{
        font-size: 18px;
        margin-bottom: 35px;
    }
    .personal-btn{
        padding: 15px 90px;
        font-size: 18px;
        width: max-content;
    }
}

@media (max-width: 1170px) {
    .block_personal-project{
        padding: 30px 16px 0;
    }
}

@media (max-width: 655px) {
    .personal-content h3{
        line-height: 1;
        font-size: 22px;
        margin-bottom: 17px;
    }
    .personal-content p{
        line-height: 1;
        font-size: 12px;
        margin-bottom: 21px;
    }
    .personal-btn{
        padding: 6px 45px;
        font-size: 12px;
        width: 100%;
        border-radius: 3px;
    }
    .personal-content{
        padding: 40px 14px;
    }
    .block_personal-project{
        padding: 15px 15px 0;
    }
    .personal-project{
        border-radius: 22px;
    }
}
.one_bg{
    background: white url("/mebel_na_zakaz/src/img/bottom_bg.webp") no-repeat center;
    background-size: cover;
}
.steps img{
    object-fit: contain;
    width: 100%;
}
.questions-block {
    display: flex;
    padding: 10px 270px 22px;
    overflow: hidden;
}

.questions-left {
    flex: 0 0 57.37%;
    padding: 64px 20px 40px 33px;
    background: url("/mebel_na_zakaz/src/img/right_picture.webp") no-repeat;
    background-size: cover;
    border-radius: 74px 0 0 74px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.questions-left h3 {
    font-size: 64px;
    font-weight: bold;
}

.questions-left p {
    font-size: 32px;
    margin-bottom: 32px;
}

.questions-left form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.questions-left input {
    height: 62px;
    padding: 21px;
    width: 100%;
    border: none;
    line-height: 89%;
    border-radius: 15px;
    font-size: 26px;
}

.questions-left input::placeholder{
    color: #8080B9;
    font-size: 26px;
}

.questions-left button {
    width: 100%;
    padding: 20px 0;
    background: #6666CC;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    height: 62px;
    line-height: 89%;
    font-size: 30px;
    order: 2;
}

.socials {
    display: flex;
    gap: 35px;
    margin-top: 20px;
    justify-content: center;
}
.socials a.mobile{
    display: none;
}
.socials img {
    width: 65px;
    height: 65px;
}

.questions-right {
    flex: 0 0 42.63%;
    border-radius: 0 74px 74px 0;
    overflow: hidden;
}

.questions-right img {
    border-radius: 0 74px 74px 0;
    width: 116%;
    height: 100%;
    object-fit: fill;
    object-position: left center;
}
.questions-check{
    display:flex; align-items:center; gap:12px;
    color:#fff; font-size:26px; line-height:1; /* под десктоп макет */
    margin-top:2px;
    user-select:none; cursor:pointer;
}
.questions-check input{ position:absolute; opacity:0; pointer-events:none; }
.questions-check .box{
    width:38px; height:38px; border:2px solid #fff; border-radius:6px; display:inline-block; position:relative;
}
.questions-check input:checked + .box::after{
    content:""; position:absolute; inset:4px; border-radius:3px; background:#fff;
}
.questions-check .label-text{ color:#fff; }

/* согласие */
.questions-left p.questions-consent{
    margin:10px 0 0; color:rgba(255,255,255,.9); font-size:19px; line-height:1.3;
}
.legal-consents{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:2px 0 4px;
}
.questions-left .legal-consents--questions{
    order:3;
}
.legal-consent{
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:rgba(255,255,255,.92);
    font-size:18px;
    line-height:1.2;
    cursor:pointer;
    position:relative;
    user-select:none;
    --legal-box-size:20px;
}
.legal-consent input{
    position:absolute;
    top:1px;
    left:0;
    z-index:1;
    width:var(--legal-box-size);
    height:var(--legal-box-size);
    margin:0;
    opacity:0;
    pointer-events:auto;
    appearance:none;
}
.legal-consent__box{
    flex:0 0 auto;
    width:20px;
    height:20px;
    border:2px solid currentColor;
    border-radius:5px;
    position:relative;
    margin-top:1px;
}
.legal-consent input:checked + .legal-consent__box::after{
    content:"";
    position:absolute;
    inset:3px;
    border-radius:3px;
    background:currentColor;
}
.legal-consent a{
    color:inherit;
    text-decoration:underline;
}
.questions-left .legal-consents--questions .legal-consent,
.questions-left .legal-consents--questions .legal-consent span{
    color:#fff;
}
.questions-left .legal-consents--questions .legal-consent a{
    color:#78A3FF;
}
.questions-left .legal-consents--questions .legal-consent__box{
    border-color:#fff;
}
.questions-left .legal-consents--questions .legal-consent input{
    position:relative;
    top:auto;
    left:auto;
    flex:0 0 var(--legal-box-size);
    width:var(--legal-box-size);
    min-width:var(--legal-box-size);
    max-width:var(--legal-box-size);
    height:var(--legal-box-size);
    min-height:var(--legal-box-size);
    max-height:var(--legal-box-size);
    margin:1px 0 0;
    padding:0;
    box-sizing:border-box;
    display:block;
    opacity:1;
    pointer-events:auto;
    appearance:none;
    -webkit-appearance:none;
    border:2px solid #fff;
    border-radius:5px;
    background:transparent;
}
.questions-left .legal-consents--questions .legal-consent__box{
    display:none;
}
.questions-left .legal-consents--questions .legal-consent input:checked::after{
    content:"";
    position:absolute;
    inset:3px;
    border-radius:3px;
    background:#fff;
}
.legal-consents--promo .legal-consent,
.legal-consents--quiz .legal-consent{
    color:#7D7DD3;
}
html, body {
    position: relative;
    overflow-x: clip;
}
.questions-consent a{ color:#BFD0FF; text-decoration:underline; }
@media (max-width: 1170px) {
    .questions-block{
        padding: 10px;
    }
}
@media(max-width: 1000px) {
    .questions-block{
        padding: 10px;
    }
    .questions-left{
     border-radius: 22px;
        padding: 25px;
        margin-bottom: 12px;
        min-width: auto;
    }
    .questions-right{
        border-radius: 22px;
        overflow: hidden;
    }
    .questions-right img{
        border-radius: 22px;
        width: 112%;
        object-fit: fill;
        object-position: left center;
    }
    .questions-block {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .one_bg {
        padding: 15px 0 0;
        background: white url("/mebel_na_zakaz/src/img/bottom_bg_mobile.webp") no-repeat center;
        background-size: cover;
    }
    .questions-left h3{
        font-size: 32px;
        margin-bottom: 12px;
    }
    .questions-right{
        display:none;
    }
    .questions-left p{
        font-size: 16px;
        margin-bottom: 16px;
    }
    .questions-left input{
        height: 30px;
        padding: 10px;
        font-size: 13px;
        border-radius: 5px;
    }
    .questions-left input::placeholder{
        font-size: 13px;
    }
    .questions-left button{
        height: 30px;
        padding: 10px;
        font-size: 15px;
        border-radius: 5px;
        background: #6666CC;
    }
    .questions-check{
        font-size: 15px;
    }
    .questions-check .box{
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 1px solid white;
    }
    .legal-consents{
        gap:6px;
        margin:0;
    }
    .legal-consent{
        gap:7px;
        font-size:10px;
        line-height:1.15;
        --legal-box-size:13px;
    }
    .questions-left .legal-consents--questions .legal-consent input{
        border-width:1px;
        border-radius:4px;
    }
    .legal-consent__box{
        width:13px;
        height:13px;
        border-width:1px;
        border-radius:4px;
    }
    .legal-consent input:checked + .legal-consent__box::after{
        inset:3px;
        border-radius:2px;
    }
    .questions-left p.questions-consent{
        font-size: 10px;
    }
    .socials a.mobile{
        display: block;
    }
    .socials img{
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 390px) {
    .questions-left h3{
        font-size: 30px;
        margin-bottom: 0;
    }
    .questions-left p{
        font-size: 15px;
        margin-bottom: 18px;
    }
    .questions-left form{
        gap: 7px;
    }
    .questions-left input, .questions-left input::placeholder{
        font-size: 12px;
    }
    .socials{
        gap: 20px;
    }
}

/* Подложка с блюром */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}

/* Сам баннер */
.banner-popup {
    position: fixed;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 463px;
    max-width: 80%;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    z-index: 9999;
}

/* Контент баннера */
.banner-content {
    display: flex;
    flex-direction: row;
    height: 100%;
}
.banner-left{
    width: 43%;
}
.banner-left img {
    width: 100%;
    height: 105%;
    object-fit: cover;
    object-position: center;
}

.banner-right {
    width: 50%;
    flex: 1;
    background: url("/mebel_na_zakaz/src/img/banner_background.webp") no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 80px 75px 80px 27px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.banner-right h2 {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 26px;
}

.banner-right p {
    font-size: 23px;
    margin-bottom: 54px;
}

.banner-right button:not(.banner-close) {
    background: #fff;
    color: #57577D;
    border: none;
    border-radius: 11px;
    padding: 8px 20px 16px;
    cursor: pointer;
    font-size: 28px;
}

.banner-close {
    position: absolute;
    top: 29px;
    right: 29px;
    width: 29px;
    height: 29px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 1700px) {
    .banner-right h2{
        font-size: 30px;
        margin-bottom: 13px;
    }

    .banner-right p{
        font-size: 16px;
        margin-bottom: 27px;
    }

    .banner-right button:not(.banner-close){
        font-size: 14px;
    }

    .banner-popup{
        height: 320px;
    }
}
@media (max-width: 800px){
    .banner-popup{

        height: auto;
        width: 100%;
        max-width: 100%;
    }
    .banner-content{
        flex-direction: column;
    }
    .banner-left{
        width: 100%;
    }
    .banner-right{
        width: 100%;
        padding: 17px 30px;
    }
    .banner-right h2{
        font-size: 25px;
        margin-bottom: 10px;
    }
    .banner-right p{
        margin-bottom: 10px;
    }
    .banner-right button:not(.banner-close){
        padding: 9px;
    }
    .banner-close, .banner-close img{
        width: 15px;
        height: 15px;
        top: 0;
        right: 15px;
    }
}

/* Подложка */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}
