* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.swiper-slide .row-item{
cursor:pointer;
}

.row-item__text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.row-item__area{
  margin-top:4px;
  font-size:12px;
  color:#666666;
}


body {
    background-color: #CFCFCF;
    font-family: 'Montserrat', Arial, sans-serif;
}

.frame {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    gap: 36px;
}

.frame-top {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-top .switch-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 30px;
    max-width: 400px;
    width: 100%;
    height: 53px;
    background-color: white;
    font-size: 18px;
    font-weight: 600;
	font-family: 'Montserrat';
    line-height: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
}

.frame-top .switch-button.active {
    border-color: #0047AB;
    color: #0047AB;
}

.frame-top .switch-button.active svg path {
    stroke: #1374CF;
}

.frame-main {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 60px;
}

.frame-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    position: relative;
}

.frame-main .accordion-wrapper {
    max-width: 416px;
    width: 100%;
    position: relative;
}

.frame-main .accordion-wrapper.layout {
    position: unset;
}

.frame-main .accordion-trigger {
    height: 46px;
    max-width: 416px;
    width: 100%;
    background-color: white;
    border-radius: 30px;
    padding: 0 20px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #666666;
    cursor: pointer;
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.frame-main .accordion-trigger.black {
    color: #000000;
}

.frame-main .accordion-content {
    background-color: #EDEDED;
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 1;
    padding-top: 31px;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
    max-height: 0;
}

.frame-main .accordion-content,
.frame-main .accordion-layout {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
	scrollbar-width: thin;
    scrollbar-color: #0047AB transparent;
}

.frame-main .accordion-layout {
    border: none !important;
    padding: 0 !important;
}


.frame-main .accordion-layout{
	top: 73px;
}

.frame-main .accordion-content::-webkit-scrollbar {
    width: 4px;
}

.frame-main .accordion-content::-webkit-scrollbar-thumb {
    background: #1e90ff;
    border-radius: 50px;
}

.frame-main .accordion-wrapper.open .accordion-layout {
    padding: 13px 0 !important;
}

.frame-main .accordion-wrapper.open .arrow {
    transform: rotate(180deg);
}

.frame-main .accordion-wrapper.open .arrow path {
    fill: #0047AB;
}

.frame-main .accordion-wrapper.open .accordion-content {
    box-shadow: 0px 8px 20px 0px #0000001A;
}

.frame-main .accordion-wrapper.open .accordion-trigger {
    background-color: #EDEDED;
    border-color: #0047AB;
}

.frame-main .accordion-content span {
    padding: 8.5px 16px;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
}

.frame-main .accordion-content span:hover {
    background-color: #d3d2d2;
}

.frame-main .accordion-layout {
    position: absolute;
    background-color: white;
    left: 0;
    width: 100%;
    border: 1px solid black;
    border-radius: 30px;
    padding: 13px 0;
}

/* .frame-main .accordion-layout  */

.frame-main .accordion-layout .layout-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.frame-main .accordion-layout .layout-top .wrap {
    display: flex;
    align-items: center;
}

.frame-main .accordion-layout .rooms-count,
.frame-main .accordion-layout .area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.frame-main .accordion-layout .wrap .line {
    border-right: 1px solid #D8D8D8;
    height: 38px;
    margin-right: 40px;
    margin-left: 40px;
}

.frame-main .accordion-layout .rooms-count span,
.frame-main .accordion-layout .area span {
    height: 50px;
    padding: 0 38px;
    text-align: center;
    border-radius: 30px;
    background-color: #D8D8D81A;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 18px;
    cursor: pointer;
}

.frame-main .accordion-layout .rooms-count span.active,
.frame-main .accordion-layout .area span.active {
    border: 1px solid #0047AB;
    color: #000000;
}

.frame-main .accordion-layout .navigation-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.frame-main .accordion-layout .navigation-buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #D8D8D833;
}

.frame-main .accordion-layout .navigation-buttons button:hover svg path {
    fill: #0047AB;
}

.frame-main .accordion-layout .layout-mid {
    margin-top: 20px;
    padding: 0 16px;
}

.frame-main .accordion-layout .swiper-slide {
    height: 299px;
    border: 1px solid #D8D8D8;
    border-radius: 23px;
}

.frame-main .accordion-layout .swiper-slide.active {
    border: 1px solid #1374CF;
}

