/* ===== ЗАГОЛОВОК МАТРИЦЫ ===== */
.calc-matrix-title {
    color: #575757;
    font-size: 36px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.calc-matrix-info {
    color: rgba(87, 87, 87, 0.50);
    font-size: 18px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

/* ===== КНОПКА PDF ===== */
.calc-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 10px 32px;
    background: linear-gradient(45deg, #9378FB 0%, #C0DDFA 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-pdf-btn:hover {
    background: linear-gradient(45deg, #C0DDFA 0%, #9378FB 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(147, 120, 251, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

/* ===== ЗАГОЛОВКИ РАЗДЕЛОВ ===== */
.calc-section-title {
    color: #575757;
    font-size: 36px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ===== АККОРДЕОН ===== */
.calc-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-accordion-item {
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    background: white;
    box-shadow: 0px 0px 17px rgba(96.12, 96.12, 96.12, 0.08);
    outline: 1px #896DF7 solid;
    outline-offset: -1px;
}

.calc-accordion-item:nth-child(even) {
    background: white;
}

/* ===== КНОПКА АККОРДЕОНА ===== */
.calc-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 19px 12px 32px;
    cursor: pointer;
    min-height: 78px;
    gap: 12px;
    user-select: none;
    background: none;
    border: none !important;
    font-family: inherit;
    text-align: left;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: padding 0.3s ease;
    box-shadow: none !important;
    text-decoration: none !important;
}

.calc-accordion-header:focus,
.calc-accordion-header:focus-visible,
.calc-accordion-header:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.calc-accordion-header::-moz-focus-inner {
    border: 0;
}

.calc-accordion-item-active .calc-accordion-header {
   ./* padding-bottom: 12px;
    min-height: 54px;*/
}

.calc-accordion-title {
    color: #575757;
    font-size: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    flex: 1;
    text-align: left;
}

/* ===== ИКОНКА АККОРДЕОНА ===== */
.calc-accordion-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(45deg, #9378FB 0%, #C0DDFA 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    position: relative;
}

.calc-accordion-icon svg {
    position: absolute;
    transition: all 0.3s ease;
}

/* Управление видимостью иконок */
.calc-icon-plus { display: block; width: 13px; height: 13px; }
.calc-icon-close { display: none; width: 19px; height: 19px; }
.calc-icon-lock { display: none; width: 14px; height: 19px; }

/* Открытый элемент (крестик) */
.calc-accordion-item-active .calc-accordion-icon {
    background: linear-gradient(45deg, #9378FB 0%, #C0DDFA 100%);
}
.calc-accordion-item-active .calc-icon-plus { display: none; }
.calc-accordion-item-active .calc-icon-close { display: block; }
.calc-accordion-item-active .calc-icon-lock { display: none; }

/* Закрытый неоплаченный элемент (замок) */
.calc-accordion-item-locked .calc-accordion-icon {
    background: #9378FB;
}
.calc-accordion-item-locked .calc-icon-plus { display: none; }
.calc-accordion-item-locked .calc-icon-close { display: none; }
.calc-accordion-item-locked .calc-icon-lock { display: block; }

/* Наведение на неоплаченный элемент */
.calc-accordion-item-locked:hover .calc-accordion-icon {
    background: #C0DDFA;
}

/* Запрет раскрытия заблокированных элементов */
.calc-accordion-item-locked .calc-accordion-body {
    max-height: 0 !important;
}

/* ===== ТЕЛО ОТВЕТА ===== */
.calc-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.calc-accordion-body-inner {
    padding: 8px 32px 32px 32px;
    color:rgb(38, 37, 37);
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* Скрываем старую ссылку внутри аккордеона, так как теперь иконка замка выполняет эту роль */
.calc-accordion-item-locked .calc-accordion-body-inner .scrollto {
    display: none;
}

/* ===== СТАРЫЕ СТИЛИ (ОСТАВЛЯЕМ ДЛЯ СОВМЕСТИМОСТИ) ===== */
.matrica-card-title { 
    cursor: pointer;
    border-bottom: 1px solid #fff;
    color: #0e6caa;
    font-size: 16px;
    font-weight: 600;
}

.matrica-header-top {
    padding: 9px 20px !important;
    border-radius: 37px !important;
    border: 3px solid #517dd1;
    background-color: #4c93a3 !important;
    color: #ffffff;
    margin-bottom: 10px;
}

.matrica-card-header {
    padding: 10px 33px 10px 65px;
    margin-bottom: 0; 
    position: relative;
    cursor: pointer;
}

.matrica-accordion-icon { display: none; }
.matrica-accordion-img { display: none; }

.matrica-accordion-zamok {
    position: absolute;
    right: -6px;
    top: 3%;
    width: 44px;
}

/* ===== ОСТАЛЬНЫЕ СТИЛИ ===== */
.rasshifrovatt {
    text-align: center;
    padding: 10px 30px;
    border: 2px solid #426EC1;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline !important;
    color: #fff !important;
    background: linear-gradient(137deg, rgb(62,108,179) 0%, rgb(133,90,164) 79%);
    font-size: 15px;
}

.rasshifrovatt:hover {
    background: linear-gradient(337deg, rgb(62,108,179) 0%, rgb(133,90,164) 79%);
}

.css-1ovke93 {
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    letter-spacing: -0.2px;
    color: rgb(10, 25, 53);
    margin-top: 8px;
}

.css-1wl0oc4 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    background: rgb(250, 248, 246);
    border: 1.6px solid rgb(10, 25, 53);
    box-sizing: border-box;
    border-radius: 50%;
    font-family: Arial;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    letter-spacing: -0.2px;
    color: rgb(10, 25, 53);
}

.btn-pdf {
    display: inline-block;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #b7b7b7;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(137deg, rgb(62,108,179) 0%, rgb(133,90,164) 79%);
}

.nagod {
    text-align: center;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}

.show_prognoz_god_active {
    background: #fff !important;
    color: #4c93a3 !important;
}


/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 767px) {
    .calc-matrix-title {
        font-size: 22px;
    }
    
    .calc-matrix-info {
        font-size: 14px;
    }
    
    .calc-pdf-btn {
        height: 48px;
        font-size: 12px;
        padding: 10px 24px;
    }
    
    .calc-section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .calc-accordion-header {
        padding: 12px 16px 12px 20px;
        min-height: 60px;
    }
    
    .calc-accordion-title {
        font-size: 22px;
    }
    
    .calc-accordion-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .calc-accordion-icon .calc-icon-plus { width: 11px; height: 11px; }
    .calc-accordion-icon .calc-icon-close { width: 16px; height: 16px; }
    .calc-accordion-icon .calc-icon-lock { width: 12px; height: 16px; }
    
    .calc-accordion-body-inner {
        padding: 8px 20px 24px 20px;
        font-size: 18px;
    }
}

.prog_noz {padding-bottom:14px;}