/**
 * CMSXL and Application User Interface Soft Touch Buttons.
 * Copyright (c) 2023 Anthony Albit. All rights reserved.
 *
 * For more information, please contact:
 * Email: anthony.albit@wayovermedia.com
 * Website: https://cmsxl.com
 */

/* Content CSS */
/*•••••••••••••••••••••••••••••••••••••••••••••••••••••••*/

/* Width Holder */
.holder, .holder-poster, .holder-footer, .holder-sm, .holder-xs,
.holder-content, .holder-listing {
    margin: 0 auto;
    padding: 0 var(--holder-padding);
    max-width: var(--site-max-width);
}
.holder-footer {
    padding: 0;
    max-width: 1399px;
}
.holder-sm {
    max-width: 1140px;
}
.holder-xs {
    max-width: 520px;
    min-height: 450px;
}
.holder-content {
    padding-top: 20px;
    padding-bottom: var(--holder-padding);
}
.holder-listing {
    display: grid;
    padding: 50px;
    grid-gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 991px) {
    .holder-poster {
        padding: 0;
    }
    .holder-content {
        padding: 0 calc(var(--holder-padding) / 2);
        padding-top: 20px;
        padding-bottom: calc(var(--holder-padding) / 1.5);
    }
    .holder-listing {
        padding: 30px;
        /*padding: calc(var(--holder-padding) / 2) 15px;*/
    }
    .holder-listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .holder-listing {
        padding: 15px;
    }
}
@media (max-width: 576px) {
    .holder-listing {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .holder-content {
        padding: 0;
        padding-top: 20px;

        padding-bottom: calc(var(--holder-padding) / 1.5);
    }
}

@media (max-width: 991px) {
    .holder-content.store {
        max-width: 550px;
    }
}
/* Site Contents */
.contents {
    /*padding-top: calc(var(--header-menu-height));*/
    font-size: 0;
    background-color: var(--background-color);
}
@media (max-width: 991px) {
    .contents {
    }
}

.header-inner {
    display: flex;
}
.header-inner.reverse {
    flex-direction: row-reverse;
}
.header-inner-media,
.header-inner-text {
    width: 50%;
    min-height: 280px;
}
@media (max-width: 767px) {
    .header-inner {
        flex-direction: column;
    }
    .header-inner.reverse {
        flex-direction: column-reverse;
    }
    .header-inner-media,
    .header-inner-text {
        width: 100%;
    }
}
.header-inner.store {
    display: flex;
    flex-direction: column;
}
.header-inner-media.store,
.header-inner-text.store {
    width: 100%;
    min-height: unset;
}
.header-inner-media.store {
    height: unset;
}


.content-over {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1190px;
    font-size: 0;
    border: none !important;
    overflow: hidden;
}
.content-over.video {
    max-height: calc(100vh - 250px);
}

.content-over.image {
    /*padding: 10px 0;*/
    max-height: 40vh;
}
.content-over.image:after {
    content: '';
    display: block;
    padding-top: 55%;
}

.content-over.video video {
    max-width: none;
}
.content-over.image img {
    max-height: 100%;
}

.content-heading {
}
.content-heading {
    padding: var(--content-heading-padding);
    color: #f0f0f0;
    background-color: var(--content-heading-bg);
}
.content-heading h1 {
    margin: 0 auto;
    font-size: calc(var(--text-size) * 1.85);
}
.content-heading p {
    margin: 10px auto 0 auto;
    max-width: 80%;
    font-size: calc(var(--text-size) * 1.3);
}

.content-actions {
    padding: var(--holder-padding);
    line-height: calc(var(--text-line-height) * 1.4);
    font-size: calc(var(--text-size) * 1.2);
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--text-background-color);
}

.content-block {
    padding: var(--holder-padding);
    color: var(--text-color);
    background-color: var(--text-background-color);
}
.content-body {
    padding: var(--holder-padding);
    line-height: calc(var(--text-line-height) * 1.4);
    font-size: calc(var(--text-size) * 1.2);
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--text-background-color);
}
.content-body p,
.content-body li {
    margin-bottom: calc(var(--text-margin) * 1.1);
    line-height: calc(var(--text-line-height) * 1.1);
    font-size: calc(var(--text-size) * 1.2);
}
/* Для LTR (английский, русский и т. д.) */
.content-body:dir(ltr) ul,
.content-body:dir(ltr) ol {
    margin-right: 0;
    margin-left: 60px;
}
/* Для RTL (иврит, арабский и т. д.) */
.content-body:dir(rtl) ul,
.content-body:dir(rtl) ol {
    margin-right: 60px;
    margin-left: 0;
}
.content-body ul {
    list-style-type: disc;
}
.content-body ol {
    list-style-type: upper-roman;
}
.content-body ul ul,
.content-body ol ul {
    list-style-type: circle;
}
.content-body ol ol,
.content-body ul ol {
    list-style-type: upper-latin;
}
.content-body ul ul ul,
.content-body ol ul ul,
.content-body ol ol ul {
    list-style-type: square;
}
.content-body ol ol ol,
.content-body ul ol ol,
.content-body ul ul ol {
    list-style-type: lower-latin;
}