.frame-main .accordion-layout .swiper {
    padding-bottom: 15px;
}

.frame-main .accordion-layout .swiper-scrollbar .swiper-scrollbar-drag {
    background-color: #0047AB;
}

.frame-main .swiper-slide .image-wrapper {
    max-width: 244px;
    height: 200px;
    width: 100%;
    margin: 0 auto;
    margin-top: 13px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-main .swiper-slide .image-wrapper .buttons {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.frame-main .swiper-slide .image-wrapper button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #666666;
    outline: none;
    background-color: white;
    border-radius: 30px;
    height: 40px;
    width: 60px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.frame-main .swiper-slide .image-wrapper button:hover {
    background-color: #0047AB;
    border-color: #0047AB;
}

.frame-main .swiper-slide .image-wrapper button:hover path {
    fill: white;
    transition: fill 0.3s ease;
}

.frame-main .swiper-slide .image-wrapper img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.frame-main .swiper-slide .text-info {
    margin-bottom: 13px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
}

.frame-main .layout-bottom {
    margin-top: 20px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.frame-main .layout-bottom button {
    height: 46px;
	font-family: 'Montserrat';
    width: 100%;
    border: 1px solid;
    font-size: 16px;
    border-radius: 30px;
    transition: background 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.frame-main .layout-bottom button:hover {
    opacity: 0.8;
}

.frame-main .layout-bottom button:first-child {
    border-color: #0047AB;
    color: #0047AB;
    background-color: white;
}

.frame-main .layout-bottom button:last-child {
    color: white;
    background-color: #0047AB;
}

.frame-main .submit {
    border-radius: 30px;
	font-family: 'Montserrat';
    color: white;
    background-color: #0047AB;
    outline: none;
    height: 46px;
    border: none;
    max-width: 432px;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.frame-main .submit:hover {
    opacity: 0.9;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    padding: 25px;
    padding-right: 5px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1001;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal-content .scroll-div {
    overflow-y: auto;
    max-height: 600px;
    padding-right: 10px;
    max-width: 490px;
}

.modal-content .scroll-div {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0047AB transparent;
}

.modal-content .scroll-div::-webkit-scrollbar {
    width: 4px;
}

.modal-content .scroll-div::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content .scroll-div::-webkit-scrollbar-thumb {
    background: #1e90ff;
    border-radius: 50px;
}

.modal.is-open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    position: absolute;
    top: -13px;
    right: -13px;
}

.close-btn {
    cursor: pointer;
    transition: opacity 0.2s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.close-btn:hover {
    opacity: 1;
}

#sketchModal h2 {
    color: #0047AB;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 14px;
}

#sketchModal .top-level {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    width: 100%;
}

#sketchModal .area-input {
    max-width: 299px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#sketchModal .area-input {
    font-size: 13px;
    color: #434343;
}

#sketchModal .area-input .input-wrapper {
    position: relative;
}

#sketchModal .area-input .input-wrapper input {
    width: 100%;
    height: 46px;
    border-radius: 30px;
    outline: none;
    border: 1px solid #666666;
    padding-left: 16px;
    padding-right: 40px;
    font-size: 16px;
    color: #000000;
	font-family: 'Montserrat', Arial, sans-serif;
}

#sketchModal .area-input .badge-m2 {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.universal-accordion {
    border-bottom: 1px solid #eee;
	    border-radius: 10px;
    overflow: hidden;
	margin-top:10px;
}

.universal-accordion:last-child {
    border-bottom: none;
}

.universal-accordion .un-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 7px 24px 0;
    cursor: pointer;
    background-color: white;
}

