/* новый блок сертификатов (28/11/2025) */
.sertificate-work-new {
    background-color: #f9f9f9;
    padding: 64px 0;
}

.new-sert {
    position: relative;
    overflow: hidden;
    min-height: 454px;
    padding: 20px;
    border-radius: 10px;
}

.bg_sert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--Orange);
    z-index: 5;
}

.img-security {
    width: 440px;
    height: 580px;
    z-index: 10;
    position: absolute;
    right: 40px;
    top: -45px;
    opacity: 0.15;
}

.box_contain {
    position: relative;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
}

.box_contain .left {
    width: 100%;
    max-width: 538px;
}

.box_contain .left img {
    border-radius: 10px;
}

.box_contain .right {
    width: 100%;
}

.box_contain .right h2 {
    font-family: Helvetica;
    font-weight: 700;
    font-size: 32px;
    /* max-width: 591px; */
    color: white;
    margin-bottom: 20px;
}

.box_contain .right p {
    font-family: Helvetica;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: white;
    margin-bottom: 20px;
}

.box_contain .right li {
    font-family: Helvetica;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 8px;
    color: white;
}

.box_contain .right li h3 {
    font-family: Helvetica;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 8px;
    color: white;
    display: contents;
}

.box_contain .right li::before {
    content: "📑";
    margin-right: 8px;
}

.box_contain .right li:last-child {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .box_contain {
        flex-direction: column;
        gap: 20px;
    }

    /* .box_contain .left {
            max-width: 230px;
        } */

    .box_contain .right h2 {
        font-weight: 700;
        font-size: 24px;
    }

    .box_contain .right p {
        font-weight: 400;
        font-size: 14px;
        line-height: 18px;
    }

    .box_contain .right li {
        font-weight: 700;
        font-size: 14px;
        line-height: 18px;
    }

    .box_contain .right li h3 {
        font-weight: 700;
        font-size: 14px;
        line-height: 18px;
    }

    .img-security {
        width: 370px;
        height: 370px;
        right: -150px;
        top: initial;
        bottom: -65px;
    }
}

/* -------------------------------------- */
@media (min-width: 992px) {
    .expand-button-master {
        display: none;
    }
}

/* Показываем только на мобильных */
@media (max-width: 992px) {
    .seo-spoiler {
        display: block;
    }

    .custom-paragraph {
        max-height: 120px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.3s ease;
    }

    .custom-paragraph.expanded {
        max-height: none;
    }

    .spoiler-toggle-btn {
        margin-top: 10px;
        padding: 8px 16px;
        font-size: 14px;
        width: 215px;
        height: 32px;
        border: 0px solid #3b3b3b;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #c2c2c2;
    }

    .spoiler-toggle-btn::after {
        content: "▼";
        display: inline-block;
        margin-left: 5px;
        transition: transform 0.3s;
        font-size: 9px;
        position: relative;
        top: 1px;
    }

    .spoiler-toggle-btn.toggled::after {
        transform: rotate(180deg);
        top: -2px;
    }

    /* ---------  */
    .price-table-body .column-2 .device-price-table {
        padding: 12px;
    }

    .subcolumn-2.dop-2 {
        justify-content: flex-end;
    }

    .reviews-v2 {
        padding-bottom: 0;
    }

    .section-2 .container {
        overflow-y: hidden;
    }

    .expand-button-master {
        position: absolute;
        bottom: 0px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        cursor: pointer;
        text-decoration: underline;
        color: silver;
        font-size: 16px;
        display: flex;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 10px;
        background-image: linear-gradient(
            0deg,
            #fff 40px,
            hsla(0, 0%, 100%, 0)
        );
    }

    .show_text .expand-button-master {
        background-image: none;
    }
}

@media (max-width: 992px) {
    .footer__nav-card ul {
        height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: none;
        display: block !important;
        /* перебьёт display: none */
    }

    .footer__nav-card.active ul {
        opacity: 1;
        margin-top: 10px;
    }
}

