@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --primary-color: #5819BE;
    --text-color-dark: #151515;
    --background-color-light: #ffffff;
    --background-color-dark: #151515;
    --accent-color: rgba(88, 25, 190, 0.1);
    --border-color: rgba(88, 25, 190, 1);
    --text-color-light: #fff;
}

/* Global styles */
body {
    font-family: "Inter", sans-serif;
    margin: 0px;
    padding: 0px;
}

a {
    color: var(--primary-color);
}

p {
    font-size: 18px;
    line-height: 26px;
}

.wp-block-list li {
    font-size: 18px;
    line-height: 26px;
}

h1 {
    font-size: 60px;
    line-height: 70px;
    font-weight: 400;
}

main {
    padding-top: 62px;
    min-height: 80vh;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: auto !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.container .container {
    padding-left: 0px;
    padding-right: 0px;
}

/* header */
header {
    /* position: fixed;
     left: 0px;
     top: 0px;*/
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 116px;
    background: var(--background-color-light);
}

.main-header-menu ul {
    list-style: none;
    display: flex;
}

.main-header-menu ul li a {
    font-size: 18px;
    line-height: 24px;
    display: flex;
    padding: 14px;
    text-decoration: none;
    color: var(--text-color-dark);
    white-space: nowrap;
    margin-right: 42px;
}

a.action-btn {
    display: inline-flex;
    height: 52px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color-light);
    background: var(--primary-color);
    padding: 14px 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

.mobile-menu {
    display: none;
}

.mobile-menu-buttons {
    display: none;
}

/* Image text block */
.image-text-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-text-block-text {
    width: 50%;
    margin-top: 30px;
}

.image-text-block-image {
    width: 50%;
}

.image-text-block-image img {
    width: 100%;
}

.image-text-block.reverse {
    flex-direction: row-reverse;
}

.image-text-block-text h2 {
    font-size: 70px;
    line-height: 80px;
}

.image-text-block-text p {
    font-size: 18px;
    line-height: 26px;
    padding-bottom: 30px;
}

/* how-work-items */
.how-it-work-section {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--accent-color);
}