.universal-accordion .left-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.universal-accordion .left-side label {
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.universal-accordion .accordion-icon {
    transition: transform 0.3s ease;
}

.universal-accordion.active .accordion-icon {
    transform: rotate(180deg)
}

.universal-accordion .un-accordion-content {
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.universal-accordion.active .un-accordion-content {
    max-height: 500px;
    padding: 15px;
	overflow-y: scroll;
}

.un-accordion-content p,
.un-accordion-content ul {
    margin-top: 0;
}

.un-accordion-content p:last-child {
    margin-bottom: 0;
}

/* Сброс базового стиля */
.left-side.radio-like {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Скрываем нативный чекбокс, но оставляем его доступным для скринридеров / клавиатуры */
.left-side.radio-like input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Визуальная радиокнопка (контур) */
.left-side.radio-like .fake-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid #777;
    display: inline-block;
    position: relative;
    transition: border-color 0.12s ease, background-color 0.12s ease;
    flex: 0 0 18px;
}

/* Внутренний заполненный кружок: скрыт по умолчанию */
.left-side.radio-like .fake-radio::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* отступ от внешнего круга */
    border-radius: 50%;
    background: transparent;
    transform: scale(0);
    transition: transform 0.12s ease;
}

/* Текст рядом */
.left-side.radio-like .text {
    line-height: 1;
    color: #111;
}

/* Состояние checked: показываем заполненный кружок */
.left-side.radio-like input[type="checkbox"]:checked+.fake-radio {
    border-color: #0b84ff;
    background-color: rgba(11, 132, 255, 0.06);
}

.left-side.radio-like input[type="checkbox"]:checked+.fake-radio::after {
    background: #0b84ff;
    transform: scale(1);
}

/* Фокус клавиатурой — видимый контур */
.left-side.radio-like input[type="checkbox"]:focus+.fake-radio {
    box-shadow: 0 0 0 4px rgba(11, 132, 255, 0.14);
    outline: none;
}

/* Hover состояние для большей отзывчивости */
.left-side.radio-like:hover .fake-radio {
    border-color: #444;
}

.area-row {
    display: flex;
    gap: 40px;
}

.area-row .radio-like {
    margin-top: 20px;
}

#sketchModal .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
}

#sketchModal h3 {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

#sketchModal .radio-group label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #666666;
}

#sketchModal .radio-group input {
    scale: 1.4;
    margin: 6px;
}

#sketchModal .radio-group input[type="radio"]:checked+span {
    color: #000000;
}

#sketchModal .add-btn {
    margin-top: 40px;
    background-color: #0047AB;
    width: 100%;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    height: 46px;
    border: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
	font-family: 'Montserrat', Arial, sans-serif;
}

#sketchModal .add-btn:hover {
    opacity: 0.9;
}

#sketchModal .add-room {
    margin-top: 24px;
    border: none;
    outline: none;
    cursor: pointer;
    color: #0047AB;
    font-weight: 500;
    background-color: white;
    font-size: 16px;
	font-family: 'Montserrat', Arial, sans-serif;
}

/* PAGE 2 */

.container {
    max-width: 1800px;
    padding: 0 20px;
    margin: 0 auto;
	width:100%;
}

header {
    padding: 22px 0;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-right: 150px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

header .nav-links a {
    font-size: 15px;
    border: 1px solid #0047AB;
    border-radius: 20px;
    padding: 11px 43px;
    text-decoration: none;
    color: #000000;
}

header .right-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

header .right-side a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .right-side a:last-child {
    background-color: #0047AB;
    color: white;
    border-radius: 30px;
    padding: 14px 38px;
}

header .right-side a:hover {
    opacity: 0.9;
}

.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dr-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    border: 1px solid #0047AB;
    border-radius: 20px;
    padding: 11px 43px;
    text-decoration: none;
    color: #000000;
    position: relative;
}

.dr-trigger svg {
    transition: all 0.3s ease;
}

.dropdown.open .dr-trigger svg {
    transform: rotate(180deg);
}

.dr-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;
    width: 100%;
    padding: 5px;
    border-radius: 10px;
}

.dr-content a {
    display: block;
    text-decoration: none;
    padding: 10px 5px !important;
    color: #333;
    border: none !important;
    border-radius: 10px !important;
}

.dr-content a:hover {
    background: #f2f2f2;
}

.dropdown.open .dr-content {
    display: block;
}

main .container {
    display: flex;
    gap: 20px;
}

main .preview-wrapper {
    position: relative;
}

.preview-wrapper img {
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.dropdown.room {
    position: absolute;
    right: 10px;
    top: 10px;
}

.dropdown.prime {
    position: absolute;
    left: 10px;
    top: 10px;
}

.dropdown.blur .dr-trigger span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.dropdown.blur .dr-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px 13px 16px;
    width: 200px;
    border-color: white;
    border-radius: 30px;
    z-index: 2;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: rgba(255, 255, 255, 0.60);
}

