/* ===== БАЗОВЫЕ ===== */
.calc{
    display: flex;
    gap: 120rem;
}
.notshwd table.calc__info-table {
  display: none;
}
.calc__radio-char{
    position: relative;
    margin-right: 40rem;
    cursor: pointer;
}
.calc__radio-char input[type="radio"]{
    display: none;
}
.calc__radio-char span{
    padding-left: 32rem;
}
.calc__radio-char span::before{
    content: '';
    position: absolute;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3e%3ccircle cx='12' cy='12' r='11.5' stroke='%23cccccc'/%3e%3c/svg%3e");
    width: 24rem;
    height: 24rem;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.calc__radio-char input:checked + span::after{
    content: '';
    position: absolute;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3e%3ccircle cx='12' cy='12' r='11.5' stroke='%23cccccc'/%3e%3ccircle cx='12' cy='12' r='8' fill='%23000000'/%3e%3c/svg%3e");
    width: 24rem;
    height: 24rem;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 4;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.calc__char-details{
    margin-top: 24rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12rem 24rem;
}
.calc__char-help{
    width: 100%;
    margin-bottom: 12rem;
    color: #666;
    font-size: 14rem;
    color: #FF0000;
}
.calc__char-help a{
    width: 100%;
    /*margin-bottom: 12rem;*/
    color: #666;
    font-size: 14rem;
    color: #FF0000;
}
.calc__char-details>div{
    display: flex;
    flex-wrap: wrap;
    gap: 12rem 24rem;
}
.calc__left{
    width: 740rem;
}
.calc__right{
    flex: 1;
    position: relative;
}
.calc__right-box{
    position: sticky;
    top: 60rem;
}

.calc__select,
.calc__text,
.calc__dim,
.calc__select-standard{
    padding: 5rem 16rem;
    border-radius: 50rem;
    font-size: 16rem;
    font-family: var(--font-family);
}
.calc__visual {
    position: relative;
    width: 100%;
    height: 740rem;
    margin-bottom: 24rem;
    border-bottom: 2rem solid #EAEAEA;
    border-left: 2rem solid #EAEAEA;
}

.calc__visual-arrow-up::before{
    content: '';
    width: 8rem;
    height: 2rem;
    background-color: #EAEAEA;
    position: absolute;
    z-index: 2;
    left: -2rem;
    top: 1rem;
    transform: rotate(45deg);
}
.calc__visual-arrow-up::after {
    content: '';
    width: 8rem;
    height: 2rem;
    background-color: #EAEAEA;
    position: absolute;
    z-index: 2;
    left: -8rem;
    top: 1rem;
    transform: rotate(-45deg);
}
.calc__visual-arrow-right::before{
    content: '';
    width: 8rem;
    height: 2rem;
    background-color: #EAEAEA;
    position: absolute;
    z-index: 2;
    right: -2rem;
    bottom: 1rem;
    transform: rotate(45deg);
}
.calc__visual-arrow-right::after {
    content: '';
    width: 8rem;
    height: 2rem;
    background-color: #EAEAEA;
    position: absolute;
    z-index: 2;
    right: -2rem;
    bottom: -4rem;
    transform: rotate(-45deg);
}
.calc__visual-base {
    width: 550rem;
    height: 550rem;
    object-fit: contain;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.calc__visual-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 550rem;
    height: 550rem;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.calc__visual-canvas img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.calc__summary {
    margin-top: 8rem;
}

.calc__project{
    display: flex;
    align-items: center;
    gap: 24rem;
    margin: 40rem 0;
}
.calc__project-label{
    font-size: 24rem;
    font-weight: 400;
}
.calc__project-input{
    width: 300rem;
}

.calc__total,
.calc__grand-total {
    font-weight: 700;
    font-size: 20rem;
}

/* ===== ГРУППЫ ХАРАКТЕРИСТИК ===== */
.calc__group {
    border: 1rem solid #FBEC41;
    border-radius: 30rem;
    padding: 24rem;
    margin-bottom: 24rem;
}

.calc__group-title {
    font-size: 24rem;
    font-weight: 400;
    margin-bottom: 24rem;
}

.calc__radio,
.calc__field {
    display: block;
    margin-bottom: 8rem;
}

.calc__field-label {
    display: block;
    margin-bottom: 4rem;
}

.calc__char {
    margin-bottom: 12rem;
}

.calc__char-title {
    font-weight: 600;
    margin-bottom: 6rem;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 14rem 24rem;
    border-radius: 9999rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
    font-size: 16rem;
    font-family: var(--font-family);
    text-align: center;
}

.btn--primary   { background:#FBEC41; }
.btn--secondary { background:#A6A6A6; color:#FBEC41; }
.btn--success   { background:#FBEC41; color:#000; width: 100%;}

.calc__window {
    background:#f5f5f5;
    border-radius:12rem;
    padding:12rem 16rem;
    margin:8rem 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.calc__window-info { font-size:14rem; line-height:1.4; }

/* mini-кнопки на карточке */
.calc__window-edit,
.calc__window-remove {
    background:none;
    border:none;
    margin-left:8rem;
    cursor:pointer;
    font-size:13rem;
    text-decoration:underline;
}
.calc__footer{
    margin-top: 40rem;
}
.calc__footer button{
    width: 100%;
}



.calc__window {
    background:#e9e9e9;
    border-radius:20rem;
    padding:16rem 20rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:10rem 0;
    gap: 16rem;
}

.calc__window-left { flex:1; }
.calc__window-title { font-weight:700; margin-bottom:4rem; }
.calc__window-sub   { font-size:14rem; }

.calc__window-qty {
    display:flex;
    align-items:center;
    gap:6rem;
}

.qty-btn {
    width:22px; height:22rem;
    border-radius:50%;
    border:none;
    background:#8c8c8c;
    color:#fff; cursor:pointer;
    line-height:20rem;
}
.qty-num { min-width:20rem; text-align:center; display:inline-block; }

.calc__window-actions button {
    background:none; border:none; margin-left:8rem; cursor:pointer;
    font-size:18rem;
}
.calc__info{
    padding: 24rem;
    border-radius: 30rem;
    border: 1rem solid #EAEAEA;
}
.calc__summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:24rem 0 8rem;
    border-bottom: 1rem solid #EAEAEA;
}
.calc__grand{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24rem 0;
}
.calc__alert{
    color: #4D4D4D;
    font-weight: 500;
    display: inline-block;
    padding-bottom: 24rem;
}
.calc__info-table{
    width: 100%;
}
.calc__info-table td:nth-child(1){
    color: #A6A6A6;
}
.calc__info-table td:nth-child(2){
    text-align: right;
}
.calc__visual-arrow-up--max{
    position: absolute;
    z-index: 10;
   /* top: 40rem;*/
   top: 50%;
    left: -25rem;
    /*transform: rotate(90deg) translate(20rem, 18rem);*/
	transform: rotate(90deg) translate(20rem, 70rem);
    font-size: 26rem;
}
.calc__visual-arrow-right--max{
    position: absolute;
    z-index: 10;
    bottom: 14rem;
   /* right: 0;*/
	right:30%;
    font-size: 26rem;
}
.calc__window-qty svg{
    width: 24rem;
    height: 24rem;
}
.js-add-window,
.js-add-to-cart{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
}
.js-add-window svg,
.js-add-to-cart svg{
    width: 24rem;
    height: 24rem;
}

.calc__popup{
    position: fixed;
    top: 120rem;
    right: 20rem;
    display: flex;
    align-items: center;
    gap: 12rem;
    background: #fff;
    padding: 12rem 16rem;
    border: 1rem solid #ccc;
    box-shadow: 0 2rem 6rem rgba(0,0,0,.2);
    transform: translateX(120%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 2000;
}
.calc__popup--show{
    transform: translateX(0);
    opacity: 1;
}
.calc__popup img{
    width: 40rem;
    height: 40rem;
    object-fit: cover;
}
.calc__popup-close{
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20rem;
    cursor: pointer;
}
@media(max-width: 600px){
    html{
        font-size: 0.16666666vw;
    }
    .calc{
        flex-direction: column-reverse;
        gap: 40rem;
    }
    .calc{
        padding: 30rem 0;
    }
    .calc__left{
        width: 100%;
    }
    .calc__visual{
        width: 100%;
        height: 568rem;
    }
    .calc__visual-base{
        width: 480rem;
        height: 480rem;
    }

    .calc__info[style*="opacity: 1"] {
  order: 4 !important;
}

.calc__left {
  flex-direction: column;
  display: flex;
}

.calc__footer {
  order: 5;
}

.calc__info {
  order: 6;
}
  .calc__info {
    order: 4;
  }
}

@media screen and (min-width: 1200px){
    .clickable_input {
  gap: 30px;
}
.inputable {
  position: relative;
  padding-left: 32rem;
}
span.calc__alert {
  padding-top: 10px;
}
}