/* ===== ОБЩИЙ ФОН ===== */
#mform {
    background: #EFEFEE !important;
}

.cos-h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 400 !important;
    color: #3E1A3E;
    font-size: 36px !important;
    margin-bottom: 12px;
}

.cos-subtitle {
    color: rgba(49, 49, 49, 0.50);
    font-size: 18px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    margin-top: 12px;
    margin-bottom: 0;
}

/* =============================================
   3 КОЛОНКИ FIGMA ДЛЯ ЛЕВОЙ ЧАСТИ
   ============================================= */

.calc-types-row {
    display: flex !important;
    gap: 20px;
}

.calc-type-col {
    flex: 0 0 calc(100% / 3 - 14px);
    min-width: 0;
}

/* ===== КАРТОЧКА ВЫБОРА ===== */
.var-matrica{
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    width: 100% !important;
    height: 582px !important;
    
    padding: 40px 0px !important;
    
    border-radius: 12px !important;
    border: none !important;
    
    position: relative;
    cursor:pointer;
    overflow: hidden;
    
    background: #E4E3E0;
    
    transition: all 0.3s ease;
}

/* При наведении — градиентный фон как у активного */
.var-matrica:hover{
    background: linear-gradient(180deg, #3E1A3E 0%, #C200C2 100%) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Текст при наведении — белый */
.var-matrica:hover .var-matrica-text {
    color: #EFEFEE !important;
}

/* АКТИВНАЯ = градиент */
.var-matrica-active{
    background: linear-gradient(180deg, #3E1A3E 0%, #C200C2 100%) !important;
}

.var-matrica-active:hover {
    background: linear-gradient(180deg, #351535 0%, #a000a0 100%) !important;
}

/* ===== КАРТОЧКА ВЫБОРА — КАРТИНКИ ===== */

/* По умолчанию показываем обычную картинку, скрываем hover */
.var-matrica-img-default {
    display: block;
    order: 2;
}

.var-matrica-img-hover {
    display: none;
    order: 2;
}

/* При наведении — показываем hover-картинку, скрываем обычную */
.var-matrica:hover .var-matrica-img-default {
    display: none;
}

.var-matrica:hover .var-matrica-img-hover {
    display: block;
}

/* Активная карточка — показываем hover-картинку, скрываем обычную */
.var-matrica-active .var-matrica-img-default {
    display: none;
}

.var-matrica-active .var-matrica-img-hover {
    display: block;
}

/* Активная карточка при наведении — оставляем hover-картинку */
.var-matrica-active:hover .var-matrica-img-default {
    display: none;
}

.var-matrica-active:hover .var-matrica-img-hover {
    display: block;
}

/* Общие стили для картинок */
.var-matrica-img {
    width: auto;
    /*max-width: 120px;*/
    height: auto;
    /*max-height: 150px;*/
    object-fit: contain;
    order: 2;
}

/* Текст карточки - СВЕРХУ */
.var-matrica-text{
    text-align: center;
    color: rgba(49, 49, 49, 0.50);
    font-size: 18px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    order: 1;
    position: static;
    margin-top: 0;
}

/* Текст активной - белый */
.var-matrica-active .var-matrica-text {
    color: #EFEFEE !important;
}


/* ===== ФОРМА СПРАВА ===== */
.var-matrica-form{ 
    background: #E4E3E0;
    border-radius: 12px;
    padding: 40px;
    min-height: 582px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-title {
    color: #313131;
    font-size: 28px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

.form-description {
    color: rgba(49, 49, 49, 0.50);
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    line-height: 1.4;
}

/* Два инпута в ряд */
.form-row-dual {
    display: flex;
    gap: 4px;
}

.form-row-dual .form-control-cos {
    flex: 1;
}

/* ===== ПЕРЕКЛЮЧАТЕЛИ ПОЛА ===== */
.form-row-gender {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gender-label {
    color: rgba(49, 49, 49, 0.50);
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    margin-right: 4px;
}

.gender-label-wrap {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.gender-label-wrap span {
    color: rgba(49, 49, 49, 0.50);
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    margin-left: 8px;
}

/* ===== ПЕРЕОПРЕДЕЛЕНИЕ СТИЛЕЙ LC SWITCH ===== */
.lcs_wrap {
    height: 32px !important;
    width: 56px !important;
    vertical-align: middle;
    display: inline-block !important;
}

.lcs_wrap input {
    display: none !important;
}

.lcs_switch {
    display: inline-block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 70px !important;
    background: #EFEFEE !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.lcs_cursor {
    display: inline-block !important;
    position: absolute !important;
    top: 50% !important;
    margin-top: -12px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 100% !important;
    background: #E4E3E0 !important;
    box-shadow: none !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
}

/* Скрываем надписи ON/OFF */
.lcs_label {
    display: none !important;
}

/* Состояние ON (активно) */
.lcs_switch.lcs_on {
    background: linear-gradient(63deg, #3E1A3E 0%, #C200C2 100%) !important;
}

.lcs_switch.lcs_on .lcs_cursor {
    left: 28px !important;
    background: #EFEFEE !important;
}

/* Состояние OFF (неактивно) */
.lcs_switch.lcs_off {
    background: #EFEFEE !important;
}

.lcs_switch.lcs_off .lcs_cursor {
    left: 4px !important;
    background: #E4E3E0 !important;
}

/* Компактный режим */
.lcs_compact {
    height: 32px !important;
    width: 56px !important;
}

.lcs_compact .lcs_cursor {
    margin-top: -12px !important;
    width: 24px !important;
    height: 24px !important;
}

.lcs_compact .lcs_switch.lcs_on .lcs_cursor {
    left: 28px !important;
}

.lcs_compact .lcs_switch.lcs_off .lcs_cursor {
    left: 4px !important;
}

/* Disabled */
.lcs_switch.lcs_disabled {
    opacity: 0.5 !important;
    cursor: default !important;
}


/* ===== ИНПУТЫ ===== */
.form-control-cos{
    width: 100%;
    padding: 10px 20px;
    
    background: #EFEFEE;
    border: none;
    border-radius: 900px;
    height: 56px;
    
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #313131;
    
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control-cos:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(62, 26, 62, 0.2);
}

.form-control-cos::placeholder {
    color: rgba(49, 49, 49, 0.50);
}


/* ===== КНОПКА ===== */
.swiper_all_btn_1 {
    width: 100%;
    height: 56px;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 10px 32px;
    margin-top: 32px;
    
    background: linear-gradient(63deg, #3E1A3E 0%, #C200C2 100%);
    border: none;
    border-radius: 900px;
    
    cursor: pointer;
    
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    text-decoration: none !important;
    
    transition: all 0.3s ease;
}

.swiper_all_btn_1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 0, 194, 0.3);
}


/* ===== МОБИЛЬНЫЕ КАРТОЧКИ ===== */
.desctop-hidden {
    display: none;
}

.mob-var-matrica{
    display: block;
    background: #E4E3E0;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 80px;
    transition: all 0.3s ease;
}

/* При наведении — градиентный фон */
.mob-var-matrica:hover{
    background: linear-gradient(180deg, #3E1A3E 0%, #C200C2 100%) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mob-var-matrica:hover span {
    color: #EFEFEE !important;
}

.mob-var-matrica-active{
    background: linear-gradient(180deg, #3E1A3E 0%, #C200C2 100%) !important;
}

.mob-var-matrica-active:hover {
    background: linear-gradient(180deg, #351535 0%, #a000a0 100%) !important;
}

/* ===== МОБИЛЬНЫЕ КАРТОЧКИ — КАРТИНКИ ===== */

/* По умолчанию показываем обычную, скрываем hover */
.mob-var-matrica-img-default {
    display: block;
    margin: 0 auto 8px;
}

.mob-var-matrica-img-hover {
    display: none;
    margin: 0 auto 8px;
}

/* При наведении */
.mob-var-matrica:hover .mob-var-matrica-img-default {
    display: none;
}

.mob-var-matrica:hover .mob-var-matrica-img-hover {
    display: block;
}

/* Активная */
.mob-var-matrica-active .mob-var-matrica-img-default {
    display: none;
}

.mob-var-matrica-active .mob-var-matrica-img-hover {
    display: block;
}

/* Активная при наведении */
.mob-var-matrica-active:hover .mob-var-matrica-img-default {
    display: none;
}

.mob-var-matrica-active:hover .mob-var-matrica-img-hover {
    display: block;
}

/* Общие стили для мобильных картинок */
.mob-var-matrica-img {
    max-width: 60px;
    margin-bottom: 8px;
}

.mob-var-matrica span{
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(49, 49, 49, 0.50);
}

.mob-var-matrica-active span {
    color: #EFEFEE !important;
}


/* ===== ADAPTIVE ===== */
@media (max-width: 992px) {
    
    .desctop-hidden {
        display: flex !important;
    }
    
    .calc-types-row {
        display: none !important;
    }
    
    .var-matrica {
        height: auto !important;
        min-height: 250px;
    }
    
    .var-matrica-form {
        height: auto !important;
        min-height: 400px;
    }

}

@media (max-width: 576px) {
    
    #mform .cos-h2 {
        font-size: 28px !important;
    }
    
    .cos-subtitle {
        font-size: 16px !important;
    }
    
    .swiper_all_btn_1 {
        height: 50px !important;
        font-size: 14px !important;
    }
    
    .form-control-cos {
        height: 50px !important;
        font-size: 14px !important;
    }
    
    .form-row-dual {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-row-gender {
        gap: 8px;
    }
    
    .var-matrica-form {
        padding: 24px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
}