.dropdown.blur .dr-content {
    background-color: #EDEDED;
    top: 25px;
    z-index: 1;
    flex-direction: column;
    padding-top: 28px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.dropdown.blur .dr-content span {
    padding: 6.5px 16px;
    display: flex;
    gap: 10px;
    font-weight: 500;
    border-radius: 20px;
    align-items: center;
}

.dropdown.blur .dr-content span:hover {
    background-color: #dfdfdf;
}

.rakurs {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    width: 200px;
    justify-content: space-between;
    border-radius: 30px;
    border: 1px solid white;
    background-color: #FFFFFF99;
    padding: 8px 8px 8px 16px;
}

.rakurs span {
    font-weight: 500;
}

.rakurs .buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rakurs .buttons button {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.rakurs .buttons button:hover {
    opacity: 0.8;
}

.with-mebel {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    width: 294px;
    justify-content: space-between;
    border-radius: 30px;
    border: 1px solid white;
    background-color: #FFFFFF99;
    padding: 13px 20px 13px 16px;
	display:none !Important;
}

.with-mebel span {
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5e7;
    transition: .3s;
    border-radius: 8px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 6px;
}

input:checked+.toggle-slider {
    background-color: #0047AB;
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

.tab-bar {
    display: flex;
    align-items: center;
}

.tab-bar .tab {
    font-weight: 700;
    font-size: 18px;
    color: #0047AB;
    border-bottom: 2px solid #0047AB;
    padding: 0 10px 5px 10px;
}

.aside-top {
    max-width: 456px;
    width: 100%;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 30px;
}

.aside-top .first-row {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #D8D8D8;
    padding-bottom: 18px;
}

.aside-top .second-row {
    padding: 16px 0 0 0;
    position: relative;
}

.aside-top .second-row .next-btn-a {
    position: absolute;
    top: 30px ;
    right: 0;
    height: 100%;
    width: 19px;
    display: flex;
    justify-content: end;
    align-items: center;
    background: #f7f7f7; 
    overflow: visible;
    z-index: 10;
    cursor: pointer;
}

.aside-top .second-row .next-btn-a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -10px;     
    width: 80px;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.7) 30%,
        rgba(255,255,255,0.25) 60%,
        rgba(255,255,255,0) 100%
    );
    filter: blur(5px);
}

.aside-top .second-row .prev-btn-a {
    position: absolute;
    top: 30px ;
    left: 0;
    height: 100%;
    width: 19px;
    display: flex;
    justify-content: start;
    align-items: center;
    background: #f7f7f7; 
    overflow: visible;
    z-index: 10;
    cursor: pointer;
}

.aside-top .second-row .prev-btn-a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -10px;     
    width: 80px;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to left,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.7) 30%,
        rgba(255,255,255,0.25) 60%,
        rgba(255,255,255,0) 100%
    );
    filter: blur(5px);
}

.aside-top .second-row .row-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    padding-bottom: 15px;
	font-size:14px;
}

.aside-top .second-row .row-item.active {
    color: #0047AB;
    border-bottom: 2px solid #0047AB;
}

.aside-top .second-row .swiper-slide {
    width: 120px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aside-top .first-row .line {
    width: 1px; 
    height: 20px;
    background-color: #D8D8D8;
}

.aside-top .first-row .row-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.aside-top .second-row {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0047AB transparent;
}

.aside-top .second-row::-webkit-scrollbar {
    width: 4px;
}

.aside-top .second-row::-webkit-scrollbar-track {
    background: transparent;
}

.aside-top .second-row::-webkit-scrollbar-thumb {
    background: #1e90ff;
    border-radius: 50px;
}

.remont-btn {
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
    background-color: #0047AB;
    border-radius: 30px;
    font-size: 16px;
    color: white;
    transition: opacity 0.3s ease;
    padding: 13px 0;
    border: none;
    outline: none;
	font-family: 'Montserrat';
}

.remont-btn:hover {
    opacity: 0.9;
}

.dropdown.aside .dr-trigger {
    border-color: black;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 20px;
    width: 375px;
}

.row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.search-btn {
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    cursor: pointer;
}

.floor-wrapper {
    width: 120px;
    height: 120px;
    position: relative;
}

.floor-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.floor-wrapper .info-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
}

