/* Promo Tabs Component - Veter */

:root {
    --promo-bg: #314664;
    --promo-card: rgba(245, 245, 245, 1);
    --promo-text-dark: #1e3250;
    --promo-text-muted: #1E1E1E;
    --promo-gold: #8296b4;
    --promo-white: rgba(245, 245, 245, 1);
}

.promo-wrapper {
    margin: 0;
    background: var(--promo-bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--promo-text-dark);
    display: flex;
    justify-content: center;
    padding: 40px 16px 64px;
}

.promo-main {
    width: 100%;
    max-width: 1440px;
}

.promo {
    background: var(--promo-bg);
    overflow: hidden;
    max-width: 1440px;
}

.promo__badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 33px;
    padding: 8px 10px;
    width: fit-content;
    margin-inline: auto;
    border: 1px solid #F5F5F5;
    border-radius: 36px;
    color: var(--promo-white);
}

.promo .badge {
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;

    font-family: 'Montserrat', sans-serif;
    color: #F5F5F5;
    background: transparent;
}

.promo .badge.badge--primary {
    color: #314664;
    background-color: #F5F5F5;
    border-color: #F5F5F5;
}

.promo .callorder {
    border: none;
    padding: 0;
    gap: 0;
}

.badge:hover {
    opacity: 0.8;
    background-color: rgba(245, 245, 245, 0.1);
}

.badge--primary {
    color: #314664;
    background-color: #F5F5F5;
    border-color: #F5F5F5;
    transform: translateY(-1px);
}

.badge--secondary {
    color: #F5F5F5;
    background: transparent;
}

.badge:focus-visible {
    outline: 2px solid var(--promo-white);
    outline-offset: 3px;
}

.promo__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--promo-bg);
}

.visual {
    position: relative;
    min-height: 295px;
}

.visual__panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(8px);
}

.visual__panel--active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.visual__panel--family {
    background: #8296b4;
    color: #1e3250;
    padding: 50px 100px 100px;
    display: flex;
    flex-direction: column;
    gap: 78px;
}

.visual__panel--start {
    background-color: #292c30;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.visual__panel--start.visual__panel--active {
    min-height: 100%;
}

.visual__panel--family.visual__panel--with-bg {
    background-color: rgba(49, 70, 100, 0.88);
    background-blend-mode: overlay;
}

.family-card__title {
    font-size: 36px;
    line-height: 45px;
    text-transform: uppercase;
    margin: 0 0 78px;
    color: #f5f5f5;
}

.family-card__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 65px;
    row-gap: 40px;
}

.family-card__row {
    margin: 0;
    color: #f5f5f5;
}

.family-card__label {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    text-transform: none;
}

.family-card__prefix,
.family-card__suffix {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
}

.family-card__value-main {
    font-size: 42px;
    line-height: 48px;
    font-weight: 700;
    margin: 0 4px;
}

.family-card__note {
    font-size: 16px;
    line-height: 22px;
    margin-top: 0;
    opacity: 0.92;
}

.family-card__footer {
    font-size: 12px;
    line-height: 30px;
    margin-top: 16px;
    color: #f5f5f5;
}

.form-card {
    background: var(--promo-card);
    padding: 60px 100px 237px;

}

.form-card__title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--promo-text-dark);
    max-width: 520px;
}

.form-card__text {
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 16px;
    line-height: 26px;
    color: var(--promo-text-muted);
    max-width: 520px;
}

.promo__additional-text-container {
    margin-top: 16px;
    font-size: 14px;
    line-height: 18px;
    color: #1E1E1E;
}

.promo-wrapper .field {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(223, 223, 225, 1);
    font-size: 16px;
    color: #717182;
    outline: none;
    height: 48px;
    font-family: 'Montserrat', sans-serif;
}

.promo-wrapper .field::placeholder {
    color: rgba(113, 113, 130, 1);
    font-family: 'Montserrat', sans-serif;
}

.promo-wrapper .field:focus {
    border-color: var(--promo-gold);
}

.promo-wrapper .form__group {
    margin-bottom: 16px;
}

.promo-wrapper .agree-checkboxes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.promo-wrapper .agree-checkboxes .checkbox { margin-bottom: 0; }
.promo-wrapper .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    letter-spacing: 0px;
}

.promo-wrapper .checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.promo-wrapper .checkbox label {
    font-weight: 300;
    font-size: 12px;
    line-height: 15px;
    color: #1E1E1E;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
}

.promo-wrapper .checkbox label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 35%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1px solid var(--promo-gold);
    background: transparent;
}

.promo-wrapper .checkbox label::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 35%;
    transform: translateY(-60%) rotate(-45deg);
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--promo-white);
    border-bottom: 2px solid var(--promo-white);
    opacity: 0;
}

.promo-wrapper .checkbox input:checked + label::before {
    background: #314664;
    border-color: #314664;
}

.promo-wrapper .checkbox input:checked + label::after {
    opacity: 1;
}

