.content-section {
    padding: 120px 0 0 0;
}

.t-sociallinks__item_whatsapp a {
    background-image: url(../img/whatsapp.svg) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    /* border-radius: 50% !important; */
    border: none;
    /* -moz-border-radius: 50% !important;
    -webkit-border-radius: 50% !important; */
    display: block;
}

.t-sociallinks__item_telegram a {
    background-image: url(../img/tg.svg) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    border: none;
    /* border-radius: 50% !important; */
    /* -moz-border-radius: 50% !important; */
    display: block;
}

li {
    font-size: 20px;
    COLOR: #4b5666;
    font-family: SourceLight;
    line-height: 1.3;
    font-weight: 200;
    text-align: left;
}

table td {
    vertical-align: middle;
    font-size: 20px;
    text-align: left;
    padding-right: 10%;
}

.t-sociallinks__item_vk a {
    background-image: url(../img/vk.svg) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    border: none;
    width: 29px !important;
    /* border-radius: 50% !important; */
    /* -moz-border-radius: 50% !important; */
    display: block;
}

.mobile_header .t-sociallinks a {
    filter: invert(1);
}

.text-success {
    position: absolute;
    left: 51px;
    top: 50px;
    width: 1000px;
    border: 5px solid #359300;
    padding: 20px 30px;
    background: #ffffff;
    display: flex;
    height: 80%;
    font-size: 33px;
    align-items: anchor-center;
    width: 750px;
    justify-content: center;
    background: #fffffff2;
    border-radius: 14px;
}

.sert_detail_photo {
    min-height: 448px;
    position: relative;
    border-radius: 10px;
    background: url(/sert_bg.jpg) no-repeat #FFF;
    background-size: cover;
    flex-direction: column;
    background-position: left top;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sert_detail_photo2 {
    min-height: 448px;
    position: relative;
    border-radius: 10px;
    background: url(/sert_bg2.jpg) no-repeat #FFF;
    background-size: cover;
    flex-direction: column;
    display: flex;
    background-position: left top;
    justify-content: center;
    align-items: center;
}

.sert {
    position: relative;
}

.sertificates {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 30px;
}

.sert_detail_photo p {
    font-size: 25px;
    color: #000;
    z-index: 1;
}

.sert_detail_photo span {
    font-size: 18px;
    color: #000;
    z-index: 1;
    width: 80%;
    text-align: center;
    line-height: 1.2;
}

.sert_detail_photo2 p {
    font-size: 25px;
    color: #000;
    z-index: 1;
}

.orange {
    background: orange !important;
    margin-left: auto;
}

.sert_detail_photo2 span {
    font-size: 18px;
    color: #000;
    z-index: 1;
    text-align: center;
    font-weight: 300;
    margin-top: 5px;
    width: 60%;
    line-height: 1.2;
}

.sert_srok {
    /* position: absolute; */
    right: 26px;
    top: 20px;
    font-weight: 400;
    font-size: 18px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    color: black;
}

.sert_price {
    display: flex;
    align-items: anchor-center;
    font-size: 32px;
    color: #000;
    margin-left: 100px;
    letter-spacing: 1px;
}


.sert_price2 {
    display: flex;
    align-items: anchor-center;
    font-size: 22px;
    color: #000;
    position: absolute;
    bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
    right: 20px;

}



.sert_price3 {
    display: flex;
    align-items: anchor-center;
    font-size: 16px;
    color: #000;

    bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
    right: 20px;

}

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 100%;
}

.flip-card-inner {

    text-align: center;
    transition: transform 0.2s;
    transform-style: preserve-3d;
}

.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.dop_infoz p {
    margin-bottom: 4px;
}

.flip-card-back_left p {
    font-size: 20px;
    text-align: left;
    display: flex;
    margin-bottom: 4px;
    gap: 12px;
    align-items: anchor-center;
}

.flip-card-back_left p span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: white;
    border-radius: 50px;
    padding: 3px;
    aspect-ratio: 4 / 4;
}



.flip-card-front,
.flip-card-back {
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    top: 0;
}

.flip-card-back_right,
.flip-card-back_left {
    width: 50%;
}

.flip-card-back {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
}

.infoz {
    padding: 4px 0;
    font-size: 16px;
}

.sert_logo {
    position: absolute;
    z-index: 100;
    left: 55px;
    top: 27px;
    width: 185px;
}

.sert_header {
    z-index: 1;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 31px;
    text-transform: uppercase;
    color: #000;
}

.max_in {
    display: flex;
}

.max_in img {
    width: 40px;
}

.bg_black img {
    position: absolute;
    right: -30px;
    top: -44px;
    width: 25%;
}

.bg_black {
    /* background: linear-gradient(180deg, #19875400 25%, #232323 84%); */
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    border-radius: 10px;
    border: 2px solid #959595;
}


.sert_zakaz_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* margin: 0; */
    padding: 0 20px;
    position: absolute;
    /* right: 0; */
    /* border-radius: 5px; */
    /* background: url(/sertificates/texture.jpg) #12560b no-repeat; */
    left: 0;
    /* background-size: cover; */
    /* margin: 8px; */
    border: 2px solid #6c926c00;
    width: 100%;
    bottom: 19px;
    justify-content: space-between;

}

@keyframes flareAnimation {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.button {
    padding: 18px 20px;
    background: linear-gradient(180deg, #198754 49%, #6ea048 84%);
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    border-radius: 5px;
    position: relative;
    border: none;
    overflow-x: hidden;
}


.button2 {
    padding: 18px 20px;
    background: linear-gradient(180deg, #198754 49%, #6ea048 84%);
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    border-radius: 5px;
    position: relative;
    border: none;
    overflow-x: hidden;
}

.button:hover {
    background: linear-gradient(180deg, #198754 49%, #569128 84%);
}

.button .flare {
    position: absolute;
    top: 0;
    height: 100%;
    width: 45px;
    transform: skewX(-45deg);
    animation: flareAnimation;
    left: -150%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
    animation: flareAnimation 3s infinite linear;
}

.button2 .flare {
    position: absolute;
    top: 0;
    height: 100%;
    width: 45px;
    transform: skewX(-45deg);
    animation: flareAnimation;
    left: -150%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
    animation: flareAnimation 3s infinite linear;
}

/* .sert_detail_photo2::after,.sert_detail_photo::after {
    content: '';
    width: 350px;
    height: 350px;
    background: -webkit-linear-gradient(107deg, rgb(24 38 18), rgb(255 255 255 / -4%) 75%);
    background: -moz-linear-gradient(107deg, rgb(24 38 18), rgb(255 255 255 / -4%) 75%);
  background: linear-gradient(107deg, rgb(24 38 18), rgb(255 255 255 / -4%) 75%);
    left: 1px;
    top: 1px;
    position: absolute;
    border-radius: 8px 0 0 0;
    z-index: 0;
} */


@media (max-height: 1000px) {
    .show {
        top: 50%;
    }

    .booking-form {
        height: max-content;
    }

    .otpravka {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .fancybox-container {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .fancybox-inner,
    .fancybox-stage {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .fancybox-slide--video {
        padding: 16px !important;
        overflow: hidden !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .fancybox-slide--video::before {
        display: none !important;
    }

    .fancybox-slide--video .fancybox-content {
        position: relative !important;
        margin: 0 auto !important;
        width: auto !important;
        height: auto !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        transform: none !important;
    }

    .fancybox-slide--video video,
    .fancybox-video {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        object-fit: contain !important;
    }
}

html.fancybox-enabled,
body.fancybox-active {
    overflow: hidden !important;
}