.text-image-block {
    padding: 40px 0px;
}
.text-image-block h2 {
    margin-top: unset;
    font-weight: 600;
    font-size: 46px;
    line-height: 120%;
    margin-bottom: 15px;
}
.text-image-block h3 {
    margin-top: unset;
    font-weight: 700;
    font-size: 32px;
    line-height: 125%;
    margin-bottom: 10px;
}
.text-image-block h4 {
    margin-top: unset;
    font-weight: 700;
    font-size: 24px;
    line-height: 125%;
    margin-bottom: 10px;
}
.text-image-block h5 {
    margin-top: unset;
    font-weight: 700;
    font-size: 20px;
    line-height: 125%;
    margin-bottom: 10px;
}
.text-image-block h6 {
    margin-top: unset;
    font-weight: 700;
    font-size: 18px;
    line-height: 125%;
    margin-bottom: 10px;
}
.text-image-block blockquote {
    padding: 75px 50px 35px 50px;
    border-radius: 30px;
    background: var(--background-thirdly);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.text-image-block .text-holder.lines blockquote {
    padding-bottom: 75px;
}
.text-image-block blockquote p {
    font-family: var(--second-family);
    font-weight: 115;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    color: var(--head-primary);
}
.text-image-block .text-holder.lines blockquote p {
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
}
.text-image-block blockquote p:has(strong) {
    margin: 20px 0px 5px 0px;
}
.text-image-block blockquote p strong {
    font-weight: 400;
    font-size: 20px;
    line-height: 135%;
    text-align: center;
    color: var(--head-primary);
}
.text-image-block blockquote p em {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: var(--main-text-secondary);
}
.text-image-block blockquote:before {
    content: "";
    width: 35px;
    height: 20px;
    top: 45px;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(images/citate.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
}
.text-image-block .text-holder.lines blockquote:before {
    content: "";
    width: 39%;
    height: 4px;
    border-radius: 2px;
    top: 35px;
    left: 50%;
    position: absolute;
    background-image: unset;
    background: var(--primary);
}
.text-image-block .text-holder.lines blockquote:after {
    content: "";
    width: 39%;
    height: 4px;
    border-radius: 2px;
    bottom: 35px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    position: absolute;
}
.text-image-block .gallery {
    display: flex;
    gap: 20px;
    margin: 20px 0px;
    flex-wrap: wrap;
}
.text-image-block .gallery-img {
    width: calc((100% - 20px) / 2);
    flex-grow: 1;
    display: flex;
    height: auto;
    max-height: 490px;
    border-radius: 30px;
    overflow: hidden;
    cursor: zoom-in;
}
.text-image-block .gallery-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.text-image-block .news-mark {
    margin-top: -15px;
    font-weight: 400;
    font-size: 13px;
    line-height: 145%;
    color: var(--main-text-secondary);
    margin-bottom: 15px;
}
.text-image-block .video-holder {
    margin: 20px 0px;
    max-height: 490px;
    display: flex;
    position: relative;
}
.text-image-block .media-video {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    height: auto;
    max-height: 490px;
    position: relative;
    object-fit: cover;
}
.text-image-block source {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.text-image-block #play-pause-button {
    transition: 0.5s;
    background: var(--background);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 100%;
}
.text-image-block #play-pause-button:hover {
    background: var(--primary);
}
.text-image-block #play-pause-button svg {
    margin-left: 5px;
}
.text-image-block #play-pause-button path {
    transition: 0.5s;
}
.text-image-block #play-pause-button:hover path {
    fill: var(--background);
}

@media (max-width: 1400px) {
    .text-image-block h2 {
        font-size: 36px;
        margin-bottom: unset;
    }
    .text-image-block h3 {
        font-size: 30px;
        margin-bottom: unset;
    }
    .text-image-block h4 {
        font-size: 20px;
        margin-bottom: unset;
    }
    .text-image-block h5 {
        font-size: 18px;
        margin-bottom: unset;
    }
}

@media (max-width: 996px) {
    .text-image-block {
        padding: 10px 0px;
    } 
    .text-image-block h2 {
        font-size: 26px;
    }
    .text-image-block h3 {
        font-size: 22px;
    }
    .text-image-block h4 {
        font-size: 18px;
    }
    .text-image-block h5 {
        font-size: 16px;
    }
    .text-image-block h6 {
        font-size: 14px;
    }
    .text-image-block blockquote {
        padding: 20px 10px 10px 10px;
    }
    .text-image-block .text-holder.lines blockquote {
        padding: 20px 10px;
        padding-bottom: 20px;
    }
    .text-image-block .text-holder blockquote p {
        font-size: 14px;
    }
    .text-image-block blockquote p:has(strong) {
        margin: 5px 0px;
    }
    .text-image-block blockquote p strong,
    .text-image-block blockquote p em {
        font-size: 14px;
    }
    .text-image-block .text-holder.lines blockquote p {
        font-size: 14px;
    }
    .text-image-block blockquote:before {
        top: 10px;
        width: 20px;
        height: 10px;
    }
    .text-image-block .text-holder.lines blockquote:before {
        top: 10px;
        height: 2px;
        width: 60%;
    }
    .text-image-block .text-holder.lines blockquote:after {
        bottom: 10px;
        height: 2px;
        width: 60%;
    }
    .text-holder ol, .text-holder ul {
        margin-top: unset;
    }
    .text-block ul li {
        padding-left: 25px;
    }
    .text-image-block .media-video {
        width: 100%;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .text-image-block h2 {
        font-size: 22px;
    }
    .text-image-block h3 {
        font-size: 20px;
    }
    .text-image-block h4 {
        font-size: 16px;
    }
}