.promo-wrapper .link {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 20px;
    color: #314664;
    font-size: 14px;
    line-height: 150%;
    font-weight: 300;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    margin-top: 0;
}

.promo-wrapper .button {
    display: block;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 8px;
    background: #8296b4;
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.promo-wrapper .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.promo-wrapper .button:hover {
    opacity: 0.9;
}

.promo-wrapper .button:active {
    opacity: 0.9;
}


/* Responsive */
@media screen and (max-width: 1200px) {
    .promo-wrapper {
        padding: 40px 20px 120px;
    }

    .promo__badges {
        gap: 6px;
        margin-bottom: 40px;
        padding: 5px 6px;
        border-radius: 20px;
        width: fit-content;
        max-width: calc(100vw - 40px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }

    .promo__badges::-webkit-scrollbar {
        display: none;
    }

    .promo .badge {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .badge {
        font-weight: 400;
        letter-spacing: 0px;
        padding: 2px 6px;
        font-size: 10px;
        line-height: 12px;
        border-radius: 8px;
        transition: opacity 0.2s ease;
    }

    .visual {
        min-height: auto;
    }

    .visual__panel {
        position: relative;
        inset: auto;
        transform: none;
        display: none;
    }

    .visual__panel--active {
        display: block;
    }

    .visual__panel--family.visual__panel--active {
        padding: 20px;
    }

    .visual__panel--start.visual__panel--active {
        min-height: 295px;
        display: block;
    }

    .promo__content {
        display: flex;
        flex-direction: column-reverse;
    }

    .form-card {
        padding: 20px;
        border-right: none;
    }

    .promo-wrapper .checkbox {
        align-items: flex-start;
    }

    .promo-wrapper .checkbox label::before {
        top: 0;
        transform: none;
    }

    .promo-wrapper .checkbox label::after {
        top: 4px;
        transform: rotate(-45deg);
    }

    .form-card__title {
        font-size: 24px;
        line-height: 30px;
    }

    .form-card__text {
        font-size: 14px;
        line-height: 18px;
    }

    .family-card__title {
        font-size: 26px;
        line-height: 45px;
        margin-bottom: 40px;
        width: 100%;
    }

    .family-card__rows {
        column-gap: 20px;
        row-gap: 25px;
    }

    .family-card__label {
        font-size: 24px;
        line-height: 28px;
        font-weight: 600;
        text-align: left;
    }

    .family-card__prefix,
    .family-card__suffix {
        font-size: 24px;
        line-height: 28px;
        font-weight: 700;
    }

    .family-card__value-main {
        font-size: 42px;
        line-height: 40px;
        font-weight: 700;
        margin: 0 4px;
    }

    .family-card__note {
        font-size: 16px;
        line-height: 24px;
        margin-top: 4px;
        text-align: left;
    }

    .promo-wrapper .button {
        padding: 20px 10px;
        width: 55%;
        line-height: 24px;
    }

    .promo-wrapper .link {
        display: none;
    }
}

@media screen and (max-width: 740px) {

    .family-card__value-main {
        font-size: 26px;
        line-height: 40px;
    }

    .family-card__note  {
        font-size: 14px;
        line-height: 20px;
    }

    .family-card__rows {
        grid-template-columns: 1fr 1fr;
    }

    .family-card__footer {
        font-size: 12px;
        line-height: 18px;
        margin-top: 50px;
    }

    .form-card__text {
        width: 87%;
    }

    .promo-wrapper .checkbox label {
        width: 77%;
    }

    .family-card__prefix,
    .family-card__suffix {
        font-size: 16px;
        line-height: 28px;
    }

    .family-card__label {
        font-size: 16px;
    }

    .promo-form__result-title {
        font-size: 20px;
    }

    .promo-form__result-text {
        font-size: 15px;
    }

    .promo-wrapper .field {
        color: #1E1E1E;
    }

    .visual__panel--with-bg.visual__panel--active {
        gap: 0;
    }
}

/* Смешанный режим: текст поверх картинки */
.visual__panel--with-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover !important;
    background-position: center !important;
    color: #fff !important;
}

/* Слой затемнения */
.visual__panel--with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(49, 70, 100, 0.7);
    z-index: 1;
}

/* Контент поверх затемнения */
.visual__panel--with-bg > div,
.visual__panel--with-bg .family-card__footer {
    position: relative;
    z-index: 2;
}

.visual__panel--with-bg .family-card__title,
.visual__panel--with-bg .family-card__label,
.visual__panel--with-bg .family-card__value-main,
.visual__panel--with-bg .family-card__prefix,
.visual__panel--with-bg .family-card__suffix,
.visual__panel--with-bg .family-card__note {
    color: inherit !important;
}

/* Мобильная версия для смешанного режима */
@media screen and (max-width: 1200px) {
    .visual__panel--with-bg {
        position: relative;
        inset: auto;
        min-height: 400px;
    }

    .visual__panel--with-bg.visual__panel--active {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
}