.portal.info-badge-content {
    position: absolute;
    background-color: white;
    border-radius: 12px;
    padding: 13px;
    display: none;
    z-index: 99;
}

.portal.info-badge-content p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.portal.info-badge-content div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.portal.info-badge-content div:last-child {
    margin-bottom: 0;
}

.portal.info-badge-content div span:last-child {
    font-weight: 500;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

footer .container button {
    padding: 13px 38px;
    background-color: #0047AB;
    border-radius: 30px;
    cursor: pointer;
    outline: none;
    border: none;
    transition: opacity 0.3s ease;
    color: white;
}

footer .container button:hover {
    opacity: 0.9;
}

footer .text span {
    color: #0047AB;
    font-weight: 600;
}

footer .text {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer .text a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: black;
}
/* ===========================
   ГРИД 1600px ДЛЯ ПЕРВОГО ЭКРАНА
   =========================== */

.frame-main {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.frame-inner {
    max-width: 1600px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

/* слева — аккордеоны (3 штуки по 416 + промежутки) */
.frame-wrapper {
    max-width: 1288px;
    width: 100%;
}

/* справа — превью выбора */
.selection-preview {
    max-width: 272px;
    width: 100%;
    background-color: #F7F7F7;
    border-radius: 24px;
    padding: 18px 20px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.selection-preview__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #0047AB0D;
    color: #0047AB;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.selection-preview__title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.selection-preview__empty {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.selection-preview__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.selection-preview__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.selection-preview__label {
    color: #777777;
    white-space: nowrap;
}

.selection-preview__value {
    font-weight: 500;
    color: #111111;
    text-align: right;
}

/* когда ничего не выбрано — делаем значения более бледными */
.selection-preview__value.is-empty {
    color: #B0B0B0;
    font-weight: 400;
}

.selection-preview__hint {
    margin-top: 6px;
    font-size: 11px;
    color: #999999;
    line-height: 1.4;
}

/* Чуть сжатая кнопка под контейнером */
.frame-main .submit {
    margin-top: 28px;
}
.frame-main .accordion-wrapper {
    max-width: 416px;
    width: 100%;
    position: relative;
}

/* подпись над каждым аккордеоном */
.frame-main .accordion-wrapper::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    padding-left: 4px;
}

/* ---- ШИРИНА И ОБЩИЙ ВИД МОДАЛКИ ---- */

.sketch-modal-content {
    max-width: 1040px;          /* вместо узкой колонки */
    width: calc(100% - 80px);   /* отступы по краям экрана */
    padding: 28px 32px 28px 28px;
    border-radius: 24px;
}

.sketch-modal-content .scroll-div {
    max-width: none;            /* убираем 490px ограничение */
    max-height: 70vh;
}

/* ---- СЕТКА ВНУТРИ МОДАЛКИ ---- */

#sketchModal .modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px 40px;
    align-items: flex-start;
}

#sketchModal h2 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

/* колонки */
#sketchModal .modal-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* чуть компактнее верхний блок с площадью */
#sketchModal .top-level {
    gap: 16px;
    margin-bottom: 24px;
}

#sketchModal .area-input {
    max-width: none;
}

/* ---- АККОРДИОНЫ ЧУТЬ ПЛОТНЕЕ ---- */

.universal-accordion .un-accordion-trigger {
    padding: 15px;
}

.area-row {
    gap: 24px;
}

/* ---- ПРАВАЯ КОЛОНКА: КАРТОЧКИ С РАДИО ---- */

#sketchModal .radio-group {
    background: #F7F7F7;
    border-radius: 18px;
    padding: 16px 18px 18px;
    margin-top: 0;
    gap: 8px;
}

#sketchModal .radio-group + .radio-group {
    margin-top: 16px;
}

#sketchModal h3 {
    margin-bottom: 8px;
}

#sketchModal .radio-group label {
    align-items: flex-start;
    line-height: 1.4;
}

/* Кнопка "Добавить" в правой колонке */
#sketchModal .add-btn {
    margin-top: 20px;
}

/* =========================
   ШАГИ СЛЕВА (СЛАЙД)
   ========================= */
.left-steps{
  max-width: 1288px;
  width: 100%;
  overflow: hidden;
  padding-bottom:20px;
}

.left-steps-track{
  display: flex;
  width: 200%;
  transition: transform .45s ease;
  will-change: transform;
}