@media (max-width: 991px) {
    .content-heading {
        padding: var(--content-heading-padding) calc(var(--content-heading-padding) / 3);
        background-color: var(--content-heading-bg);
    }
    .content-heading h1 {
        margin: 0 auto;
        font-size: calc(var(--text-size) * 1.85);
    }
    .content-heading p {
        font-size: calc(var(--text-size) * 1.2);
    }

    .content-body {
        line-height: calc(var(--text-line-height) * 1.4);
        font-size: calc(var(--text-size) * 1);
    }
    .content-body p,
    .content-body li {
        margin-bottom: calc(var(--text-margin) * 1.1);
        line-height: calc(var(--text-line-height) * 1.1);
        font-size: calc(var(--text-size) * 1);
    }
    /* Для LTR (английский, русский и т. д.) */
    .content-body:dir(ltr) ul,
    .content-body:dir(ltr) ol {
        margin-left: 40px;
    }
    /* Для RTL (иврит, арабский и т. д.) */
    .content-body:dir(rtl) ul,
    .content-body:dir(rtl) ol {
        margin-right: 40px;
    }
}
.faq-body {
    padding: var(--holder-padding);
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--text-background-color);
}


/* Overlays and Modal Windows */
.overlay,
.overlay-spinner {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .45);
}
.overlay-spinner {
    position: absolute;
    z-index: 999908;
}

/* Warnings */
.warning-cookie {
    display: none;
    position: fixed;
    z-index: 999907;
    right: 72px;
    bottom: 0;
    left: 60px;
    margin: auto;
    padding: 0;
    max-width: var(--site-max-width);
    font-size: 0;
    font-weight: 300;
}
.warning-cookie div {
    margin: 0 auto;
    padding: 20px 30px;
    width: 100%;
    color: var(--accent-color);
    text-align: center;
    background-color: var(--text-color);
    /*border-radius: 20px 20px 0 0 / 14px 14px 0 0;*/
}
.warning-cookie-text {
    display: block;
    padding: 10px 0;
    font-size: 18px;
}
.warning-cookie-button {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    max-width: 320px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--accent-color);
    cursor: pointer;
}
@media (max-width: 767px) {
}
.warning-cookie-button:hover {
    background-color: var(--accent-color-hover);
}

.home-video {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 500px; /* Или 100vh, если хочешь на весь экран */
    transition: height .3s linear;
}
.home-welcome video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Растягиваем без черных полос */
}
/* 🔥 Уменьшаем ширину видео при определённом трешхолде */
@media (max-width: 991px) {
    .home-video {
        height: 500px;
    }
}
.home-video-image {
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.top-stretcher {
    display: flex;
    flex-direction: column;
    margin: 30px auto 0 auto;
    background-color: #db6b4b;
    border-radius: var(--acp-border-radius);
}
.top-stretcher-cta {
    flex-grow: 1;
    margin-right: 0;
    margin-bottom: -10px;
    padding: 25px !important;
    width: auto;
    color: ivory;
    text-align: center;
}
.top-stretcher-cta h1 {
    font-weight: 400;
}
.top-stretcher-cta p {
    margin: 0;
    margin-top: 10px;
    max-width: 100%;
    line-height: normal;
    font-size: 24px !important;
}
.top-stretcher-cta a {
    text-decoration: none;
}
.top-stretcher-images {
    display: grid;
    padding: 15px;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.top-stretcher-image {
    display: flex;
    position: relative;
    justify-content: space-between;
    flex-direction: column;
    padding: 15px;
    width: 100%;
    font-size: 1rem;
    color: #333;
    background-color: var(--c-ivory);
    border-radius: var(--acp-border-radius);
    overflow: hidden;
}
.top-stretcher-image picture {
    position: relative;
    margin: -15px -15px 0 -15px;
    width: calc(100% + 30px);
    max-width: calc(100% + 30px);
    height: 270px;
    background-position: center;;
}

.top-stretcher-image a {
    display: block;
    position: absolute;
    bottom: 0;
    padding: 15px;
    width: 100%;
    font-size: 1.3rem;
    font-weight: 600 !important;
    color: #497091;
    /*text-transform: uppercase;*/
    text-decoration: none;
    background-color: #ffffffba;
    text-shadow: 0 0 20px #ffffff;
}
.top-stretcher-image article {
    flex-grow: 1;

}
.top-stretcher-image article ul {
    margin: 0 -15px -15px -15px;
    padding: 15px;
    padding-top: 20px;
    list-style-type: disc;
}

.top-stretcher-image article ul li:dir(ltr) {
    margin-left: 25px;
}
.top-stretcher-image article ul li:dir(rtl) {
    margin-right: 25px;
}

@media (max-width: 767px) {
    .top-stretcher-images {
        grid-template-columns: repeat(1, 1fr);
    }
}


.top-stretcher-price {
    position: absolute !important;
    bottom: 5px;
    padding-left: 15px;
}
.top-stretcher-price:dir(ltr) {
    right: 0;
}
.top-stretcher-price:dir(rtl) {
    left: 0;
}

#image-zoom-modal {
    display: flex;
    position: fixed;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
    inset: 0;
}

.zoom-container {
    max-width: 96%;
    max-height: 96%;
    overflow: auto;
}
.zoom-container img {
    border-radius: var(--acp-border-radius);
}

#zoom-target {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}
.zoomable-img {
    cursor: zoom-in;
}

.content-body video,
.content-body img {
    display: block;
    margin: 50px auto;
    box-shadow: 0 0 20px -5px #00000030;
    border-radius: var(--acp-border-radius);
}