.card-advantage-new {
    padding: 33px;
    border: 1px solid rgba(232, 232, 232, 1);
    background-color: color-mix(in srgb, var(--Orange) 10%, transparent);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.card-advantage-new .head-card {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.card-advantage-new .head-card h3 {
    font-family: Helvetica;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
}

.card-advantage-new .icon {
    padding: 12px;
    background-color: white;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    max-width: 48px;
    max-height: 48px;
}

.card-advantage-new .icon svg {
    width: 24px;
    height: 24px;
}

.card-advantage-new .icon svg path {
    /* fill: var(--Orange); */
}

/* --- Текст с анимацией --- */
.card-advantage-new .advan-text {
    font-family: Helvetica;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0px;
    color: rgba(59, 59, 59, 0.7);
    max-width: 366px;
    margin: 0;
    /* Устанавливаем начальное ограничение высоты */
    max-height: 44px; /* 2 строки (22px * 2) */
    overflow-y: hidden;
    /* Добавляем transition для плавного изменения max-height */
    transition: max-height 0.35s ease-in-out;
}

/* --- Кнопка --- */
.btn-show-text-advan {
    font-family: "Inter";
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    color: var(--Orange);
    margin-top: 12px;
    position: relative;
    width: 125px;
    cursor: pointer;
}

.btn-show-text-advan span {
    font-family: Helvetica;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    color: var(--Orange);
}

.card-advantage-new:hover .btn-show-text-advan span {
    color: white;
}

.card-advantage-new:hover .btn-show-text-advan svg path {
    stroke: white;
}

.btn-show-text-advan svg {
    position: absolute;
    right: -16px;
    top: 8px;
    /* Поворот стрелки при раскрытии */
    transform: rotate(0deg);
    transition: transform 0.35s ease-in-out;
}

/* Поворот стрелки при раскрытии */
.card-advantage-new .btn-show-text-advan.expanded svg {
    transform: rotate(180deg);
}

/* --- Фоновая иконка --- */
.bg-icon-advan {
    width: 120px;
    height: 120px;
    position: absolute;
    bottom: -15px;
    right: 0;
}

.bg-icon-advan svg {
    width: 100%;
    height: 100%;
}

.bg-icon-advan svg path {
    stroke: rgba(59, 59, 59, 0.03);
}

#block-advan_new {
    overflow-y: clip;
}

@media (max-width: 992px) {
    #block-advan_new {
        background-color: white;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .advantage-new .section-1 {
        background-color: white;
    }

    .card-advantage-new {
        padding: 20px;
    }

    .card-advantage-new .head-card h3 {
        font-size: 14px;
    }

    .card-advantage-new .advan-text {
        font-size: 12px;
    }

    .card-advantage-new .icon {
        width: 42px;
        height: 42px;
    }

    .card-advantage-new .icon svg {
        width: 20px;
        height: 20px;
    }

    .btn-show-text-advan span {
        font-size: 12px;
    }
}

.card-advantage-new .icon svg path {
    stroke: var(--Orange);
}

/* Скрываем кнопку, если текст не обрезан */
.card-advantage-new .btn-show-text-advan.hidden {
    display: none;
}

.card-advantage-new {
    padding: 33px;
    border-top: 1px solid #e8e8e8;
    background-color: color-mix(in srgb, var(--Orange) 10%, transparent);

    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.card-advantage-new:hover {
    background-color: var(--Orange);
    color: white;
}

.card-advantage-new:hover .advan-text {
    color: white;
    transition: all 0.3s ease;
}

.card-advantage-new .advan-text {
    font-family: Helvetica, sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: rgba(59, 59, 59, 0.7);
    max-width: 366px;
    margin: 0;
    /* Сворачиваем до 2 строк */
    max-height: 44px; /* 22px × 2 */
    overflow-y: hidden;
    transition: max-height 0.35s ease-in-out;
}

.btn-show-text-advan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 13px;
    color: #e25359;
    margin-top: 12px;
    cursor: pointer;
}

.btn-show-text-advan svg {
    width: 9px;
    height: 5px;
    transition: transform 0.35s ease-in-out;
}