.left-step{
  flex: 0 0 50%;
  width: 50%;
}

.left-steps.is-step2 .left-steps-track{
  transform: translateX(-50%);
}


/* =========================
   ШАГ 2: ВЫБОР ПАКЕТА
   ========================= */
.packages-step{
  width: 100%;
  background: transparent;
}

.packages-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.packages-back{
  height: 46px;
  border-radius: 30px;
  border: 1px solid #D8D8D8;
  background: white;
  cursor: pointer;
  padding: 0 16px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat';
  font-size: 14px;
  font-weight: 600;
  color: #0047AB;
  transition: opacity .2s ease;
}
.packages-back:hover{ opacity: .9; }

.packages-title{
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
}
.packages-kicker{
  font-size: 12px;
  color: #666;
  font-weight: 500;
}
.packages-title h2{
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.packages-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}


.package-card{
  background: #fff;
  border: 1px solid #D8D8D8;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.package-card:hover{
  opacity: .95;
  transform: translateY(-2px);
}
.package-card.active{
  border-color: #0047AB;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.package-img{
  width: 100%;
  height: 170px;
  background: #F7F7F7;
}
.package-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.package-body{
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1400px){
  .packages-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .packages-grid{ grid-template-columns: 1fr; }
}

.package-card{
  position: relative;
  min-height: 300px;
}

.package-img{ height: 250px; }

/* на карточке показываем только первые 3 пункта */
.package-card .package-list li:nth-child(n+4){
  display:none;
}


.package-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.package-name{
  font-size: 18px;
  font-weight: 700;
  color: #000;
}
.package-price{
  font-size: 14px;
  font-weight: 700;
  color: #0047AB;
  white-space: nowrap;
}

.package-list{
  margin: 0;
  padding-left: 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}
.package-list li{ margin: 6px 0; }

.package-bonus{
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: #0047AB0D;
  border-radius: 16px;
  padding: 10px 12px;
}

.packages-footer{
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.go-editor{
  height: 46px;
  border-radius: 30px;
  border: none;
  background: #0047AB;
  color: #fff;
  font-family: 'Montserrat';
  font-size: 16px;
  cursor: pointer;
  padding: 0 24px;
  max-width: 520px;
  width: 100%;
  transition: opacity .2s ease;
}
.go-editor:hover{ opacity: .9; }
.go-editor:disabled{
  opacity: .4;
  cursor: not-allowed;
}

/* адаптив */
@media (max-width: 980px){
  .packages-grid{ grid-template-columns: 1fr; }
  .packages-title{ align-items: flex-start; text-align: left; }
}


/* ---- МЕДИА: НА УЗКИХ ЭКРАНАХ ВОЗВРАЩАЕМСЯ К ОДНОЙ КОЛОНКЕ ---- */
@media (max-width: 880px) {
    .sketch-modal-content {
        width: calc(100% - 32px);
        padding: 20px 18px;
    }

    #sketchModal .modal-grid {
        grid-template-columns: 1fr;
    }

    #sketchModal h2 {
        margin-bottom: 16px;
    }
}

.layouts-head{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-bottom:16px;
}
.layouts-title{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-end;
  text-align:right;
}
.layouts-kicker{
  font-size:12px;
  color:#666;
  font-weight:500;
}
.layouts-title h2{
  font-size:20px;
  font-weight:600;
  color:#000;
}

.selection-preview__actions{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* показываем нужную кнопку в зависимости от шага */
#goEditorBtn{ display:none; }
body.is-step2 #goPackagesBtn{ display:none; }
body.is-step2 #goEditorBtn{ display:block; }

/* чтобы стиль .submit работал и в aside */
.selection-preview .submit,
.selection-preview .go-editor{
  max-width: none;
  width: 100%;
}

.package-selected{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  display:none;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:20px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #D8D8D8;
  font-size:12px;
  font-weight:600;
  color:#0047AB;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.package-selected__check{
  width:18px;
  height:18px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#0047AB;
  color:#fff;
  font-size:12px;
  line-height:1;
}

.package-card.active .package-selected{ display:flex; }

.package-more{
  border:none;
  background:transparent;
  padding:0;
  font-family:'Montserrat';
  font-size:13px;
  font-weight:600;
  color:#0047AB;
  cursor:pointer;
  text-align:left;
}
.package-more:hover{ opacity:.85; }

.package-modal-content{
  max-width: 920px;
  width: calc(100% - 40px);
  border-radius: 24px;
  padding: 24px;
}

#packageModalBody .package-card{
  cursor: default;
  transform: none !important;
  min-height: auto;
}

