/* Контентные страницы конструктора (resources/views/vo/pages/content.blade.php)
   Перенесено из resources/js/templates/ContentPage.vue и компонентов
   GoBackButton, RedLineTitle, RedCircleLink. */

/* GoBackButton */
.content-page .cp-back {
    display: inline-flex;
    width: fit-content;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}
.content-page .cp-back span {
    margin-left: 1rem;
    font-size: .82rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: .05rem;
    color: #8A8A93;
}
.content-page .cp-back span,
.content-page .cp-back svg path {
    transition: .35s;
}
.content-page .cp-back:hover span {
    color: #F42A3E;
}
.content-page .cp-back:hover svg path {
    fill: #F42A3E !important;
}

/* RedLineTitle */
.content-page .cp-title {
    position: relative;
    font-size: 3.9rem;
    font-weight: bold;
    color: #292C3D;
    line-height: 3.333rem;
}
.content-page .cp-title::before {
    content: '';
    position: absolute;
    left: -9rem;
    top: 1.4rem;
    width: 6.73rem;
    height: .27rem;
    background-color: #F42A3E;
    z-index: 100;
}
.content-page .first__title {
    line-height: 100%;
}

/* RedCircleLink */
.content-page .cp-circle-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.content-page .cp-circle-link svg {
    min-width: 2.7rem;
    height: 2.7rem;
    margin-right: 1.1rem;
}
.content-page .cp-circle-link p {
    font-weight: bold;
    font-size: 0.83rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: #F42A3E;
}
.content-page .cp-circle-link svg circle,
.content-page .cp-circle-link svg path {
    transition: 0.3s;
}
.content-page .cp-circle-link svg circle {
    fill: transparent;
}
.content-page .cp-circle-link:hover svg circle {
    fill: #F42A3E;
}
.content-page .cp-circle-link:hover svg path {
    fill: #fff;
}

/* Layout */
.content-page .container_wrapper {
    display: flex;
    flex-wrap: nowrap;
}
.content-page .container_left {
    width: 72rem;
}
.content-page .container_right {
    padding-top: 8rem;
    width: 13.1944rem;
}
.content-page .container_right .title {
    position: relative;
    font-size: 1.666rem;
    line-height: 2.2222rem;
    color: #292c3d;
    font-weight: bold;
    padding-right: 2rem;
}
.content-page .container_right .title::before {
    content: "";
    position: absolute;
    width: 105%;
    height: 1.11rem;
    z-index: -1;
    left: -5%;
    top: 1rem;
    background-color: #f4f4f6;
}
.content-page .container_right .read_more {
    display: block;
    font-size: 0.833rem;
    line-height: 1.111rem;
    color: #292c3d;
    padding: 1.875rem 0;
    border-bottom: 1px solid #cacace;
    transition: 0.35s;
}
.content-page .container_right .read_more:last-of-type {
    border-bottom: none;
}
.content-page .container_right .read_more:hover {
    color: #f42a3e;
}

/* Текст из редактора */
.content-page .content-pages * {
    border: none;
}
.content-page .content-pages hr {
    border-bottom: 0.01rem solid black !important;
}
.content-page .content-pages ul {
    padding-left: 1.2rem;
    list-style-type: none;
}
.content-page .content-pages ul li,
.content-page .content-pages ul li p {
    position: relative;
    margin-bottom: 2rem;
    list-style-type: none;
    font-size: 1.388rem;
    line-height: 125%;
    color: #292c3d;
    margin-left: 1.2rem;
}
.content-page .content-pages ul li::before {
    content: "";
    position: absolute;
    top: 0.7rem;
    left: -1.5rem;
    width: 0.33rem;
    height: 0.33rem;
    background-color: red;
    border-radius: 50%;
}
.content-page .content-pages table {
    border-spacing: 0.5rem 0;
    margin-bottom: 5rem;
}
.content-page .content-pages table tr:first-of-type td {
    font-style: normal;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.38rem;
    color: #292c3d;
    border-bottom: 0.14rem solid #f42a3e !important;
    background: #f4f4f6 !important;
    padding: 0.5rem;
}
.content-page .content-pages table td {
    font-style: normal;
    font-weight: normal;
    font-size: 1.1rem;
    line-height: 1.38rem;
    color: #292c3d;
    border-bottom: 0.06rem solid rgba(138, 138, 147, 0.5) !important;
    padding: 1.1rem 0.5rem;
}
.content-page .content-pages .gallery_m,
.content-page .content-pages #gallery_m {
    display: flex;
    flex-wrap: wrap;
}
.content-page .content-pages img {
    cursor: pointer;
}
.content-page .content-pages a,
.content-page .content-pages a * {
    color: inherit;
}

/* Документы */
.content-page .reference__link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.94rem;
}
.content-page .reference__link img {
    max-width: 1.6rem;
    max-height: 1.6rem;
}
.content-page .reference__link div {
    font-style: normal;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.38rem;
    color: #000000;
    margin-left: 1.25rem;
    transition: 0.3s;
}
.content-page .reference__link div:hover {
    color: #f42a3e !important;
}

/* Видео */
.content-page .video__container {
    width: 100%;
    margin-bottom: 1rem;
}
.content-page .video__container iframe {
    max-width: 100%;
    width: 64.236rem;
    height: 36.11rem;
}
.content-page .video__container .description {
    font-size: 1.1rem;
    line-height: 125%;
    margin-top: 2.2222rem;
}

/* Карточки разделов */
.content-page .card__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}
.content-page .card__container .section__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: 0px 4px 20px rgba(9, 12, 31, 0.1);
    width: 27.777rem;
    height: 27.777rem;
    padding: 2.222rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
.content-page .card__container .section__card .title {
    font-weight: bold;
    font-size: 1.666rem;
    line-height: 2.222rem;
    width: 100%;
    position: relative;
    margin-bottom: 1.111rem;
}
.content-page .card__container .section__card .title::before {
    content: "";
    position: absolute;
    width: 105%;
    height: 1.11rem;
    z-index: -1;
    left: -5%;
    top: 1rem;
    background-color: #f4f4f6;
}
.content-page .card__container .section__card .description {
    font-size: 1.388rem;
    line-height: 1.9444rem;
    color: #292c3d;
    margin-bottom: 1.1111rem;
}
.content-page .card__container .section__card .link {
    margin-top: auto;
}

/* Лайтбокс (элемент создаётся скриптом в body, вне .content-page) */
.cp-light-box {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}
.cp-light-box.is-open {
    display: block;
}
.cp-light-box .background {
    position: fixed;
    background-color: black;
    opacity: 0.7;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    cursor: pointer;
}
.cp-light-box img {
    z-index: 100;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 90%;
    max-width: 95%;
    object-fit: contain;
    object-position: center;
}

@media screen and (min-width: 768px) {
    .content-page .cp-large {
        font-size: 4.166rem !important;
    }
}

@media screen and (max-width: 768px) {
    .content-page .video__container iframe {
        width: 100%;
        height: 56vw;
    }
    .content-page .container_wrapper {
        flex-wrap: wrap;
    }
    .content-page .container_left {
        width: 100%;
        word-break: break-word;
    }
    .content-page .container_right {
        width: 100%;
        padding-top: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .content-page .cp-title {
        font-size: 1.944rem;
        line-height: 2.08rem;
    }
    .content-page .cp-title::before {
        left: -1.5rem;
        top: 0.8rem;
        width: 1.5rem;
    }
}