.how-work-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.how-work-item {
    width: 48%;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.how-work-item h3 {
    font-size: 28px;
    line-height: 33px;
    margin-top: 0px;
    margin-bottom: 12px;
}

.how-work-item p {
    font-size: 18px;
    line-height: 25px;
}

.how-work-item img {
    margin-right: 16px;
}

.how-it-work-section h2 {
    margin-top: 0px;
    font-weight: 400;
    margin-bottom: 60px;
    font-size: 60px;
}

/* Price block */
.price-block-title {
    padding-left: 30%;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.price-block-title h2 {
    font-size: 60px;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 0px;
}

.price-block-title p {
    font-size: 18px;
}

.payment_popup {
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
}

.payment_popup.active {
    display: flex;
}

.payment_popup_body {
    width: 700px;
    background-color: #fff;
    padding: 40px;
    position: relative;
}

.payment_popup_close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

/* faq-block */
.faq-block-section h2 {
    font-size: 60px;
    font-weight: 400;
    margin-bottom: 20px;
}

.faq-block {
    display: flex;
    margin-top: 60px;
}

.faq-items {
    width: 60%;
}

.faq-item-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.6s, padding 0.6s;
    border-top: 1px solid var(--border-color);
}

.faq-item-title {
    cursor: pointer;
    padding: 10px;
    margin: 5px 0;
    font-weight: bold;
    background-image: url('../images/plus-icon.svg');
    background-position: right center;
    background-repeat: no-repeat;
}

.active .faq-item-title {
    background-image: url('../images/i_minus.svg');
}

.active .faq-item-content {
    max-height: 200px;
    padding: 10px;
}

/* Footer */
footer {
    background: var(--background-color-dark);
    padding-top: 45px;
    padding-bottom: 32px;
    margin-top: 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
}

.footer-disclaimer {
    font-size: 52px;
    color: var(--text-color-light);
    margin-top: 50px;
}

.footer-language-switcher {
    margin-top: 130px;
    padding-left: 0px;
    list-style: none;
    display: flex;
    align-items: flex-end;
}

.footer-language-switcher a {
    color: #fff;
    margin-right: 12px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-chat-button a {
    margin-top: 32px;
    background: var(--text-color-light);
    font-size: 18px;
    color: var(--text-color-dark);
    border-radius: 10px;
    display: inline-flex;
    padding: 14px 20px;
    justify-content: center;
    align-self: center;
    text-decoration: none;
}

.footer-top-1 {
    width: 60%;
    padding-right: 100px;
    box-sizing: border-box;
}

.footer-top-2 {
    display: flex;
    width: 40%;
    justify-content: space-between;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu ul li a {
    text-decoration: none;
    color: var(--text-color-light);
    margin-bottom: 24px;
    font-size: 18px;
    display: inline-flex;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    margin-top: 130px;
}

.footer-social a {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* space-block */
.small-space-block {
    height: 40px;
    min-height: 40px;
}

.medium-space-block {
    height: 80px;
    min-height: 80px;
}

.big-space-block {
    height: 160px;
    min-height: 160px;
}

/* END space-block */

/* FAQ page*/
.page-faq {
    background-image: url('../images/faq-bg.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

.page-faq .faq-block-section h2 {
    font-size: 28px;
    line-height: 32px;
    color: var(--primary-color);
}

.page-faq .faq-items {
    width: 100%;
}

/* END FAQ page*/
.page-review {
    background-image: url('../images/faq-bg.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

/* Reviews page */

/* Review block */
.review-item {
    margin-bottom: 50px;
}

.review-item-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.review-item-contact {
    color: #535353;
    font-size: 12px;
    line-height: 26px;
    margin-bottom: 12px;
}

.review-item-stars {
    display: flex;
    margin-bottom: 12px;
}

/* END Review block */

/* END Reviews page */

/* contact-block */
.contact-section {
    background: var(--accent-color);
    padding-top: 120px;
    padding-bottom: 120px;
}

.contact-block {
    display: flex;
    justify-content: space-between;
}

.contact-left {
    width: 54%;
}

.contact-left h2 {
    font-size: 60px;
    line-height: 72px;
    font-weight: 400;
    margin-top: 0px;
}

.contact-right {
    width: 46%;
    padding-left: 60px;
    box-sizing: border-box;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-right .form-group {
    height: auto;
}

.contact-right .form-group input {
    width: 100%;
}

/* END contact-block */

/* Blog  */

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.blog-post-item {
    display: block;
    width: 48%;
    max-width: 620px;
    height: 400px;
    background-color: rgba(88, 25, 190, 0.15);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: var(--text-color-dark);
    margin-bottom: 26px;
}

.blog-posts p {
    font-size: 14px;
}

.blog-post-item h2 {
    width: 60%;
}

.blog-post-item .post-excerpt {
    width: 65%;
}

.single-post h1 {
    font-size: 48px;
    line-height: 48px;
}

.post-thumbnail {
    margin-top: 40px;
    margin-bottom: 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.pagination .nav-links .page-numbers {
    margin-left: 20px;
    margin-right: 20px;
    text-decoration: none;
}

.pagination .nav-links .current {
    color: var(--primary-color);
}

.pagination .nav-links a {
    color: var(--text-color-dark);
}

/* Blog */

.page_404_block{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 100px;
}
.page_404_block h1{
    font-weight: 900;
    margin-bottom: 0px;
    font-size: 96px;
}

.page_404_block h2{
    font-weight: 600;
    margin-top: 0px;
    font-size: 60px;
}

/* Video */

     /* Контейнер видео, позиционированный в левом нижнем углу */
 .video-overlay {
     position: fixed;
     bottom: 10px;
     left: 10px;
     width: 200px;       /* начальная ширина */
     height: 350px;      /* начальная высота */
     z-index: 9999;
     /* задаём начальную трансформацию */
     transform: scale(1);
     transform-origin: left bottom; /* масштабирование будет от левого нижнего угла */
     transition: transform 0.3s ease;
 }

/* При клике увеличиваем видео в 2 раза */
.video-overlay.expanded {
    transform: scale(2);
}

/* Обертка видео */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Само видео */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Кнопка закрытия – изначально скрыта */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    display: none;
}

/* Показываем кнопку закрытия при увеличении видео */
.video-overlay.expanded .close-button {
    display: block;
}




/* Media queries */
@media (max-width: 1200px) {
    .main-header-menu ul li a {
        margin-right: 12px;
    }

    .hide-mid {
        display: none;
    }

    .main-header-logo img {
        height: 54px;
    }
}

@media (min-width: 1200px) {
    .hide-pc {
        display: none;
    }
}

@media (max-width: 1060px) {
    .footer-menu ul li a {
        font-size: 16px;
    }

    .footer-disclaimer {
        font-size: 42px;
    }

    .footer-top-2 {
        padding-right: 20px;
    }

    .blog-post-item {
        width: 100%;
    }

    .image-text-block-text h2 {
        font-size: 52px;
        line-height: 60px;
    }

    .price-block-title h2 {
        font-size: 52px;
        line-height: 60px;
    }

    .contact-block {
        flex-wrap: wrap;
    }

    .contact-left {
        width: 100%;
        margin-bottom: 30px;
    }

    .contact-right {
        width: 100%;
        padding-left: 0px;
    }

    .footer-top-1 {
        width: 75%;
        padding-right: 0px;
        box-sizing: border-box;
    }
}


@media (max-width: 768px) {
    .hide-mob {
        display: block;
    }

    body {
        padding-top: 116px;
    }

    body.menu-active {
        overflow: hidden;
    }

    h1 {
        font-size: 40px;
        line-height: 48px;
    }

    .hide-mob {
        display: none;
    }

    .header {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        background: var(--background-color-light);
        z-index: 99;
    }

    .main-header-logo img {
        height: 24px;
    }

    .main-header {
        height: 62px;
    }

    .mobile-menu-buttons {
        display: block;
    }

    .header.mobile-menu-active {
        height: 100vh;
        background-color: #fff;
        z-index: 999;
    }

    .mobile-menu-buttons-close,
    .mobile-menu-buttons .mobile-menu-buttons-close {
        display: none;
    }

    .mobile-menu-buttons {
        width: 28px;
    }

    .header.mobile-menu-active a.mobile-menu-buttons-close {
        display: block;
    }

    .header.mobile-menu-active a.mobile-menu-buttons-open {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .header.mobile-menu-active .mobile-menu {
        display: flex;
        height: calc(100dvh - 62px);
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-menu ul {
        margin-top: 60px;
        padding-left: 0px;
        list-style: none;
    }

    .mobile-menu ul li a {
        display: block;
        font-size: 32px;
        line-height: 32px;
        margin-bottom: 40px;
        text-decoration: none;
        color: var(--text-color-dark);
    }

    .mobile-menu ul li:last-child a {
        margin-bottom: 0px;
    }

    .mobile-menu ul.action-menu li a {
        font-size: 22px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .mobile-menu ul.action-menu li a svg {
        margin-right: 6px;
        width: 20px;
    }

    img {
        max-width: 100%;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .small-space-block {
        height: 20px;
    }

    .medium-space-block {
        height: 30px;
    }

    .big-space-block {
        height: 60px;
    }

    .main-header-menu {
        display: none;
    }

    /* Image text block */
    .image-text-block {
        flex-direction: column;
    }

    .image-text-block-text h2 {
        font-size: 42px;
        line-height: 48px;
        font-weight: 400;
        margin-bottom: 15px;
        margin-top: 0px;
    }

    .image-text-block.reverse {
        flex-direction: column;
    }

    .image-text-block-text {
        margin-bottom: 40px;
        width: 100%;
    }

    .image-text-block-image {
        width: 100%;
    }

    .image-text-block-text p {
        padding-bottom: 0px;
    }

    /* END Image text block */
    /* how-it-work-section */
    .how-it-work-section {
        padding-top: 20px;
        padding-bottom: 0px;
    }

    .how-it-work-section h2 {
        font-size: 32px;
        line-height: 38px;
        margin-bottom: 30px;
    }

    .how-work-item {
        width: 100%;
    }

    .how-work-item h3 {
        font-size: 24px;
        font-weight: 400;
    }

    /* END how-it-work-section */
    /* Price block */
    .price-block-title {
        padding-left: 0px;
    }

    .price-block-title h2 {
        font-size: 42px;
        line-height: 48px;
    }

    /* Price block */
    /* FAQ block */
    .faq-block {
        margin-top: 30px;
    }

    .faq-items {
        width: 100%;
    }

    .faq-image {
        display: none;
    }

    /* FAQ block*/
    /* Footer */
    .footer-top {
        flex-direction: column;
    }

    .footer-disclaimer {
        font-size: 32px;
        margin-top: 32px;
    }

    .footer-top-2 {
        width: 100%;
        flex-direction: column;
        margin-top: 24px;
        box-sizing: border-box;
    }

    .footer-menu ul {
        padding-left: 0px;
        margin-bottom: 0px;
        margin-top: 0px;
    }

    .footer-social {
        margin-top: 70px;
        justify-content: space-between;
    }

    .footer-social a {
        margin-left: 0px;
    }

    .page-faq {
        background-position: initial;
        background-size: auto;
    }

    .main-header a.action-btn {
        background-color: #151515;
        height: 22px;
    }

    .single-post h1 {
        font-size: 32px;
        line-height: 38px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-language-switcher {
        margin-top: 30px;
        justify-content: center;
    }

    .footer-social {
        margin-top: 30px;
    }

    .contact-left h2 {
        font-size: 32px;
        line-height: 34px;
    }

    .blog-post-item {
        height: auto;
    }

    .blog-post-item h2 {
        width: 100%;
    }

    .blog-post-item .post-excerpt {
        width: 100%;
    }

    .page_404_block{
        flex-direction: column-reverse;
        padding-top: 30px;
        padding-bottom: 30px;
        text-align: center;
    }
    .page_404_block h1{
        font-size: 46px;
    }

    .page_404_block h2{
        font-size: 28px;
        margin-top: 30px;
    }

    .video-overlay.expanded{
        transform: scale(1.5);
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 32px;
        line-height: 34px;
    }

    .contact-left h2 {
        font-size: 28px;
        line-height: 32px;
    }
}