#packageModalBody .package-card:hover{
  transform: none !important;
}

/* в модалке показываем полный список */
#packageModalBody .package-card .package-list li{
  display:list-item !important;
}

.layouts-head--editor{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
}

.layouts-actions{
  display:flex;
  gap:12px;
  align-items:center;
}

.layouts-kicker__link{
  text-decoration:none;
  color:inherit;
  display:inline-flex;
  gap:10px;
  align-items:center;
}

/* Хедер редактора — выравнивание влево */
.layouts-head--left{
  justify-content: space-between;
  align-items: center;
  width:100%;
}

.layouts-title--left{
  align-items: flex-start;
  text-align: left;
}

/* Мини-кнопка “copy” в стиле сайта */
.icon-btn{
  width: 46px;
  height: 46px;
  border-radius: 30px;
  border: 1px solid #0047AB;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}

.icon-btn:hover{
  opacity: .9;
  background: #0047AB;
  border-color: #0047AB;
}

.icon-btn:hover svg path{
  stroke: #fff;
}

/* чтобы ссылка “назад” выглядела аккуратно */
.layouts-kicker__link{
  color: #0047AB;
  font-weight: 600;
}
.layouts-kicker__link:hover{ opacity: .85; }

/* rem.php: левую колонку делаем шире (37%) */
body[data-page="editor"] .frame-main .container{
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

body[data-page="editor"] .frame-main .container > aside{
  flex: 0 0 37%;
  max-width: 37%;
}

body[data-page="editor"] .frame-main .container > .preview-wrapper{
  flex: 1 1 auto;
  min-width: 0;
}

/* убираем узость из-за max-width:456px */
body[data-page="editor"] .aside-top{
  max-width: none;
  width: 100%;
}

/* чуть воздуха между карточкой и слайдером комнат */
body[data-page="editor"] .selection-preview--editor{
  margin-bottom: 14px;
}

body[data-page="editor"] .selection-preview{
max-width:unset;
}

/* ===== Materials grid in accordions ===== */
.materials-accordions { margin-top: 14px; }

.mat-loading,
.mat-empty {
  padding: 10px 12px;
  font-size: 14px;
  color: #666;
}

.mat-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/* адаптив */
@media (max-width: 1200px){
  .materials-accordions .mat-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .materials-accordions .mat-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .materials-accordions .mat-grid{ grid-template-columns: 1fr; }
}

.floor-wrapper.mat-card{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f5f9;
}

.floor-wrapper.mat-card img.mat-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floor-wrapper.mat-card .info-badge{
  position: absolute;
  right: 10px;
  bottom: 10px;
  cursor: pointer;
}

.swiper-wrapper{
	gap:10px;
}

/* ===== Material popup ===== */
#materialPopup{
  position: absolute;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  z-index: 9999;
}

#materialPopup .mat-popup__title{
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px 0;
  color: #111;
}

#materialPopup .mat-popup__desc{
  font-size: 13px;
  margin: 0 0 10px 0;
  color: #444;
}

#materialPopup .mat-popup__colors-title{
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

#materialPopup .mat-popup__colors-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#materialPopup .mat-color{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #111;
}

#materialPopup .mat-color__dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  flex: 0 0 auto;
}



/* адаптив: на планшете/мобиле снова в колонку */
@media (max-width: 1024px){
  body[data-page="editor"] .frame-main .container{
    flex-direction: column;
  }
  body[data-page="editor"] .frame-main .container > aside,
  body[data-page="editor"] .frame-main .container > .preview-wrapper{
    max-width: 100%;
    flex: 1 1 auto;
  }
}

/* карточка материала должна быть относительной */
.mat-card{ position: relative; }

/* контейнер двух значков в правом нижнем углу */
.mat-badges{
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* сам значок = строго 32x32, не на всю ширину */
.mat-badge{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 32px;
}
.mat-badge svg{ width: 32px; height: 32px; display:block; }

/* попап цветов: 1 строка = dot слева, имя справа */
#materialPopup .mat-popup__colors-rows{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

#materialPopup .mat-color-row{
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 10px;
	width: 100%;
}

