/* =====================================================
   NDO — Calculator (стили из Фигмы + функциональные)
   ===================================================== */

.calculator-block,
.calculator-block * {
    box-sizing: border-box;
}
.calculator-block {
    padding-top: 100px;
	 padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    align-self: stretch;
    max-width: var(--ndw-content-w);
    margin: 0 auto;
    padding-left: var(--ndw-pad-x);
	padding-right: var(--ndw-pad-x);
}

.ndo-calc__title {
    color:  #252525;
    text-align: center;
    font-family: var(--h2-desktop-font-family, "GothamPro", sans-serif);
    font-size: var(--h2-desktop-font-size, 30px);
    line-height: var(--h2-desktop-line-height, 35px);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}
.calculator {
    padding: 20px 0 0;
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    align-self: stretch;
}
.left-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
width:38%;
 
}
.frame-462 {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}
.frame-462 .div2 {
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 17px;
    line-height: 23px;
    font-weight: 700;
    text-transform: uppercase;
}
.frame-461 {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    align-self: stretch;
}
/* Вертикальный слайдер — контейнер */
.frame-460 {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 63px;
    height: 384px;
    position: relative;
}
._1900 {
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 8px;
    flex-shrink: 0;
}
.slider-control {
    display: flex;
    align-items: center;
    flex: 1;
    align-self: stretch;
    position: relative;
    width: 100%;
}
/* Вертикальный трек */
.frame-460 .slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
    width: 30px;
}
/* Серая часть — сверху, растёт вниз */
.frame-460 .indicator-empty {
    background: #ccd1d7;
    width: 2px;
    flex: 1;
    order: 1;
}
/* Синяя часть — снизу, высота задаётся через JS */
.frame-460 .indicator-fill {
    background:  #1a78f2;
    width: 4px;
    flex-shrink: 0;
    order: 2;
    height: 50%; /* начальное значение, JS перезапишет */
}
.drop-slider {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 10px rgba(127,147,173,0.3);
    pointer-events: none;
}
.frame-477 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.big-win-1 {
    width: 174px;
    height: 364px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
/* Горизонтальный слайдер */
.frame-459 {
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    position: relative;
}
.frame-459 .slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    width: 100%;
    position: relative;
    height: 30px;
}
.indicator-fill2 {
    background: #1a78f2;
    height: 4px;
    flex-shrink: 0;
}
.frame-459 .indicator-empty {
    background: #ccd1d7;
    height: 2px;
    flex: 1;
}
.drop-slider2 {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 10px rgba(127,147,173,0.3);
    pointer-events: none;
}
._1400 {
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
}
.ellipse-8 {
    background: #0056b3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    position: relative;
}
.ellipse-9 {
    background: #fff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    position: absolute;
    left: 9px;
    top: 9px;
}
.frame-482 {
    padding-bottom: 16px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    align-self: stretch;
}
.frame-482 .div3 {
    color: #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    max-width: 100px;
}
.frame-481 {
    display: grid;
    flex-direction: row;
    gap: 24px;
    row-gap: 10px;
    width:auto;
    grid-template-columns: 1fr 1fr;
}
.frame-478,.frame-479,.frame-480,.frame-4813 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.div4 {
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 13px;
    line-height: 18px;
}
.frame-4812 {
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
    
    width: 186px;
}
.slot2 {
    background:  #0056b3;
    border-radius: 40px;
    display: flex;
    flex-direction: row;
    flex: 1;
    height: 15px;
    overflow: hidden;
}
.slot2 > div {
    border-right: 1px solid rgba(255,255,255,0.2);
    flex: 1;
    align-self: stretch;
}
.slot2 > div.ndo-calc--dim {
    background: #ccd1d7;
}
/* Блок цены */
.fin-price {
    background: #0056b3;
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: start;
    width: 38%;
    margin-top: -182px;
}
.frame-435 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}
.frame-464 {
    border-bottom: 1px solid #2d79cc;
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    align-self: stretch;
}
.div5 { color: #fff; font-family: "GothamPro", sans-serif; font-size: 24px; line-height: 20px; }
._19-990 { color: #fff; text-transform: uppercase; }
._19-990-span  { font-family: "GothamPro", sans-serif; font-size: 34px; font-weight: 700; }
._19-990-span3 { font-family: "Inter", sans-serif; font-size: 24px; font-weight: 700; }
.frame-466 {
    padding-top: 7px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-self: stretch;
}
.frame-465,.frame-4662,.frame-467 { display: flex; flex-direction: column; gap: 10px; }
.div6 { color: #fff; font-family: "GothamPro", sans-serif; font-size: 16px; line-height: 20px; }
._1-990,._5-000,._3-800 { color: #fff; text-transform: uppercase; }
._1-990-span,._5-000-span,._3-800-span { font-family: "GothamPro", sans-serif; font-size: 24px; font-weight: 700; }
._1-990-span3,._5-000-span3,._3-800-span3 { font-family: "Inter", sans-serif; font-size: 18px; font-weight: 700; }
.frame-463 { display: flex; flex-direction: row; gap: 16px; }
.fin-price .btn {
    background: var(--red, #eb171c);
    padding: 20px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.fin-price .btn:hover { opacity: 0.88; }
.fin-price .div7 { color: #fff; font-family: "GothamPro", sans-serif; font-size: 16px; }
.fin-price .btn2 {
    background: #fff;
    border: 1px solid  #0056b3;
    padding: 20px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.fin-price .btn2:hover { opacity: 0.88; }
.fin-price .div8 { color: #0056b3; font-family: "GothamPro", sans-serif; font-size: 16px; }
/* Правая сторона */
.right-side { display: flex; flex-direction: column; flex: 1; }
.step-1,.step-2,.step-3,.step-4,.step-5,.step-6 {
    border-bottom: 1px solid #cacaca;
    padding: 20px 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    align-self: stretch;
    min-height: 140px;
}
.number {
    background:  #0056b3;
    border-radius: 150px;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
._01,._02,._03,._04,._05,._06 {
    color: #fff;
    font-family: "GothamPro", sans-serif;
    font-size: 29px;
    font-weight: 700;
    text-transform: uppercase;
}
.step-1 .div9,.step-2 .div9,.step-4 .div9,.step-5 .div9,.step-6 .div9 {
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    width: 210px;
    flex-shrink: 0;
}
.step-3 .div11 {
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    flex: 1;
}
.frame-468 { display: flex; flex-direction: row; gap: 40px; align-items: flex-end; flex: 1; }
/* Иконки типов окон */
.ndo-calc__win-btn {
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 4px solid transparent;
    transition: border-color 0.15s ease;
    flex-shrink: 0;
}
.ndo-calc__win-btn:hover { border-color: #d5dde6; }
.ndo-calc__win-btn--active { border-color: #0056b3 !important; }
.win-1-1  { width: 41px;  height: 65px;  object-fit: cover; display: block; }
.win-2-1  { width: 73px;  height: 58px;  object-fit: cover; display: block; }
.win-3-1  { width: 112px; height: 60px;  object-fit: cover; display: block; }
.door-2-1 { width: 80px;  height: 100px; object-fit: cover; display: block; }
.door-1-1 { width: 42px;  height: 100px; object-fit: cover; display: block; }
/* Select */
.ndo-calc__select-wrap {
    background: #fff;
    border: 1px solid #919191;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 412px;
    position: relative;
    cursor: pointer;
}
.ndo-calc__select {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.ndo-calc__select-wrap .div10 {
    color: #919191;
    font-family: "GothamPro", sans-serif;
    font-size: 22px;
    font-weight: 400;
    pointer-events: none;
}
/* Чекбоксы */
.ndo-calc__check-label { cursor: pointer; user-select: none; }
.ndo-calc__checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.frame-474 { display: flex; flex-direction: row; gap: 40px; flex: 1; }
.frame-475,.frame-476 { display: flex; flex-direction: column; gap: 14px; }
.frame-448,.frame-449,.frame-450 { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.check-box2 { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.rectangle-281 {
    background: #fff;
    border-radius: 3px;
    border: 1px solid  #919191;
    position: absolute;
    inset: 0;
    transition: background 0.15s, border-color 0.15s;
}
.ndo-calc__checkbox:checked + .check-box2 .rectangle-281 {
    background: #0056b3;
    border-color:  #0056b3;
}
.ndo-calc__checkbox:checked + .check-box2 .rectangle-281::after {
    content: '';
    display: block;
    width: 11px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(2px, -1px);
    margin: 3px auto 0;
}
.div12 { color: #252525; font-family: "GothamPro", sans-serif; font-size: 18px; line-height: 18px; }
/* Range скрыт, управляется через JS */
.ndo-calc__range {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    margin: 0;
}
.ndo-calc__range--vertical {
    width: 364px;
    height: 30px;
    left: 50%;
    top: 50%;
    /* rotate(-90deg): min окажется снизу, max сверху — как нужно */
    transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    transform-origin: center center;
}
.ndo-calc__range--horizontal {
    width: 100%;
    height: 30px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Превью окна с створками ── */
.wincalc-main-window-container {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}
.wincalc-constuction img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 340px;
}
.wincalc-frames {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}
.wincalc-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    transition: opacity 0.2s ease;
    padding: 22px 12px;
}

.wincalc-frame-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    z-index: 2;
    position: relative;
    max-width: 142px;
}
.wincalc-frame-selector > div {
    background: rgba(255,255,255,0.85);
    color:  #252525;
    font-family: "GothamPro", sans-serif;
    font-size: 11px;
    line-height: 15px;
    padding: 6px 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: 1px solid transparent;
}
.wincalc-frame-selector > div:hover {
    background: rgba(255,255,255,1);
    border-color: #d5dde6;
}
.wincalc-frame-selector-selected {
    background: #0056b3 !important;
    color: #fff !important;
    border-color: #0056b3 !important;
}





@media (max-width: 1440px){
.left-side {
    width: 45%;
}
  
.step-1, .step-2, .step-3, .step-4, .step-5, .step-6 {
     flex-wrap: wrap;
}

.fin-price {
  
    width: 45%;
    margin-top: -400px;
}


}

@media (max-width: 1024px){

.calculator-block {
    padding-top: 64px;
    padding-bottom: 64px;

}

.fin-price { display:flex;  align-items: center;  margin-top: 0px; width: 100%;} 
.calculator{
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    align-self: stretch;
}

.left-side {
    width: 100%;
    max-width: 606px;
}

.number {
    width: 54px;
    height: 54px;
}
._01, ._02, ._03, ._04, ._05, ._06 {
    font-size: 21px;
}
.step-1, .step-2, .step-3, .step-4, .step-5, .step-6 {
    min-height: 111px;
}

.frame-435 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
    align-content: center;
    width: 100%;
    max-width: 435px;
}

}



@media (max-width: 480px){
.ndo-calc__title {
    font-size:  19px;

}
.calculator-block {
    padding-top: 32px;
    padding-bottom: 32px;

}
.frame-482 {
    flex-direction: column;
}

.frame-481 {
    width: 100%;
}

.frame-4812 {
    width: 100%;
}

.frame-482 .div3 {
    max-width: 100%;
}

.fin-price { display:flex;  align-items: center;  margin-top: 0px; width: 100%; padding: 24px 20px; gap: 20px;} 
.calculator{
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    align-self: stretch;
}
.frame-468 {
    justify-content: space-between;
    gap: 5px;
}

	.win-1-1 { max-width: 37px;}
	.win-2-1  { max-width: 61px;}
	.win-3-1  { max-width: 90px;}
	.door-2-1 { max-width: 66px;}
	.door-1-1 { max-width: 37px;}


.left-side {
    width: 100%;
    max-width: 606px;
}

.number {
    width: 44px;
    height: 44px;
}
._01, ._02, ._03, ._04, ._05, ._06 {
    font-size: 15px;
}

.step-1 .div9, .step-2 .div9, .step-3 .div9, .step-4 .div9, .step-5 .div9, .step-6 .div9 {
    font-size: 16px;
    line-height: 21px;
}

.step-3 .div11 {
    font-size: 16px;
    line-height: 21px;
}


.step-1, .step-2, .step-3, .step-4, .step-5, .step-6 {
   gap: 12px;
   padding: 20px;
}
.ndo-calc__select-wrap {
    padding: 14px 16px;
    width: 100%;
}

.ndo-calc__select-wrap .div10 {
    font-size: 16px;
}

.frame-435 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
    align-content: center;
    width: 100%;
    max-width: 435px;
}

.div5 {
    font-size: 17px;
    line-height: 20px;
}

._19-990-span {
    font-size: 24px;
}

._19-990-span3 {
    font-size: 20px;
}

.fin-price .btn,
.fin-price .btn2 {
    padding: 10px 12px;
}

.frame-466 {
    justify-content: space-around;
}

}


@media (max-width: 600px) {

   

  
    .left-side {
        width: 100%;
        align-self: stretch;
    }

    .frame-461 {
        justify-content: center;
    }

    /* Вертикальный слайдер — уменьшаем высоту */
    .frame-460 {
        height: 260px;
        width: 50px;
    }

    .ndo-calc__range--vertical {
        width: 260px;
    }

    /* Картинка окна */
    .big-win-1,
    .wincalc-constuction img,
    .ndo-calc__construction img {
        max-width: 250px;
        width: 100%;
        height: auto;
    }

    /* Горизонтальный слайдер */
    .frame-459 {
        padding: 0 16px 10px;
    }

    /* Шкалы профиля */
    .frame-482 {
        flex-direction: column;
        gap: 12px;
    }

    .frame-481 {
        width: 100%;
    }

    .frame-4812 {
        width: 100%;
    }
.wincalc-frame {
 
    padding: 22px 0px;
}
   .frame-461 {

    gap: 0px;

}
}