#materialPopup .mat-color__dot{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
  flex: 0 0 16px;
}

#materialPopup .mat-color__name{
  font-size: 13px;
  line-height: 1.2;
}

.mat-thumb--empty{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(0,0,0,0.06);
}

/* свайп-зона */
.second-row{
  position: relative;
  overflow: hidden;
  touch-action: pan-x;
  padding: 0 34px; /* место под стрелки и под градиенты */
}

/* важно: не даём ломать swiper */
.second-row .swiper-wrapper{
  flex-wrap: nowrap !important;
  align-items: stretch;
}
.second-row .swiper-slide{
  width: auto !important;
  flex-shrink: 0 !important;
}

/* чтобы всегда было переполнение и было что “листать” (подстрой число) */
.second-row .row-item{
  min-width: 170px;
}

/* стрелки: Swiper иногда прячет через swiper-button-lock */
.second-row .swiper-button-lock{
  display: flex !important;
}

/* наши disabled-состояния */
.prev-btn-a, .next-btn-a{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  cursor: pointer;
}

.aside-top .prev-btn-a, .aside-top .next-btn-a{
	 border-radius: 0px !important;
}

.prev-btn-a{ left: 6px; }
.next-btn-a{ right: 6px; }

.prev-btn-a.is-disabled,
.next-btn-a.is-disabled{
  opacity: .35;
  pointer-events: none;
}

/* белые “размытые” края (градиенты) */
.second-row::before,
.second-row::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 34px;
  z-index: 4;
  pointer-events: none;
}
.second-row::before{
  left:0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}
.second-row::after{
  right:0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* если мы в начале/в конце — убираем соответствующий градиент */
.second-row.at-beginning::before{ opacity: 0; }
.second-row.at-end::after{ opacity: 0; }


.preview-wrapper { position: relative; }

.preview-wrapper #imagePreview{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

.materials-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.materials-overlay .material-layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
}

.materials-overlay-notice{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:9999;
  background: rgba(0,0,0,0.65);
  color:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  max-width: 320px;
}

.mat-card.is-selected{
  outline: 2px solid #0047AB;
  outline-offset: 2px;
  border-radius: 18px;
}

/* =========================
   PRELOADER
========================= */
.page-preloader{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
}
.page-preloader__inner{
  width: min(440px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.page-preloader__logo{
  width: 140px;
  height: auto;
}
.page-preloader__bar{
  width: 100%;
  height: 10px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}
.page-preloader__bar-fill{
  width: 0%;
  height: 100%;
  background: #0047ab;
  transition: width .15s ease;
}

/* =========================
   PREVIEW + MATERIAL LAYERS
========================= */
.preview-wrapper{ position: relative; }

#imagePreview{
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transition: opacity .15s ease;
}

/* слой материалов должен быть ПОД UI и НЕ ловить клики */
.materials-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.materials-overlay .material-layer{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* уведомление о том, что дизайнер рисует */
.materials-overlay-notice{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  pointer-events: none;
}

/* UI поверх слоёв */
.dropdown.blur.prime,
.dropdown.blur.room,
.rakurs,
.with-mebel{
  position: relative;
  z-index: 90;
}

/* ===== FIX: UI поверх превью, не в потоке ===== */
.preview-wrapper{ position: relative; }

/* prime dropdown (слева сверху) */
.preview-wrapper .dropdown.blur.prime{
  position: absolute !important;
  left: 10px;
  top: 10px;
  z-index: 90;
}

/* room dropdown (справа сверху) */
.preview-wrapper .dropdown.blur.room{
  position: absolute !important;
  right: 10px;
  top: 10px;
  z-index: 90;
}

/* ракурс (справа снизу) */
.preview-wrapper .rakurs{
  position: absolute !important;
  right: 10px;
  bottom: 10px;
  z-index: 90;
}

/* мебелировка (слева снизу) */
.preview-wrapper .with-mebel{
  position: absolute !important;
  left: 10px;
  bottom: 10px;
  z-index: 90;
}

/* dropdown меню должно быть выше оверлеев */
.preview-wrapper .dropdown .dr-content{
  z-index: 95;
}
